pyguymer3.geo.mer2ll

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

Transform from Mercator fractions to Longitudes/Latitudes

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

Parameters:
  • shape1 (shapely.coords.CoordinateSequence, shapely.geometry.point.Point, shapely.geometry.multipoint.MultiPoint, shapely.geometry.polygon.LinearRing, shapely.geometry.linestring.LineString, shapely.geometry.multilinestring.MultiLineString, shapely.geometry.polygon.Polygon, shapely.geometry.multipolygon.MultiPolygon) – the shape

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

shape2 – the transformed shape

Return type:

shapely.coords.CoordinateSequence, shapely.geometry.point.Point, shapely.geometry.multipoint.MultiPoint, shapely.geometry.polygon.LinearRing, shapely.geometry.linestring.LineString, shapely.geometry.multilinestring.MultiLineString, shapely.geometry.polygon.Polygon, shapely.geometry.multipolygon.MultiPolygon

Notes

Copyright 2017 Thomas Guymer [1]

References