Python API - geometry.get_length does not provide measure in appropriate units

194
0
09-01-2020 07:15 AM
MaazaMekuria
Occasional Contributor

I am using Python API 1.8, and think I am using the correct syntax.  But I am getting the same length for all units. 

I have a geometry with attributes like this

rtegeom = {'hasM': True, 'paths': [[[-17599876.3954, 2460589.6597, 0], [-17599891.4049, 2460615.1396, 0.0170000000071013], [-17599905.0064, 2460642.7833, 0.0347000000037951], [-17599914.0818, 2460664.8565, 0.0485000000044238], [-17599924.0028, 2460693.9899, 0.0662000000011176]]], 'sr': {'wkid': 102100, 'latestWkid': 3857}}

and if perform the following rtegeom.get_length(method='PLANAR', units='METERS') I get the same answer using rtegeom.get_length(method='PLANAR', units='MILES').

Any ideas why this is returning the same value?  The measure (third dimension) is in miles.

Tags (2)
0 Kudos
0 Replies