[postgis-devel] GEOS2POSTGIS

strk at refractions.net strk at refractions.net
Tue Dec 14 01:43:13 PST 2004


On Mon, Dec 13, 2004 at 02:18:11PM -0500, Carl Anderson wrote:
> 
> I am having problems with MULTIPOLYGON types passing through GEOS2POSTGIS
> 
> the routine is making a geometry collection of polygons not a multipolygon
> except that it labels the mess as a multipolygon
> 
> 
> for example
> 
> SRID=102667;010600000005000000SRID=0;0103000000010000000500000000
> 0000606EA1404100000020825A3441207F245077A1404153CCD639995A3441
> 2CF237915CA14041859B332C505A344139A6505F76A140416E660BA8965A3
> 441000000606EA1404100000020825A3441SRID=0;010300000001............
> 
> not
> 
> SRID=102667;0106000000050000000103000000010000000500000000
> 0000606EA1404100000020825A3441207F245077A1404153CCD639995A3441
> 2CF237915CA14041859B332C505A344139A6505F76A140416E660BA8965A3
> 441000000606EA1404100000020825A3441010300000001............

IIRC a MULTIPOLYGON is exactly a collection of polygons
labeled as a multipolygon. The problem here is with SRID defined
inside inner geoms. 

I've taken a look at the 'collect' function and it failed
to check for compatible dimensions and srid. I've added that.
But how did you produce that geometry ? Solely inside GEOS ?
In that case we need to check it somewhere else.

What I'm trying to do is avoiding to put the check in the
lwcollection_construct, making it a 'trusted' and more
'flexible' procedure.

--strk;

> 
> 
> -- 
> Carl Anderson
> GIS Manager Fulton County, Georgia
> carl.anderson at co.fulton.ga.us
> 404.730.8026
> 
> 
> -----------------------------------------------------
> This message has been scanned for viruses and
> dangerous content for Fulton County by DefendMail, and is
> believed to be clean.
> 
> _______________________________________________
> postgis-devel mailing list
> postgis-devel at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-devel



More information about the postgis-devel mailing list