[gdal-dev] determine real number precision with ogr2ogr

Iván Sánchez Ortega ivan at sanchezortega.es
Wed Jul 21 10:36:52 EDT 2010


El día Wednesday 21 July 2010 15:53:50, easyl dijo:
> How can I let ogr2ogr keep, change or determine real number precision??
[...]
>     > ogr2ogr -skipfailure -append -f "ESRI Shapefile" out  shape.000 -nlt

One thing you can do is create an empty shapefile with the desired field types 
and precision, and then do "ogr2ogr -append -update".


> AFAIK, in MapServer the numeric attributes cannot be manipulated for
> serving a label text. What I can do is to keep the number representation
> when running ogr2ogr.

Yeah, known bug. Hopefully it'll be fixed in time for the FOSS4G :-)


Cheers,
-- 
Iván Sánchez Ortega <ivan at sanchezortega.es>

Un ordenador no es una televisión ni un microondas: es una herramienta 
compleja.


More information about the gdal-dev mailing list