GeoJsonPolygon interface

GeoJSON Polygon. Reference

To specify a constraint specific to Polygons, it is useful to introduce the concept of a linear ring:

  • A linear ring is a closed LineString with four or more positions.
  • The first and last positions are equivalent, and they MUST contain identical values; their representation SHOULD also be identical.
  • A linear ring is the boundary of a surface or the boundary of a hole in a surface.
  • A linear ring MUST follow the right-hand rule with respect to the area it bounds, i.e., exterior rings are counterclockwise, and holes are clockwise.
Extends

Properties

coordinates

For type "Polygon", the "coordinates" member MUST be an array of linear ring coordinate arrays.

type

Representing the type of this GeoJSON object, including the seven geometry type and "Feature", "FeatureCollection". Reference

Inherited Properties

bbox

Include information on the coordinate range for its Geometries, Features, or FeatureCollections. Reference

Property Details

coordinates

For type "Polygon", the "coordinates" member MUST be an array of linear ring coordinate arrays.

coordinates: Position[][]

Property Value

Position[][]

type

Representing the type of this GeoJSON object, including the seven geometry type and "Feature", "FeatureCollection". Reference

type: "Polygon"

Property Value

"Polygon"

Inherited Property Details

bbox

Include information on the coordinate range for its Geometries, Features, or FeatureCollections. Reference

bbox?: BBox

Property Value

Inherited From GeoJsonObject.bbox