[postgis-users] Does ST_AsText truncate or round
Mark Cave-Ayland
mark.cave-ayland at siriusit.co.uk
Fri May 16 08:49:42 PDT 2008
Håvard Tveite wrote:
> ST_GeomFromText(ST_AsText(geom)) != geom
>
> sounds like a bug to me (ignoring the SRS).
>
> Håvard
No, since the SFS 1.1 specification supports only 2 dimensions with no
SRS (and ST_AsText() is spec compliant). If you need the SRS then you
should use the PostGIS-enhanced ST_EWKT() function which will output the
extra information, but is not spec-compliant.
ATB,
Mark.
--
Mark Cave-Ayland
Sirius Corporation - The Open Source Experts
http://www.siriusit.co.uk
T: +44 870 608 0063
More information about the postgis-users
mailing list