[OpenLayers-Users] GeoRSS projection confusion:
DeDuikertjes
DeDuikertjes at xs4all.nl
Mon Aug 31 09:41:42 EDT 2009
Dear List,
I have a georss file (with should be by definition in EPSG:4326) with
one point:
<gml:pos>6.36844646999779 51.8855430932258</gml:pos> it gets reprojected
without me asking for it.
When I show that as simple as possible in openlayers with:
(working example on:
http://80.101.100.35/planhosting/testplannen/openlayers/showmap3c.html)
var map = null;
var rsslayerURL;
function init(){
map = new OpenLayers.Map('map', {
allOverlays: true,
controls: []
});
rsslayerURL = "wkt/NL.IMRO.0999.BP2008000001-0005-2b.rss";
rssLayer = new
OpenLayers.Layer.GeoRSS("Informatielaag",rsslayerURL, {
});
map.addLayers([rssLayer]);
map.zoomToMaxExtent();
map.addControl(new OpenLayers.Control.PanZoomBar());
map.addControl(new OpenLayers.Control.LayerSwitcher());
map.addControl(new OpenLayers.Control.MousePosition());
The point gets (according to the mouseposition) reprojected to about
52.38 11.25. Why is that? I've never asked for that.
If I specify EPSG:4326 as layerprojection, mapprojection and
displayprojection the same happens.
(working example:
http://80.101.100.35/planhosting/testplannen/openlayers/showmap3b.html).
If I try to reproject it together with other data (Working example:
http://80.101.100.35/planhosting/testplannen/openlayers/showmap3.html),
the other data gets reprojected as should, but not the georss layer.
What is happening ?
Please help, I'd like to have the georss layer lined up with my data in
epsg 28992.
MArco
More information about the Users
mailing list