Hi!

I am using the ST_Difference to erase multipolygon feature by a mask.
However, the query returns a dssolved multipolygon.

The query is the following:

'''SELECT ST_AsGeoJSON(ST_Collect(geom))
::json
   FROM (SELECT (
     ST_Dump (

ST_Difference(ST_GeomFromGeoJSON('%s'),ST_GeomFromGeoJSON('%s')))).geom)
             As f''' % (feature,mask)

Please take a look at those images above to understand the problem:

Input: http://i.stack.imgur.com/QO4MN.png
Output: http://i.stack.imgur.com/Slw32.png

Thank you all,
-Max Demars
-- 
Stack Overflow: http://stackoverflow.com/users/1914034/burton449
GIS Overflow: http://gis.stackexchange.com/users/14426/burton449
LastFm: http://www.lastfm.fr/user/burton449
_______________________________________________
postgis-users mailing list
[email protected]
http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users

Reply via email to