Skip to content

Instantly share code, notes, and snippets.

View vishalmishra14's full-sized avatar

vishal mishra vishalmishra14

View GitHub Profile
@vishalmishra14
vishalmishra14 / projected_area.py
Created April 29, 2018 17:44 — forked from robinkraft/projected_area.py
get the area in square meters of a polygon using shapely and pyproj
import pyproj
from shapely.geometry import shape
from shapely.ops import transform
geom = {'type': 'Polygon',
'coordinates': [[[-122., 37.], [-125., 37.],
[-125., 38.], [-122., 38.],
[-122., 37.]]]}
s = shape(geom)