Tagged Questions
0
votes
1answer
357 views
How to convert a shapefile to WKT?
I'm trying to convert a shapefile into the simple Well Known Text (WKT) format in the example below (from http://en.wikipedia.org/wiki/Well-known_text).
MULTIPOLYGON (((40 40, 20 45, 45 30, 40 40)),
...
4
votes
1answer
493 views
Write out a WKT file from a loaded shapefile
We are looking to load and display a shapefile, simple polygons, then write out a WKT string of that shapefile and have the user save it somewhere.
Does anyone have some code snippets of that very ...
3
votes
1answer
161 views
Problem with precision when convert from WKT to shapefile
I have a problem with converting from WKT to shapefile in pygdal. In wkt I have fields with precision (for example real 7.2). When I create a shapefile I have field numeric with no precision (numeric ...
4
votes
1answer
504 views
projection/pyproj puzzle, and understanding SRS format
I have a shapefile that has a .prj file, with the following wkt contents:
...
4
votes
2answers
2k views
what is the best way to programmatically convert between WKT and Proj4 string?
some shapefiles have a .prj file associated with it. and the .prj file contains the projection info of the shapefile in the format of WKT.
Sometimes I need to convert WKT to proj4 string, and ...