Skip to main content

Questions tagged [snapping]

Automatic process of moving points or features to match or coincide exactly with coordinates of another feature within a specified distance, or tolerance

Filter by
Sorted by
Tagged with
3 votes
1 answer
52 views

How to snap a line on a grid / cell edges?

What I want to do : This question is about finding an equivalent path on a grid to a given line. The following image shows what I am trying to achieve : Starting from a generic line (in red), I want ...
TC_Blue's user avatar
  • 31
3 votes
1 answer
61 views

Snap polyline to another polyline's vertices

I have got a polyline layer which has its own vertices (blue line in image below) and another polyline layer with a slightly different alignment and vertices in different locations (red line in image ...
Sken2107's user avatar
  • 220
0 votes
0 answers
9 views

Previous answers to questions [migrated]

How do I find previous answers to questions? I need a snapping tutorial on QGIS 3.34.
Mbh's user avatar
  • 15
0 votes
0 answers
28 views

Can the properties of the Snap event tell why sanp event lister call back does get executed despite snapping occures to edges and vertices

I register for Draw, Modify and Snap interactions as shown below in the code. The interactions added to the map are working except the Snap. to debug this issue, i printed the contents of this.#...
Amr's user avatar
  • 43
1 vote
1 answer
38 views

Snap interaction not working before first point drawn in OpenLayers

I'm trying to add snap interaction to map using OpenLayers. Snap works on draw but only after drawing first point of polygon. Is there a way to make it snap while starting to draw the polygon? I tried ...
Smita Verma's user avatar
0 votes
1 answer
55 views

Snap event does not get fired in OpenLayers

I create a snap event as shown below in the code. At run time, when I hover the mouse near by a vertex, the mouse pointer gets snapped/attached to that vertex but the snapevent did not get fired. ...
Amr's user avatar
  • 43
0 votes
0 answers
20 views

QGIS snapping issues - newly created feature not visible

I have just used the snapping tool to create a new polygon feature in one vector layer, based on a polygon feature in another vector layer. I have managed to create features, but I can't see or select ...
user197410's user avatar
2 votes
2 answers
39 views

PyQGIS, Setting some types for snappingUtils

I have code like this: self.snap_conf = QgsSnappingConfig() ... self.snap_conf.setTypeFlag(Qgis.SnappingTypes(Qgis.SnappingType.Centroid)) self.snap_conf.setTypeFlag(Qgis.SnappingTypes(Qgis....
Dezmonder's user avatar
1 vote
1 answer
21 views

OpenLayers snap to multipoint layer

Implementing snap interaction by getting snap points as features in layer. The draw interaction does not snap to displayed nodes. What is wrong? snap_nodes = MULTIPOINT((350095.29 650021.37),(350097....
Smita Verma's user avatar
0 votes
1 answer
70 views

How to create a map tool with QgsMapToolEmitPoint that has snapping functionality?

I'm developing a plugin for creating points and lines, but I noticed that when using QgsMapToolEmitPoint the cursor doesn't have snapping functionality canvas = iface.mapCanvas() addPoint = ...
Aloísio Ângelo's user avatar
0 votes
0 answers
44 views

QGIS: Snapping QGIS stopped working

Suddenly snapping stopped working correctly and no longer follows the rules I set, "sticking" to distant or even non-existent vertices/segments. Even if I change the parameters (layer to be ...
IL DOGE's user avatar
1 vote
0 answers
26 views

How to iterate snapping input distance in ModelBuilder

Below is an image of my model. I want to run the snap between line features, then unsplit the lines (same as edit merge), then snap that output but at a greater distance threshold. I'm doing this ...
JohnnyMc's user avatar
0 votes
0 answers
18 views

Does Extend (ArcGIS Pro) not work with lines pointing the same way?

I have lines along sidewalks those lines have gaps between them. I want to bridge the gaps with a 5' threshold. Extend doesn't seem to work with lines pointing the same direction, and only ...
JohnnyMc's user avatar
1 vote
0 answers
32 views

How do I make all polygon vertices show up even when vertex editor is turned off in QGIS? [duplicate]

As I am digitizing a georeferenced map I'd like to always see all vertices rather than only when I hover my cursor over individual ones with snapping options turned on. I am making a lot of vertices ...
MapDeath's user avatar
  • 343
0 votes
0 answers
39 views

Snapping vertices of the same line

I am trying to automate a snapping of vertices that exist in the same polyline layer. I first implemented the Multipart to Singlepart tool which split up the up the lines (but lines which were once ...
Ephraim Fruchter's user avatar
0 votes
0 answers
38 views

Traced polygon on QGIS plots miles away from origin

I am trying to trace a number of polygons in QGIS but having difficulties. Once I select the second vertices it creates a point hundreds of miles away! I have tried to create a new project and also ...
Andrew's user avatar
  • 13
0 votes
1 answer
48 views

How to find if a point feature is snapped to a line using ArcObjects

Background to the problem: When I use the Editor Split tool on a line, the line gets split into 2, and a junction is placed between the two lines. When I use the Editor merge tool, the 2 lines are ...
ZZZ's user avatar
  • 573
6 votes
1 answer
139 views

How to snap to items bounded within another layer in QGIS?

How would I go about snapping polygons added within one shapefile layer to a larger bounding polygon in a different shapefile layer? For example if I have a layer with the bounding coastlines of a ...
Wulf Bane's user avatar
1 vote
0 answers
44 views

Implementing undershoot correction in GeoPandas

I am trying to implement an undershoot fixer using GeoPandas and Shapely like the solution from Snapping in Geopandas My other thought is that it might reasonable to identify and extend the undershot ...
Derek_P's user avatar
  • 343
3 votes
2 answers
188 views

Snapping options in QGIS 3.28.11 Firenze

I work with 60 layers in QGIS, I have to set the snapping for each layer to vertex & segment. Is there any way to set this snapping options for all layers in one time instead of doing this for the ...
ysfgdr's user avatar
  • 31
0 votes
0 answers
46 views

Points are not showing up on 3.28 QGIS versions

When I used 2.18 QGIS version the points to snap are there. Points that I mentioned are the points where each polygon corner is and where you can snap new polygon. In versions 3 higher it doesn't show ...
JMC's user avatar
  • 1
1 vote
1 answer
244 views

Resolving gaps between polygons

I have a large global shapefile with thousands of small gaps/sliver polygons between joined polygons (shared borders of countries). I joined the shapefiles using the sf R package, and have attempted ...
Luna Deloge's user avatar
1 vote
0 answers
28 views

Get the layer where feature are snapped PyQGIS

Is there a way to get the QgsVectorLayer on which the features of another layer have been snapped? I need to connect the featureAdded signal of the starting layer to a method. In the following image ...
matteo's user avatar
  • 3,304
2 votes
0 answers
71 views

Advanced digitizing tools - snapping last vertex to right angle

My aim is to snap last vertex to the right angle using advanced digitizing tools. I'm running QGIS 3.30 with 'snap to common angles' on - see the picture below. Any ideas?
Adam's user avatar
  • 155
3 votes
0 answers
757 views

QGIS: Snap geometries to layer - not all points are snapping

I am trying to snap sample collection points to the nearest location on a path, however, not all points are snapping correctly. I use the tool snap geometries to layer and choose the option prefer ...
AGibsonVega's user avatar
2 votes
1 answer
153 views

Tracing tool missing in QGIS 3.28.4

I miss the tracing tool in the snapping properties window. The documentation of QGIS states that it should be found here. Is there an existing workaround? To the person who edited my post: I know ...
Kim's user avatar
  • 21
1 vote
1 answer
27 views

QGIS 3.10 last point features created are not recognized by snapping - update source?

I am created a plugin that creates point features and line features from a SpatiaLite database. The lines must be snapped to a point at least in one end. Then problem is that the last created point ...
nanunga's user avatar
  • 533
0 votes
0 answers
61 views

QGIS 3.10 PyQGIS . Snapping tolerance units (Equivalence pixels - length units)

Lately I have been dealing with snappings in QGIS. I have been able, with help of people from this site, and also, having a look at other peoples plugins, to ensemble a small plugin with forms. My ...
nanunga's user avatar
  • 533
1 vote
0 answers
88 views

QGIS 3.10 PyQGIS Snapping node tool not showing despite snapping settings active

I was able to set the snapping to the two point layers of interest, as I indicated in the following question Setting snapping in QGIS 3.24 for specific layers using QgsSnappingConfig.addLayers In my ...
nanunga's user avatar
  • 533
2 votes
1 answer
213 views

Setting snapping in QGIS 3.24 for specific layers using QgsSnappingConfig.addLayers

I am trying to set the snappings for certain layers in my map. I can do it for one layer but not for a list of layers. Here is my code: layerPole = None layersPole = QgsProject.instance()....
nanunga's user avatar
  • 533
0 votes
0 answers
96 views

Still snapping to a feature that has been removed

I'm using a LineString to split a Polygon into two on a OpenLayers map. I draw the LineString, detect the intersection points, remove the LineString and the original Polygon and then I add the two new ...
Jónas Grétar Sigurðsson's user avatar
0 votes
1 answer
49 views

Python Script - SelectLayerByAttribute 'Invalid Expression' Error Message

I am fine tuning a 'snap by attribute' python script. It takes points in one layer and snaps them to points in another layer based on unique attribute. I keep running into an 'invalid expression' ...
Nicholas Kunkel's user avatar
0 votes
1 answer
165 views

Connect two polygons in GeoJSON

I have 2 polygons on the map. How connect them more beautifully in the corners? Now there is a collision between them. { "type": "FeatureCollection", "features": [...
Avtandil's user avatar
1 vote
0 answers
59 views

How can I get the mean values at intervals of 30 m in QGIS?

I synchronized the GPS point and PM concentration. And I want to get the mean value every 30m. What should I do? I snapped the points to path And I want to the results like this picture.
LEE's user avatar
  • 11
2 votes
1 answer
250 views

QGIS 3 - Snap line feature endpoints within certain tolerance to other line features

I have a line layer in QGIS 3.22.12 with which I want to create a network. However I've found quite a few lines where the endpoint does not quite intersect with another line. Is it possible to clean ...
Sean Jarrett's user avatar
7 votes
3 answers
471 views

Interactively create route that snaps to route layer in QGIS

There are many online tools for planning routes (e.g. Gaia GPS for hiking, Strava for cycling) in an interactive way (by clicking) such that the route generated conforms to an underlying route layer (...
harry.kuril's user avatar
0 votes
0 answers
389 views

Is there an ArcGIS Pro tool that snaps a point feature class to another point feature class based on a matching attribute?

I have two point feature classes with similar attributes. One point layer has update coordinates while the other has raw coordinate locations. I would like to snap points with raw coordinates to the ...
BenM's user avatar
  • 3
2 votes
2 answers
843 views

Snapping point to line in QGIS

In QGIS I have a point feature class that I want to snap to the nearest line feature class so that the point is on top of the line. How would I do this?
Chace Carpenter's user avatar
1 vote
1 answer
167 views

Snap Raster and same cell size still lead to slight differences between rasters

I'm working in ArcMap 10.6.1, where I've been trying to make the cells of two rasters (let's call them raster A and raster B) line up perfectly with each other using the Snap Raster and Cell Size ...
stijnionio's user avatar
1 vote
1 answer
225 views

Trace/clip a segment of a line using a point layer

I have a set of points as well as a line layer (a road network) as given below. After I snap the points to the line layer the result is as follows. The result that I need is to clip/trace the line ...
Nandula's user avatar
  • 783
1 vote
0 answers
55 views

Merging nearly identical, imperfectly overlapping line shapefiles (of railways)

I have digitized and (imperfectly) georeferenced old railway maps in QGIS. In the figure below you see two of the resulting line shapefiles representing two different years. Due to poor georeferencing ...
NeoGeo's user avatar
  • 19
3 votes
1 answer
176 views

Snapping to a segment of the point symbol (QGIS)

I have a point layer in QGIS with an attribute field which represents a distance value. My goal is to generate a buffer with this distance value on the fly to which I can snap when creating another ...
MarinT's user avatar
  • 75
1 vote
1 answer
57 views

ArcGIS Pro: Raster Extent Environment changes location

I'm using ArcGIS Pro 2.9.3 and Python 3.3. I have a large number of rasters that I'd like to make have the same number of rows and columns. To do that, I want to set their extent to be the same as a ...
Beck's user avatar
  • 301
2 votes
2 answers
396 views

Set snap raster in GDAL(C#) rasterize functions

I want to set snap raster for the function rasterize of GDAL, but I can not found. The options parameters are as the following code (C#). What is wrong? rasterizeOptions = new string[] { "...
yixing's user avatar
  • 21
0 votes
0 answers
163 views

Snapping parcels together using ArcGIS Pro

I need to work with parcel data that comes from a variety of sources (private, gov, etc.). A lot of this is bad data where polygon boundaries overlap or do not snap together. I am finding it ...
erik_r's user avatar
  • 1
1 vote
0 answers
104 views

Taking vertices and using point to path creates a mess, how can I snap the lines to roads?

I’ve tried points to path (and various other processing tools) however I end up with this: When really it should look more like this line string (without the gaps separating chunks of road here and ...
IceBear123's user avatar
0 votes
0 answers
92 views

Is it possible to snap to offset lines in QGIS (3.20.2)?

I have created a "Laneway" layer which consists of 2 lines offset by a user defined distance from a centreline. I need a simple way to accurately trace or snap to the 2 offset lines to ...
DJPR's user avatar
  • 1
1 vote
2 answers
470 views

Snapping gpx to Lines

I have made a map based on OSM vector data. I'd like to implement a lot of gpx files there, but the tracks of those do not really fit on the streets/paths of the osm data. is there a clever way to ...
MrSalamikuchen's user avatar
1 vote
1 answer
214 views

How to snap a graphic to a vector basemap layer

I'm using the Sketch Wdget in a map for drawing graphics. Is it possible to snap the drawings (polygons for example) to the roads that are part of the vector tile layer i'm using as a base map?
Normal's user avatar
  • 133
1 vote
0 answers
105 views

Bringing elevation feature from point shape layer to line shape layer in attribute table using QGIS

I have two shapefiles. One point shapefile containing Levee station ID and their x,y and elevation/z values in meters. z values field name is 'StationE'. Another polyline shapefile where I don't have ...
ZVY545's user avatar
  • 119

1
2 3 4 5
9