pyguymer3.geo.en2llSrc.en2ll_Polygon

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

Transform a Polygon from Eastings/Northings to Longitudes/Latitudes

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

Parameters:
  • poly1 (shapely.geometry.polygon.Polygon) – the Polygon

  • 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:

poly2 – the transformed Polygon

Return type:

shapely.geometry.polygon.Polygon

Notes

Copyright 2017 Thomas Guymer [1]

References