Return the centroid for a given convex polygon.
Library for calculation of polygon centroid and bounding box area.
Determines the geometric center of a polygon or shape.
Operations for two-dimensional polygons.
TypeScript definitions for d3-polygon
A JS library for finding optimal label position inside a polygon
Finds the “balance point” of irregular shapes, like a country outline.
A tool to match GeoJSON point coordinates (or a polygon centroid) to a polygon and copy over properties
A JS library for finding optimal label position inside a polygon
Changes the size of a geometry by scaling it up or down.
Rotates a geometry around its center or a given point.
Provides helper functions to create GeoJSON features, like points, lines, or areas on a map.
turf centroid module
determine if a point is inside a polygon with a ray intersection counting algorithm
A point in polygon based on the paper Optimal Reliable Point-in-Polygon Test and Differential Coding Boolean Operations on Polygons
Checks if a point is inside an area, like a city boundary.
Fill a polygon with lines
Converts a bounding box to a GeoJSON polygon.
Calculates the distance from a point to the edges of a polygon or multi-polygon.
Takes a kinked polygon and returns a feature collection of polygons that have no kinks.
Martinez polygon clipping algorithm, does boolean operation on polygons (multipolygons, polygons with holes etc): intersection, union, difference, xor
Takes polygons or multipolygons and an optional mask, and returns an exterior ring polygon with holes.
Smooths a Polygon or MultiPolygon, based on Chaikin's algorithm.
Apply boolean Polygon clipping operations (intersection, union, difference, xor) to your Polygons & MultiPolygons.