Hello Deborah,
You will need to first convert from Double to double, then you can use the
converted values with DoublePoint(). Here is an example:
/**
* Displays a point at the latitutde and longitude values specified.
*
* @param argMap the mapJ object which will be displayed
* @param argXCoord the x coordinate value specified (longitude)
* @param argYCoord the y coordinate value specified (latitude)
*/
private void displayLatLon(MapJ argMap, Double argXCoord, Double
argYCoord)
{
// convert from Double to double.
double dXCoord = argXCoord.doubleValue();
double dYCoord = argYCoord.doubleValue();
// new point
DoublePoint dp = new DoublePoint(dXCoord, dYCoord);
etc....
}
[Lombard, Kristi]
-----Original Message-----
From: BARUCH Deborah FTRD/DMR/LON
[mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 27, 2002 6:37 AM
To: '[EMAIL PROTECTED]'
Subject: MI-L GPS Coordinate System
Hi all,
I am trying to add a GPS position (W000.25.30,9,N38.29.42,1) on a map using
MapXtreme for java. I wanted to use
dPoint = new DoublePoint(Latitude,Longitude);
but DoublePoint() requires Latitude and Longitude to be of type Double. Has
anyone faced this kind of issue ? Does anyone know how to add a GPS position
on a map ?
Thanks
Kind Regards
Deborah