You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thrownewArgumentException("The coordinate should be in DMS format, i.e. DD°MM′SS.SSS″C",nameof(degreesMinutesSeconds));
158
+
}
159
+
160
+
if(!int.TryParse(parts[0],outintd))
161
+
{
162
+
thrownewArgumentException($"Could not parse degrees part, got {parts[0]}. The coordinate should be in DMS format, i.e. DD°MM′SS.SSS″C",nameof(degreesMinutesSeconds));
163
+
}
164
+
165
+
if(!int.TryParse(parts[1],outintm))
166
+
{
167
+
thrownewArgumentException($"Could not parse minutes part, got {parts[1]}. The coordinate should be in DMS format, i.e. DD°MM′SS.SSS″C",nameof(degreesMinutesSeconds));
168
+
}
169
+
170
+
if(!double.TryParse(parts[2],outdoubles))
171
+
{
172
+
thrownewArgumentException($"Could not parse seconds part, got {parts[2]}. The coordinate should be in DMS format, i.e. DD°MM′SS.SSS″C",nameof(degreesMinutesSeconds));
173
+
}
174
+
175
+
varcard=parts[3];
176
+
if(card.Length!=1)
177
+
{
178
+
thrownewArgumentException($"Could not parse cardinal part, got {parts[3]}. The coordinate should be in DMS format, i.e. DD°MM′SS.SSS″C",nameof(degreesMinutesSeconds));
0 commit comments