Select to view content in your preferred language

determine area of polygon in "EPSG:3857"

3507
11
Jump to solution
05-11-2020 08:27 AM
artzaifman
Regular Contributor

I downloaded the US states shapefile from census.gov and imported "Texas" as follows:

geom = geometry.Geometry.from_shapely( us_states_.geometry[11], spatial_reference={"wkid": 3857} ) geom.area

956858520477.5554

geom = geomeUsing arcpy method "get_area" gave different answer:

geom.get_area("GEODESIC", units="SQUAREMETERS")

692662873864.4374

Main question is following:  is it possible to have "geom.area" return value  = "geom.get_area" return value?

Thank you!

0 Kudos
11 Replies
JoshuaBixby
MVP Esteemed Contributor

You seem to be getting the answer you are interested in using Geometry.get_area, so why not just use that?

0 Kudos
artzaifman
Regular Contributor

Only reason is "arcpy" is Windows and my development environment is Mac.  I'm running "parallels" so that I can access both simultaneously.

0 Kudos