How to transform Geometry object to another coordinate system?

1596
5
Jump to solution
01-16-2017 09:31 PM
TieshengWu
Occasional Contributor

Hi all,

Is it possible to transform a Geometry object  with a spatialreference to another coordinate system directly? I know i can store the geometry object to featrueclass and use project_management tool to do that, but  that's too trivial .

0 Kudos
1 Solution

Accepted Solutions
NeilAyres
MVP Alum

Use the geometry method projectAs

like :

geom2 = geom1.projectAs(newSr) # newSr is a spatial reference object

View solution in original post

5 Replies
NeilAyres
MVP Alum

Use the geometry method projectAs

like :

geom2 = geom1.projectAs(newSr) # newSr is a spatial reference object
TieshengWu
Occasional Contributor

Thank you Ayres. That's what I need.

0 Kudos
FC_Basson
MVP Regular Contributor

Use the projectAs method as described here: Geometry—Help | ArcGIS for Desktop 

TieshengWu
Occasional Contributor

Yes it is. Thank you Basson.

0 Kudos
RandyBurton
MVP Alum

Additional code examples for project as in this thread.