[gdal-dev] Wkt single precision float point

Even Rouault even.rouault at spatialys.com
Sun Aug 4 10:52:02 PDT 2019


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