GEOSPLIT
geo
The GEOSPLIT
function splits a GEOSHAPE into a set of GEOSHAPEs which have no adjacent cells (each shape is a connected space).
Adjacent cells share part of their side. Adjacency is not provided by corners and cells on each side of the international date line are not considered adjacent either.
GEOSPLIT is available since version 2.5.0.
See also
Signatures
Examples
-48.0 -4.5 1500000 @senx/geo/circle
0.1 false GEO.WKT
-45.0 -10 0 GEOSHIFT
GEOSPLIT
// For visualization, uncomment the line below and open 'Dataviz' in WarpStudio.
// <% ->GEOJSON JSON-> %> false LMAP
Examples
wkt = @senx/geo/circle(-48.0, -4.5, 1500000)
shape = GEO.WKT(wkt, 0.1, false)
shape = GEOSHIFT(shape, -45.0, -10, 0)
res = GEOSPLIT(shape)
// For visualization, uncomment the lines below and open 'Dataviz' in WarpStudio.
// m = (elt) -> {
// return JSON->(->GEOJSON(elt))
// }
// res = LMAP(res, m, false)
return res