UNPKG

geojson-minimum-bounding-rectangle

Version:

A library to compute the Minimum Bounding Rectangle of a GeoJSON polygon

4 lines (3 loc) 418 B
import type { AllGeoJSON } from '@turf/helpers'; export declare function smallestSurroundingRectangleByArea(geoJsonInput: AllGeoJSON): import("geojson").Feature<import("geojson").Polygon, import("geojson").GeoJsonProperties> | null; export declare function smallestSurroundingRectangleByWidth(geoJsonInput: AllGeoJSON): import("geojson").Feature<import("geojson").Polygon, import("geojson").GeoJsonProperties> | null;