New answers tagged

1

I think you're overcomplicating things here when you could use ST_MaxDistance, this will return the maximum distance between two points within two point clouds. WITH points AS( SELECT id, (ST_DumpPoints(lane.geometry)).geom as geom FROM lane GROUP BY id ) , min_distances AS( /*Finds the smallest distance for each distinct tuple ...


2

This sequence in Arc 10.4 worked: Feature Vertices to Points tool, applied to the input layer, with the "mid" option followed by: Split Line at Point tool, again applied to the input layer, using the point output from above. One thing to note: the output Shapelength field needs to have its geometry recalculated because it contains the original ...


2

In your table of content put empty polyline feature class on the very top. Place your layer with curves underneath and run script. Original: Mirror: Script: import arcpy, traceback, os, sys, time mxd = arcpy.mapping.MapDocument("CURRENT") mirror=arcpy.mapping.ListLayers(mxd)[0] original=arcpy.mapping.ListLayers(mxd)[1] try: def showPyMessage(): ...


1

The problem is, that the orientation switches for every part of the network (like in the red circle). Why? The orientation of your offset changes from one side to the other for some parts because these parts were drawn into your GIS in the opposite direction. Lines are drawn from a From/Start point to a To/End point, and if you offset a line the ...


0

I finally found an answer to this hidden away in a tutorial on WPS processes. There isn't much explanation! But it seems to work. public class PolygonTools { public static Geometry polygonize(Geometry geometry) { List lines = LineStringExtracter.getLines(geometry); Polygonizer polygonizer = new Polygonizer(); polygonizer.add(lines); ...


0

Have a look on the link given below.Maybe it can work for you: http://blog.rtwilson.com/how-to-snap-points-to-lines-in-arcgis-with-python/


2

As there are only 6 points, I'd suggest you just create a new line feature-class and draw the line connecting the 6 points. Multipoints won't display as lines. If they are created in some kind of identifiable order, it could be scripted to draw the line from vertex to vertex (or point to point), however for so few points it's not likely to be worth the ...


0

Assisted by comments from @Midavalo, I now know that multipoints won't display as lines so i will create a new line feature class and draw a line to connect them.


3

‚Äč You can use a recursive query to explore nearest neighbor of each point starting from each detected end of lines you want to build. Prerequisites : prepare a postgis layer with your points and another with a single Multi-linestring object containing your roads. The two layers must be on the same CRS. Here is the code for the test data-set I created, ...


5

As @FelixIP points out, the first step is to find the points that will make up each line. You can do this by calling ST_ClusterWithin with your maximum separation distance: SELECT row_number() OVER () AS cid, (ST_Dump(geom)).geom FROM ( SELECT unnest(st_clusterwithin(geom, 0.05)) AS geom FROM inputs) sq Then, you'll need to use some heuristic ...



Top 50 recent answers are included