transformations_of_crs_values module

Created on Wed Feb 21 10:40:53 2018

@author: jpelda

transformations_of_crs_values.crs_length_to_meter(linestring, crs='WGS84')[source]

Transforms crs_length into meters.

linestring: shapely.geometry.LineString

length: float [m]

transformations_of_crs_values.transform_area(geom, crs_from='EPSG:4326')[source]

Transforms area into are based on crs.

geom: list
List contains geometric objects.
crs_from: str
coord system of geom
crs_into: str
coord system defining the unit of return
area: [floats] [crs based]
EPSG:3035 returns area [m]
transformations_of_crs_values.transform_coords(geo, from_coord='epsg:3035', into_coord='epsg:4326')[source]

Transforms coordinates from given to requested coordinate system.

Parameters:
  • geo – [[x]], x is either Polygon, LineString, Point or (f,f)*i)
  • from_coord – str, coordinate system given
  • into_coord – str, coordinate system requested
Returns:

type(geo) transformed to into_coord

transformations_of_crs_values.transform_length(length, crs_from='EPSG:32633', crs_into='EPSG:4326')[source]
Transforms length into length based on crs.
It is a little bit imprecise. For better results use method crs_length_to_meter.

length: float [meter]

crs_from: str
coord system of length
crs_into: str
coord system in which length shall be converted

length: float [crs based]