pyguymer3.geo.ll2enSrc.ll2en_MultiPolygon

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

Transform a MultiPolygon from Longitudes/Latitudes to Eastings/Northings

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

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