[postgis-devel] [PostGIS] #1273: ST_Equals( mypoint, postgis_addbbox(mypoint) ) = FALSE
PostGIS
trac at osgeo.org
Wed Nov 9 06:51:05 PST 2011
#1273: ST_Equals( mypoint, postgis_addbbox(mypoint) ) = FALSE
---------------------+------------------------------------------------------
Reporter: strk | Owner: pramsey
Type: defect | Status: new
Priority: high | Milestone: PostGIS 2.0.0
Component: postgis | Version: trunk
Keywords: |
---------------------+------------------------------------------------------
Comment(by strk):
Ok, found the issue.
gserialized_read_gbox_p is forcing a cached box to float:
g_serialized.c:
{{{
/* Has pre-calculated box */
if ( FLAGS_GET_BBOX(g->flags) )
{
int i = 0;
float *fbox = (float*)(g->data);
gbox->xmin = fbox[i++];
gbox->xmax = fbox[i++];
gbox->ymin = fbox[i++];
gbox->ymax = fbox[i++];
}}}
Why is that ?
--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/1273#comment:10>
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