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
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
883 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()....
3
votes
4answers
5k views

ERROR 000800 when trying to snap points layer to line or buffer layer?

I am using ArcCatalog 10.0 and trying to snap a set of points to another layer that has roads in it. The points represent 10th miles along the road. Here are the general steps for what i am doing: ...
0
votes
1answer
108 views

Snapping points to line yields error 000800?

I am trying to snap points (temp2.shp) to nearest line (Rail2.shp) at any of its vertex within any distance. ArcPy code: temp2 = "M:\\temp2.shp" arcpy.Snap_edit(temp2, ["M:\\Rail2", "VERTEX", '10000 ...
3
votes
1answer
409 views

Snap to a linestring

I'm trying to create a line snapping tool in my Android app where I'm using the spatialite-android lib. I'm using the function ST_Snap where I want to snap a linestring with another linestring on the ...
4
votes
1answer
2k views

Snapping points from layer to line in QGIS?

I need to snap the points to the lines in another layer in order to create another line shapefile. Is there any plugin / tool available for this? The Snap geometries doesn't take points as a ...
6
votes
2answers
476 views

Snapping leaves small gap between features in ArcGIS for Desktop?

I'm using classic snapping in ArcGIS 10.1. At the scale (1:5,000) that I'm using to snap the edge of one rectangular feature to the edge of another rectangular feature, snapping seems to work fine. ...
7
votes
1answer
740 views

Snapping in Esri javascript api does not work on mobile device

I have an Esri map loaded using the javascript api. I try to enable snapping, where a point should always snap to a given line. I have a snap point symbol that will trace the line to snap to when I ...
2
votes
1answer
299 views

Obtaining and counting overlapping line segments after adding ST_ClosestPoints with PostGIS

I have some LineStrings that overlap in some segments, but not necessarily with coinciding vertices, like shown in the example below. With PostGIS I would like to extract all "segments" and count how ...
2
votes
0answers
103 views

Odd output for PostGIS st_snap

I'm trying to snap a line theme to a point theme using PostGIS with a filter so they only snap to records with the same reference number. The query I'm using is as follows (this is a sample of the ...
12
votes
5answers
2k views

Real time map matching using ArcGIS Desktop?

I am working on a project which requires real time map matching. I am currently using ArcGIS but not sure whether it will work. Here is what happens with my system: the cell phones sent GPS fixes ...
10
votes
3answers
3k views

Aligning multiple points to line in QGIS?

I would like to align multiple points to a line, or lines within a layer, using a specified tolerance or buffer around the line objects. Please refer to the sample sketch attached. For the sake of ...
1
vote
0answers
135 views

Snapping an annotation feature class (anno class)

Is there any work around for being able to snap an annotation feature class (non-simple feature type) to the vertex points of another layer en masse? Similar to how the 'Editing toolbox > snap' tool ...
1
vote
0answers
321 views

Move node feature and snap to node of other layer

This seems like I'm missing something obvious - I have a layer with node features that I need to update the position of by referencing another node layer. Should be a simple move and snap-to ...
0
votes
2answers
1k views

Openlayers 3 snap a layer source

I want to create a snap control of my layer. My simple example demo is here var raster = new ol.layer.Tile({ source: new ol.source.OSM({ }) }); var source = new ol.source.Vector({ ...
1
vote
1answer
40 views

Snapping feature classes together for one section of a polygon and not the whole feature where slivers are visible

I have used the snapping tool to snap the vertex in 2 feature classes together where they contain slivers gaps and overlaps. This works fine however the tool executes this for the whole polygon and ...
0
votes
1answer
91 views

Snap points to points of different layer (based on attributes, not nearest)

I have 2 layer of points, PointLayer1 and PointLayer2. PointLayer1 has to be snapped to PointLayer2. I have a table that has IDs of PointLayer1 that has to be snapped to PointLayer2. Sample Table: ...
17
votes
11answers
22k views

Why won't ArcMap 10 snap? [closed]

I'm really confused by this. ArcMap will seeminly randomly decide to not allow snapping when editing. Sometimes its only for certain features, sometimes for only parts of the same feature (e.g. one ...
1
vote
2answers
263 views

Using Snapping Manager with ArcGIS Dynamic Map Service Layer?

Using ArcGIS API for JavaScript 3.22 I am trying to add Snapping Function on adding Point to a Graphic Layer but bases on an existing ArcGISDynamicMapServiceLayer (snapping to Edges and Vertex in the ...
5
votes
1answer
537 views

Snap existing line vertexes to nearest line in MapInfo

I have driven along some roads and registered some information about the state of the edge of the road. The GPS coordinates are not very precise, and I would like to smooth or snap the tracked lines ...
2
votes
2answers
2k views

Snapping multiple points to nearest edge of polygon using ArcGIS for Desktop?

I have a point grid (representing the centroid of a map tile) laid across a landbase; however, some of those points fall outside the boundaries (in the ocean). I need to somehow snap those points ...
0
votes
1answer
202 views

Snapping multiple polylines to points nearby

I have a network of polylines and nodes. Each polyline starts at a point and ends at other. To be more specific, the network consists of links and nodes. The problem is that, the polylines are ...
1
vote
1answer
210 views

Stamping two rasters in QGIS?

I have two LiDAR datasets; one of 1m resolution and another of 2m resolution. I want to stamp 1m LiDAR data on 2m LiDAR. Similar tool is available in Vertical Mapper in MapInfo called as Splicer ...
1
vote
1answer
40 views

snapping lines by order

I wish to clean lines with some attibutes like order1 (red), order2(green)... I use v.clean in QGIS for snapping. Is there a way (QGIS, GRASS, Postgis, Spatialite) that snaps the green line on the ...
4
votes
1answer
1k views

How to enable snapping when moving multiple features at once?

Is there a way to enable snapping when moving two or more features at once?
2
votes
1answer
175 views

Bringing two lines together and getting their difference

In the photo there are two lines that are parallel to each other. I want to bring them at same coordinates and carry out the difference between them, which will be the small part of red line from the ...
1
vote
1answer
722 views

Drag points on lines with snapping in QGIS 2.18

I have a point layer and a line layer coming from PostGIS. Points represent sensors (two for each side of the road), lines are GPS tracks. I need to move the sensor locations towards the lines. As I ...
0
votes
2answers
80 views

Checking for unsnapped lines in ArcMap?

I am trying to find a way to locate any unsnapped pipes/manholes. I noticed that my snapping environment was not set up in ArcMap the first few times I made edits and I want to go back and reverse ...
4
votes
2answers
170 views

Snap lines based on hierarchy

I have a layer that represents a road network. The lines for the roads don't always meet, but I want them to. I want to make the pink lines join to the nearest segment of the blue line. I followed ...
0
votes
1answer
748 views

How to create a polyline in MapInfo Pro by using the snap to nodes function

I want to create a polyline in MapInfo Pro by using the snap to nodes function, which I can do. But what I am interested to know is that when a node is added to the polyline, could any of the ...
1
vote
1answer
496 views

Snap points to end points of line within 50cm radius in MapInfo Pro

Is there a way in MapInfo Pro to automatically move a point dataset to the end points of a line that's within 50cm of a point? This is an existing dataset so it's not simply turning on snapping. ...
3
votes
1answer
100 views

ArcGIS web map snapping precision

I'm using snapping in a web map for a move/rotate custom tool. According to the API documentation the default option is to set all feature and graphics layers in the map to be target snapping layers. ...
1
vote
1answer
387 views

Capturing coordinates via snap with QGIS

I would like to know if there is a way to get and extract the coordinates of a node (one of the node that conforms a polygon) in order to use these pair of coordinates to georeference a DXF file, ...
3
votes
0answers
186 views

How to show Vector Layer created by v.clean GRASS tool in QGIS

I have created vector layer using GRASS tool v.snap, which resulted in a vector layer as output. I want to display the vector layer in QGIS. How can i view the vector layer created by snap tool in ...
0
votes
0answers
194 views

Snapping boundaries in PostGIS [duplicate]

I have two polygons in PostGIS that have incongruities. One polygon (the yellow one) is legal county boundaries. The other polygon (blue) is essentially neighborhoods. 98% of the lines align perfectly....
2
votes
1answer
440 views

Network Analyst not creating all junctions

I have a road network that I have added and merged with a KML into a shapefile that I'm trying to create a network with. However, when I build the network, I receive errors "The features's geometry ...
2
votes
0answers
53 views

ST_Snap doing weird things

Consider the following query: WITH geoms AS( SELECT ST_Buffer(ST_MakePoint(10,10),5,200) as circle, ST_MakeEnvelope(5,5,15,15) as square ) SELECT ST_Snap(square,circle,15) geom FROM ...
1
vote
0answers
303 views

Snapping Elements in Layout to Neatlines using ArcGIS Desktop?

I was wondering if there is a way to snap the center of an element to a neatline using ArcGIS 10? For example I have a neatline running down the center of the map in layout view and I want the ...
5
votes
1answer
530 views

Automatically snapping points to line ends on two separate layers?

I have US interstate ramp end location data points that I need to match road network data. All the points are off by a few meters as they were collected in the field. I am hoping there is a way to ...
0
votes
1answer
282 views

ArcGIS Snap raster option doesn't work with georeferenced images

Trying to snap cells of one Landsat image with another one (older ones are sometimes totally misplaced, so I had to georeference it first), I use ArcMap's Copy tool and snap raster environment setting....
0
votes
1answer
327 views

Connect newly drawn lines to existing lines in QGIS?

I need a simple tip for drawing line shapes in QGIS. I have multiple line shapes in my project that needs to be connected, so is there an option to join my already drawn line with the line that I'm ...
4
votes
2answers
1k views

Snapping multiple nodes of a polygon to the nodes of a line?

I am working with vector polygons that have derived from hand drawn areas from when mapping was carried out with tracing paper over paper maps. Therefore many of the polygons don't exactly line up to ...
1
vote
0answers
83 views

QGIS snap question [duplicate]

I have only recently started using QGIS with no previous knowledge of it so I still struggle with the most basic functions. In particular, I need some help with the snap function. I'm currently ...
3
votes
2answers
2k views

Snapping points to lines in QGIS/PostGIS?

I'm attempting to snap approximately 900 points to a line table. I've tried recreating what I have found from a couple of PostGIS answers but not having much luck. To test, I've created two ...
3
votes
1answer
149 views

Digitizing without gaps in QGIS

I started making a vector layer from raster data but I see slivers (gap area) between my parks and roads layer. How can I overcome this problem? I planned to make a map with scale 1:5000.
0
votes
1answer
129 views

How Do I Snap a CSV to a SHP Using ArcPy?

I'm a veteran Python programmer very new to ArcGIS. I'm trying to do what seems like it would be a simple operation in arcpy, but I don't think I know enough about the ArcGIS terminology to do more ...
0
votes
1answer
783 views

Openlayers2 snapping the whole feature

Is it possible to snap (drag and snap) a feature to another feature in the same layer? I found OpenLayers.Control.Snapping module but it's snapping only to the points.
3
votes
1answer
146 views

Snap lines to polygon verticies at interscetion

I'm trying to figure out a way to snap lines to a polygon layer, but only at the intersecting point. Here is a sample picture of what I'm working with. I have a layer of polygons and a line string ...
3
votes
2answers
5k views

Creating new lines along specifically selected existing lines using QGIS?

I have tried to find a solution for this everywhere, with no result... My problem is that I want to be able to manually draw a line that automatically snaps to a line (creating an exact copy of the ...