Skip to content

PATTERNS

vector analysis

forthcoming


transform geometries

These methods create new geometries based on the input geometries of feature collections.

More to come.

🌎 bounding box


var fc_bounds = geo.fcGeometry.boundingBox(fc);

Map.addLayer(fc_bounds, {color: 'cyan'}, "Bounding box", false);

🌎 centroid


var fc_centroid = geo.fcGeometry.centroidPoint(fc);

Map.addLayer(fc_centroid, {color: 'yellow'}, "Centroid point", false);

🌎 convex hull


var fc_convex_hull = geo.fcGeometry.convexHullPolygon(fc);

Map.addLayer(fc_convex_hull, {color: 'magenta'}, "Convex hull", false);

This work is licensed under CC BY-NC-SA 4.0