Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

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
1
vote
1answer
231 views

PostGIS snap line segment endpoint to closest other line segment

I have a PostGIS table of singlepart line segments that I've run the ST_ChaikinSmoothing function on. Smoothing all of the line segments worked great, but these simplified geometries created small ...
1
vote
0answers
462 views

QGIS 3.4.5 enable trace tool [closed]

I'm using QGIS 3.4.5 and created a line shape layer. I have another line layer in my project that I want to create and trace the geometry of the other layer. I activated the "add line object" button ...
12
votes
2answers
919 views

Is there any option in QGIS to draw parallel lines that snap on the outside part of the line (adjacent lines) that are independent from scale?

I have to draw a map of a public bus transport network and i have a problem in the avenues where a lot of lines passes by. My objective is to make a visual map where the lines in those avenues are ...
1
vote
0answers
60 views

How to enable tracing in QGIS 3 beyond applications for adding polygon purposes?

I have used the enable tracing feature in QGIS 3 to create new polygons (Add polygon feature), and it works very well. However, i have not been able to use it for other purposes beyond that, for ...
1
vote
1answer
124 views

Filter layerlist in snapping dock of QGIS3 to show only layers selected in the layer-dock (TOC)

I would like to filter the layerlist in the "Snapping and Digitizing Options"-Dock so that only layers are shown which are selected in the TOC of the QGIS-Layer-Dock. At the moment I use a workaround ...
0
votes
1answer
94 views

shapely wrong output — when snapping points to line shapefile

I have a series of nodes to be connected to a road network, so as to calculate the cost of transportation. I used shapely to snap the nodes to the road network polylines. Most of the connections ...
1
vote
0answers
40 views

QGIS 3.X CAD tools not working with snapping on PostgreSQL layers?

If I create a scratch layer in EPSG 32720 CAD Tools are working fine with snapping options. The vertex are highlighted etc. etc. If I use a PostgreSQL layer, same EPSG, the snaping is working, but ...
2
votes
1answer
325 views

How to snap to a geojson-vt layer (Vector Tile Layer)?

I'm using geojson-vt to render a large geojson (originated from OSM) file. This file contains all road from a state (extracted with overpass-turbo way[highway="*"]). I'm buinding a domain-specific ...
0
votes
1answer
58 views

How to snap to intersection of lines with Classic snapping?

The question is as simple as the title. When I am in Edit session with Classic Snapping enabled and want to snap to an intersection of lines, it does not work. In order to achieve this, I have to ...
3
votes
0answers
87 views

Snapping geometries to a layer without distortion

I am looking for a plugin / script to snap a polygon layer (A) to a linestring layer (B), the example datasets in image 1. I have tried the 'Snap geometries to layer' tool in QGIS 3.4. This snaps ...
1
vote
1answer
50 views

Extract By Mask - Raster Horizontal Shift

Is there a way to snap a raster/DEM to a mosaic dataset? I am using the Extract By Mask tool in ArcPro on a mosaic dataset. The output raster's cell values do not match the original mosaic dataset it ...
5
votes
1answer
2k views

Georeferencing in ArcMap very slow?

I have started having a problem with georeferencing. When I try to add control points, the cursor just starts "thinking" forever, and it's nigh unusable. I've read forum posts that say this is an ...
2
votes
0answers
40 views

Removing a 'non-gap' gap from a polygon that straddles +/- 180 longitude; looking for an R-based, code solution

I am working with a set of polygons from here: http://lme.edc.uri.edu/index.php/digital-data. In the artic, there are several polygons that straddle the +/- 180 longitude line. These are single ...
3
votes
1answer
1k views

Snap points shapefile to line shapefile using shapely

I have 2 datasets: 1) a road network shapefile which has many polylines and 2) a bus stop shapefile which has many points representing bus stops. My points shapefile has CRS of EPSG 4326 and my line ...
1
vote
1answer
74 views

Snapping two line shapefiles according to attribute field value using ArcGIS Desktop?

I have a two line shapefiles (Trace.shp and Snap.shp). There is a GIS_ID field in both files. Now I want to snap "Snap.shp" to "Trace.shp" according to GIS_ID value. I have tried to use Snap tool for ...
0
votes
1answer
121 views

PostGIS - Snapping a point to a line doesn't work

I'm trying to snap one polygon to another, and I found that not all points are being snapped as expected. I tried to simplify the issue to make it all clear, and created this dummy example: SELECT ...
4
votes
1answer
1k views

How to snap and move circles by the center?

I have a point layer, and a polygon layer with buffers of a given radius around each point. I need to move points, and check that each buffer is not above forbidden land/plots. In autocad, you can ...
1
vote
1answer
38 views

Tracing Intermittently Working in QGIS

I'm trying to cut/create polygons in QGIS 3.2.1 using snapping/tracing, but it only works intermittently - it will follow an existing vector line quite happily for a short distance, then drop it, then ...
2
votes
1answer
845 views

How can I enable topological editing in QGIS 3

How can I enable topological editing (create shared nodes on adjacent polygons or intersecting lines) and also activate the option to prevent polygon overlap (that when a new polygon is drawn, its ...
2
votes
1answer
378 views

How to edit geometry of multiple layers simultaneously in QGIS 3?

I have several line layers (route, pipes, cables) that share the same geometry and would like to edit them simultaneously. Is there a way to easily snap the geometry of the pipes and cables layers ...
2
votes
2answers
740 views

Snap a point to a line

I have 2 layers, point, and line. I want all the points to snapped to the nearest lines. Effectively, at the end, all these points should now lie in the lines retaining all of their attributes. Is ...
13
votes
2answers
10k views

Unable to snap vertices and segment in QGIS 3.0

I'm unable to snap 2 polygons in QGIS 3.0. I tried snapping 2 polygons from the same layer and also 2 polygons from different layers. I ensured that snapping is enabled in the Settings>>Options>>...
0
votes
1answer
61 views

Using Integrate tool to “snap” points

I am using ArcMap 10.4.1 for desktop. I have two layers with points in them and I am trying to get the points of layer A to "snap" to the closest points of layer B. I am using the Integrate tool with ...
-1
votes
3answers
57 views

Using arcpy.da.SearchCursor to script snapping one set of points to location of another set of points? [closed]

I am trying to shift a large number of point features (layer name Building_Point_NeedToSnap) to a newly created second set of point features (layer name BuildingFootprint_XYTablePoint) which is based ...
2
votes
0answers
188 views

Activating snapping with PyQGIS?

I would like to construct a map tool application that allows only to add some point features. How do I complete the following code to activate snap mode while editing a layer with PyQGIS 3? from ...
1
vote
1answer
171 views

Snapping in PyQGIS3.0

The following expression enables snapping for PyQGIS 2.0 : QgsProject.instance().setSnapSettingsForLayer(layer.id(), True, 2, 1, 10, True) What is the equivalent expression in PyQGIS 3.0?
1
vote
0answers
222 views

Not snapping to Guides in ArcGIS Pro?

I have a layout created with (layout)snapping on and set to snap to guides only. I have a series of rectangles for my title block. Depending on the information within the rectangles, I may need to ...
3
votes
1answer
215 views

How do you snap lines to the edge of the nearest polygon in bulk using QGIS?

I have shopping mall data with shops and doors. I am trying to run 'join attributes by location' in order to match the shop names with the door. Some doors are located just within the shop polygon ...
0
votes
0answers
132 views

Enable snapping options in QGIS-2.18 plugin using Python

I have a custom plugin to place point feature on another point feature. So i want to enable/activate snapping options before i place that feature in my QGIS application using python. So far i tried ...
1
vote
1answer
115 views

Quick add vertices when creating feature (QGIS 3.2)

I am creating a new feature (polygon) in QGIS 3.2.2 and would like to easily add the vertices as I delineate a boundary. Currently, I can do this one by one as the cursor snaps to the vertex of the ...
2
votes
0answers
63 views

Available snapping points for advanced digitizing?

In QGIS, the Advanced Digitizing tools have some snapping features that I don't see mentioned in the documentation. We know that we can digitize new segments that are perpendicular or parallel to ...
3
votes
1answer
4k views

Is there FME transformer to snap point on point of nearest line?

I have a DWG file which has lines and points. I use FME (2014) to translate it into a shapefile. This works fine but now I want to add some transformers in the workflow. The first thing I want is to ...
1
vote
0answers
30 views

Line feature won't stay in place

I'm working on a storm network system and have an issue with a drain line. When I try to snap it to a point, it moves slightly to the right every time. I've checked that there isn't topography for ...
5
votes
1answer
345 views

How to do snapping in Geopandas?

I want to perform snapping in all the lines of a shapefile that don't connect to the nearest other lines. It would be okay to have a tolerance of 0.5 meters. So between 0.5 it should connect to the ...
1
vote
0answers
134 views

Nearest point does not intersect line in 'sf' R package

This is a similar question to my recent questions on how to find the nearest point along a polyline and how to split a polyline by an intersecting point using only the sf package. My question has ...
1
vote
0answers
454 views

Leaflet: Snap to grid [closed]

I am trying to make leaflet markers snap to a grid (e.g. 10px) when dragging. The only method I can think of so far is to re-implement L.Draggable so that the offset calculated in _onMove is rounded ...
0
votes
1answer
64 views

Snapping doesn't work when many enterprise layers load

I am using Arcmap 10.6, when I have only limited number of enterprise layers loaded, the snapping experience process is painful. My cursor turns to "Busy" shape (the blue circle) and can't snap to the ...
1
vote
1answer
79 views

Importing AWS downloaded Sentinel-2 data into SNAP software?

I have downloaded Sentinel-2 L1C granules from AWS. I saved it as .SAFE format and now have for each tile downloaded as folder structure: AUX_DATA IMG_DATA QI_DATA i would like to run some ...
0
votes
1answer
119 views

MapInfo Pro 64-bit - 16.0.3 - Snap Frame to Guideline (unable to?)

I am using MapInfo Pro 64-bit v16.0.3 In the layout, I want to snap my map frame to the guideline. I've noticed that when I create a rectangular box, this snaps to the guidelines once the edge is ...
1
vote
1answer
161 views

Problem with snap layer when in name is space

I'm trying to make a option where user can choose layer to snap. All is okay when layers names are without space, but if there is a space in the name (like 'something layer name') snapping does not ...
1
vote
1answer
2k views

Split line by nearest points using geopandas

I have two GeoPandas Dataframes. One is a combination of linestrings, when plotted is a single line. The other GeoDataFrame contains rows where each row is a unique point close to to the first line. ...
3
votes
1answer
640 views

Snap lines to nearest line in PostGIS

I have a number of pedestrian trajectories (green) that I would like to snap to the nearest road (brown). The roads are downloaded from OpenStreetMap and have been dissolved by name with CREATE ...
1
vote
1answer
283 views

Snapping Manager

We are using ArcGis js API version 3.12 and 3.5. and we are trying to use the snappingManager object. We can only snap to recently drawn objects and can't snap to all the layers. We have just once ...
14
votes
1answer
835 views

Why is Shapely's snapping (GEO snaps) not working as expected?

I'm trying to snap two lines to each other using Shapely/Geopandas but the result of the snapping is very odd. I tried : import geopandas as gpd from shapely.geometry import * from shapely.ops ...
4
votes
1answer
1k views

Road snapping in R - snapPointsToLine / Projection Problem

1. Introduction (you may skip this if you like) In order to implement a road snapping feature in R for recorded positioning data, I first searched the internet for possible solutions to the problem: ...
4
votes
2answers
15k views

How to snap lines to nearest point?

Is there an easy way to snap lines to nearest point of either a line or a polygon? I don't see any snapping options for line layers as suggested on How to merge lines with slightly different endpoints ...
5
votes
1answer
476 views

Quickly temporarily disabling snapping in QGIS 3?

In some other applications I use you can use one of the "shift" keys to disable snapping for a single operation. Is there an equivalent for the new node tool?
1
vote
2answers
1k views

How to snap polygons to lines?

How can I snap a polygon to a line? For example, I have a polygon which represents some meadows to snap over a line which represents a road.
4
votes
1answer
868 views

Snapping two lines using Shapely

I'm trying to snap two Linestrings shapefiles using Shapely/Geopandas. I tried : import geopandas as gpd from shapely.geometry import * from shapely.ops import snap lines1 = gpd.GeoDataFrame....
6
votes
2answers
1k views

How to enable/disable snapping functionality with PyQGIS?

Goal: The snapping functionality should be enabled and disabled. I use the function setSnapSettingsForLayer. Convenience function to set snap settings per layer. Short Example: QgsProject.instance()....