Unfortunately SourceForge dropps the E-Mail support for all project websites on June 26, 2017 (which includes this forum).

E-Mail is required for registration, password-reset and notifications - therefore after this date the creation of new accounts will no longer be possible.

Geoportail .Bsh or xml

For discussions, questions and problems using MOBAC
Posts: 1
Joined: 14 Oct 2016, 13:55

Geoportail .Bsh or xml

Postby Alin » 14 Oct 2016, 14:08


I'm french and my english is ...bad. So I will be concise, sorry.
An idea to edit a xml or bsh for this map in mobac :


I created a file in .bsh but not working.
Please help me, thanks for your answer!

=============== file.bsh

Code: Select all

name = "Geoportail";

tileType = "jpg";
tileSize = 256;
minZoom = 0;
maxZoom = 18;
tileUpdate = TileUpdate.IfModifiedSince;
backgroundColor = "#ffffff";
ignoreError = "True";

String Key;
String Referer;
String UserAgent;
String Service;
String Version;
String Request;
String layer;
String style;
String Format;

Key = "an7nvfzojv5wa96dsga5nk8w";


Referer = "https://www.geoportail.gouv.fr/carte/";

UserAgent = "Mozilla/5.0 (Windows NT 5.1; rv:31.0) Gecko/20100101 Firefox/31.0";

Service = "WMTS";
Version = "1.0.0";
Request = "GetTile";
style = "normal";
Format = "image%2Fjpeg";

String getTileUrl( int zoom, int x, int y ) {
return "http://wxs.ign.fr/"+ Key +"/geoportail/wmts?SERVICE="+ Service +"&VERSION="+ Version +"&REQUEST="+ Request +"&LAYER="+ Layer +"&STYLE="+ style +"&FORMAT="+ Format +"&tilematrixset=PM&TILEMATRIX=" + zoom + "&TILEROW=" + y + "&TILECOL=" + x + ".jpg";

void addHeaders( java.net.HttpURLConnection conn) {


===================================end file

Site Admin
Posts: 670
Joined: 25 Jun 2011, 14:00

Re: Geoportail .Bsh or xml

Postby r_x » 14 Oct 2016, 15:07

I assume that your problem is that the upper left corner is not the usual point (where the date-border crosses the north pole) and therefore everything is shifted. Hence you have to add/substract some offsets to your map.

At the moment to see your map you may have to move the visible area to a point north of Alaska (east of the date-border, south of the north pole).
There your map may be visible.
Please read the MOBAC FAQ and MOBAC README before posting.

Posts: 1
Joined: 25 Oct 2016, 00:15

Re: Geoportail .Bsh or xml

Postby gooleoka » 25 Oct 2016, 00:25

Try this (tested working):

Code: Select all

name = "Géoportail Carte";

tileType = "jpg";

String layer;
String format;
String key;

format = "image/jpeg";

minZoom = 6;
maxZoom = 16;

key = "an7nvfzojv5wa96dsga5nk8w";

String getTileUrl( int zoom, int x, int y ) {
return "http://wxs.ign.fr/" + key + "/geoportail/wmts?SERVICE=WMTS&VERSION=1.0.0&REQUEST=GetTile&LAYER=" + layer + "&STYLE=normal&FORMAT=" + format + "&TILEMATRIXSET=PM&TILEMATRIX=" + zoom + "&TILEROW=" + y + "&TILECOL=" + x;

How did you get url?
For me SmartSnif no more return readable information.

Return to “Mobile Atlas Creator (English)”

Who is online

Users browsing this forum: No registered users and 1 guest