New answers tagged geometry
The format you need (standard longitude, latitude) can be obtained by converting the current Reference System to World Geodetic System whose identifier (SRID) is 4326. In order to do so, use the function st_transform(way, 4326) (returns a Geometry). So, for example, in a query similar to yours it would be: SELECT st_asText(st_transform(way, 4326)) FROM ...
The "Layer input already exists" error is due to an existing file "output.csv", presumably from a previous attempt. This file needs to be deleted to make a new file (the -overwrite option sometimes works, but not always). From POSIX shells, use rm output.csv, or from a Windows shell, use del output.csv To only show X,Y fields, provide an empty select field ...
The error depicts that system don't have permissions to overwrite/append the output csv file because you have not mentioned it in your gdal ogr2ogr command. Possible solution can be addition of these Params in your command Ogr2ogr -f 'CSV' output.csv input.shp -lco GEOMETRY=AS_XY -append I hope it will help.
Not sure if this will help, but there may be a connection... http://osgeo-org.1560.x6.nabble.com/Field-calculator-issue-td5091278.html
The easiest way to create a polygon from an envelope is to cast a new Polygon instance to ISegmentCollection and call the ISegmentCollection.SetRectangle method, passing the envelope as its argument.
The Production Mapping extension includes a Set Origin Vertex tool that may suit your purposes: A polygon is a collection of rings. Rings contain collections of points, or vertices, which describe a closed path. The first vertex, number 0, in the outermost ring of a polygon is the origin vertex. Vertices are oriented in a clockwise direction from ...
Use the Repair Geometry tool - the polygon will be reset as clockwise direction. The Check Geometry documentation says: Incorrect ring ordering—The polygon is topologically simple, but its rings may not be oriented correctly (outer rings—clockwise, inner rings—counterclockwise). While the Repair Geometry documentation does not mention ...
I would do this using the Create Fishnet tool wrapped in a Python script tool that uses Feature Sets to request the two coordinates. If you are using ArcGIS for Desktop 10.1 or later then I would recommend doing this as a Python Add-in instead.
Top 50 recent answers are included