[postgis-devel] [PostGIS] #1322: lwgeom_from_wkt doesn't initialize LWGEOM.bbox
PostGIS
trac at osgeo.org
Wed Nov 23 08:28:09 PST 2011
#1322: lwgeom_from_wkt doesn't initialize LWGEOM.bbox
----------------------+-----------------------------------------------------
Reporter: strk | Owner: pramsey
Type: defect | Status: reopened
Priority: medium | Milestone: PostGIS 2.0.0
Component: postgis | Version: trunk
Resolution: | Keywords:
----------------------+-----------------------------------------------------
Comment(by strk):
The only ones I find are:
{{{
liblwgeom.h:extern int lwgeom_calculate_gbox_geodetic(const LWGEOM *geom,
GBOX *gbox);
liblwgeom.h:extern int lwgeom_calculate_gbox_cartesian(const LWGEOM
*lwgeom, GBOX *gbox);
liblwgeom.h:extern int lwgeom_calculate_gbox(const LWGEOM *lwgeom, GBOX
*gbox);
}}}
It seems to me that we should have a single public function taking an
LWGEOM and reading it's GBOX into the provided GBOX output parameter.
Returning 1 on success and 0 on error (no box == empty geometry).
The function could take the LWGEOM by const pointer by still cache the
computation.
--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/1322#comment:4>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.
More information about the postgis-devel
mailing list