[postgis-tickets] [PostGIS] #3590: Auto cast from geometry to geoggraphy with polygon larger than a hemisphere

PostGIS trac at osgeo.org
Sun Jun 26 13:54:15 PDT 2016


#3590: Auto cast from geometry to geoggraphy with polygon larger than a hemisphere
----------------------+---------------------------
  Reporter:  linebp   |      Owner:  pramsey
      Type:  defect   |     Status:  closed
  Priority:  low      |  Milestone:  PostGIS 2.2.3
 Component:  postgis  |    Version:  2.2.x
Resolution:  wontfix  |   Keywords:
----------------------+---------------------------
Changes (by robe):

 * status:  new => closed
 * resolution:   => wontfix


Comment:

 Two things I see here

 1) You really should be using ST_GeogFromText when doing your && check
 rather than relying on PostgreSQL to do the right thing and guess whether
 you mean geography /geometry space.

 2) Sorry geography does not support more than half-sphere.  Reason is it
 relies on shortest distance between two points. So this is sadly an
 implementation detail, that I don't think is in our scope to change.
 Detailed here - http://postgis.net/docs/manual-
 dev/using_postgis_dbmanagement.html#idp44623824

--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/3590#comment:1>
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