RegionSerializationModel#

pydantic model lsst.images.RegionSerializationModel#

Serialization model for Region and Polygon.

This model is a subset of the GeoJSON specification (IETF RFC 7946).

Parameters:

data (Any)

Fields:
field coordinates: list[list[tuple[float, float] | list[tuple[float, float]]]] [Required]#

Vertices of the polygon or polygons.

field type: Literal['Polygon', 'MultiPolygon'] [Required]#

Geometry type.

deserialize()#

Deserialize into a Region (a Polygon, if possible).

Return type:

Region

This page was last modified on .