[OSM-dev-fr] Problème de projection entre Postgis et Qgis

Frédéric Rodrigo fred.rodrigo at gmail.com
Ven 8 Aou 19:21:49 UTC 2014


Le 08/08/2014 21:08, V de Chateau-Thierry a écrit :
>> Avec postgis :
>> select st_astext(st_transform(st_setsrid(ST_MakePoint(252071,49853),
>> 31370), 4326));
>> POINT(5.78258949757128 49.7510346906123)
>>
>> Avec qgis :
>> (252071, 49853) => (5,785167517 49,75148809)
>>
>
> Pour ton point, j'obtiens
> POINT(5.78516751996673 49.7514880757953) avec un postgis 2.1 / postgres 9.3
> donc ce que tu as avec QGis.
>
> Sinon j'ai pris un point en plein Bruxelles, et j'obtiens les mêmes coordonnées
> avec mon PostGis et avec QGis 2.1 :
> select st_astext(st_transform(st_geomfromtext('POINT (4.35707 50.84541342)',4326),31370))
> => "POINT(149177.247235916 170556.499638186)"
>
> Tu aurais une config particulière pour Postgis ?

Je ne pense pas. C'est le postgis 1.5 de osm110.




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