AW: [OpenLayers-Users] Problems with WMS tiles

Arnd Wippermann arnd.wippermann at web.de
Sun Dec 18 16:20:31 EST 2011


Hi,

Perhaps you have not set the right map options.

EPSG:4326

map = new OpenLayers.Map('map',
        { maxExtent: new OpenLayers.Bounds(-180,-90,180,90), //!!!
          numZoomLevels: 16,
          maxResolution: 1.40625, //!!!
          units: 'dd',
          projection: new OpenLayers.Projection("EPSG:4326"),
          displayProjection: new OpenLayers.Projection("EPSG:4326")
        });
        
EPSG:31467
        
map = new OpenLayers.Map('map',
        { maxExtent: new OpenLayers.Bounds(2646200,5087700,4656200,6285700),
//!!!
          numZoomLevels: 16,
          maxResolution: 2000, //!!!
          units: 'm',
          projection: new OpenLayers.Projection("EPSG:31467"),
          displayProjection: new OpenLayers.Projection("EPSG:4326") //only
supported with proj4js
        });
        

EPSG:4326
http://gis.ibbeck.de/OLClient/OLClient.asp?WMC=data/WMC/ogc_dop200_oa_4326.w
mc.xml 

EPSG:31467
http://gis.ibbeck.de/OLClient/OLClient.asp?WMC=data/WMC/ogc_dop200_oa_31467.
wmc.xml

Arnd

-----Ursprüngliche Nachricht-----
Von: Rudolf Merkel [mailto:rudolf_merkel at onlinehome.de] 
Gesendet: Samstag, 17. Dezember 2011 16:43
An: Arnd Wippermann
Cc: users at openlayers.org
Betreff: Re: [OpenLayers-Users] Problems with WMS tiles

Hi Arnd,

thx for your tipp but I already tried different EPSG settings but none
worked. Also commenting all osm related stuff did not help. But since I want
to have both layers selectable in the end: Isn't there a way to have both?
Just to be sure: The problem in the end lies in these lines or:
                       projection: new
OpenLayers.Projection("EPSG:4326"), 900913"),*/
                       displayProjection: new
OpenLayers.Projection("EPSG:4326")

Thanks
Rudolf
Am 17.12.2011 00:33, schrieb Arnd Wippermann:
> Hi,
>
> The service is only available for these projections
>
> EPSG:31467
> EPSG:31468
> EPSG:25832
> EPSG:25833
> EPSG:4258
> EPSG:4326
>
> You can't use it with OSM as Baselayer.
>
> Arnd
>
> -----Ursprüngliche Nachricht-----
> Von: openlayers-users-bounces at lists.osgeo.org
> [mailto:openlayers-users-bounces at lists.osgeo.org] Im Auftrag von 
> Rudolf Merkel
> Gesendet: Freitag, 16. Dezember 2011 18:11
> An: openlayers-users at lists.osgeo.org
> Betreff: [OpenLayers-Users] Problems with WMS tiles
>
> Hi,
>
> I was trying to use the bavarian geodaten wms server. But something is 
> going wrong. OSM tiles instead load nicely.
> I pasted a (almost) minimal example here:
> http://pastebin.com/bRAhz7eN
> I think the most crucial line is:
> var  wms = new OpenLayers.Layer.WMS("Bayern Luftbilder",
> "http://geodaten.bayern.de/ogc/ogc_dop200_oa.cgi?",{layers:
> "adv_dop200c", format: "image/jpeg"}); A documentation of the wms 
> server can be found here:
> https://geoportal.bayern.de/getcapabilities/CapabilitiesViewer
>
> And I'm interested in the Munich area.
>
> Thank you for your help
> Rudolf
> _______________________________________________
> Users mailing list
> Users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-users
>



More information about the Users mailing list