AI4COPSEC AI4COPSEC collekt
  • Home
  • Products
  • CLI
  • Credentials
  • Manifest
  • API reference

On this page

  • Region
    • Methods
      • as_dict
      • from_bbox
      • from_description_tuple
      • from_geojson
      • from_point_radius

Region

Region(west, east, south, north, geometry=None)

Geographic region of interest.

A region is a bounding box. It may also carry the original geometry as WKT (geometry) for sources that support polygon filters rather than a plain bounding box.

Methods

Name Description
as_dict Return the region as a JSON-serializable mapping.
from_bbox Build a region from (west, east, south, north).
from_description_tuple Build a region from (min_lat, max_lat, min_lon, max_lon).
from_geojson Build a region from a GeoJSON file.
from_point_radius Build a region from a centre point and a radius in kilometres.

as_dict

Region.as_dict()

Return the region as a JSON-serializable mapping.

from_bbox

Region.from_bbox(bbox)

Build a region from (west, east, south, north).

from_description_tuple

Region.from_description_tuple(roi)

Build a region from (min_lat, max_lat, min_lon, max_lon).

from_geojson

Region.from_geojson(path)

Build a region from a GeoJSON file.

The bounding box is derived from the geometry, and the geometry itself is retained as WKT so polygon-capable sources can filter on it.

from_point_radius

Region.from_point_radius(latitude, longitude, radius_km)

Build a region from a centre point and a radius in kilometres.

Part of AI4COPSEC.

Built with Quarto.

GitHub