Page 4 of 6
					
				Re: Geocaching Basic
				Posted: Wed 28. Dec 2011, 20:00
				by mortara
				Welchen Aufruf benutzt du denn zum Konvertieren der Koordinaten?
Diesen hier:
Code: Select all
static result Osp::Locations::Coordinates::Convert	(	double 	coordinate,
StringCoordinateType 	outputType,
Osp::Base::String & 	strCoordinate 
)	
Was gibst du als outputType rein?
 
			
					
				Re: Geocaching Basic
				Posted: Wed 28. Dec 2011, 20:17
				by Catscratch
				Das sieht ungefähr so aus.
Code: Select all
// tmp ist ein string
// location->Latitude ist das was vom LocationProvider zurückbekomme
Osp::Locations::QualifiedCoordinates::Convert(location->Latitude, DD_MM, tmp);
// LocationProvider Auszug
void
GpsLocation::OnLocationUpdated(Location& location)
{
	if(location.GetQualifiedCoordinates()!=null)
	{
		const QualifiedCoordinates *q = location.GetQualifiedCoordinates();
		Latitude = q->GetLongitude();
...
 
			
					
				Re: Geocaching Basic
				Posted: Wed 28. Dec 2011, 20:27
				by mortara
				Dein ernst? 
 
Latitude = q->GetLongitude();
Edit:
Code: Select all
Convert(location->Latitude, DD_MM, tmp);
probier mal:
Code: Select all
Convert(location->Latitude, DD_MM_SS, tmp);
Wenn du willst können wir die App übers Testkit auf emeinm Wave 3 dann nochmal probieren ....
 
			
					
				Re: Geocaching Basic
				Posted: Wed 28. Dec 2011, 20:37
				by Catscratch
				Latitude = q->GetLongitude();
Ne. Hatte es nur modifiziert.
Im Code steht schon: Latitude = q->GetLatitude();
Ok, schick mir mal deine DeviceID.
 
			
					
				Re: Geocaching Basic
				Posted: Wed 28. Dec 2011, 20:40
				by mortara
				Das hätte aber eine 'gewisse' Abweichung gut erklärt! 
 
DeviceID kommt gleich ...
 
			
					
				Re: Geocaching Basic
				Posted: Wed 28. Dec 2011, 20:47
				by Catscratch
				Mir fällt auf...DD_MM_SS ist doch aber ein anderes Koordinatenformat, oder?
DD_MM ist doch das Geocaching übliche. Sprich XX° XX.XXX
DD_MM_SS ist doch: XX° XX' XX.X
Oder wie wird das bei Samsung gehandhabt?
			 
			
					
				Re: Geocaching Basic
				Posted: Wed 28. Dec 2011, 20:49
				by mortara
				bei DD_MM werden die Sekunden halt als Bruchteil der Minuten dargestellt, aber eigentlich sollte die gleiche Position bei raus kommen. Nur hast du bei DD_MM_SS halt ein paar mehr Stellen hinter dem Komma, sprich du kannst die Sekunden (und damit die Position) genauer darstellen.
			 
			
					
				Re: Geocaching Basic
				Posted: Wed 28. Dec 2011, 20:56
				by Catscratch
				Aber mit DD_MM bin ich doch schon bis auf 5m genau afaik. Also wozu noch DD_MM_SS?
Edit: Laut 
http://goo.gl/VwdoY" onclick="window.open(this.href);return false; sollte es egal sein, was ich nehme. (zumindest gleich genau)
Nebenbei, ich bekomm beim Kompilieren:
"cannot find -IFOsp"
Hast du da ne Idee?
 
			
					
				Re: Geocaching Basic
				Posted: Wed 28. Dec 2011, 21:03
				by mortara
				Du hast bei DD_MM aber nur 3 Stellen hinter dem Komma für die Sekunden, müsste man mal ausrechnen, wie genau man die Position wirklich darstellen kann damit. Bei DD_MM_SS hast du für die Sekunden 2 Stellen vor dem Komma, und drei dahinter glaub ich. Dürfte also genauer sein.
			 
			
					
				Re: Geocaching Basic
				Posted: Wed 28. Dec 2011, 21:06
				by mortara
				ok, sehe gerade, in der Theorie sollte die dritte Stelle hinter dem Komma bei DD_MM keine wirkliche auswirkung haben. Vielleicht stimmt etwas mit Samsungs umrechnungsroutine nicht?