Hot answers tagged

17

In QGIS you have a reshape tool: Reshape Feature in the Advance Digitising Toolbar. This is the icon of the tool Like in ArcGIS, selecting the line that you want to reshape, use the tool to draw the new segment and right-click to confirm.


11

It is possible to make a layer not editable in a specific project. Open Project properties > Data sources and check the option Read Only for the layers that you want to make not editable.


10

When you try to create a new polygon, you can use the Advanced Digitizing, Remember the tool don't work with geographic coordinates. Click in Toogle Editing. Click in add polygon feature. Click in Enable advanced digitizing tools. In Advanced Digitizing Menu, with d = 1000 (meters, I suppose is meters, that depend of you coordinate reference), and block ...


7

you can also use the field calculator to change the geometry directly for selected points or all points. see picture below (sorry it's the german version but it should be clear anyway):


7

Another way, using the same method as presented above by Joseph, with a slightly shorter code: if(LABEL % 10 = 5,"","LABEL") When the remainder of dividing by 10 is 5 (so 5, 15, 25...) it won't show the point.


6

You can also use one line python script. Select a layer and run the script: iface.activeLayer().setReadOnly(True) According to the documentation, if the layer is in editing, it returns False.


6

There is quite a bit of logic involved in your question. Here is some example code which you can run in the Python console to get an idea of how this might work for you. Basically, you should create a custom edit tool which sub-classes QgsMapToolEdit. Then you can re-implement the methods canvasReleaseEvent() and canvasMoveEvent(), and use the snapPoint() ...


5

In edit mode. Edit the polygon. Select the polygon using one of selection tools. "Right click the layer -> Export -> Save Selected Features As..." In "Save Vector Layer As..." window, select a file format and path, then save it. Now, you can redo the changes on original polygon.


4

This is an old question, but it showed up repeatedly in the search results, so I thought it may be relevant to share some info regarding it. I have no technical background on how Geopackage works internally, so after searching for information on the simultaneous editing capabilities of Geopackage and barely finding anything conclusive, I decided to try it ...


4

I'm not sure whether you are comfortable using the python console, but here is a short script I wrote which should do what you want (one row of points at a time). In case you are not familiar with running scripts in the console, open the python console, click the 'Show Editor' button, and paste the following code into the editor. Note: Before running the ...


4

When creating line objects the Advanced Digitizing window shows you distance (d), angle (a), x coordinate and y coordinate. To use it, switch on both the Advanced Digitizing panel and toolbar and click the icon for 'Enable advanced digitizing tools' when you are editing


4

You have to unzip Qgz file first. Then you can edit the qgs file with any text editor.


4

If you would like to contribute to OpenStreetMap you will need to sign up for an account and then choose an OSM editor. Start with the Beginners' Guide. After that, it's important to read the existing documentation on how to contribute data to the project, especially the OSM tags and mapping techniques.


4

Select your polygon you wish to delete on the canvas or attribute table, then press the red trash bin or alternatively delete key on your keyboard. Make sure editing mode is enabled when doing this. Otherwise the red trash bin is greyed out.


4

I did a quick test (qgis 3.10 / postgresql 12 / postgis 3) If I am opening a table for editing in qgis, I have no problem editing the same row from a psql prompt. It seems to me that the only locking that is going on is at the moment the row is stored. So - I can open the attribute table for the layer "sns" in qgis and set comment to 'something' for the ...


4

Yes, there is. It's the 'Merge Attributes of Selected Features' button. First you need to enable the Advanced Digitising toolbar (View > Toolbars > Advanced Digitising). Then enable editing on your desired layer and select both the feature you want to copy attributes from, and any of the feature(s) you want to copy attributes to. In the main window the ...


4

You have a multi-line geometry. You can use the Merge lines algorithm after you have connected the the two parts, so that they form a continuous line. You can also split the multi-geometry into two (simple) geometries using the Multipart to single parts algorithm, join them (using the Vertex Tool in the Digitizing Toolbar) to form a continuous line and ...


4

Another approach if you want an intermediate layer: select the feature you want to edit and do Ctrl + C to copy feature (or "Edit" > "Copy features") do Ctrl + Alt + V (or "Edit" > "Paste features As" > "Temporary Scratch Layer...") edit the scratch layer as you want and right click the layer "Make Permanent" to save (shoter version of right click > "Export"...


3

Editor Tracking is a mechanism to add one or more attributes to a geodatabase feature class (table) in such a way that all edits are tagged with additional information. The documentation at About tracking an editor's changes to data lists four attributes which can be maintained: The name of the user who created it. The date and time it was created. ...


3

Unfortunately, as you know you can only grant or revoke INSERT/UPDATE/DELETE privileges as a group when working with versions inside of a geodatabase. If you revoke the DELETE privilege at the RDBMS-level you will certainly create future issues. This is a result of how versioning was designed and is handled inside of the geodatabase; you don't just have a ...


3

Link refers number of changed features in a layer under edit mode so, if you commit changes, buffer (QgsVectorLayerEditBuffer object) will be lost. Complete procedure is as follows: 1) Load layer and in Python Console: >>>layer = iface.activeLayer() >>>buffer = layer.editBuffer() >>>buffer #for corroborating object was produced &...


3

gdal_edit is itself a python script - you should be able to find it located within your GDAL installation. To access it from Python, you can use the subprocess library to call the script. e.g. import subprocess as sp #locate your gdal_edit script gdaledit = r"C:\Program Files\GDAL\gdal_edit.py" #input data srcdata = 'abc.tif' cmd = [gdaledit, '-a_srs', ...


3

We can use the modulus operator % to calculate the remainder values when dividing by 5. If there is no remainder then it is removed from the display. However, because multiples of 10 can be divided by 5 with no remainder, we will have to exclude this by adding some logic to the expression: if("LABEL" % 5 = 0 AND NOT "LABEL" % 10 = 0, "LABEL" % 5 AND NOT "...


3

To remove gaps and overlaps you should use the Topology tool. The Topology tool helps validate your data based on different rules you choose appropriate. One of the many rules available in that tool is: (features) "Must not Overlap". The tool has an "Error Fix" button that let you zoom to the error (in your case, an overlap) and let you choose what to do - ...


3

Your first error may be from using the vertex tool (all vectors) - it may have tried to modify an underlying layer that you did not intend to edit (for example world_map.gpkg in your error message). Your second issue is due to the fact that you cannot perform most edits on KML/KMZ files in QGIS. Even though you can see the yellow pencil enabled which ...


3

Click the Edit tab on the ribbon, click Create (see screenshot below), then select the layer you want to add points to in the Create Features pane. Afterwards, just make sure to save your Edits.


2

In QGIS 3.4 (and probably before that), you can use the ‘Vertex’ tool (which is next to ‘Add line’ on the toolbar, by default). Choose it, then hover the mouse over the ending or starting point of a line, and you'll see a plus symbol next to it—this allows you to continue the line. Similarly, it allows you to add a new point between other two by hovering the ...


2

I had the same issue and had to find a workaround. If you have access to PostGIS, you can export a valid geojson with the following statement. This can also be used to create a function in PostGIS. You can edit postgis layers directly in QGIS and then export using the statement below: copy ( SELECT jsonb_build_object( 'type', 'FeatureCollection', ...


2

I just did this with QGIS 3.4.0, using the plugin Join Multiple Lines mentioned by tnagel above (installs under Vector menu > Join Multiple Lines). Worked well to join about 60 trail line fragments into about 20 trail lines. The more fragments you have and the larger the area they cover, the less practical this is, as you have to watch the results for ...


2

You can keep track of edited features on shapefiles as well so you do not need PostGIS or Geoserver. Steps: 1) Add a Edited Date Field (ESRI uses EDITED_DT). Make it a Date format. 2) Add a Created Date Field (ESRI uses CREATE_DT). make it a Date format. 3) In Layer Properties Select Attribute Form then the Edited Date field. 4) Towards the bottom change ...


Only top voted, non community-wiki answers of a minimum length are eligible