I have a script, written in python, that does many calculations - but one set of calculations hinges on determining the area of a polygon that I read in, in GeoJSON format. I can convert this object to a shaply object (package), a WKT object, a dictionary, etc., none of allows me to directly determine the projected area. Converting to a shapely object allows me to know the GCS area, but shapely doesn't have tools for projecting objects. Is there a package or module to project this object in python, using the arguments I supply (the GCS it's in, the PCS I hope to project it to) so that I can determine the area?
-
Doing a quick search here using gis.stackexchange.com/questions/tagged/… seems to throw up several candidates: proj.4, pyproj and gdal - have you tried any of them?– PolyGeo ♦Commented Dec 17, 2015 at 4:49
-
I have not been able to get gdal to install, and am struggling with pyproj right now....but i may get it, so you can put this on hold if you feel its necessary.– traggatmotCommented Dec 17, 2015 at 4:55
-
@traggatmot the Shapely manual has a section on projecting objects: toblerity.org/shapely/manual.html#other-transformations.– sgilliesCommented Dec 20, 2015 at 20:05
-
@sgillies, hey! Great package! I indeed got it figured out (though the area calc isn't shown, I got it working): stackoverflow.com/q/34325030/1762492– traggatmotCommented Dec 20, 2015 at 20:08
-
This was a fine question @PolyGeo and I'm disputing your hold. The question is less general than the one at gis.stackexchange.com/questions/60196/… for sure.– sgilliesCommented Dec 20, 2015 at 20:10
|
Show 2 more comments