|
From: Michael B. <mic...@gm...> - 2012-07-17 02:47:19
|
On 17 July 2012 00:59, George Taylor <geo...@ya...> wrote: > > Instead I am now using the following workaround: > I first render the shapefile with the correct projection using a GTRenderer. > Next I request the image from the WMS Server using a GetMapRequest which has > the correct projection set. Finally the WMS image can be drawn on top of the > rendered shapefile. > > The JMapFrame ignores the projection setting, when the individual layers are > requested. > Hello George, Thanks for the further report on this. I'm afraid that I don't have an idea for what is causing the problem at the moment. JMapFrame doesn't do any projection setting itself, it merely passes the bounds and crs to the MapViewport object, to be subsequently passed to the renderer. But your observations suggest that the order of events (bounds setting vs loading layers) affects the end result. If you have the chance to step through what is happening in a debugger and are able to identify the problem area(s) in the map pane or viewport code that would be helpful. Otherwise it will have to wait until I next have time for gt-swing work which I'm afraid will not be soon. Michael |