pyguymer3.geo.ll2merSrc.ll2mer_Polygon

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

Transform a Polygon from Longitudes/Latitudes to Mercator fractions

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

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