Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
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

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.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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