This is the layer code that creates the raster:
LatLonPoint lr = itsProjection.getLowerRight();
LatLonPoint ul = itsProjection.getUpperLeft();
//the lr and ul values are not the same in an application as with web // start
omRaster = new OMScalingRaster2(ul.getLatitude(),
ul.getLongitude(), lr.getLatitude(), lr.getLongitude(),
image.image);
omRaster.generate(itsProjection);
You could also have a look at the application at our testsite:
http://labba.smhi.se/seatrack/
log in as user 'openmap' with password 'openmap'
Attached a document with pics of the app started as application or via web start.
//
David
-----Ursprungligt meddelande-----
Från: Don Dietrick [mailto:dietrick_at_bbn.com]
Skickat: den 8 september 2004 14:02
Till: Marklund David
Kopia: openmap-users_at_bbn.com
Ämne: Re: [OpenMap Users] projection.getUpperLeft vs Java Web Start
Hi David,
Can you give more details? I've not seen this.
- Don
On Sep 7, 2004, at 3:57 AM, Marklund David wrote:
> Hi All,
>
> I have a problem deploying a omScalingRaster with Java Web Start.
>
> When creating the raster I use projection.getUpperLeft() and
> projection.getLowerRight().
>
> These return different values running the application via web start or
> as a plain application. This means that the layer containing the
> raster looks different based on deployment strategy !
>
>
>
> Anyone seen a behaviour like this ?
>
>
>
> //
>
> David
>
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Don Dietrick, dietrick_at_bbn.com
BBN Technologies, Cambridge, MA
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
--
[To unsubscribe to this list send an email to "majdart_at_bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Wed Sep 08 2004 - 15:00:12 EDT