Menu

#211 cannot add WMS map

closed
r_x
Map source (6)
5
2014-08-05
2012-05-09
No

Hello,

I tried to add a custom WMS map,
URL: "http://opengis.unibuc.ro:8080/geoserver/ows?service=wms&version=1.1.1&request=GetCapabilities"

When starting MOBAC there is an error when parsing the xml file "The reference to entity version must end with the ';' delimiter"
Probably this is related to <version> section and word "version" in URL.
If I remove everything in URL after the ? mark then there is no error but map is not loading.</version>

Can we do something about this?
This map is the most detailed topo map for Romania and many would use it.

Thank you very much for the wonderful app MOBAC!
Catalin, Romania

Discussion

  • r_x

    r_x - 2012-05-09

    The ampersand '&' is a special character in XML files. You can not directly use it. Encode it as & or wrap it inside a <![CDATA[ ]]> element:

    <url><![CDATA[http://opengis.unibuc.ro:8080/geoserver/ows?service=wms&version=1.1.1&request=GetCapabilities]]></url>

    But even by doing so your WMS map source will not work because you are using the wrong URL. MOBAC is not a WMS browser - it can not handle the GetCapabilities response. You have to capture the real tile urls and set the MOBAC url accordingly.

     
  • r_x

    r_x - 2012-05-10

    Well, EPSG:31700 is used by default but the GetCapabilities list uncovers that EPSG:4326 is also supported.

     
  • Catalin Strava

    Catalin Strava - 2012-05-11

    The wms map source xml is not working.
    Please take a look at it.
    For pan&zoom, this is a Romania map.
    Thank you

    working url:
    http://opengis.unibuc.ro/geoserver/wms?SERVICE=WMS&VERSION=1.1.1
    &REQUEST=GetMap&LAYERS=topo25k&SRS=EPSG:31700&FORMAT=image/png
    &BBOX=677486.981,679763.617,689099.512,691376.148&WIDTH=512&HEIGHT=512

    xml file:

    <customwmsmapsource>
    <name>RO25K WMS</name>
    <minzoom>0</minzoom>
    <maxzoom>16</maxzoom>
    <tiletype>PNG</tiletype>
    <version>1.1.1</version>
    <layers>topo25k</layers>
    <url>http://opengis.unibuc.ro/geoserver/wms?</url>
    <coordinatesystem>EPSG:31700</coordinatesystem>
    <aditionalparameters></aditionalparameters>
    <backgroundcolor>#000000</backgroundcolor>
    </customwmsmapsource>

     
  • Catalin Strava

    Catalin Strava - 2012-05-11
     
  • r_x

    r_x - 2012-05-11

    MOBAc requires tiles of size 256x256. 512x512 tiles are not supported.

     
  • Catalin Strava

    Catalin Strava - 2012-05-11

    256x256 tile url is also working
    http://opengis.unibuc.ro/geoserver/wms?SERVICE=WMS&VERSION=1.1.1
    &REQUEST=GetMap&LAYERS=topo25k&SRS=EPSG:31700&FORMAT=image/png
    &BBOX=677486.981,679763.617,689099.512,691376.148&WIDTH=256&HEIGHT=256

    thanks

     

Log in to post a comment.

MongoDB Logo MongoDB