If you want to convert lattitude longitude value to degree minutes format then code is here String locLat, locLng locLat = Double. ToString(location.getLatitude()) locLng = Double. ToString(location.getLongitude()) String locLatTodeg = DoubleToDeg(locLat) String locLngTodeg = DoubleToDeg(locLng) private String DoubleToDeg(String locLng) { // TODO Auto-generated method stub String retStringLoc = null; try { String firString = locLng.
Replace(". ", ";"); String firLocArr = firString. Split(";"); Float deg = new Float("." + firLocArr1); Float Cnvtddeg = deg * 60; String secString = new Float(Cnvtddeg).toString().
Replace(". ", ";"); String secLocArr = secString. Split(";"); Float min = new Float(".
" + secLocArr1); Float Cnvtdmin = min * 60; String tirString = new Float(Cnvtdmin).toString(). Replace(".", ";"); String tirLocArr = tirString. Split(";"); retStringLoc = firLocArr0 + "°" + secLocArr0 + "'" + tirLocArr0 + "''"; } catch (Exception e) { // Log.
I("Exception", e.toString()); } return retStringLoc; } I think this is helpful for u.
If you want to convert lattitude longitude value to degree minutes format then code is here... String locLat, locLng; locLat = Double. ToString(location.getLatitude()); locLng = Double. ToString(location.getLongitude()); String locLatTodeg = DoubleToDeg(locLat); String locLngTodeg = DoubleToDeg(locLng); private String DoubleToDeg(String locLng) { // TODO Auto-generated method stub String retStringLoc = null; try { String firString = locLng.
Replace(". ", ";"); String firLocArr = firString. Split(";"); Float deg = new Float("." + firLocArr1); Float Cnvtddeg = deg * 60; String secString = new Float(Cnvtddeg).toString().
Replace(". ", ";"); String secLocArr = secString. Split(";"); Float min = new Float(".
" + secLocArr1); Float Cnvtdmin = min * 60; String tirString = new Float(Cnvtdmin).toString(). Replace(".", ";"); String tirLocArr = tirString. Split(";"); retStringLoc = firLocArr0 + "°" + secLocArr0 + "'" + tirLocArr0 + "''"; } catch (Exception e) { // Log.
I("Exception", e.toString()); } return retStringLoc; } I think this is helpful for u....
When I pass this string for this method it gives an exception. String str = "32°18'23.1''N, 122°36'52.5''W"; The exception message is For input string: ".1'' N, 122° 36' 52" – JibW Aug 4 at 12:33.
I'm sorry for misunderstanded the question. `doit("36°7'59''N"); public void doit(String lat) { String str = lat; String temp = null; String dtemp = null; String pass = new String4; //temp = str. Split("\"|\"\'"); temp = str.
Split("\"|\'" ); System.out. Println("temptemptemptemp "+temp); dtemp = str. Replace("\"", "°"); System.out.
Println("dtempdtempdtemp "+dtemp); System.out. Println("Formated DCM---------- : "+dtemp); String temp1 = temp0. Split("°"); System.out.
Println("\ndegree temp: "+temp10); System.out. Println("\nminutes temp: "+temp11); pass0 = temp10; pass1 = temp11; pass2 = temp1; dump(pass); } public void dump(String s) { for (int I = 0 ; I Println("\ndegree : "+s0); System.out. Println("\nminutes : "+s1); System.out.
Println("\nsecond : "+s2); String deg = s0 ; int ndeg = Integer. ParseInt(deg); String min = s1 ; double nmin = Double. ParseDouble(min); String sec = s2 ; double nsec = Double.
ParseDouble(sec); double decimaldms = (ndeg+(nmin/60)+(nsec/3600)); System.out. Println("\nfinaldecimal : "+decimaldms); } } ` I think this is help for u.
And the webservice has a connection with a DMS (from Hummingbird). I want to update or insert data via the DMS-API. But some attributes were not recognized by the APE.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.