@@ -91,7 +91,6 @@ def toMGRS(self, latitude, longitude, inDegrees=True, MGRSPrecision=5):
91
91
c = ctypes .string_at (p )
92
92
return c .decode ('utf-8' )
93
93
94
-
95
94
def toLatLon (self , MGRS , inDegrees = True ):
96
95
plat = ctypes .pointer (ctypes .c_double ())
97
96
plon = ctypes .pointer (ctypes .c_double ())
@@ -118,7 +117,6 @@ def MGRSToUTM(self, MGRS, encoding='utf-8'):
118
117
else :
119
118
mgrs = MGRS
120
119
121
-
122
120
mgrs = ctypes .string_at (mgrs )
123
121
zone = ctypes .pointer (ctypes .c_long ())
124
122
hemisphere = ctypes .pointer (ctypes .c_char ())
@@ -128,10 +126,9 @@ def MGRSToUTM(self, MGRS, encoding='utf-8'):
128
126
core .rt .Convert_MGRS_To_UTM (mgrs , zone , hemisphere , easting , northing )
129
127
130
128
return (zone .contents .value ,
131
- hemisphere .contents .value .decode ('utf-8' ),
132
- easting .contents .value ,
133
- northing .contents .value )
134
-
129
+ hemisphere .contents .value .decode ('utf-8' ),
130
+ easting .contents .value ,
131
+ northing .contents .value )
135
132
136
133
def UTMToMGRS (self , zone , hemisphere , easting , northing , MGRSPrecision = 5 ):
137
134
mgrs = ctypes .create_string_buffer (80 )
0 commit comments