Closed GoogleCodeExporter closed 9 years ago
Original comment by spyckere...@gmail.com
on 17 Dec 2009 at 3:49
Première solution : créer des tiles puis les ajouter :$
/*----------------------------------------------*/
/*------- Layers dans WorldWindInstalled -------*/
/*----------------------------------------------*/
File installLocation = null;
for (java.io.File f : WorldWind.getDataFileStore().getLocations())
{
if (WorldWind.getDataFileStore().isInstallLocation(f.getPath()))
{
installLocation = f;
break;
}
}
java.util.List<? extends DataDescriptor> dataDescriptors =
WorldWind.getDataFileStore().findDataDescriptors(installLocation.getPath());
for(DataDescriptor d : dataDescriptors){
TiledImageLayer layer = new BasicTiledImageLayer(d);
layer.setNetworkRetrievalEnabled(false);
layer.setValue("DataSourceDescriptor", d);
if (d.getName() != null)
layer.setName(d.getName());
this.toggleLayer(layer, false);
}
/*----------------------------------------------*/
Original comment by spyckere...@gmail.com
on 17 Dec 2009 at 4:35
il faut reprojeter les images :
gdalwarp -s_srs "+proj=lcc +lat_1=46.8 +lat_0=46.8 +lon_0=0 +k_0=0.99987742
+x_0=600000 +y_0=2200000 +a=6378249.2 +b=6356515 +towgs84=-168,-60,320,0,0,0,0
+pm=paris +units=m" -t_srs WGS84 source.tif dest.tif
Original comment by spyckere...@gmail.com
on 17 Dec 2009 at 8:06
Ajouté dans la 0.6 via un préprocessing (Global Mapper)
Inutile d'en faire plus pourl'instant vu que toutes les cartes françaises
nécessitent
une reprojection, autant faire le boulot en entier et générer un cache.
Original comment by spyckere...@gmail.com
on 3 Mar 2010 at 11:10
Original issue reported on code.google.com by
spyckere...@gmail.com
on 13 Dec 2009 at 9:09