[postgis-users] Re: problem with BOX3D query

strk at refractions.net strk at refractions.net
Tue May 9 01:07:15 PDT 2006


On Mon, May 08, 2006 at 06:14:43PM -0300, Eduardo Luís Garcia Escovar wrote:
> From the PostGIS manual:
> 
> GeomFromText(text,[<srid>])
> 
>    Makes a Geometry from WKT with the given SRID.
> 
>    OGC SPEC 3.2.6.2 - option SRID is from the conformance suite
> 
> 
> Is 'BOX3D(-111.80 33.30,-111.75 33.35)'::box3d a valid WKT?

No, it's not. It was supported by previous PostGIS versions,
but since 1.0.0 it is not more possible to use it as
an argument to OGC input functions. A cast from BOX3D to
GEOMETRY is still present, so you pass that construct
to any function taking GEOMETRY, as it will be automatically
converted to a Polygon type.

--strk;



More information about the postgis-users mailing list