[gdal-dev] Wkt single precision float point

Nicolas Cadieux nicolas.cadieux at archeotec.ca
Sun Aug 4 11:21:10 PDT 2019


Thank you!  

I read that document before sending the mail.  Was wondering if it could have been specified elsewhere.  In gdal ExportToWkt() exports with single precision with 9 decimals?  Can this be extended to 15?
Merci

Nicolas

> Le 4 août 2019 à 13:52, Even Rouault <even.rouault at spatialys.com> a écrit :
> 
>> On dimanche 4 août 2019 13:18:12 CEST Nicolas Cadieux wrote:
>> Hi,
>> 
>> I’am I wrong or is the WKT format only a single precision float point?  Is
>> there a standard that imposes this?  Could this be changed to a double
>> precision float point or must I use GJSON for that?
> 
> WKT is neither single or double precision (which are generally intended for a 
> binary representation). The (decimal) precision isn't specified. This is up to 
> the user.
> See §7.2.1 "BNF Introduction" of
> http://portal.opengeospatial.org/files/?artifact_id=25355
> 
> §7.2.6 "Examples" has this precision:
> "The coordinates are shown as integer values; in general they may be any 
> double precision value."
> 
> Even
> 
> -- 
> Spatialys - Geospatial professional services
> http://www.spatialys.com


More information about the gdal-dev mailing list