[postgis-tickets] [PostGIS] #2495: geography && large_bbox fails
PostGIS
trac at osgeo.org
Fri Oct 4 09:29:09 PDT 2013
#2495: geography && large_bbox fails
---------------------+------------------------------------------------------
Reporter: strk | Owner: pramsey
Type: defect | Status: new
Priority: medium | Milestone: PostGIS 2.1.1
Component: postgis | Version: 2.1.x
Keywords: |
---------------------+------------------------------------------------------
I was looking at this case:
https://hub.qgis.org/issues/8572
and tried to workaround by following the reccomendation of the exception
message
{{{
Antipodal (180 degrees long) edge (180 -90,180 90) detected,
add a point between to make two edges that span less than 180 degrees.)
}}}
But doing so gave a false result:
{{{
strk=# with params as ( select st_makeenvelope(-180,-90,180,90,4326) as
env, 'POINT(0 0)'::geography as g ) SELECT
st_area(st_segmentize(env,170)), st_area(env) from params;
st_area | st_area
---------+---------
64800 | 64800
(1 row)
strk=# with params as ( select st_makeenvelope(-180,-90,180,90,4326) as
env, 'POINT(0 0)'::geography as g ) SELECT g && st_segmentize(env,170)
from params;
?column?
----------
f
(1 row)
}}}
What am I missing, Paul ?
--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/2495>
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-tickets
mailing list