Subscribe to this thread
Home - General / All posts - WKT float number length, precision of data
Diellza1 post(s)
#04-Apr-24 13:11

Hi all,

I need to check the precision of the data represented in WKT, specifically for floating numbers. Does anyone know how many digits can a WKT value have?

Best,

Diellza

Dimitri


7,527 post(s)
#06-Apr-24 11:47

Don't know. The OGR specification doesn't say in the "numbers" section in page 13 at https://docs.ogc.org/is/18-010r11/18-010r11.pdf

But as a practical matter, what is the real-life application where it matters when it comes to Manifold? Manifold has a float64 numeric type, which allows precision down to far greater detail than anything encountered in real life in GIS. (See https://en.wikipedia.org/wiki/Double-precision_floating-point_format )

So what's the real-life use case where it matters whether or not WKT could have more digits past the decimal point than what can be represented in float64?

Manifold User Community Use Agreement Copyright (C) 2007-2021 Manifold Software Limited. All rights reserved.