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 .
Use the geometry method projectAs
like :
geom2 <SPAN class="operator token">=</SPAN> geom1<SPAN class="punctuation token">.</SPAN>projectAs<SPAN class="punctuation token">(</SPAN>newSr<SPAN class="punctuation token">)</SPAN> <SPAN class="comment token"># newSr is a spatial reference object</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN></SPAN>
Additional code examples for project as in this thread.
Thank you Ayres. That's what I need.
Yes it is. Thank you Basson.
Use the projectAs method as described here: Geometry—Help | ArcGIS for Desktop
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.