[postgis-users] MultiPolygon -> Polygon

Birgit Laggner birgit.laggner at thuenen.de
Wed Sep 5 03:46:30 PDT 2018


Hi James, 

perhaps you could split the data per multipolygon into the largest polygon and the rest. Then buffer the smaller polygons by a small amount and union them with the large polygon? 

Regards, 
Birgit 


Von: "James Sewell" <james.sewell at lisasoft.com> 
An: postgis-users at lists.osgeo.org 
Gesendet: Montag, 6. August 2018 09:24:42 
Betreff: [postgis-users] MultiPolygon -> Polygon 

Hi all, 
I have a set of LineStrings which are being turned in Polygons (most of which are invalid). 

I can clean these (makevalid or buffer), but then some of them result in MultiPolygons (which makes sense - mostly small bowties). 

I'm looking for the easiest way to get a single Polygon from each of these MultiPolygons - I can tolerate a small amount of change in area (up to 5%). 

I've tried small just keeping the largest poly, buffer(small_number) and concavehull but nothing seems quite right. 

Any ideas? 

Cheers, 

James Sewell, 




The contents of this email are confidential and may be subject to legal or professional privilege and copyright. No representation is made that this email is free of viruses or other defects. If you have received this communication in error, you may not copy or distribute any part of it or otherwise disclose its contents to anyone. Please advise the sender of your incorrect receipt of this correspondence. 




The contents of this email are confidential and may be subject to legal or professional privilege and copyright. No representation is made that this email is free of viruses or other defects. If you have received this communication in error, you may not copy or distribute any part of it or otherwise disclose its contents to anyone. Please advise the sender of your incorrect receipt of this correspondence. 



_______________________________________________ 
postgis-users mailing list 
postgis-users at lists.osgeo.org 
https://lists.osgeo.org/mailman/listinfo/postgis-users 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20180905/b3264598/attachment.html>


More information about the postgis-users mailing list