[postgis-devel] [PostGIS] #410: ST_SetPoint and bounding box
PostGIS
trac at osgeo.org
Sun Feb 14 18:43:02 PST 2010
#410: ST_SetPoint and bounding box
-----------------------+----------------------------------------------------
Reporter: sdikiy | Owner: pramsey
Type: defect | Status: reopened
Priority: critical | Milestone: PostGIS 1.4.2
Component: postgis | Version: 1.4.X
Resolution: | Keywords: ST_SetPoint
-----------------------+----------------------------------------------------
Comment (by robe):
Okay I think I isolated the issue in the code, though am afraid to change
anything since I'm not sure the ramifications and where else this is an
issue. Besides don't have my development environment currently available.
In the LWGEOM_affine, we recalculate the bounding box, but that logic
seems to be missing in the LWGEOM_setpoint_linestring function. I'm
guessing we need to replace 3184 with a :
LWGEOM *tmp;
tmp = pglwgeom_deserialize(geom);
lwgeom_drop_bbox(tmp);
tmp->bbox = lwgeom_compute_box2d(tmp);
result = pglwgeom_serialize(tmp);
http://postgis.refractions.net/documentation/postgis-
doxygen/d3/dcc/lwgeom__functions__basic_8c_78f265e0836ad97219c91d2c7f6dac2f.html#78f265e0836ad97219c91d2c7f6dac2f
Like we have for LWGEOM_affine
http://postgis.refractions.net/documentation/postgis-
doxygen/d3/dcc/lwgeom__functions__basic_8c_4493fb570acc2219101e6308bdc2662e.html#4493fb570acc2219101e6308bdc2662e
--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/410#comment:6>
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