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.

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   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
MOBAC xml mapsources with changing url ?

 
Post new topic   Reply to topic    TrekBuddy Forum Index -> Tools
View previous topic :: View next topic  
Author Message
guest



Joined: 08 Oct 2006
Posts: 4916

PostPosted: Fri Feb 01, 2013 2:59 pm    Post subject: MOBAC xml mapsources with changing url ? Reply with quote

First of all, congratulations for the creators and admin people of this site.
I am trying to configurate a custom map source with MOBAC, and I have problems with source url. It changes with different zoom.
For example, loading 14 zoom level, internal url is:
...raster/MTN50... (z/x/y parameters).
Loading 15 zoom level is:
...raster/MTN25...( z/x/y parameters).

How may I configurate xml to get it works?

Thank you.
Back to top
View user's profile Send private message Visit poster's website
bartho1



Joined: 08 Aug 2012
Posts: 154

PostPosted: Fri Feb 01, 2013 6:26 pm    Post subject: Reply with quote

Hello !
You must create a .xml for each zoom with a specific name (first, second, third). Precise the zoom for each.
Then, you create another .xml like this :

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<customMultiLayerMapSource>
<name>name of the total</name>
<tileType>PNG</tileType>
<layers>
<!--
Place as many custom map sources in here as you want.
The order you define here is the order the maps will be painted.
Therefore make sure all maps after the first use PNG and contain
transparent regions. Otherwise the map sources before will not be visible.
-->

<mapSource>
<name>First name</name>
</mapSource>
<mapSource>
<name>Second name</name>
</mapSource>
<mapSource>
<name>Third name</name>
</mapSource>
</layers>
</customMultiLayerMapSource>

If, PNG is not the good format, change !
All in MOBAC, in mapsources.
Then call "name of the total"
Back to top
View user's profile Send private message
guest



Joined: 08 Oct 2006
Posts: 4916

PostPosted: Sat Feb 02, 2013 12:34 am    Post subject: Reply with quote

Thank you for your early reply.
I have made CustomMultilayer maps and CustomWMSMultilayer maps (now it is possible on version 1.9.10) with other mapsources, but in this case, all layers are not transparent.
I have tried to make a xml for an individual zoom, but it doesn´t work neither.
Mapsource comes from:
http://sigpac.mapa.es/fega/visor/

In other mapsources, internal url doesn´t change (only x,y,z coordinates or serverparts), but not in this case.
Back to top
View user's profile Send private message Visit poster's website
bartho1



Joined: 08 Aug 2012
Posts: 154

PostPosted: Sat Feb 02, 2013 6:40 am    Post subject: Reply with quote

Hello !
For Spain, try this :
http://www.trekbuddy.net/forum/download.php?id=4808
Back to top
View user's profile Send private message
guest



Joined: 08 Oct 2006
Posts: 4916

PostPosted: Sat Feb 02, 2013 12:23 pm    Post subject: Reply with quote

Map source I am talking about is contained in a jar file inside the list (you can open it extracting with winrar) . I knew that. . Thank you.
I have been trying to make an xml file equivalent by myself ... but I think I´ll surrender soon...
Anyway, thank you for your kindness. :wink:
Back to top
View user's profile Send private message Visit poster's website
Trekmaster



Joined: 20 Apr 2013
Posts: 2

PostPosted: Sat Apr 20, 2013 1:23 pm    Post subject: XML advice Aero chart Reply with quote

Anybody capable to advice on the correct xml for :

http://carte.f-aero.fr/

I'm struggling to extract the correct xml code from a tile like:
http://carte.f-aero.fr/tilecache-2.11/tilecache.cgi?LAYERS=oms2012&FORMAT=image%2Fpng&TRANSPARENT=TRUE&REPROJECT=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&SRS=EPSG%3A900913&BBOX=224813.19035981,5797904.9300283,244381.06959809,5817472.8092665&WIDTH=256&HEIGHT=256
Back to top
View user's profile Send private message
guest



Joined: 08 Oct 2006
Posts: 4916

PostPosted: Wed May 01, 2013 5:50 pm    Post subject: Reply with quote

Hi!

[quote="guest"]
http://sigpac.mapa.es/fega/visor/
[/quote]

Please find attached a MOBAC BeanShell script for the map above.

Simply copy the script into the "mapsources" directory, restart MOBAC and select the "Spain FEGA" source...

Give it a try and have fun!

Bye, Schlonz



SpainFega.zip
 Description:
MOBAC BeanShell script for http://sigpac.mapa.es/fega/visor/

Download
 Filename:  SpainFega.zip
 Filesize:  786 Bytes
 Downloaded:  76 Time(s)

Back to top
View user's profile Send private message Visit poster's website
guest



Joined: 08 Oct 2006
Posts: 4916

PostPosted: Sat Jun 08, 2013 8:42 pm    Post subject: Reply with quote

Thank you very much !!!! :lol: :lol: :lol:
It is just I was looking for!!
It is impossible to do using xml, and I didn´t know bsh files... R^ R^ R^
Back to top
View user's profile Send private message Visit poster's website
scissors



Joined: 02 Aug 2013
Posts: 3
Location: United Kingdom

PostPosted: Fri Aug 02, 2013 4:27 pm    Post subject: thanks for the bsh Reply with quote

I too would like to thank you for the bsh. I've been banging my head against a wall for days on this subject....

Again, thanks!
Back to top
View user's profile Send private message AIM Address
scissors



Joined: 02 Aug 2013
Posts: 3
Location: United Kingdom

PostPosted: Thu Jan 02, 2014 12:49 pm    Post subject: Reply with quote

Can someone confirm this is still working?

I suspect it's being blocked as when you zoom you briefly see the map then red crosses...
Back to top
View user's profile Send private message AIM Address
guest



Joined: 08 Oct 2006
Posts: 4916

PostPosted: Tue Apr 29, 2014 9:25 pm    Post subject: Reply with quote

It is not working anymore because the site changed its URL path to the map tiles.

Here is an updated version 2 which is working again :wink:

Bye, Schlonz



SpainFega_v2.zip
 Description:
Version 2 MOBAC BeanShell script for http://sigpac.mapa.es/fega/visor/

Download
 Filename:  SpainFega_v2.zip
 Filesize:  787 Bytes
 Downloaded:  58 Time(s)

Back to top
View user's profile Send private message Visit poster's website
scissors



Joined: 02 Aug 2013
Posts: 3
Location: United Kingdom

PostPosted: Mon May 25, 2015 7:31 pm    Post subject: v2 now defunct Reply with quote

My apologies for only visiting on rare occasions of need....

Is the v2 bsh defunct? I went to use it for the first time in over a year and it seems to be broken....
Back to top
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic    TrekBuddy Forum Index -> Tools All times are GMT
Page 1 of 1

 
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