[postgis-users] MultiPolygon -> Polygon

James Sewell james.sewell at lisasoft.com
Mon Aug 6 00:24:42 PDT 2018


 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20180806/3e22b604/attachment.html>


More information about the postgis-users mailing list