Hot answers tagged

10

You can use the v.voronoi tool from GRASS to create voronoi polygons, and it will enables you to specify an extent based on layer extent:


9

Extract it from the zip - zipped shapefiles are read only in QGIS


8

I have found this to be the case for .shp files exported from AutoCAD - to get around this, I export the shape file again as a shape file from QGIS (right click on the layer item, save as...). After this, all is well. Another way to get around it is to copy all the features from your layers to a new one that you have created - there you can do all the edits ...


7

In QGIS 3.4 you may need to enable Snapping toolbar by right-click the main menu bar and select Snapping toolbar, and you will find this menu: The last three icons are Enable Topological Editing, Enable Snapping on Intersection and Enable Tracing, respectively. Also, in QGIS 3.4 there is a new feature that you can enable Topological Check during digitizing ...


6

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):


5

There is no "snap to sketch" equivalent in QGIS, unfortunately. There are a couple of ways to deal with this situation, but each involve a couple of steps. Go to View > Toolbars, and enable the Shape Digitizing Toolbar. One of the tools is for creating rectangles. There are several different options within that tool. For more precision, you may want to use ...


4

What @jochen-schwarze suggested, should work but if needed, you can put all vector layers that have been opened in the project to edit mode with the following code in QGIS 3: layers = QgsProject.instance().mapLayers() for layer in layers.values(): if isinstance(layer, QgsVectorLayer) and not layer.isEditable(): layer.startEditing()


4

I was having this issue but I noticed that 'Enable snapping by default' was checked on under the 'Digitizing' options. When unchecking this, the problem went away.


4

All you have to do is to click once to select the vertex (node) and move your mouse to move the vertex and when you finish click again to deselect the vertex (node). The detailed explanation is in this answer: Editing vertex in QGIS 3, which I think you have seen it before. Put your mouse on the vertex you want to edit, and it will be highlighted in big red ...


4

Just for completing the previous answers, let me add my points (are general points and apply always, but in your particular case seems to me you should adjust to all three) to be taken into account: Use valid (and not null nor duplicated) geometries in your layers. When you encounter a serious error when processing a layer, that layer is likely to ...


4

You can do this simply, by adjusting the buffer. Here is an example. The following polygon and points layers would normally result in the problem you illustrate in your question. When running the Voronoi polygons tool, increase the buffer region percent. The exact amount will vary, but since we're clipping the result, it won't hurt to overshoot. In my ...


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


3

Your layer type is Polygon, that's why it is not showing any line, while creating shapefile/feature class you have specified the polygon type. Try creating a new shapefile/Feature Class and then specify Line Featues in the Type. This will resolve your issue.


3

Instead of trying to remove data from the large shapefile, simply export a subset of the data to a new shapefile. Select the features you want. Right click on the layer name > Export > Save selected features as... If the layer has attributes you don't need, exclude those attributes from the export. If QGIS crashes when exporting, here are some things you ...


3

You need to use Fill Ring located under Advanced Digitizing tool It will create a ring inside the polygon Before using Fill Ring: After using Fill Ring: The above yellow polygon is just a selection to show that is not overlapping polygons. Fill polygon splits the polygons not adding another polygon: Update: In ArcGIS if you want to cut polygon you ...


3

I am not sure how your features are set up. The easiest way would be to Right-Click your contour dataset and select "Edit Features" (it is the 11th option down in the right-click menu). Then select the outline line and press "Delete" on the keyboard. Another method, assuming the contour dataset only contains elevation information for the contours (and the ...


3

You can edit the file directly in ArcMap. Load the shapefile into ArcMap, then right click on the new layer and select "Open Attribute Table". In the attribute table click on the button in the top left (Options) and click "Select by Attributes". This will open a new dialog where you can write a selection query. Yours will be something like "type" = 'RD' ...


3

There is a chunk of code here - Set layer in edit mode in QGIS processing that may help. You can either put that in the Plugins/Python Counsel (Ctrl+Alt+P) or possibly write a small plugin with a button that launches this. Click on the little "Show Editor" button paste your code and save it. Then run it with the green run button. I am not sure if ...


3

I went through a relatively convoluted way of doing it without having to script anything in Python or without having to resort to plugins. It's still semi-manual and includes some nested expressions but it works. Bear in mind this was done in QGIS 3.4. Some features used might not be available in earlier versions. To further automate the process, it could be ...


3

To add a new vertex, hover the mouse over a line segment between two vertices. If your existing vertices are too close together, the vertex tool will tend to interact with the existing vertices instead of letting you create a new vertex. Zoom in on the feature until the existing vertices are at least 1 cm apart. Once there's enough space between the ...


3

You can do that by enabling the editing of all line layers, enabling the Vertex tool (all layers), and on Snapping toolbar, click Enable Topological Editing. Here is a screenshot of what you need to enable: Then you will be able to click on the vertex of shared points and move them at once to a new location: Final result: Update If all the lines are ...


3

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 ...


2

You can open it with d.rast.edit --ui A related ticket is now open: https://trac.osgeo.org/grass/ticket/3711 in order to get rid of the error message you received.


2

If you want to count the number of Features that are in the buffer (i.e that have changed since last commit on the layer) you can use the editBuffer of your QgsVectorLayer. It's a QgsVectorLayerEditBuffer object which has interesting methods (changedAttributeValues(), changedGeometries(), addedAttributes(), addedFeatures(), ...) # get a layer layer = ...


2

(QGIS 3.4.1) Make sure all layers you want to edit have editing toggled on. Using the vertex tool in the digitizing toolbar, ensuring the option for 'All layers' is selected from the dropdown next to the tool. Select nodes by dragging a box round it (rather than clicking it directly). They should turn blue. Then click on a blue node to pick it up and ...


2

This is caused either by the fact that the 2 part are "diverging" (if you look at coordinate you see that the vertex n°0 of each part are the same). To be able to turn it in one part you need to have feature that follow each other (so the last vertex of first feature is superposed to the first (n°0) vertex of the second feature). (not sure on this one but ...


2

Depending on your version tree, this answer may be more difficult. Assuming user X and Z are in versions from a common ancestor makes it easier. Did user Z reconcile and post? This moves their edits "up" the tree. Now user X needs to reconcile to get those edits. See if this answer helps with some code on reconciling and posting: Reconcile and post with ...


2

You can use arcpy. Create a dictionary with Point XY as key and Z as value using the da.SearchCursor. Then use da.UpdateCursor to update Z values of line vertices found in the dictionary: import arcpy arcpy.env.workspace = r'C:\Default.gdb' #Change polylinefc = 'polylineZ' #Change to input line name, have to be in workspace pointfc = 'pointZ' #Change to ...


2

I think you are using QGIS 3.x because you mentioned the small +. If you want to extend the line you need to click inside the red circle node and move slightly your pointer (mouse) to become square shape so that it will enable you to extend the line: Put the mouse over the node, it will become a big red circle Click inside the big red circle and move your ...


2

The tool you are looking for is nibble. Nibble does exactly what you are asking for. Your work flow would be something along the lines of using your polygons to create a mask raster as the second input. Other related tools to consider (but probably not what you want for this use-case) are shrink and expand.


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