MCPcopy Create free account
hub / github.com/OSGeo/PROJ / project_geoms

Function project_geoms

docs/plot/plot.py:146–150  ·  view source on GitHub ↗

Projects array of geometries.

(geoms, proj_string)

Source from the content-addressed store, hash-verified

144
145
146def project_geoms(geoms, proj_string):
147 """Projects array of geometries."""
148 in_coords = shapely.get_coordinates(geoms)
149 pj_coords = project(in_coords, proj_string=proj_string)
150 return shapely.set_coordinates(geoms.copy(), pj_coords)
151
152
153def meridian(longitude, lat_min, lat_max):

Callers 1

plotprojFunction · 0.85

Calls 1

projectFunction · 0.85

Tested by

no test coverage detected