Editing commands

Introduction

Editing commands are the set of orders used to edit or modify a drawing. More specifically, they cover all the processes and mechanisms required to modify and work with what has already been drawn.

gvSIG uses three different ways to run these commands.


Copying

This makes a copy of the objects you have selected. The elements copied will keep the same size and orientation as the originals. To access this tool, click on the “Copy” button in the tool bar

acciones-posibles-en-una-sesion-de-edicion.img/botonCopiar_es.png

or go to the “Geometry” menu bar, then to "Modify" and "Copy".

acciones-posibles-en-una-sesion-de-edicion-en.img/menuCopiar_en.png

The copying process is basically the same as the move process but the source objects do not move from their initial positions. New objects are created in the new location which are identical to the originals in size, shape and in the distance between them.

To make a copy, when the objects to be copied have been designated, two points need to indicated, the base point and the move point.

As with the rest of the tools, a projection of these objects will be shown in the view to specify the view location the copied objects are to be inserted in.

When the copied objects are situated in their location, click on the view again to set their position.

To copy objects from the command console, write the command "copy" when you have selected the objects you wish to copy, input the first move point and then the second point.

For example, when the command and the first move point have been input (30,40), the projection of the figure being copied appears. Input the second move point, (60, 40 in the example), and the new identical element will appear in the defined location.

acciones-posibles-en-una-sesion-de-edicion-en.img/copiarPoligonoVentanaCompleta_en.png

Symmetry

This tool allows you to make a drawing which is symmetrical to the selected one. You can access this tool by clicking on the “Symmetry” button in the tool bar

acciones-posibles-en-una-sesion-de-edicion.img/botonSimetria_es.png

or by going to the “Geometry” menu bar, then to “Modify” and “Symmetry”.

acciones-posibles-en-una-sesion-de-edicion-en.img/menuSimetria_en.png

To obtain a symmetrical drawing in gvSIG, firstly select the element and then select the “Symmetry” option. Then, click on the display graphic area to insert the first symmetry axis point. gvSIG will then create a red projection of a figure which is symmetrical to the selected figure. You can then input the second point the symmetry axis will pass through by clicking on the graphic area again.

acciones-posibles-en-una-sesion-de-edicion.img/poligonoEnSimetria_es.png

If you wish to run the tool from the command line, firstly write the command “symmetry”.

Input the first point the symmetry axis will pass through and press “Enter”. The console will then ask you to input a second point this axis has to pass through.

Input the point and press “Enter” again.

The console will ask you if you wish to keep the source object, write “Y” if you wish to keep it and “N” if you do not.

acciones-posibles-en-una-sesion-de-edicion-en.img/simetriaPorConsola_en.png

Rotating

You can use this tool to rotate the selected objects by taking a base point as the centre. You can activate this tool by clicking on the “Rotate” button in the edition tool bar

acciones-posibles-en-una-sesion-de-edicion.img/botonRotar_es.png

or by going to the "Geometry" menu bar, then to “Modify” and “Rotate”.

acciones-posibles-en-una-sesion-de-edicion-en.img/menuRotar_en.png

To rotate an element, first place the base point by clicking on the graphic area. Move the mouse, with the help of the projection that gvSIG uses to the effect, until the new position has been established.

Left click on the mouse in the view to define this point.

If you wish to rotate an element from the command console, select the object to be rotated, write the command “rotate” and input the first move point.

Then input how much you wish to rotate it in sexagesimal degrees.

The object will be rotated clockwise if you write a negative angle and anti-clockwise if you write a positive angle.

acciones-posibles-en-una-sesion-de-edicion-en.img/rotarEnConsola_en.png

Moving Elements

This tool allows you to move the selected objects from one point to another in the view by indicating a move vector. You can use this tool by selecting it from the tool bar by clicking on the "Move" button

acciones-posibles-en-una-sesion-de-edicion.img/botonDesplazamiento_es.png

or by going to the “Geometry” menu bar, then to “Modify” and "Move".

acciones-posibles-en-una-sesion-de-edicion-en.img/menuDesplazamiento_en.png

If you wish to move an element, select the object you wish to move and then activate the “Move” option. Click on the graphic area to define the move point.

gvSIG will create a red projection of the elements it is moving which can be used as a guide to position them in their new location.

acciones-posibles-en-una-sesion-de-edicion.img/poligonoDesplazado_es.png

When the element is located in the desired position, left click on the mouse again to define the new position.

To use the “move” command from the command console, write the command “move”. The console will show a message requesting a move point. Input the point.

acciones-posibles-en-una-sesion-de-edicion-en.img/desplazamientoEnConsola_en.png

Then input the second move point. Press “Enter” and the object will move to its new position.


Selecting
Simple selection

To select one of the drawn objects in the layer we are editing, click on the "Select" button in the tool bar,

acciones-posibles-en-una-sesion-de-edicion.img/botonSeleccionSimple_es.png

or go to the “Geometry” menu bar and then to “Select”.

acciones-posibles-en-una-sesion-de-edicion-en.img/menuSeleccionSimpYcomplej_en.png

Then click on the object you wish to select.


Complex selection

You can access this button in the tool bar,

acciones-posibles-en-una-sesion-de-edicion.img/botonSeleccionCompleja_es.png

or by going to the “Geometry” menu bar then to “Complex selection”.

When the “Complex selection” tool has been selected, right click on the mouse in the graphic area. The following contextual menu will appear.

acciones-posibles-en-una-sesion-de-edicion-en.img/seleccionarDentroCircunferencia_en.png

Click on the option you wish to use to select the elements.

If you use the “Inside circle” option you can delimit a circle so that the elements you wish to select remain inside this area.

acciones-posibles-en-una-sesion-de-edicion.img/circunferenciaSeleccionando_es.png

The selection result corresponds to the following image.

acciones-posibles-en-una-sesion-de-edicion.img/puntosSeleccionadosXcircunferencia_es.png

You can also write the “select” and “complex selection” commands in the command console. Command: “select” Write the command “select” in the command console.

When a message appears in the command console requesting you to add the selection point, input the coordinates of the object you wish to select.

If there is an object in the defined coordinates, it will be selected.

acciones-posibles-en-una-sesion-de-edicion-en.img/ordenConsolaSeleccionar_en.png

Command: “complex selection” Write the command “complex selection” in the command console and when the selection options appear, write the desired option.

The options are shown with their names, and in square brackets ([]) the text you need to input in the command console to use the option.

acciones-posibles-en-una-sesion-de-edicion-en.img/ordenConsolaSeleccionCompleja_en.png

If, for example, you wish to select the features that are in a polygon area, you need to write “complex selection” in the command console, press “Enter” and then select the “IP” option.

This allows us to indicate the coordinates of the vertices which will make up the polygon (when the coordinates of each of the vertices are indicated a polygon is drawn in the drawing window) and when it is finished, the elements which are inside it are selected so you can work on them.

The following image shows how a selection option is input.

acciones-posibles-en-una-sesion-de-edicion-en.img/ordenConsolaSeleccionComplejaIP_en.png

The following figure shows the definition of the selection polygon in the graphic area.

acciones-posibles-en-una-sesion-de-edicion-en.img/seleccionComplejaEnPantalla_en.png

When the polygon is finished, the elements contained inside it will be selected so you can work on them.

Selection options
  • Outside rectangle [OR]: This allows you to delimit a rectangular area and select the elements which lie outside this area.
  • Inside polygon [IP]: This allows you to draw a polygon area and select the elements located inside this area.
  • Intersects with/Contains polygon [CP]: This allows you to draw a polygon area and select all the elements located inside it or which intersect with its perimeter.
  • Outside polygon [OP]: This allows you to delimit a polygon area and select the elements which lie outside it.
  • Inside circle [IC]: This allows you to delimit a circle and select all the elements located inside this area.
  • Intersects with/Contains circle [CC]: This allows you to delimit a circle and select all the elements located inside it or which intersect with its perimeter.
  • Outside circle [OC]: This allows you to delimit a circle and select the elements which lie outside it.
  • Select all: This selects all the elements contained in the layer regardless of where they lie in it.

Editing vertex

This tool allows you to go through the vertices of the selected objects easily and carry out other actions, such as adding a new vertex or deleting the vertex which is being edited.

To access this tool, click on the “Edit vertex” button in the tool bar.

acciones-posibles-en-una-sesion-de-edicion.img/botonEditarertice_es.png

You can also access the tool by going to the “Geometry” menu bar then to “Modify” and “Edit vertex”.

acciones-posibles-en-una-sesion-de-edicion.img/menuEditarVertice_es.png

To edit the vertices of a figure, select the figure and click on the “Edit vertex” button in the tool bar.

A red pointer appears in one of the vertices of the figure you are editing.

acciones-posibles-en-una-sesion-de-edicion.img/poligonoEditarVertice_es.png

If you right click on the mouse, a menu will appear from which you can select the actions you wish to carry out.

If you click on the “Next” option, the cursor will move to the next vertex of the selected object.

acciones-posibles-en-una-sesion-de-edicion.img/poligonoEditarVerticeSiguiente_es.png

You can also access this tool from the command console. To do so, write the command: EDIT VERTEX.

If, for example, you wish to go through the vertices of an element, write the command and input the parameter “S” (next).

To go to the previous vertex, write the parameter “A”.

To delete a vertex write the parameter “E” and press “Enter”.

To add (insert) a vertex, write the parameter “I” and press “Enter”.

The X and Y coordinates of the new vertex will then be requested (remember that these coordinates should belong to the polygon perimeter).

Input the data in the console and press “Enter”.

A new vertex will be created in the figure.

acciones-posibles-en-una-sesion-de-edicion.img/consolaEditarVertice_es.png

Internal polygon

This tool allows you to create a polygonal feature inside an existing feature.

You can access this tool by going to the "Geometry" menu then to "Modify" and "Internal polygon”

acciones-posibles-en-una-sesion-de-edicion.img/menuPoligonoInterno_es.png

or from the following tool bar button:

acciones-posibles-en-una-sesion-de-edicion.img/botonPoligonoInterno_es.png

You can create an internal polygon, either graphically or from the gvSIG command console.

If you wish to create the polygon graphically, the polygon element layer must be in editing mode and you must select the polygon on which you wish to use the selected tool.

Activate the "Internal polygon" tool and place the cursor where you wish to insert the first vertex.

acciones-posibles-en-una-sesion-de-edicion.img/poligonoInternoIncicio_es.png

Then insert the vertices of the polygonal feature you wish to create. When you do not wish to insert any more vertices, right click on the mouse and select “End” from the contextual menu that appears.

acciones-posibles-en-una-sesion-de-edicion.img/poligonoInterno2paso_es.png

The corresponding internal polygon is created.

acciones-posibles-en-una-sesion-de-edicion.img/poligonoInternoFinal_es.png

You can also use this tool from the command console. To do so, write the command “internal polygon” in the command line.

Then input the X and Y coordinates of the points which will correspond to the vertices of the new polygonal feature. When you have finished, write “e” to close the new internal polygon you have created.

acciones-posibles-en-una-sesion-de-edicion.img/poligonoInternoConsola_es.png

Scaling

This command can be used to modify the size of the selected objects. Select this tool by clicking on the “Scale” button in the tool bar

acciones-posibles-en-una-sesion-de-edicion.img/botonEscalar_es.png

or by going to the "Geometry" menu bar then to "Modify" and “Scale”.

acciones-posibles-en-una-sesion-de-edicion-en.img/menuEscalar_en.png

There are two ways of scaling, either by indicating a scale factor or by reference. Scaling by “Scale factor” To graphically scale elements using a scale factor, select the objects whose size you wish to modify, activate the scale tool and set the base point. The application will create an image which will give you a reference point about the size of the objects you are modifying.

As you get closer to the point you have set as the base point, the elements you are working with will get smaller, whilst the farther away you move, the bigger they will get.

When the objects are the desired size, click on the drawing window again. The same scale factor is applied for both the X and Y coordinates.

acciones-posibles-en-una-sesion-de-edicion-en.img/escalar_en.png

To graphically scale using the "Reference" option, select the objects and activate the “scale” command, then right click on the mouse inside the graphic area to show the tool’s contextual menu.

Select the “Reference” option. Indicate the points on the reference line and on the scale line as the messages in the command console are shown.

acciones-posibles-en-una-sesion-de-edicion-en.img/escalarPorReferenciaConsola_en.png

You can also use the “scale” command in the command console. When you have selected the objects to be scaled, write the command “scale” and then input the base point as shown in the following figure.

acciones-posibles-en-una-sesion-de-edicion-en.img/escalarDesdeConsola_en.png

To increase the size of the objects you must input a scale factor which is greater than 1.

If you wish to reduce the size of the objects, the scale factor must be between 0 and 1.

If no value is input, gvSIG will use the scale factor 2 by default.

Scaling by “Reference” If you wish to scale using the "Reference" option, select the elements you wish to scale, choose the base point, then input the letter "r" into the command console to indicate that scaling by reference will be used.

Specify the source point and the final point of the reference straight line and then input the source point and final point of the scale line.

acciones-posibles-en-una-sesion-de-edicion-en.img/escalarDesdeconsolaPorReferencia_en.png

Explode

This tool is used to split a polyline into different segments.

To split a polyline, start editing the line layer and select the polyline:

explotar_en.img/ejemplo-en.png

Polyline selection

Once the polyline has been selected, activate the explode tool to split the polyine into segments. Verify that each of the segments can be selected as a line instead of as a poyline.

explotar_en.img/Explotar_en.png

Explode button


Join geometries

The Join tool combines two or more geometries from the same polygon or line layer into a single multipolygon or multiline geometry. The tool can't be used with point layers as this would create a multipoint shape, which is already a shape-independent type.

In order to use the tool the layer must be in edit mode. Use the Edit Selection tool to select the geometries to be joined, making use of the Ctrl key to select multiple geometries.

unir-geometrias_en.img/Unir_en.png

Selecting geometries to be joined

Once the geometries have been selected click the Join icono tool to join the geometries into a single record in the table. It should be noted that the attributes of the geometry with the higher value 'Id' will be retained, i.e. the one that is drawn last.

unir-geometrias_en.img/Unir2_en.png

Example showing the result of the Join tool


Split geometries

This tool splits geometries from the same layer. To perform the division, first switch the layer to edit mode and then use the selection tool to select the geometry to be split.

The "Split geometries" icono tool can be found on the editing toolbar.

Once the geometry has been selected,

partir-geometrias_en.img/partir_en.png

Selecting the geometry

click on the Split geometries icon. In the command window at the bottom the following message appears: "Insert first point." To split the geometry, draw a line where it should be divided. This is done by inserting a series of points that define the line along which the division is performed.

partir-geometrias_en.img/partir2_en.png

Splitting the geometry

Double-click to finish digitising the line and to perform the split. Then use the selection tool to verify that the geometry has been split into different parts.

partir-geometrias_en.img/partir3_en.png

Result

The split operation results in the creation of separate records for each part in the attribute table, rather than the single record that existed prior to the split.


Matrix

The matrix command allows an item to be copied as many times as desired in a particular arrangement. The matrix can be of two types: rectangular matrix or polar matrix.

Right-click the layer you want to work with and select Start editing. Select an item, either a point, line or polygon, and then click on the Matrix tool. In the command window at the bottom of the screen the following instruction is displayed: Insert selection point. Clicking on the item opens the Matrix window.

matriz_en.img/captura-en.png

Matrix Window

Select the number of rows and columns by typing the values directly into the appropriate boxes.

The linear arrangement of the elements can be defined by typing the values manually, or by using the vector and increm icons to draw a direction vector or to define the extent of the matrix, respectively. In the second case, there are icons for defining the extent for each axis.

The matrix can be rotated by manually entering a rotation value or by clicking the increm1 icon and drawing the rotation angle in the View.

Using the values defined in the Matrix Window shown in the image above would produce the following matrix:

matriz_en.img/rectangular-en.png

Final result showing the rectangular matrix

In the case of a polar matrix enter the source of the "system", the number of elements and whether the items should be rotated as they are copied.

matriz_en.img/polar-en.png

Final result showing the polar matrix


Copy & paste geometries
Introduction

Using the copy/paste tools you can copy and paste geometries from one layer to another. These layers may be in the same view, in different views, or even in two different instances of gvSIG.


Copy & paste geometries

Links have been created to complimentary tools for copying and pasting features between vector layers of the same type.

As the mechanism used to implement this tool makes use of the system clipboard, the source and destination layers can be either in the same view, in different views, or even in different instances of the application.

Copy items between layers with the editing session active.

This tool is used to copy features selected in a vector layer to the system clipboard.

The tool can be accessed in three different ways:

Through a button on the toolbar:

instrucciones-de-uso/copy-paste_en.img/copiar_en.png

Through the Layer menu in the menu bar:

instrucciones-de-uso/copy-paste_en.img/copiar-barra-menus_en.png

Through the context menu that appears when you right-click on the active layer in the TOC:

instrucciones-de-uso/copy-paste_en.img/copiar-menu-contextual_en.png

This tool will be displayed and activated when the active layer is a vector layer with selected features.

Paste features.

This tool is used to paste to paste to an editable layer features that have previously been copied to the system clipboard.

The tool can be accessed in three different ways:

Through a button on the toolbar:

instrucciones-de-uso/copy-paste_en.img/pegar_en.png

Through the Layer menu in the menu bar:

instrucciones-de-uso/copy-paste_en.img/pegar-barra-menus_en.png

Through the context menu that appears when you right-click on the active layer in the TOC:

instrucciones-de-uso/copy-paste_en.img/pegar-menu-contextual_en.png

This tool will be displayed and activated when the active layer is a vector layer in edit mode and of the same type as the layer from which the features have been copied. When used to paste geometries from the clipboard to this editable layer, fields in the associated table will be filled if they have matching names and types.



-----------------------------------
  1. Se ha producido un error en el documento Scaling , accediendo a la imagen escalarPorReferenciaConsola_en.png, que probablemente no existe. No se han encontrado alternativas
  2. Se ha producido un error en el documento Matrix , accediendo a la imagen vector-en.png, que probablemente no existe. Se han encontrado las siguientas alternativas [1, ]

Cached time 11/22/13 03:32:17 Clear cache and reload