[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 07:26:09 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 robe):
aha - found it - add box is happening via geography_serialize via the
gserialized_from_lwgeom call. So it seems our change to not add a box to
point and 2 point linestring for geometry inadvertently affected
geography_from_text?
http://postgis.net/docs/doxygen/2.3/da/d21/g__serialized_8c_a0b9fd37dce2089c4fecb8a23ed102323.html#a0b9fd37dce2089c4fecb8a23ed102323
shouldn't that be changed then to also consider if a geodetic flag is set
and just do the right thing?
--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/3356#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-tickets
mailing list