AnsweredAssumed Answered

Incorrect parameter for geometry.project_as(spatial_reference)?

Question asked by jsolly on May 27, 2018
Latest reply on Jun 1, 2018 by JSolly-esristaff

I am trying to project a Geometry object, but every time I use the function, it returns `None`...What I am I doing wrong? I am trying to change the spatial reference from WGS84, 'wkid':4326, to Web Mercator, 'wkid':3857'.


I've tried

ESRI_GEOMETRY.project_as(spatial_reference={'wkid': 3857})


The documentation simply says:

spatial_referenceRequired SpatialReference. The new spatial reference. This can be a SpatialReference object or the coordinate system name.

What is the coordinate system name? Am I supposed to be putting in the words "Web Mercator" ? That seems wrong? I went ahead and made a spatial reference object and passed that in and it still returns "None"


SPATIAL REFERENCE = SpatialReference(iterable={"wkid":3857})



Any help would be appreciated!


See the API doc - > arcgis.geometry module — arcgis 1.4.1 documentation