3

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 7.0). I can't find problem.

Do you have any suggestions?

  • Are you converting a raw WKT to a geometry? I am interested in finding out how to do that. – Michalis Avraam Nov 1 '12 at 19:39
2

You need to create a shapefile with precision. The DBF format (which is what the shapefile uses to store attribute information) can store decimal places as part of the numeric data type (see here) so your problem is probably that you've not told pygdal what precision you want on your numeric.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.