[postgis-devel] BOX3D strange behaviour

Even Rouault even.rouault at spatialys.com
Thu Feb 18 00:53:21 PST 2016


Le jeudi 18 février 2016 09:37:41, Sandro Santilli a écrit :
> On Wed, Feb 17, 2016 at 11:33:12AM -0800, Paul Ramsey wrote:
> > > On Feb 17, 2016, at 10:46 AM, Rémi Cura <remi.cura at gmail.com> wrote:
> > > 
> > > SELECT 'BOX3D( 0 0 0, 10 10 10)'::box3D::geometry &&&
> > > ST_Makepoint(5,5,-1)
> > 
> > select st_astext('BOX3D( 0 0 0, 10 10 10)'::box3D::geometry);
> 
> Horrible. box3d::geometry drops the Z ?
> Was it always like that ?

Seems so:

=> select postgis_version(), st_astext('BOX3D( 0 0 0, 10 10 10)'::box3D::geometry);
            postgis_version            |             st_astext              
---------------------------------------+------------------------------------
 1.5 USE_GEOS=1 USE_PROJ=1 USE_STATS=1 | POLYGON((0 0,0 10,10 10,10 0,0 0))
(1 ligne)

select postgis_version(), st_astext('BOX3D( 0 0 0, 10 10 10)'::box3D::geometry);
            postgis_version            |             st_astext              
---------------------------------------+------------------------------------
 2.0 USE_GEOS=1 USE_PROJ=1 USE_STATS=1 | POLYGON((0 0,0 10,10 10,10 0,0 0))

> 
> --strk;
> 
> _______________________________________________
> postgis-devel mailing list
> postgis-devel at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/postgis-devel

-- 
Spatialys - Geospatial professional services
http://www.spatialys.com



More information about the postgis-devel mailing list