Utilise tu l'option -s EPSG:ton_numero_epsg_du_fichier_original dans
gdal2tile.py 

La comande que j'utilise pour la photo de Tours :
gdal2tiles.py -r near -s EPSG:27562 -z 15 Ortho_08.ecw tile/


Le vendredi 10 décembre 2010 à 23:39 +0100, jean navarro a écrit : 
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> bonjour
> 
> j'ai obtenu une orthophoto de ma commune (avec les droits pour
> l'utilisation pour un site web communal)
> 
> c'est un fichier .ecw en lambert II centre.
> j'utilise la commande "gdal2tiles.py nom_fichier.ecw" qui me produit des
> dalles au format png et un fichier openlayers.html...
> 
> dans un navigateur, je vois bien l'orthophoto qui peut être superposée à
> une carte google... mais cette orthophoto apparait décalé d'environ 40m
> vers l'est !!
> 
> dans le fichier html il y a :
>   projection: new OpenLayers.Projection("EPSG:900913"),
>   displayProjection: new OpenLayers.Projection("EPSG:4326"),
> 
> 
> besoin d'un peu d'aide pour trouver l'origine du pb :
>       -manque une ou des options sur la commande gdal2tiles ?
>       -un pb d'origine de la carte mal définie ?
> 
> cordialement
> jean navarro
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.10 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
> 
> iEYEARECAAYFAk0CrB0ACgkQirIRKX59UEn+kwCgpcGqSIafIKlo9HUc6znRGaGM
> K6YAn1RA8SHUkM7mWKCCUX9N6dpTuuz0
> =YgAW
> -----END PGP SIGNATURE-----
> 
> _______________________________________________
> Talk-fr mailing list
> Talk-fr@openstreetmap.org
> http://lists.openstreetmap.org/listinfo/talk-fr



_______________________________________________
Talk-fr mailing list
Talk-fr@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk-fr

Répondre à