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 
italie / italy

 
Post new topic   Reply to topic    TrekBuddy Forum Index -> Français
View previous topic :: View next topic  
Author Message
tonton



Joined: 08 Jan 2012
Posts: 23

PostPosted: Mon Jan 04, 2016 12:36 pm    Post subject: italie / italy Reply with quote

bonjour, j utilise mobac maintenant pour faire mes atlas, ça marche nickel pour suisse espagne et france au 25000 eme.

je pourrais passer par snap to map pour les cartes italiennes, mais j'avoue que c'est un peu rebarbatif (et oui j ai pris gout a MOBAC).

La carto italienne est dispo sur : http://www.pcn.minambiente.it/viewer/
mais je ne sais pas creer le .bsh a mettre dans les mapsources de mobac.

Si quelqu un a la solution ce serait chouette.

merci pour la collaboration

A+
Back to top
View user's profile Send private message
guest



Joined: 08 Oct 2006
Posts: 4957

PostPosted: Wed May 30, 2018 4:58 pm    Post subject: Reply with quote

Bonjour,
Je cherche aussi, en attendant mieux, voici deux cartes qui passent partout
en fichier XML
Monde-4umaps2.xml
Code:

<?xml version="1.0" encoding="UTF-8"?>
<customMapSource>
   <name>Monde 4umaps2 - ZoomMax(15)-2018</name>
   <minZoom>5</minZoom>
   <maxZoom>15</maxZoom>
   <tileType>png</tileType>
   <url>https://www.4umaps.com/{$z}/{$x}/{$y}.png</url>
   <tileUpdate>None</tileUpdate>
   <backgroundColor>#000000</backgroundColor>
   <ignoreErrors>false</ignoreErrors>
   <serverParts>a b c</serverParts>
</customMapSource>

et Monde-Kompass-Rando-2018.xml
Code:

<?xml version="1.0" encoding="UTF-8"?>
<customMapSource>
<name>Monde, cartes de randonnées Kompass - Z(16)-2018</name>
<minZoom>2</minZoom>
<maxZoom>16</maxZoom>
<tileType>JPG</tileType>
<url><![CDATA[http://ec3.cdn.ecmaps.de/WmsGateway.ashx.jpg?Experience=kompass&MapStyle=KOMPASS%20Touristik&TileX={$x}&TileY={$y}&ZoomLevel={$z}]]></url>
<ignoreErrors>true</ignoreErrors>
<backgroundColor>#000000</backgroundColor>
</customMapSource>

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



Joined: 08 Oct 2006
Posts: 4957

PostPosted: Tue Jun 26, 2018 8:19 am    Post subject: Reply with quote

Du fil d'à côté... Un BSH multi-échelles, avec la couche 250.000 nettement plus récente que les autres :
Code:
name = "Italie IGM";
String Format = "image%2Fpng";
tileType = "png";
minZoom = 11 ;
maxZoom = 16 ;


static import java.lang.Math.*;
String getTileUrl( int Zoom, int X, int Y ) {
if (Zoom <13) { return "http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/WMS_v1.3/raster/de_agostini.map&service=WMS&request=GetMap&transparent=true&format="+Format+"&version=1.1.1&layers=CB.DEAGOSTINI&crs=EPSG%3A3857&srs=EPSG%3A3857&styles=&width=256&height=256&bbox="+mercatorTileEdges(X,Y,Zoom);
         }
else { if (Zoom <15) { return "http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/WMS_v1.3/raster/IGM_100000.map&service=WMS&request=GetMap&transparent=true&format="+Format+"&version=1.1.1&layers=MB.IGM100000&crs=EPSG%3A3857&srs=EPSG%3A3857&styles=&width=256&height=256&bbox="+mercatorTileEdges(X,Y,Zoom);
               }
      else { return "http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/WMS_v1.3/raster/IGM_25000.map&service=WMS&request=GetMap&transparent=true&format="+Format+"&version=1.1.1&layers=CB.IGM25000&crs=EPSG%3A3857&srs=EPSG%3A3857&styles=&width=256&height=256&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","http://www.pcn.minambiente.it/viewer/");
}
Back to top
View user's profile Send private message Visit poster's website
loogies



Joined: 16 Apr 2019
Posts: 1

PostPosted: Tue Apr 16, 2019 6:18 am    Post subject: Reply with quote

Hello,

qqun a t'il reussi à sauvegarder les cartes italiennes ?
J'ai essaye le bsh trouve dans la file avec mobac mais il m'affiche 16384*16384 dalles
quelque soit la selection. Du coup comme la limite est 50000 impossible de sauvegarder.

Code:
name = "Italie IGM";
String Format = "image%2Fpng";
tileType = "png";
minZoom = 11 ;
maxZoom = 16 ;


static import java.lang.Math.*;
String getTileUrl( int Zoom, int X, int Y ) {
if (Zoom <13) { return "http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/WMS_v1.3/raster/de_agostini.map&service=WMS&request=GetMap&transparent=true&format="+Format+"&version=1.1.1&layers=CB.DEAGOSTINI&crs=EPSG%3A3857&srs=EPSG%3A3857&styles=&width=256&height=256&bbox="+mercatorTileEdges(X,Y,Zoom);
         }
else { if (Zoom <15) { return "http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/WMS_v1.3/raster/IGM_100000.map&service=WMS&request=GetMap&transparent=true&format="+Format+"&version=1.1.1&layers=MB.IGM100000&crs=EPSG%3A3857&srs=EPSG%3A3857&styles=&width=256&height=256&bbox="+mercatorTileEdges(X,Y,Zoom);
               }
      else { return "http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/WMS_v1.3/raster/IGM_25000.map&service=WMS&request=GetMap&transparent=true&format="+Format+"&version=1.1.1&layers=CB.IGM25000&crs=EPSG%3A3857&srs=EPSG%3A3857&styles=&width=256&height=256&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","http://www.pcn.minambiente.it/viewer/");
}
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    TrekBuddy Forum Index -> Français 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