[postgis-commits] svn - r3822 - branches/1.3/lwgeom
postgis-commits at postgis.refractions.net
postgis-commits at postgis.refractions.net
Tue Mar 10 00:19:26 PDT 2009
Author: pracine
Date: 2009-03-10 00:19:26 -0700 (Tue, 10 Mar 2009)
New Revision: 3822
Modified:
branches/1.3/lwgeom/lwpostgis.sql.in
Log:
Added fix to address an SRID of -1 in probe_geometry_columns
Modified: branches/1.3/lwgeom/lwpostgis.sql.in
===================================================================
--- branches/1.3/lwgeom/lwpostgis.sql.in 2009-03-10 00:29:32 UTC (rev 3821)
+++ branches/1.3/lwgeom/lwpostgis.sql.in 2009-03-10 07:19:26 UTC (rev 3822)
@@ -2965,16 +2965,18 @@
a.attname::varchar as f_geometry_column,
2 as coord_dimension,
#if USE_VERSION >= 73
- trim(both '' =)'' from substr(sridcheck.consrc,
- strpos(sridcheck.consrc, ''='')))::integer as srid,
+ trim(both ' =)' from
+ replace(replace(split_part(
+ sridcheck.consrc, ' = ', 2), ')', ''), '(', ''))::integer AS srid,
trim(both '' =)'''''' from substr(typecheck.consrc,
strpos(typecheck.consrc, ''=''),
strpos(typecheck.consrc, ''::'')-
strpos(typecheck.consrc, ''='')
))::varchar as type
#else
- trim(both '' =)'' from substr(sridcheck.rcsrc,
- strpos(sridcheck.rcsrc, ''='')))::integer as srid,
+ trim(both ' =)' from
+ replace(replace(split_part(
+ sridcheck.rcsrc, ' = ', 2), ')', ''), '(', ''))::integer AS srid,
trim(both '' =)'''''' from substr(typecheck.rcsrc,
strpos(typecheck.rcsrc, ''=''),
strpos(typecheck.rcsrc, ''::'')-
More information about the postgis-commits
mailing list