[OSM-talk-fr] OSM-Matrix

François Van Der Biest francois.vanderbiest at camptocamp.com
Jeu 8 Juil 21:58:54 UTC 2010


2010/7/8 Etienne Chové <chove at crans.org>

> Le 07/07/2010 23:06, Vincent Pottier a écrit :
>
>> Tu as essayé avec le bouton "permalien" ?
>>>
>> Ben justement le format n'est pas LatLon :
>>
>> http://www.qualitystreetmap.org/osmqa/?map_x=672608.34682047&map_y=5982821.2193476&map_zoom=13&...&lang=fr
>>
>
> C'est quoi comme coordonnées d'ailleurs ça ? On doit bien pouvoir le
> transformer en lat/lon.
>

En effet, c'est du epsg:900913 (aka web spherical mercator) ... OpenLayers
se debrouille très bien avec ça.
Ex: en faisant ll.transform(new OpenLayers.Projection(EPSG:4326), new
OpenLayers.Projection(EPSG:900913)) ... ou ll est un objet de type
OpenLayers.LonLat, on convertit une position depuis wgs84 vers mercator
sph.

Pour les curieux, les formules se trouvent là dedans :
http://svn.openlayers.org/trunk/openlayers/lib/OpenLayers/Layer/SphericalMercator.js

F.
-------------- section suivante --------------
Une pièce jointe HTML a été nettoyée...
URL: <http://lists.openstreetmap.org/pipermail/talk-fr/attachments/20100708/db788e83/attachment.htm>


Plus d'informations sur la liste de diffusion Talk-fr