pyguymer3.geo.en2llSrc.en2ll_MultiPolygon

pyguymer3.geo.en2llSrc.en2ll_MultiPolygon(multipoly1, /, *, debug=True, prefix='.', tol=1e-10)[source]

Transform a MultiPolygon from Eastings/Northings to Longitudes/Latitudes

This function reads in a MultiPolygon whose coordinates are Eastings/Northings on the Ordnance Survey National Grid and returns a MultiPolygon whose coordinates are Longitudes/Latitudes.

Parameters:
  • multipoly1 (shapely.geometry.multipolygon.MultiPolygon) – the MultiPolygon

  • debug (bool, optional) – print debug messages

  • prefix (str, optional) – change the name of the output debugging CSVs

  • tol (float, optional) – the Euclidean distance that defines two points as being the same (in degrees)

Returns:

multipoly2 – the transformed MultiPolygon

Return type:

shapely.geometry.multipolygon.MultiPolygon

Notes

Copyright 2017 Thomas Guymer [1]

References