pyguymer3.geo.ll2merSrc.ll2mer_MultiPolygon

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

Transform a MultiPolygon from Longitudes/Latitudes to Mercator fractions

This function reads in a MultiPolygon whose coordinates are Longitudes/Latitudes and returns a MultiPolygon whose coordinates are fractions on the Mercator projection.

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