Thanks, but now my layer is shifted in South Africa!!!<br><br>I don&#39;t understand what&#39;s wrong: the map output the exact coordinates.<br>Well, I&#39;ve:<br>3 base layers -&gt; epsg:900913<br>1 gml layer    -&gt; epsg:2498<br>
and I want display projection in wgs84<br><br>Is my set up (code in my previous mail) correct?<br><br>-beppe-<br><br><br><div class="gmail_quote">2010/4/7  <span dir="ltr">&lt;<a href="mailto:bartvde@osgis.nl">bartvde@osgis.nl</a>&gt;</span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br>
<br>
not sure if this is the cause of your problem since I don&#39;t know anything<br>
about EPSG:2498, but can you try adding xy false to your Format.GML:<br>
<div class="im"><br>
     var isoline = new OpenLayers.Layer.Vector(&quot;isoline&quot;, {<br>
            strategies: [new OpenLayers.Strategy.Fixed()],<br>
            protocol: new OpenLayers.Protocol.HTTP({<br>
                url: &quot;../aramus_data/vector/gml/isoipse_2498.gml&quot;,<br>
                projection: epsg2498,<br>
</div>                format: new OpenLayers.Format.GML({xy: false})<br>
           })<br>
        });<br>
<br>
Best regards,<br>
Bart<br>
<div><div></div><div class="h5"><br>
&gt; Hi all,<br>
&gt; I ought to display a map with osm layer as base and a gml file of a little<br>
&gt; part of Armenia.<br>
&gt; First step was convert my shapefile, with projection epsg:2498, in a gml<br>
&gt; format (ogr2ogr -f GML ...).<br>
&gt;<br>
&gt; Second step was set up my map.<br>
&gt; Within tag &lt;head&gt; of my html page, I&#39; ve insert a link to these libraries:<br>
&gt;<br>
&gt; - OpenLayers-2.8/OpenLayers.js<br>
&gt; - <a href="http://www.openstreetmap.org/openlayers/OpenStreetMap.js" target="_blank">http://www.openstreetmap.org/openlayers/OpenStreetMap.js</a><br>
&gt; - proj4js.js<br>
&gt; - proj4s/lib/defs/EPSG2498.js<br>
&gt;<br>
&gt; And this is a snippet of my map code [1].<br>
&gt;<br>
&gt; The problem is that my gml is in the north of Africa instead of Armenia.<br>
&gt; I&#39;ve tried with qgis and the layer is correctly positioned, so I suppose<br>
&gt; that the problem is in the code, but I&#39; m not able to detect the bug!!!<br>
&gt;<br>
&gt; thanks<br>
&gt;<br>
&gt; -beppe -<br>
&gt;<br>
&gt; [1] function init() {<br>
&gt;     var epsg2498= new OpenLayers.Projection(&quot;EPSG:2498&quot;);<br>
&gt;     var epsg900913= new OpenLayers.Projection(&quot;EPSG:900913&quot;);<br>
&gt;     var epsg4326= new OpenLayers.Projection(&quot;EPSG:4326&quot;);<br>
&gt;<br>
&gt;    var bounds = new OpenLayers.Bounds(44.532, 40.144, 45.038,<br>
&gt; 40.423).transform(epsg4326, epsg900913);<br>
&gt;<br>
&gt;    map = new OpenLayers.Map (&quot;map&quot;, {<br>
&gt;        controls:[<br>
&gt;            new OpenLayers.Control.Navigation(),<br>
&gt;            new OpenLayers.Control.LayerSwitcher({activeColor:&quot;#729aa1&quot;}),<br>
&gt;            new<br>
&gt; OpenLayers.Control.MousePosition({div:document.getElementById(&quot;coord&quot;)}),<br>
&gt;            new OpenLayers.Control.Attribution()],<br>
&gt;<br>
&gt;        maxExtent: bounds,<br>
&gt;        maxResolution: 156543.0399,<br>
&gt;        numZoomLevels: 5,<br>
&gt;        minZoomLevel: 3,<br>
&gt;        maxZoomLevel: 8,<br>
&gt;        units: &#39;m&#39;,<br>
&gt;        projection: epsg900913,<br>
&gt;        displayProjection: epsg2498<br>
&gt;    } );<br>
&gt;<br>
&gt;<br>
&gt;    var layerCycleMap = new OpenLayers.Layer.OSM.CycleMap(&quot;CycleMap&quot;);<br>
&gt;     map.addLayer(layerCycleMap);<br>
&gt;<br>
&gt;    var layerTilesAtHome = new<br>
&gt; OpenLayers.Layer.OSM.Osmarender(&quot;Osmarender&quot;);<br>
&gt;    map.addLayer(layerTilesAtHome);<br>
&gt;<br>
&gt;    var layerMapnik = new OpenLayers.Layer.OSM.Mapnik(&quot;Mapnik&quot;);<br>
&gt;    map.addLayer(layerMapnik);<br>
&gt;<br>
&gt;     var isoline = new OpenLayers.Layer.Vector(&quot;isoline&quot;, {<br>
&gt;            strategies: [new OpenLayers.Strategy.Fixed()],<br>
&gt;            protocol: new OpenLayers.Protocol.HTTP({<br>
&gt;                url: &quot;../aramus_data/vector/gml/isoipse_2498.gml&quot;,<br>
&gt;                projection: epsg2498,<br>
&gt;                format: new OpenLayers.Format.GML()<br>
&gt;            })<br>
&gt;        });<br>
&gt;    isoline = OpenLayers.Projection.transform(isoline, epsg2498,<br>
&gt; map.projection);<br>
&gt;     map.addLayer(isoline);<br>
&gt; ....<br>
&gt; ....<br>
&gt; ....<br>
&gt; --<br>
&gt; -beppe-<br>
</div></div>&gt; _______________________________________________<br>
&gt; Users mailing list<br>
&gt; <a href="mailto:Users@openlayers.org">Users@openlayers.org</a><br>
&gt; <a href="http://openlayers.org/mailman/listinfo/users" target="_blank">http://openlayers.org/mailman/listinfo/users</a><br>
&gt;<br>
<br>
<br>
</blockquote></div><br><br clear="all"><br>-- <br>-beppe-<br>