Example: Edit Attributes and Move a Point

We look at the attributes for a point in a drawing layer and edit one of the attributes using a more expanded Edit dialog.  We then move the point to a new location. Easy!    This example has been published as the Manifold Future - Future Tour Part 4 Edit Attributes, Move a Point  video on the Manifold Sales YouTube channel.  


We will make an addition and a correction to the database of Neolithic sites used in the Select and Transform a Neolithic Relics Database video.  Specifically, we will expand the text commentary that is in one of the attribute fields for a dolmen, a type of stone construction from Neolithic times that is found in many parts of France.




The image above shows a typical Neolithic dolmen, with a table rock (the flat upper rock) being not quite two meters (six feet) across.   A dolmen usually has a flat table rock placed upon three or more upright flat stones to create a small stone room or chamber.  Dolmens apparently were originally covered with a mound of earth, like an artificial hill, so that what we see today would have been the stone construction that created a chamber within the hill. Today, almost all dolmens have had their covering hills eroded away.  Most were erected from 4000 to 6000 years ago.  Hundreds can be found in France.




The map above shows hundreds of points, styled by color and size to indicate different sites and different types of Neolithic monuments in France.    We have clicked on the Megalithe_FR Drawing layer, which contains the displayed objects, to make it the active layer.


We select the dolmen called DLSOU0 2, and then right-click onto the drawing's tab and choose Zoom to Selection.  




Adjusting zoom a bit, and choosing Edit - Select None to deselect the point, we see what the database contains the wrong location, marked by a cyan dot, for a dolmen.   To the right is a wooded area and lower to the left is the true location of the dolmen, visible on the Google satellite image and marked with a magenta arrow.




Zoomed further in to the point, the Google satellite layer shows nothing but an empty farmer's field at the dot.   




In the field nearby we see what at high zoom level, a scale of 1:300, looks like a larger-than-average dolmen, surrounded by a cleared area.  




Using the tracker tool we measure the dolmen, and see the object in view is 3.3 meters long, the size of the table rock cited in the DLSOU0 2 entry in the table.   From the air, it appears as typical, fallen dolmen, hundreds of which are found in this part of France.


In the past, especially after the invention of dynamite, farmers annoyed with multi-ton stone constructions blocking their plowing would often blow up and remove dolmens from their fields.  In modern times, dolmens in France are often protected in wooded areas, small parks, or clearings within farmed fields.    





This particular dolmen can be reached by dirt road from a nearby paved road.  It is barely visible on Google Street View from the D130 road running nearby if we zoom Street View to maximum magnification in the direction of the dolmen.


Editing Attributes



We will begin by seeing the attributes, that is, the field values for this object.  To do that, at the bottom of the map we click the layer containing the dot to make sure it is is the active layer and then we alt-click the magenta dot.




That immediately marks the dot with blue preview color as our picked object, surrounded by a box to make it easier to find the picked point.   Alt-clicking the point also opens the Record pane.




The Record pane automatically opens to the Values tab to show field values (also known as attributes in GIS jargon) for the alt-clicked point.   Since this is a French database the information is in French.   To see the full text of the Description field we can right-click on it.




We choose Edit from the resulting context menu.




That launches a larger editing dialog that shows the full text in that field.   We can se that the table rock is 3.3 meters in size, over ten feet, which makes this dolmen a larger than average dolmen, but that the dolmen has collapsed with the table rock lying next to the fallen vertical rocks.   The dialog  allows us to make edits to the text, such as adding additional text.




We add additional text to further describe the dolmen found in that location.    We press OK.


A 1km au Nord d'Eteauville, dans un champ. Sa table de 3,30 m repose à côté de trois piliers tombés.


La légende locale raconte que Gargantua, se rendant dans la Beauce dunoise par l'ancienne voie d'Allaines à Châteaudun, s'arrêta en cet endroit et, voyant ces pierres, s'amusa à jongler avec elles en manière de passe-temps.


The full text for the record, for those who do not read French but who would like to give an online translator a try, is given above.   C'est bon!




The edited field is indicated in blue preview color.   We can abandon the edit with a ctrl-backspace, if desired.   To accept the edit, we press the Update Record button.


Editing Geometry - Moving a Point



The point is still marked in the map window with a blue dot to indicate it is the chosen object for which attributes are displayed in the Values tab.   However, it cannot be moved in the map window.   To enable the point for editing we click on the Coordinates tab.




That displays the values of the coordinates for the location of the point.   If the chosen object had been a line or area we would see a list of coordinates for the list of vertices that defined the shape of the line or the area.  

Attributes are not Geometry

Keep in mind that points in Manifold are objects that are defined by geometry fields, typically named Geom, that contain the geometric definition of objects like points, lines, and areas, using a data type of geom.  A geom value contains an internal list of coordinates that specifies the location of a point, that specifies the sequence of coordinates that defines a line, and that specifies the sequence of coordinates that defines an area by defining the closed boundary of the area.


Tables that contain records for points often contain latitude and longitude attribute fields in addition to the Geom field that contains the actual points.    We can see that in action in this example by comparing the Values tab and the Coordinates tab for this particular point record:




Tables often contain latitude and longitude fields in addition to the geom geometry field for two main reasons:  


First, the geom field is often created from a geocoded table that started out as a list of latitude and longitudes that gave the location for desired points, using a process like that in the Example: Create a Drawing from a Geocoded Table topic.   Once the geom is created, that is all that is used to display the points in a map.  The coordinates encoded inside the geom define the points, and once  the geom is created any latitude and longitude fields that were used to create the geom can be discarded.   In the example above, if we deleted the Latitude and the Longitude fields from the table the Geom field would still be there and the points will still be there.  


Second, although geom fields are a super fast and powerful way of telling a GIS where a point is located, they are not human readable when scanning a table by eye, and other applications may not be able to understand binary representations of locations like the encoded coordinates within a geom.  Therefore, tables that have geom fields to enable drawings to show the points in them will often also have latitude and longitude fields that report the location for the point as human readable numbers, and in a form where the values can be provided to other programs which can use them to plot points in whatever internal systems those other programs use.


That can be confusing in cases, like this topic, where the initial values that were used to create the point geometry were wrong.  If we reach directly into the point's geometry geom field and change the coordinates there, by moving the point, that will change the coordinates that are encoded inside the geom but it will not change the attributes that were used some time in the past to create the geom.  


If we would like to have human readable latitude and longitude fields in our table that are automatically synchronized to whatever coordinates are inside the geom, we can do that by creating latitude and longitude fields that are computed fields that are automatically computed on the fly from the geom.  In that case, if we change the coordinates inside the geom by dragging the point to a new location, or by editing the values in the Coordinates tab, the human readable latitude and longitude fields will automatically be recomputed to whatever are the new coordinate values inside the geom.


The procedure for creating such computed fields is illustrated step-by-step in the Example: Create a Geocoded Table from a Drawing  topic.

The Example Continues



In addition to displaying coordinates for the point, when we click on the Coordinates tab that also enables the object for editing in the map window.   The small blue marker expands to a larger blue square to indicate the point is available for editing.   Having to choose the Coordinates tab is a safety measure so we can alt-click on an object to see its attributes without immediately enabling the object for editing as well.




To move it to a new location we can simply click and drag it to whatever location desired.  In the above illustration we click and drag the point from the wrong location to the true location of the dolmen in the field.



When we do that the coordinate values in the Coordinates tab change to the new location and are displayed in blue preview color.   To abandon the edit we could press Ctrl-backspace and the point would pop back into its original position.  To accept the edit we press the Update Record button.




When we press the Update Record button the edit is committed and the Record pane snaps back to the Values tab.  



 The Latitude and Longitude attributes for the record have not changed, because those are not used in the geometry field.  Those are the original values in a table for the supposed latitude and longitude of the dolmen, which might have been used to create the geom value for the point that actually places the point.  When we edited the coordinates inside the geom (which is what editing inside the Coordinates tab does), we edited the geometry but we did not edit other fields, making no changes to the Name, to the Rank, or to the Latitude and Longitude fields.  They may as well be Date fields, since they have no connection to what is in the Geom field.




In the map window, since we are now back in the Values tab the object is no longer enabled for geometry editing and is marked with a small blue marker.   To eliminate that, that is, to not choose any object for display in the Record pane, we can alt-click anywhere in the drawing away from the object.   In the view above we have zoomed further into the display so we can more clearly see how we dragged the point exactly onto the dolmen.




We can see the cyan dot marking the location of that particular dolmen has been moved from the wrong location, out in a field where no dolmen is located, to the correct location.





We have placed the dot just slightly to one side of the top of the dolmen in the field  Now would be a good time to save the project.


See Also

Getting Started


User Interface Basics






Editing Drawings


Layers Pane


Record Pane


Example: Edit Coordinates While Creating an Object - When creating an object in a map using a tool such as Create Area, right in the middle of the process we can edit coordinates in the Record pane's Coordinates tab.   This example shows the step by step process.


Example: Edit Attributes, Larger Text, IME for Asian Languages - A tour showing how to edit attributes in a drawing using the Record pane Values tab and the expanded Edit dialog, including advanced Unicode facilities and use of the built in Input Method Editor (IME) to input text in Japanese language.


Example: Edit Covered Objects - Working with drawings where some areas completely cover smaller areas is a bad idea, but sometimes we have to work with data in that form whether we like it or not.   This topic shows techniques that can help us select and edit objects that are completely hidden by higher objects.


Manifold Future - Future Tour Part 1 - This video shows how to download and use a portable installation for Manifold Future.  The video also shows the Contents, pane, layers and layer opacity, one click use of data source favorites, using your own archival favorite and getting record values instantly.  If you are using Viewer or Radian Studio, download and use the Future version to get access to all these powerful new features.


Manifold Future - Future Tour Part 2 Editing - The video shows how to create new objects, how to add fields and vertices and move vertices around, how to edit existing objects and how to use simple selection methods to choose vertices to move together, including moving all objects.


Manifold Future - Future Tour Part 3 Editing - The editing tour continues with a look at how to create branched objects, including how to create areas with holes and islands, how to add branches to lines and how to add coordinates between vertices in existing objects.  We finish up by creating an area that traces over a pond in the Luxembourg Gardens in Paris using a Google satellite view, and then we add a hole to that area and two additional islands.


Manifold Future - Future Tour Part 4 Edit Attributes, Move a Point - We use Manifold Future to see how to view attributes of objects in drawings, including use of the new Edit dialog to view long, multi-paragraph text fields.  We edit fields and see how easy it is to preview edits and either accept them or abandon them. We switch to editing the geometry of objects in a drawing, viewing the coordinate locations and using mouse moves to reposition points. We edit the location of a point to correct an error in a drawing, using Google Satellite view to provide context for the correction.  Fast and easy, with previews all the way!


Manifold Future - Future Tour Part 5 Unicode Attributes and IME -  We take a tour through Manifold Future attribute editing, showing how to edit attributes in a drawing using the Record pane Values

tab and the expanded Edit dialog, including advanced Unicode facilities and use of the built in Input Method Editor (IME) to input text in Japanese language.


Manifold Future - Future Tour Part 6 Cell Context Menu - A short video showing a fast and easy way to copy between cells in tables using the context menu.  Also... one step undo of pending changes,  setting the value of a cell to NULL and more. The context menu on cells is such a simple thing but it makes repetitive editing of tables much faster and easier.