pyguymer3.geo.ll2en

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

Transform from Longitudes/Latitudes to Eastings/Northings

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

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