Quantcast
Channel: DotSpatial Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 1128

Closed Issue: DotSpatial.Positioning NmeaSentences not parsed correctly. [421]

$
0
0
You may experience error in parsing the NmeaSentences generated by the NMEA emulator, I had to make the following changes to GpggaSentence.cs, GpggkSentence.cs, GpgllSentence.cs and GprmcSentence.cs

Change:

LatitudeHemisphere latitudeHemisphere =
words[3].Equals("N", StringComparison.Ordinal) ? LatitudeHemisphere.North : LatitudeHemisphere.South;



to:

LatitudeHemisphere latitudeHemisphere =
words[3].IndexOf("N", StringComparison.Ordinal)!=-1 ? LatitudeHemisphere.North : LatitudeHemisphere.South;



and

LongitudeHemisphere longitudeHemisphere =
words[5].Equals("E", StringComparison.Ordinal) ? LongitudeHemisphere.East : LongitudeHemisphere.West;



to

LongitudeHemisphere longitudeHemisphere =
words[5].IndexOf("E", StringComparison.Ordinal)!=-1 ? LongitudeHemisphere.East : LongitudeHemisphere.West;

Regards
Kobus
Comments: duplicate of issue 384

Viewing all articles
Browse latest Browse all 1128

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>