[postgis-tickets] [PostGIS] #3356: geometry to geography cast, always adds a box even for 2 point linestrings and single points
PostGIS
trac at osgeo.org
Tue Nov 3 05:15:49 PST 2015
#3356: geometry to geography cast, always adds a box even for 2 point linestrings
and single points
----------------------+---------------------------
Reporter: robe | Owner: robe
Type: defect | Status: new
Priority: medium | Milestone: PostGIS 2.1.9
Component: postgis | Version: 2.1.x
Resolution: | Keywords:
----------------------+---------------------------
Comment (by pramsey):
No, you don't want to strip the boxes from teh geographies, there's a big
difference between geometry and geography boxes, because for geometry
2-point boxes are trivial (just read first and last point) but for
geographies they aren't (you have to check the range of the 3-space box,
because sometimes the extrema are not the end points. Similarly (though
less bad) even for points, because the box in geography is 3-space while
the point is only 2d, the box requires more calculation, so having it pre-
calculated and on the object is not a bad thing.
--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/3356#comment:8>
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