pisces.geometry.coordinates.utils.load_coordinate_string#
- pisces.geometry.coordinates.utils.load_coordinate_string(json_string: str, registry: Registry = None) CoordinateSystem [source]#
Load a coordinate system from a JSON string.
- Parameters:
json_string (
str
) –A JSON string with the structure:
{ "class": "SphericalCoordinateSystem", "parameters": { ... } }
registry (
Registry
, optional) – Registry to resolve the coordinate system class.
- Returns:
An instance of the requested coordinate system.
- Return type:
CoordinateSystem
- Raises:
ValueError – If the JSON is invalid.
See load_coordinate_dict for additional exceptions. –