Skip to content

Reference

ShapelyTransform

A utility class to transform between RD and WGS84 coordinate systems.

rd_to_wgs(geometry) classmethod

Convert a Shapely geometry from RD (EPSG:28992) to WGS84 (EPSG:4326).

Parameters:

Name Type Description Default
geometry Point | LineString | Polygon | MultiLineString | MultiPoint | MultiPolygon | GeometryCollection

A Shapely geometry in RD coordinates.

required

Returns:

Type Description
Point | LineString | Polygon | MultiLineString | MultiPoint | MultiPolygon | GeometryCollection

A Shapely geometry in WGS84 coordinates.

wgs_to_rd(geometry) classmethod

Convert a Shapely geometry from WGS84 (EPSG:4326) to RD (EPSG:28992).

Parameters:

Name Type Description Default
geometry Point | LineString | Polygon | MultiLineString | MultiPoint | MultiPolygon | GeometryCollection

A Shapely geometry in WGS84 coordinates.

required

Returns:

Type Description
Point | LineString | Polygon | MultiLineString | MultiPoint | MultiPolygon | GeometryCollection

A Shapely geometry in RD coordinates.