opendrift.models.openoil.adios.models.oil.location_coordinates

Location Coordinates Object

When saved out as JSON, this is a subset of geoJSON

i.e. a geoJSON geometry, but can only be a Point or a Polygon.

So either:

{
  'type': 'Point',
  'coordinates': [0, 0]
}

or:

{
  'type': 'Polygon',
  'coordinates': [[[-5e6, -1e6], [-4e6, 1e6], [-3e6, -1e6]]]
}

Module Contents

Classes

LocationCoordinates

class opendrift.models.openoil.adios.models.oil.location_coordinates.LocationCoordinates[source]
type: str
coordinates: list
__post_init__()[source]

Put any validation code here (__init__() is auto-generated by the dataclass decorator, and it will clobber any attempt to overload the __init__.)