Bílý vrch
icon TrekBuddy
www.trekbuddy.net
Outdoor companion.
  • internal / bluetooth / simulator GPS
  • offline raster maps
  • smart GPX / raw NMEA logs
  • waypoints and simple navigation
  • custom views
  • MIDP and Symbian phones
  • Blackberry
  • Android
Visit wiki to see all features, guides and howtos. Project tracker - moved to github.
Trekbuddy github repository

Partners:    (Polish/Polski)(Polski) Compass mapy      (Polish/Polski)(Polski) Galileos mapy      (Polish/Polski)(Polski) CartoMedia      (Czech/Èesky)(Èesky) Eaglesoft trasy      (Polish/Polski)(Polski) ExpressMap     

 FAQFAQ   SearchSearch 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Mobile Atlas Creator
Goto page Previous  1, 2, 3 ... 34, 35, 36
 
Post new topic   Reply to topic    TrekBuddy Forum Index -> Česky-Slovensky
View previous topic :: View next topic  
Author Message
guest



Joined: 08 Oct 2006
Posts: 5090

PostPosted: Tue Jun 11, 2019 3:56 pm    Post subject: Reply with quote

fps wrote:
nebyl by novy mapovy podklad Kompass pro Mobile Atlas Creator (MOBAC)? stary prestal fungovat, predem moc diky

Sorry not to speak slovak! But might you look for this?
Code:

<?xml version="1.0" encoding="UTF-8"?>
<customMapSource>
<name>Kompass</name>
<minZoom>6</minZoom>
<maxZoom>16</maxZoom>
<tileType>JPG</tileType>

<url><![CDATA[http://ec{$serverpart}.cdn.ecmaps.de/WmsGateway.ashx.jpg?Experience=kompass&MapStyle=KOMPASS%20Touristik&TileX={$x}&TileY={$y}&ZoomLevel={$z}]]></url>
<serverParts>0 1 2 3</serverParts>

<ignoreErrors>true</ignoreErrors>
<backgroundColor>#00000000</backgroundColor>
</customMapSource>

The last zoom level (16) may or may not work depending on where you look.

Edit : and you might look at http://www.trekbuddy.net/forum/viewtopic.php?p=60227#60227 for SwissTopo.
Back to top
View user's profile Send private message Visit poster's website
fps



Joined: 16 Sep 2010
Posts: 13

PostPosted: Sat Apr 25, 2020 11:53 am    Post subject: Reply with quote

nejsou nekde nove mapove podklad kompass a mapy.cz pro Mobile Atlas Creator (MOBAC)? stare uz nejdou
Back to top
View user's profile Send private message
fps



Joined: 16 Sep 2010
Posts: 13

PostPosted: Sat Apr 25, 2020 3:34 pm    Post subject: Re: Vlastni podklady Reply with quote

guest wrote:
Quote:
Zjistit spravne URL na zobrazene mape v prohlizeci je to nejtezsi, vetsinou se to zobrazuje pres javu.Ja napr. k tomu pouzivam adblock-zobrazit blokovatelne objekty

V modernych prehliadacoch spravidla staci stlacit F12 a tam zapnut sledovanie siete.
(V IE, Chrome sa to vola Developer Tools, vo FF Firebug)

nedari se mi prijit na to, jak zjistit spravnou URL na zobrazene mape v prohlizeci pro soubor .xml, mohl by jste to nekdo prosim vice rozvest
Back to top
View user's profile Send private message
guest



Joined: 08 Oct 2006
Posts: 5090

PostPosted: Sun Apr 26, 2020 2:10 pm    Post subject: Reply with quote

fps wrote:
nejsou nekde nove mapove podklad kompass a mapy.cz pro Mobile Atlas Creator (MOBAC)? stare uz nejdou

Sorry to write english again.

There is a little parameter Experience=ecmaps to change in the Kompass maps, here is the XML :
Code:
<?xml version="1.0" encoding="UTF-8"?>
<customMapSource>
<name>Kompass ecmaps.de</name>
<minZoom>6</minZoom>
<maxZoom>16</maxZoom>
<tileType>JPG</tileType>
<url><![CDATA[http://ec{$serverpart}.cdn.ecmaps.de/WmsGateway.ashx.jpg?Experience=ecmaps&MapStyle=KOMPASS%20Touristik&TileX={$x}&TileY={$y}&ZoomLevel={$z}]]></url>
<serverParts>0 1 2 3</serverParts>
</customMapSource>


Mapy.cz OSM maps works OK with this XML :
Code:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<customMapSource>
<name>OSM mapy.cz Outdoor</name>
<minZoom>0</minZoom>
<maxZoom>18</maxZoom>
<tileType>PNG</tileType>
<tileUpdate>IfNoneMatch</tileUpdate>
<url>https://mapserver.mapy.cz/turist-m/{$z}-{$x}-{$y}</url>
</customMapSource>
Back to top
View user's profile Send private message Visit poster's website
fps



Joined: 16 Sep 2010
Posts: 13

PostPosted: Mon Apr 27, 2020 12:20 pm    Post subject: Reply with quote

- thank you very much, Kompass maps and Mapy.cz maps works
- could you advise me, how and where to find the correct and current URL for .xml?
Back to top
View user's profile Send private message
guest



Joined: 08 Oct 2006
Posts: 5090

PostPosted: Fri May 01, 2020 9:00 am    Post subject: Reply with quote

fps wrote:
- could you advise me, how and where to find the correct and current URL for .xml?

Open the mapping site in your browser, wait until it is fully loaded, and open the console (F12 in Firefox) ; in the console go to the network tab and filter to watch only images.
Then move or zoom in the map, and watch on the console which images are loaded, to isolate one of interest.

If you select one, you may observe at the right if there are any cookies associated (which could be a significant complication in MOBAC if they are not fixed), and the parameters where you have to guess the name of the layer involved and the x (may be called x, or tilecol, or be just a number somewhere in the URL), y and z parameters.

You have to bear in mid the order of magnitude of these numbers : zoom=10 to 14 for a road map, 14 to 16 for a detailed topo map, 20 for an ultra-detailed orthophoto where you can count people... and that X and Y double each when you zoom in one zoom level.
If you get bogus X and Y parameters, it may be that the site doesn't use the classic Google (EPSG:3857) scheme, which is bad news for Mobac.
See https://en.wikipedia.org/wiki/Tiled_web_map or https://www.maptiler.com/google-maps-coordinates-tile-bounds-projection/ (or https://wiki.openstreetmap.org/wiki/QuadTiles or https://docs.microsoft.com/en-us/bingmaps/articles/bing-maps-tile-system ) to get a better grasp of how the coordinates work.

Opening one image in a new tab allows to play with the parameters and see which are accepted by the server, and what the server responds. Sometimes you will get an error because the new tab doesn't give any referer, or cookie...

So there definitely is some guesswork involved, but the puzzle can often be solved with a bit of method.
Back to top
View user's profile Send private message Visit poster's website
xmickey



Joined: 19 Apr 2015
Posts: 1

PostPosted: Sun Jun 07, 2020 4:53 am    Post subject: Reply with quote

How to make profile with this forest paths? Sad

Code:
http://geoportal.uhul.cz/wms_oprl/service.svc/get?styles=Default&REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&LAYERS=Cesty_odvozni&FORMAT=image/png&TRANSPARENT=TRUE&SRS=EPSG:4326&BBOX=17.964126,49.641331,17.974305,49.647941&WIDTH=394&HEIGHT=256
Back to top
View user's profile Send private message
guest



Joined: 08 Oct 2006
Posts: 5090

PostPosted: Tue Jun 09, 2020 10:55 am    Post subject: Reply with quote

WMS is simpler, see https://mobac.sourceforge.io/wiki/index.php/Custom_XML_Map_Sources#Custom_WMS_map_sources

Code:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<customWmsMapSource>
  <name>Cesty odvozni</name>

  <minZoom>14</minZoom>
  <maxZoom>18</maxZoom>
 
  <!-- Tile format (PNG, JPG or GIF) -->
  <tileType>PNG</tileType>

  <!-- WMS version -->
  <version>1.1.1</version>
 
  <!-- WMS layer parameter -->
  <layers>Cesty_odvozni</layers>

  <!-- WMS base URL -->
  <url>http://geoportal.uhul.cz/wms_oprl/service.svc/get?</url>

  <!-- Currently only EPSG:4326 is supported -->
  <coordinatesystem>EPSG:4326</coordinatesystem>

  <!--
    Optional: Additional parameters appended to the WMS url.
    Because of ampersand characters it is recommended to wrap the data inside a <![CDATA[ ]]> element.
    Otherwise you have to encode every '&' character as &amp;
  -->
   
  <aditionalparameters><![CDATA[&styles=Default]]></aditionalparameters>

  <backgroundColor>#000000</backgroundColor>

</customWmsMapSource>


However, it seems the server projects the tiles wrongly...
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    TrekBuddy Forum Index -> Česky-Slovensky All times are GMT
Goto page Previous  1, 2, 3 ... 34, 35, 36
Page 36 of 36

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group