New answers tagged

2

If anyone comes across this while working with ruby/rails this is what I had to do to get the correctly formatted string for javascript: @polyline = YOUR POLYLINE STRING FROM RUBY STRAVA WRAPPER then in view inside the javascript tag where I setup the map (or perhaps in a js asset file depending how you choose to structure your app): var decodedPath = ...


0

You may want to look at ArcScan: ArcScan provides tools that allow you to convert scanned images into vector-based feature layers. The process of converting raster data to vector features is known as vectorization. Vectorization can be performed manually by interactively tracing raster cells or automatically using the automatic mode. The ...


1

To dump only unique points, you could use a few subqueries with a SELECT DISTINCT ON expression: SELECT geom, gid, path FROM ( SELECT DISTINCT ON (geom) geom, path, gid FROM ( SELECT (ST_DumpPoints(the_geom)).geom, (ST_DumpPoints(the_geom)).path, gid FROM my_linestrings_table ) f ORDER BY geom, path, gid ) f ORDER BY gid, path;


1

You might want to try using the ASCII 3D To Feature Class tool. It will require that you setup a text file with the format described in the help documentation. You can also write a Python script that uses geometry objects to construct a line feature, like this example which creates a 2D line from a semi-colon delimited text file.



Top 50 recent answers are included