[OpenLayers-Dev] OL not suitable for raster layers?
bartvde at osgis.nl
bartvde at osgis.nl
Thu Apr 15 05:39:05 EDT 2010
I am able to "reproduce" your problem using:
When I compare the urls generated by OpenLayers and gvSIG, it shows that
OpenLayers uses square pixels (so the ratio of bbox and width and height
are equal), however gvSIG generates requests that puts Mapserver into non
square pixel mode (different ratio in x and y direction). What version of
Mapserver are you using? You might also want to check on the Mapserver
list since this does not seem an OpenLayers problem to me to be honest.
> Thanks for your quick response, Bart.
> I am not sure if I understand your questions right. The WMS product we
> are using is version 1.1.1 (generated by MapServer).
> Both layers are served under the following URL:
> As for you question nº1 - if you refer to the display - yes, the results
> are different (testing with DEMIS world map and our layers). If you
> refer to the request string - I haven't payed much attention to the
> strings but anyway, here are the strings from gvSIG:
> You may also wish to see the complete geoportal web page:
> Here, tiling of the raster layers is currently default (singleTile false).
> Viewing the test code I send a couple of weeks ago you can see both,
> tiled and untiled.
> The place tested with gvSIG is actually further east but provided us
> with pixels more suitable to query and compare.
> Let me know if you need more details.
> bartvde at osgis.nl escribió:
>> Hi Stefanie,
>> I am trying your test page from March, but I can't really see what's
>> wrong, probably because I don't know your dataset well.
>> A few questions:
>> 1) have you compared the URLs from gvSIG with OpenLayers singleTile
>> 2) which WMS product are you using?
>> Can you provide me with 2 urls, one from gvSIG which is correct, and one
>> generated by OpenLayers (singleTile) which is supposed to be wrong.
>> Best regards,
>>> Hi all,
>>> This might be the wrong moment and everybody seems to be busy with the
>>> new release candidate. But we need to come to a conclusion whether OL
>>> suits our needs or not
>>> I posted several messages (on 26.3. and 8.4.) reporting a layer
>>> displacement which seem to effect raster layers only. The pixel size of
>>> our raster maps is big and the displacement is obvious.
>>> Tests with another client software show that the maps are correctly
>>> displayed, so this must be a matter of OL.
>>> GetFeatureInfo is not effected (values of the expected pixel are
>>> returned although the visible pixel is not the right one).
>>> Configuring the layer as tiled or untiled (singleTile false or true)
>>> does have an effect: none of them is in the right place but both
>>> show different displacements.
>>> More information and test code in my message posted on 26.3.
>>> Regards and thanks for your opinions,
>>> Dev mailing list
>>> Dev at openlayers.org
More information about the Dev