Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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

1 Answer 1

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

 
discard

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.