[postgis-users] How remove a single part from a multipart geometry

2010-09-23 Thread Andrea Peri 2007

 Hi,

I need to remove a single part from a multipart geometry.

For example having a multipolygon with three part I need to remove one 
of these parts so the result is a multipolygon with two parts.


In postgis I find a function to extract a single part from a multipart ( 
ST_GeometryN ) but don't find nothing to remove one.


So the only method I know is re-create the geometry skipping the part 
unwanted, but I hope to find somethink more simple.


Thx,

Andrea.

___
postgis-users mailing list
postgis-users@postgis.refractions.net
http://postgis.refractions.net/mailman/listinfo/postgis-users


Re: [postgis-users] How remove a single part from a multipart geometry

2010-09-23 Thread Mike Toews
There aren't any delete/remove/drop geometry functions, so you would
need dissect and re-create the geometry.

But, if you want to do this visually, this is easy. If you have a
recent version of QGIS, just start editing and use the Delete part
edit tool.

-Mike

On 23 September 2010 10:28, Andrea Peri 2007 aperi2...@gmail.com wrote:
  Hi,

 I need to remove a single part from a multipart geometry.

 For example having a multipolygon with three part I need to remove one of
 these parts so the result is a multipolygon with two parts.

 In postgis I find a function to extract a single part from a multipart (
 ST_GeometryN ) but don't find nothing to remove one.

 So the only method I know is re-create the geometry skipping the part
 unwanted, but I hope to find somethink more simple.

 Thx,

 Andrea.

 ___
 postgis-users mailing list
 postgis-users@postgis.refractions.net
 http://postgis.refractions.net/mailman/listinfo/postgis-users

___
postgis-users mailing list
postgis-users@postgis.refractions.net
http://postgis.refractions.net/mailman/listinfo/postgis-users