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.
openmap.Projection=mercator
This is the code that creates the raster:
---8<---
LatLonPoint lr = itsProjection.getLowerRight();
LatLonPoint ul = itsProjection.getUpperLeft();
omRaster = new OMScalingRaster(ul.getLatitude(),
ul.getLongitude(), lr.getLatitude(), lr.getLongitude(),
image.image);
omRaster.generate(itsProjection);
--->8---
This is the projectionChanged method of the layer
---8<---
public void projectionChanged(ProjectionEvent e) {
itsProjection = e.getProjection();
if ((e.getProjection() != null) && (omRaster != null)) {
omRaster.regenerate(e.getProjection());
}
repaint();
fireStatusUpdate(LayerStatusEvent.STATUS_UPDATE);
}
--->8---
Any ideas anyone ?
//David
--
[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