geoprimsField-grade geospatial math

Shape

Centers, interior points, and envelopes of shapes.

These tools describe a shape: its bounding box, centroid and a point guaranteed inside it, extra vertices along geodesic edges, and the hull, rectangle, and circle that enclose a set of points. GIS analysts and developers use them for map extents, labels, and summaries. Start with the bounding box. The classic pitfall is a box that crosses the antimeridian, where west is greater than east.

I want to find a polygon's center or a point inside it

I want to find the bounding box, even across the antimeridian

I want to find the hull, smallest rectangle, or smallest circle around points

I want to add vertices so a line follows the geodesic on a flat map