[OpenMap Users] OMScalingRaster continued

From: Marklund David <damak_at_wmdata.com>
Date: Fri, 10 Sep 2004 09:40:48 +0200

Hi all,
I have a layer with a OMScalingRaster.
The raster seems not to follow the other layers projection changes
accurately. I have a pixel in the layer that I can follow when zooming
and panning, and that pixel does not follow the other layers.


This is the code that creates the raster:


        LatLonPoint lr = itsProjection.getLowerRight();
        LatLonPoint ul = itsProjection.getUpperLeft();
        omRaster = new OMScalingRaster(ul.getLatitude(),
                ul.getLongitude(), lr.getLatitude(), lr.getLongitude(),



This is the projectionChanged method of the layer

public void projectionChanged(ProjectionEvent e) {
        itsProjection = e.getProjection();
        if ((e.getProjection() != null) && (omRaster != null)) {


Any ideas anyone ?


[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 Fri Sep 10 2004 - 03:44:05 EDT

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