[OSM-dev] openstreetmap, openlayers and overlays

Richard Duivenvoorde rdmailings at duif.net
Thu Jul 5 09:55:32 BST 2007


Hi List,
I've an OpenLayers page, on which I show the OpenStreetmap (using source 
of www.openstreetmap.org).

I downloaded form geonames.org some points and stuffed them in Postgis 
(latlon: 4326). I then used Postgis transform to reproject those points 
to 51001 / 41001 (aka using proj string:
<41001> +proj=merc +lat_ts=0 +lon_0=0 +k=1.000000 +x_0=0 +y_0=0 
+ellps=WGS84 +datum=WGS84 +units=m +no_defs  no_defs <>
)

Showing those points as overlay on a googlemap seems fine:
http://www.duif.net/GoogleGeonames.jpg
But putting them on OSM they seem shifted (or map is shifted?):
http://www.duif.net/OpenStreetsGeonames.jpg
(the big dot in the middle are supposed to be in the city of Amsterdam)

My question:
- do I do something stupid here?

- does anybody else succeeded in putting custom (latlon) points as 
overlay on openstreetmap?

- has somebody some viable explanation for the shift? (at this moment I 
cannot put this stuff on the live server, but if neccessary I will do that).

TIA

Richard

ps if you think this questions belong on the userlist: let me know, I 
just thought here was more interest and knowledge about these kind of stuff




More information about the dev mailing list