archesproject / arches

Arches is a web platform for creating, managing, & visualizing geospatial data. Arches was inspired by the needs of the Cultural Heritage community, particularly the widespread need of organizations to build & manage cultural heritage inventories
GNU Affero General Public License v3.0
211 stars 142 forks source link

Transform multi-part geoms to single-part feature collections when saving tile data #10972

Closed chiatt closed 3 weeks ago

chiatt commented 3 months ago

The convert_multipart_to_singlepart should work for this. It can be called in transform_value_for_tile. It probably needs to also be in pre_tile_save. There's some overlap in the roles of these functions that might need review.

bferguso commented 2 months ago

@chiatt - Does this mean that only one geometry can be stored in a GeoJSON node?

aarongundel commented 2 months ago

@bferguso no, but it does mean that MultiPolygons, MultiLineStrings, etc will be converted to single features (many polygons) within the geojson feature collection.

bferguso commented 2 months ago

@bferguso no, but it does mean that MultiPolygons, MultiLineStrings, etc will be converted to single features (many polygons) within the geojson feature collection.

Awesome - thanks @aarongundel!