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 + SOURCES CARTES DIVERSES
Goto page Previous  1, 2, 3 ... 45, 46, 47, 48  Next
 
Post new topic   Reply to topic    TrekBuddy Forum Index -> Français
View previous topic :: View next topic  
Author Message
guest



Joined: 08 Oct 2006
Posts: 4843

PostPosted: Tue Jun 19, 2018 8:16 pm    Post subject: mise a jour geoportail Reply with quote

script résolu
carte ign avec balisage club vosgien

name = "Cartes IGN topographique";
String Layer = "GEOGRAPHICALGRIDSYSTEMS.MAPS.SCAN25TOUR.CV";
String Format = "image%2Fjpeg";
tileType = "jpg";
minZoom = 7;
maxZoom = 18;

String getTileUrl( int Zoom, int X, int Y ) {
return "https://wxs.ign.fr/an7nvfzojv5wa96dsga5nk8w/geoportail/wmts?layer="+Layer+"&style=normal&tilematrixset=PM&Service=WMTS&Request=GetTile&Version=1.0.0&Format="+Format+"&TileMatrix="+Zoom+"&TileCol="+X+"&TileRow="+Y;
}
void addHeaders( java.net.HttpURLConnection conn) {
conn.addRequestProperty("User-Agent","Mozilla/5.0 Gecko/20100101 Firefox/49.0");
}
Back to top
View user's profile Send private message Visit poster's website
guest



Joined: 08 Oct 2006
Posts: 4843

PostPosted: Thu Jun 21, 2018 9:52 am    Post subject: Reply with quote

J'aurais juste mis 6 et 16 comme limites de zoom, mais sinon j'allais le dire.
Back to top
View user's profile Send private message Visit poster's website
guest



Joined: 08 Oct 2006
Posts: 4843

PostPosted: Thu Jun 21, 2018 10:12 am    Post subject: Reply with quote

Pour compléter, une autre source peut-être un peu plus à jour pour les balisages du Club Vosgien, en provenance de InfoGeo68 :
Code:

name = "InfoGeo68 Sentiers du Club Vosgien";
tileType = "png";

minZoom = 6 ;
maxZoom = 19 ;

static import java.lang.Math.*;
String getTileUrl( int Zoom, int X, int Y ) {
return "https://infogeo68.fr/ArcGIS/rest/services/CG68_TOURISME_LOISIRS_SPORTIFS/MapServer/export?format=png8&layers=show%3A35,40,45,50,55,60,65,70&transparent=true&f=image&bboxSR=3857&imageSR=3857&dpi=96&size=256%2C256&bbox="+mercatorTileEdges(X,Y,Zoom);
}

numTiles(Z){
return abs(pow(2,Z));
}
mercatorToLat(mercatorY){
return(toDegrees(atan(sinh(mercatorY))));
}
latEdges1(Y,Z){
n = numTiles(Z);
unit = 1 / n;
relY1 = Y * unit;
lat1 = mercatorToLat(PI * (1 - 2 * relY1));
return lat1;
}
latEdges2(Y,Z){
n = numTiles(Z);
unit = 1 / n;
relY1 = Y * unit;
relY2 = relY1 + unit;
lat2 = mercatorToLat(PI * (1 - 2 * relY2));
return lat2;
}
lonEdges1(X,Z){
n = numTiles(Z);
unit = 360 / n;
lon1 = -180 + X * unit;
return lon1;
}
lonEdges2(X,Z){
n = numTiles(Z);
unit = 360 / n;
lon1 = -180 + X * unit;
lon2 = lon1 + unit;
return lon2;
}
tileEdges(X,Y,Z){
return (latEdges2(Y,Z)+","+lonEdges1(X,Z)+","+latEdges1(Y,Z)+","+lonEdges2(X,Z));
}
lon2mercator(l){
return (l * 20037508.34 / 180);
}
lat2mercator(l){
r = toRadians(l);
lat = log((1+sin(r)) / (1-sin(r)));
return (lat * 20037508.34 / 2 / PI);
}
mercatorTileEdges(X,Y,Z){
return (lon2mercator(lonEdges1(X,Z))+","+lat2mercator(latEdges2(Y,Z))+","+lon2mercator(lonEdges2(X,Z))+","+lat2mercator(latEdges1(Y,Z)));
}


void addHeaders( java.net.HttpURLConnection conn) {
conn.addRequestProperty("Referer","https://infogeo68.fr/Infogeo68/site/arxMapFlex.aspx");
}

(edit : la carte montre désormais la forme des balises)

A superposer à la carte du géoportail avec :
Code:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<customMultiLayerMapSource>
   <name>IGN Scan et Club Vosgien</name>
   <tileType>png</tileType>
   <backgroundColor>#000000</backgroundColor>
   <layersAlpha>1.0 0.8</layersAlpha>
   <layers>
        <mapSource>
           <name>IGN Scan25</name>
       </mapSource>
       <mapSource>
           <name>InfoGeo68 Sentiers du Club Vosgien</name>
       </mapSource>
   </layers>
</customMultiLayerMapSource>

Où IGN Scan25 est le nom complet dans MOBAC de votre couche Scan25 (ou Ortho, ou ce que vous voulez mettre dessous).


Last edited by guest on Thu Jul 26, 2018 2:04 pm; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website
guest



Joined: 08 Oct 2006
Posts: 4843

PostPosted: Sat Jun 23, 2018 8:11 pm    Post subject: Estompage Reply with quote

Merci beaucoup gooleoka :)

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



Joined: 08 Oct 2006
Posts: 4843

PostPosted: Wed Jun 27, 2018 7:32 pm    Post subject: Reply with quote

Bonjour,

Script avec balisage CV Zoom <17 + carte TOPO Zoom =17 et Photos pour cartes >17.

Peut remplacer la carte ci-dessus du:

Posted: Tue Jun 19, 2018 9:16 pm Post subject: mise a jour geoportail

=====================================

Code:

name = "TOPO-CV-2";

tileType = "png";
tileSize = 256;
minZoom = 1;
maxZoom = 19;
tileUpdate = TileUpdate.IfModifiedSince;
backgroundColor = "#ffffff";
ignoreError = "True";

String getTileUrl( int zoom, int x, int y ) {
 if (zoom < 17) {
String Key;
String Referer;
String UserAgent;

Key = "an7nvfzojv5wa96dsga5nk8w";

Referer = "http://m.geoportail.fr/index.html";

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

    return "http://wxs.ign.fr/"+ Key + "/wmts?SERVICE=WMTS&VERSION=1.0.0&REQUEST=GetTile&LAYER=GEOGRAPHICALGRIDSYSTEMS.MAPS.SCAN25TOUR.CV&STYLE=normal&FORMAT=image/jpeg&TILEMATRIXSET=PM&TILEMATRIX=" + zoom + "&TILEROW=" + y + "&TILECOL=" + x + ".jpg";
}


 if (zoom < 18) {
return "http://wxs.ign.fr/an7nvfzojv5wa96dsga5nk8w/geoportail/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=GEOGRAPHICALGRIDSYSTEMS.MAPS&STYLE=normal&FORMAT=image%2Fjpeg&TILEMATRIXSET=PM&TILEMATRIX=" + zoom + "&TILEROW=" + y + "&TILECOL=" + x + ".jpg";
   
}

else {
return "http://wxs.ign.fr/an7nvfzojv5wa96dsga5nk8w/geoportail/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=ORTHOIMAGERY.ORTHOPHOTOS&STYLE=normal&FORMAT=image%2Fjpeg&TILEMATRIXSET=PM&TILEMATRIX=" + zoom + "&TILEROW=" + y + "&TILECOL=" + x + ".jpg";
   
}


}
void addHeaders( java.net.HttpURLConnection conn) {
conn.addRequestProperty("Referer","http://m.geoportail.fr/");
conn.addRequestProperty("User-Agent","Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2049.0 Safari/537.36");
}
Back to top
View user's profile Send private message Visit poster's website
guest



Joined: 08 Oct 2006
Posts: 4843

PostPosted: Thu Jul 05, 2018 7:22 pm    Post subject: Reply with quote

Bonjour,
Cela fait quelques années que je n'avais pas voulu récupérer de nouvelle carte ign pour me faire un parcours VTT et à l'ouverture de MOBAC que des croix rouge :(

J'utilise MOBAC 1.9.16
profil name="IGN Geoportail maps" outputFormat= (supprimé : modération)

Avez vous le code de IGN Geoportail maps qui resoudrait ce probleme ?

Merci de votre aide
Back to top
View user's profile Send private message Visit poster's website
guest



Joined: 08 Oct 2006
Posts: 4843

PostPosted: Mon Jul 09, 2018 10:44 am    Post subject: Reply with quote

C'est là :
Code:

name = "IGN Geoportail maps";

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

String getTileUrl( int zoom, int x, int y ) {
 
 if (zoom < 17) {
return "http://wxs.ign.fr/an7nvfzojv5wa96dsga5nk8w/geoportail/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=GEOGRAPHICALGRIDSYSTEMS.MAPS&STYLE=normal&FORMAT=image%2Fjpeg&TILEMATRIXSET=PM&TILEMATRIX=" + zoom + "&TILEROW=" + y + "&TILECOL=" + x + ".jpg";
}

else {
return "http://wxs.ign.fr/an7nvfzojv5wa96dsga5nk8w/geoportail/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=ORTHOIMAGERY.ORTHOPHOTOS&STYLE=normal&FORMAT=image%2Fjpeg&TILEMATRIXSET=PM&TILEMATRIX=" + zoom + "&TILEROW=" + y + "&TILECOL=" + x + ".jpg";
}

}

void addHeaders( java.net.HttpURLConnection conn) {
conn.addRequestProperty("Referer","http://m.geoportail.fr/");
conn.addRequestProperty("User-Agent","Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2049.0 Safari/537.36");
}
Back to top
View user's profile Send private message Visit poster's website
guest



Joined: 08 Oct 2006
Posts: 4843

PostPosted: Wed Jul 11, 2018 7:24 pm    Post subject: source allemagne Reply with quote

bonjour qui aurait une source ou un script .bsh pour des cartes type ign sur le sud allemagne
merci d'avance
Back to top
View user's profile Send private message Visit poster's website
guest



Joined: 08 Oct 2006
Posts: 4843

PostPosted: Fri Jul 13, 2018 1:57 pm    Post subject: Reply with quote

Les cartes Kompass, code en XML :
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>



Sinon, comme partout, OpenTopoMaps, BSH cette fois :
Code:
name = "OSM OpenTopoMaps";

   tileType = "png";

   tileSize = 256;
   minZoom = 6;   
   maxZoom = 17; 
   tileUpdate = TileUpdate.None;

    String getTileUrl( int zoom, int x, int y ) {
      "https://tile.opentopomap.org/" + zoom + "/" + x + "/" + y + ".png";   
   }

   void addHeaders( java.net.HttpURLConnection conn) {
      conn.addRequestProperty("Referer","https://opentopomap.org/");
   }


Après, il peut y avoir des géoportails propres à certains länder avec des cartes topo, si tu as un endroit précis en tête.
Back to top
View user's profile Send private message Visit poster's website
guest



Joined: 08 Oct 2006
Posts: 4843

PostPosted: Sat Jul 14, 2018 7:28 am    Post subject: Reply with quote

A noter une alternative intéressante à OpenTopomaps sur Mapy.cz :
Code:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<customMapSource>
<name>Outdoor mapy.cz</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
mimichris



Joined: 02 Feb 2011
Posts: 12

PostPosted: Sun Jul 15, 2018 8:02 am    Post subject: Re: mise a jour geoportail Reply with quote

guest wrote:
script résolu
carte ign avec balisage club vosgien

name = "Cartes IGN topographique";
String Layer = "GEOGRAPHICALGRIDSYSTEMS.MAPS.SCAN25TOUR.CV";
String Format = "image%2Fjpeg";
tileType = "jpg";
minZoom = 7;
maxZoom = 18;

String getTileUrl( int Zoom, int X, int Y ) {
return "https://wxs.ign.fr/an7nvfzojv5wa96dsga5nk8w/geoportail/wmts?layer="+Layer+"&style=normal&tilematrixset=PM&Service=WMTS&Request=GetTile&Version=1.0.0&Format="+Format+"&TileMatrix="+Zoom+"&TileCol="+X+"&TileRow="+Y;
}
void addHeaders( java.net.HttpURLConnection conn) {
conn.addRequestProperty("User-Agent","Mozilla/5.0 Gecko/20100101 Firefox/49.0");
}


Merci beaucoup, je cherchais justement cette carte, je vais en Alsace (Bas-Rhin) en Aout.
Back to top
View user's profile Send private message
guest



Joined: 08 Oct 2006
Posts: 4843

PostPosted: Sun Jul 15, 2018 12:36 pm    Post subject: Reply with quote

Bonjour,

Quote:
Merci beaucoup, je cherchais justement cette carte, je vais en Alsace (Bas-Rhin) en Aout.


En voici une plus précise format .bsh Very Happy

===============================

Code:

name = "TOPO-CV-PHOTOS";

tileType = "png";
tileSize = 256;
minZoom = 1;
maxZoom = 19;
tileUpdate = TileUpdate.IfModifiedSince;
backgroundColor = "#ffffff";
ignoreError = "True";

String getTileUrl( int zoom, int x, int y ) {
 if (zoom < 18) {
String Key;
String Referer;
String UserAgent;

Key = "an7nvfzojv5wa96dsga5nk8w";

Referer = "http://m.geoportail.fr/index.html";

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

    return "http://wxs.ign.fr/"+ Key + "/wmts?SERVICE=WMTS&VERSION=1.0.0&REQUEST=GetTile&LAYER=GEOGRAPHICALGRIDSYSTEMS.MAPSCV&STYLE=normal&FORMAT=image/jpeg&TILEMATRIXSET=PM&TILEMATRIX=" + zoom + "&TILEROW=" + y + "&TILECOL=" + x + ".jpg";
}

else {
return "http://wxs.ign.fr/an7nvfzojv5wa96dsga5nk8w/geoportail/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=ORTHOIMAGERY.ORTHOPHOTOS&STYLE=normal&FORMAT=image%2Fjpeg&TILEMATRIXSET=PM&TILEMATRIX=" + zoom + "&TILEROW=" + y + "&TILECOL=" + x + ".jpg";
   
}
}
void addHeaders( java.net.HttpURLConnection conn) {
conn.addRequestProperty("Referer","http://m.geoportail.fr/");
conn.addRequestProperty("User-Agent","Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2049.0 Safari/537.36");
}
 
Back to top
View user's profile Send private message Visit poster's website
mimichris



Joined: 02 Feb 2011
Posts: 12

PostPosted: Sun Jul 22, 2018 11:13 am    Post subject: Reply with quote

guest wrote:
Bonjour,

Quote:
Merci beaucoup, je cherchais justement cette carte, je vais en Alsace (Bas-Rhin) en Aout.


En voici une plus précise format .bsh Very Happy

===============================

Code:

name = "TOPO-CV-PHOTOS";

tileType = "png";
tileSize = 256;
minZoom = 1;
maxZoom = 19;
tileUpdate = TileUpdate.IfModifiedSince;
backgroundColor = "#ffffff";
ignoreError = "True";

String getTileUrl( int zoom, int x, int y ) {
 if (zoom < 18) {
String Key;
String Referer;
String UserAgent;

Key = "an7nvfzojv5wa96dsga5nk8w";

Referer = "http://m.geoportail.fr/index.html";

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

    return "http://wxs.ign.fr/"+ Key + "/wmts?SERVICE=WMTS&VERSION=1.0.0&REQUEST=GetTile&LAYER=GEOGRAPHICALGRIDSYSTEMS.MAPSCV&STYLE=normal&FORMAT=image/jpeg&TILEMATRIXSET=PM&TILEMATRIX=" + zoom + "&TILEROW=" + y + "&TILECOL=" + x + ".jpg";
}

else {
return "http://wxs.ign.fr/an7nvfzojv5wa96dsga5nk8w/geoportail/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=ORTHOIMAGERY.ORTHOPHOTOS&STYLE=normal&FORMAT=image%2Fjpeg&TILEMATRIXSET=PM&TILEMATRIX=" + zoom + "&TILEROW=" + y + "&TILECOL=" + x + ".jpg";
   
}
}
void addHeaders( java.net.HttpURLConnection conn) {
conn.addRequestProperty("Referer","http://m.geoportail.fr/");
conn.addRequestProperty("User-Agent","Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2049.0 Safari/537.36");
}
 


Pourquoi plus précise, je la possède déjà et elle n'est pas mieux que celle du Club Vosgien, de plus elle n'a pas les balises du CV.
Back to top
View user's profile Send private message
guest



Joined: 08 Oct 2006
Posts: 4843

PostPosted: Tue Jul 24, 2018 2:38 pm    Post subject: Reply with quote

Bonjour,

Elle n'est pas plus précise Confused mais elle comprend les balises du CV. Very Happy
Back to top
View user's profile Send private message Visit poster's website
guest



Joined: 08 Oct 2006
Posts: 4843

PostPosted: Wed Jul 25, 2018 2:23 pm    Post subject: Reply with quote

En fait les deux cartes sont les mêmes aux zooms 15 et 16, en-dessous, celle MAPSCV affiche les autres niveaux de cartes (Scan100, Scan250, Scan1000...) sans balisage CV inutile à ces échelles, alors que celle MAPS.SCAN25TOUR.CV affiche le Scan25 dézoomé ce qui est bien moins lisible.

Si vous voulez une alternative, c'est là http://www.trekbuddy.net/forum/viewtopic.php?p=59858#59858 avec une source différente (CD68 si je ne m'abuse).
Edit, une modification à la carte transparente pour faire apparaître la forme des balises sur la carte, ça manquait :
Code:
name = "InfoGeo68 Sentiers du Club Vosgien";
tileType = "png";

minZoom = 6 ;
maxZoom = 19 ;

static import java.lang.Math.*;
String getTileUrl( int Zoom, int X, int Y ) {
return "https://infogeo68.fr/ArcGIS/rest/services/CG68_TOURISME_LOISIRS_SPORTIFS/MapServer/export?format=png8&layers=show%3A35,40,45,50,55,60,65,70&transparent=true&f=image&bboxSR=3857&imageSR=3857&dpi=96&size=256%2C256&bbox="+mercatorTileEdges(X,Y,Zoom);
}

numTiles(Z){
return abs(pow(2,Z));
}
mercatorToLat(mercatorY){
return(toDegrees(atan(sinh(mercatorY))));
}
latEdges1(Y,Z){
n = numTiles(Z);
unit = 1 / n;
relY1 = Y * unit;
lat1 = mercatorToLat(PI * (1 - 2 * relY1));
return lat1;
}
latEdges2(Y,Z){
n = numTiles(Z);
unit = 1 / n;
relY1 = Y * unit;
relY2 = relY1 + unit;
lat2 = mercatorToLat(PI * (1 - 2 * relY2));
return lat2;
}
lonEdges1(X,Z){
n = numTiles(Z);
unit = 360 / n;
lon1 = -180 + X * unit;
return lon1;
}
lonEdges2(X,Z){
n = numTiles(Z);
unit = 360 / n;
lon1 = -180 + X * unit;
lon2 = lon1 + unit;
return lon2;
}
tileEdges(X,Y,Z){
return (latEdges2(Y,Z)+","+lonEdges1(X,Z)+","+latEdges1(Y,Z)+","+lonEdges2(X,Z));
}
lon2mercator(l){
return (l * 20037508.34 / 180);
}
lat2mercator(l){
r = toRadians(l);
lat = log((1+sin(r)) / (1-sin(r)));
return (lat * 20037508.34 / 2 / PI);
}
mercatorTileEdges(X,Y,Z){
return (lon2mercator(lonEdges1(X,Z))+","+lat2mercator(latEdges2(Y,Z))+","+lon2mercator(lonEdges2(X,Z))+","+lat2mercator(latEdges1(Y,Z)));
}


void addHeaders( java.net.HttpURLConnection conn) {
conn.addRequestProperty("Referer","https://infogeo68.fr/Infogeo68/site/arxMapFlex.aspx");
}
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 -> Français All times are GMT
Goto page Previous  1, 2, 3 ... 45, 46, 47, 48  Next
Page 46 of 48

 
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