Menu

How to make custom wms map source of "Second Military Survey (1810 - 1869)"

Stewecord
2025-01-26
2025-06-11
1 2 > >> (Page 1 of 2)
  • Laurent Grenet

    Laurent Grenet - 2025-01-27

    Sorry, Nicolas, but your map is not positioned at the right place on earth....
    Attached the same in WMS, correctly positioned.

     
  • Nicolas PAOUR

    Nicolas PAOUR - 2025-01-28

    oops

     
  • Stewecord

    Stewecord - 2025-02-06

    Grenet: fantastic, many thanks !!!

     
  • Laurent Grenet

    Laurent Grenet - 2025-02-16

    I'm not sure to understand what this map is supposed to show (to be honest, I'm sure to DO NOT understand...), but the WMS service you mention delivers 2 layers, respectively named "0" and "1"
    and attached the bsh allowing to show these two layers.

    If this correspond to what you are waiting for, I would be be really interested if you can explain what it is supposed to be ;-)

     

    Last edit: Laurent Grenet 2025-02-16
  • Laurent Grenet

    Laurent Grenet - 2025-02-17

    The map displayed her is a multi-layer map, with one layer that is what I provide you just above, one is a hillshade layer, and the 3rd is a vector tile map. So, not possible to get it for Mobac.

    The hillshade layer is in Jpeg format, so without transparency, and is necessarily the "bottom" layer. It can also be used "above" another background, defining transparency in the multilayer mapsource, but results are not very good.

    And moreover, what I have discovered is that the ags.geology.sk, despite the fact it is in png, is NOT transparent. So to have it above a background in a multilayer map won't provide very good result....

    What I can suggest you is to create a multilayer map in mobac, with a background coming from another source (eg. OSM, OpenTopoMap, or any other map), and ABOVE to map of old mines.
    OpenTopomap already includes hillshading, as well as OpenStreetMap.ch

    The multilayer map is defined with a xml file, whose syntax is like this

    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <customMultiLayerMapSource>
       <name>Name of the multilayer map</name>
       <tileType>jpg</tileType>
       <backgroundColor>#ffffff</backgroundColor>
       <layersAlpha>1.0 1.0</layersAlpha>
       <layers>
           <mapSource>
               <name>Name of the background layer</name>
           </mapSource>
          <mapSource>
             <name>Name of the top layer</name>
           </mapSource>
       </layers>
    </customMultiLayerMapSource>
    

    The layersAlpha allow you to add some transparency to the different layers, but as already mentioned, it's not perfect. It's better to have a top layer that is "natively" transparent"...

    I attach you the bsh for the hillshading of your map, and an example of multilayer map with OSM at the background, and the ags.geology.sk.bsh above. Plus a triple layer map, OSM + HillShade + ags.geology.sk

     

    Last edit: Laurent Grenet 2025-02-17
  • Laurent Grenet

    Laurent Grenet - 2025-02-18

    Good news ! I just saw it was feasible to get the ags.geology.sk in transparent mode !
    It becomes then possible to have a good quality two layers map, with a background and ags.geology.sk above.
    This is done adding a supplementary parameter "TRANSPARENT=true" in the URL.
    I found its existence when looking carefully at what is done with the URL you provided to me : https://www.arcgis.com/apps/mapviewer/index.html?layers=32d9139c5b634ffba7f332fd725f594a
    This Website do not get ags.geology.sk data tile per tile, but rather more globally, with only one "big" tile that covers all the displayed map (and to do so, the URL is completely different from the one to get tile per tile), but this "big Tile" URL has this parameter (Transparent=true).
    So I did the test to add it in the WMS Tile download URL... and it works !

    About hillshade on the other hand, this transparency is not feasible (there are no parameters at all, and moreover tiles are Jpeg, that do not allow transparency).
    But a solution is to have a background that includes natively the hillshading. It's the case (among others) of the .CH version of OSM Mapnik, or OpenTopoMap

    Here attached my previous files updated.
    I add to them OSM.ch, and OpenTopoMap, plus multilayer with ags.geology.sk based on these two maps as background.

     

    Last edit: Laurent Grenet 2025-02-18
  • Stewecord

    Stewecord - 2025-02-18

    thats fantastic, many thanks!!! I made custom multi layer map source with freemap and old mines

     
  • Laurent Grenet

    Laurent Grenet - 2025-04-02

    Hi,
    I'm not sure this is what you were looking for, but these are the three layers described in the "GetCapabilities" you provide the URL.
    As far as I have seen, the "layer=2" provides data only at zoom level >= 14 (and empty tiles below)

     
  • Stewecord

    Stewecord - 2025-05-17
     
    • Laurent Grenet

      Laurent Grenet - 2025-06-05

      Hi,

      where does your "Getcapabilities" URL come from ?

      I ask the question because I tried to build a .bsh (and also a .xml) file based on values returned by this GetCapabilties, but if it "technically" works (ie. do not generate "syntax" error), each required tile returns a HTPP404 error "Not found". That means that the URL itself is "understood" by the server, but not connected to any actual data.

      Is there a web site in which we can "see" and browse the corresponding map ?

       

      Last edit: Laurent Grenet 2025-06-05
  • Stewecord

    Stewecord - 2025-06-05

    thanks for respond, it can be seen here: https://mapy.tuzvo.sk/hofm/

    Am interested in: Ortofoto 1950 CB - selection of map version on top right corner

     

    Last edit: Stewecord 2025-06-05
    • Laurent Grenet

      Laurent Grenet - 2025-06-05

      I just have had a look on this website.
      What I can see is that map displayed is get from a tile server, with 256x256 tiles, each tile being identified by three parameters, analog to zoom level, and X and Y coordinates.

      BUT the coordinate system is completely different from the one used in Mobac.
      In particular, in Google system (used by Mobac), for each zoom level, there are 2^^z lines and 2^^z columns, numbered from 0 to 2^^z -1
      This is clearly NOT at all the case of the coordinate system used by this tile server, ad I've not been able to understand how it works.
      But clearly, there cannot be a "simple" (and linear) transformation between coordinates on this server and coordinates in Mobac's system.
      As a result, I'm afraid it is not possible to set up a Mobac mapsource file for the map delivered by the tile server used by this Web site to display its maps.

      So, I repeat my initial question : where does your "Getcapabilities" URL come from ?
      If I had more information about that, maybe I could understand better what is described in the getcapabilities xml file (definitely not sure, but I could at least try....)

       
  • Laurent Grenet

    Laurent Grenet - 2025-06-06

    Digging a little bit more in the details, I discovered that the mapsource I created didn't return HTTP404 everywhere as I thought, but actually returns valid data in a very small zone around the town of Trencin.
    I don't know why it is so limited in area ? Is there any mean to get the same in other places ? No idea about that, nor how to do !

    But I nevertheless attach you the file in case it's already interesting for you....
    It's in xml format, but it wouldn't change anything to convert it to .bsh

     

    Last edit: Laurent Grenet 2025-06-06
  • Stewecord

    Stewecord - 2025-06-07

    thanks, through the web, map is working for all Slovakia, are they changing url for other towns?

     
  • Laurent Grenet

    Laurent Grenet - 2025-06-07

    On the Web (https://mapy.tuzvo.sk/hofm/) the URL (and the server behind) is completely different and (as already explained) definitely not usable for Mobac.
    The file I generated is using the URL (and the server) as decribed in the getcapabilities.xml file you published, and with this getcapabilities, there is no other possible URL associated.

    This mean that this Getcapabilities is not relative to entire slovakia, but only to some limited "demonstration" server.

    So I repeat (a 3rd time) my initial question : where and how did you find your Getcapabilities ?
    If I know, it could be (even if not sure) a starting point for me to find the Getcapabilties for a server providing more global data.

    In the current situation (ie. with he current Getcapabilities), it's (unfortunately for you) not possible to do more....

     

    Last edit: Laurent Grenet 2025-06-07
  • Laurent Grenet

    Laurent Grenet - 2025-06-07

    Yes, it's clear that this site is for Tencin only. One sign among others, the username of the guy who manages it : tencin_admin....

    Nevertheless I browsed this site, trying to find some link to a similar but more general site.
    Unfortunately, I've not been able to find anything.

    Sorry for you, but I'm afraid I won't be able to go further...

     
  • Laurent Grenet

    Laurent Grenet - 2025-06-07

    I do not precisely understand what you did when you write "opened map through built-in web browser" ? I guess it's the built-in browser of fiddle, but which map ? The one behind https://mapy.tuzvo.sk/hofm/ ?

    Anyway, among the URL you detected, the fist one (WMS Getcapabilities) is the one supposed to be the most interesting (it should give us the key to access the map in WMS),.... but unable to open it : give an error "Secure Connection Failed"....

    PS : maybe due to the shutdown you mention ? I'll do a new test next monday...

     

    Last edit: Laurent Grenet 2025-06-07
  • Stewecord

    Stewecord - 2025-06-09

    Yes - built-in browser on Fiddler - and yes, I opened the map https://mapy.tuzvo.sk/hofm/ , I will try today evening

     
1 2 > >> (Page 1 of 2)

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.