[postgis-users] Does ST_AsText truncate or round

Paragon Corporation lr at pcorp.us
Thu May 15 21:00:35 PDT 2008


Hopefully this is a simple question.  I know that ST_AsText returns a
geometry that is not necessarily as prescise as what is actually stored in
the geometry field.  I have an editor that relies on WKT representation.

Anyrate just wanted to know if the ST_AsText does a rounding of the points
or it does a truncation of the points.  Also would be nice to know if I
could control the precision of this since I will need to truncate my actual
geometry accordingly so that both are in agreement.

Thanks,
Regina





More information about the postgis-users mailing list