[postgis-devel] [PostGIS] #1235: cast to different-srid typmod
PostGIS
trac at osgeo.org
Tue Oct 11 00:07:56 PDT 2011
#1235: cast to different-srid typmod
---------------------+------------------------------------------------------
Reporter: strk | Owner: pramsey
Type: defect | Status: new
Priority: medium | Milestone: PostGIS 2.0.0
Component: postgis | Version: trunk
Keywords: |
---------------------+------------------------------------------------------
This brief session seems inconsistent to me:
{{{
strk=# select st_srid(geom::geometry('multipolygon', 0)) from poly;
st_srid
---------
4326
(1 row)
strk=# select st_srid(geom::geometry('multipolygon', 2)) from poly;
ERROR: Geometry SRID (4326) does not match column SRID (2)
}}}
Basically the first cast attempt silently fails (the returned geometry has
still the original srid, rather than the one I requested: 0).
--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/1235>
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-devel
mailing list