Which is the best way to convert a complex multipolygon into simple and "merged" polygon?
For example, the red stroked polygon (drawn by hand of course) is the simplified version of the white multipolygon one:
The aim is to get rid of the little polygons by generalizing the zone, also, there is a multipolygon that could be converted into 2 simplified polygons features or a simplified multipolygon feature:
The purpose of doing this is to find a way to optimize an elasticsearch geo_shape index for searching geofenced queries. In this case, low resolution works to test the search capabilities.
link to the geojson gist. Original Norway shape was extracted from a kml and already simplified with ogr2ogr -simplify 0.125
.
ST_ConvexHull
via sqlite SQL in ogr2ogr (you can also dump your Mulits)