SV: SV: [OpenMap Users] projection.getUpperLeft vs Java Web Start

From: Marklund David <damak_at_wmdata.com>
Date: Thu, 9 Sep 2004 09:46:44 +0200

OK,
Now it works. I now call a init method on the layer in a componentShown(..) event handler of my frame that contains the app.

Thanks a lot.

David


-----Ursprungligt meddelande-----
Från: Don Dietrick [mailto:dietrick_at_bbn.com]
Skickat: den 8 september 2004 21:57
Till: Marklund David
Kopia: openmap-users_at_bbn.com
Ämne: Re: SV: [OpenMap Users] projection.getUpperLeft vs Java Web Start

So you are only creating the raster based on the coordinates of the
first projection you receive? If so, the size of the first window may
be different due to differences in layout/display initialization times.
  It doesn't look like the images are being scaled differently, it's
more that they are being clipped differently. I don't know what
OMScalingRaster2 does...

- Don

On Sep 8, 2004, at 2:58 PM, Marklund David wrote:

> 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
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
>
>
> <Started with java web start.doc>


=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
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 Thu Sep 09 2004 - 03:50:01 EDT

This archive was generated by hypermail 2.3.0 : Tue Mar 28 2017 - 23:25:06 EDT