<div>Hi Eric,<br></div><div></div><div>It displays, but incorrorectly (offset by some factor I haven&#39;t checked, down and to the left by a country or so). I manually reprojected the data using GDAL from a shapefile originally collected in UTM. I&#39;ve checked the GML it does say it&#39;s in 4326. Regardless of the projection, why doesn&#39;t the map.getCenter function work on that file? do you think it has to do with the GML itself?</div>

<br><div class="gmail_quote">On Tue, Aug 4, 2009 at 7:37 AM, Eric Lemoine <span dir="ltr">&lt;<a href="mailto:eric.lemoine@camptocamp.com" target="_blank">eric.lemoine@camptocamp.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

On Monday, August 3, 2009, Nicholas Efremov-Kendall<br>
<div>&lt;<a href="mailto:n.e.kendall@gmail.com" target="_blank">n.e.kendall@gmail.com</a>&gt; wrote:<br>
&gt; Hi all,<br>
</div>&gt; Not sure what&#39;s going on here, and what/why I&#39;m doing wrong.I&#39;m loading successfully a gml layer which isn&#39;t displaying in the right placevar topo = new OpenLayers.Layer.GML (&quot;Topography&quot;, &quot;data/topo.gml&quot;,<br>


<div>&gt;               {<br>
&gt;               style: {strokeWidth: 1, strokeColor:&quot;#CCCCCC&quot;},<br>
&gt;               }<br>
&gt;               );<br>
&gt;<br>
&gt; when I add projection and format criteria, it doesn&#39;t display at all, let alone in the wrong place, and the auto map.setCenter function doesn&#39;t work.<br>
&gt;  var topo = new OpenLayers.Layer.GML (&quot;Topography&quot;, &quot;data/topo.gml&quot;,<br>
&gt;               {<br>
&gt;               style: {strokeWidth: 1, strokeColor:&quot;#CCCCCC&quot;},<br>
&gt;               projection: new OpenLayers.Projection(&quot;EPSG:4326&quot;),<br>
&gt;               format: OpenLayers.Format.GML,<br>
&gt;               }<br>
&gt;               );<br>
&gt;<br>
&gt; Is there anything really obvious that I&#39;m missing? thanks again, in advance<br>
<br>
</div>Hi<br>
<br>
What&#39;s the coordinates system of your data? The fact that it does<br>
display when you don&#39;t set &quot;projection&quot; to 4326 makes me think your<br>
data is not 4326.<br>
<br>
<br>
&gt;<br>
<br>
--<br>
Eric Lemoine<br>
<br>
Camptocamp France SAS<br>
Savoie Technolac, BP 352<br>
73377 Le Bourget du Lac, Cedex<br>
<br>
Tel : 00 33 4 79 44 44 96<br>
Mail : <a href="mailto:eric.lemoine@camptocamp.com" target="_blank">eric.lemoine@camptocamp.com</a><br>
<a href="http://www.camptocamp.com" target="_blank">http://www.camptocamp.com</a><br>
</blockquote></div><br>