[postgis-devel] [PostGIS] #265: Geometry to Geography cast enhancement auto transform

PostGIS trac at osgeo.org
Mon Oct 12 19:54:53 PDT 2009


#265: Geometry to Geography cast enhancement auto transform
--------------------------+-------------------------------------------------
  Reporter:  robe         |       Owner:  pramsey      
      Type:  enhancement  |      Status:  new          
  Priority:  low          |   Milestone:  postgis 1.5.0
 Component:  postgis      |     Version:  trunk        
Resolution:               |    Keywords:               
--------------------------+-------------------------------------------------
Comment (by robe):

 Oh I thought the coercion of going straight from 4269 to 4326 without
 transformation was a bad thing or guessing at the SRID and assuming people
 stored their data in 4326 when no SRID was specified was a bad thing. I
 thought that's what we were complaining about before.  Maybe I
 misunderstood that conversation.

 For this I thought about the ambiguity of this automagic and leaned toward
 its such a well established thing that if you denote the wrong SRID for
 your native data you are screwed anyway (and doing a ST_Transform from
 nad27 to wgs 84 is a common accepted practice) . I decided it was more
 annoying having to do that same transformation over and over again
 especially for legacy data where I want to use a geography spatial index
 but don't want to store my data in geography.

 I imagine for the future when we do support other spatial refs then we
 would do the automatic transform only if SRID not in(-1,0,4326,4269 etc).

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/265#comment:2>
PostGIS <http://trac.osgeo.org/postgis/>
PostGIS


More information about the postgis-devel mailing list