Hi there. I'm trying to get the distance of two geometries by this api ArcGIS Pro 2.8 API Reference Guide - Distance Method—ArcGIS Pro.
But I found that I will get a result in meter from some .shp files. But when I use another .shp file, it seems to be kilometer...
I'm so confused about it. And I have searched API document, and found that I can set the LinerUnit if I use GeodesicDistance refers in ArcGIS Pro 2.9 API Reference Guide - GeodesicDistance(Geometry,Geometry,LinearUnit) Method—ArcGIS Pro.
But I have used 2.8 API, there's no this implement...
And I have tried to get the elevation unit format of the map, they're all meter in different .shp file.
So how can I get the unit type of a Geometry? Or can I change the distance result to meter directly?
Thanks a lot!