<br><br><div class="gmail_quote">On Thu, Jun 11, 2009 at 11:34 PM, Andreas Hocevar <span dir="ltr">&lt;<a href="mailto:ahocevar@opengeo.org">ahocevar@opengeo.org</a>&gt;</span> wrote:<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>
<div class="im"><br>
On Fri, Jun 12, 2009 at 4:43 AM, Nicholas<br>
Efremov-Kendall&lt;<a href="mailto:n.e.kendall@gmail.com">n.e.kendall@gmail.com</a>&gt; wrote:<br>
&gt; (i.e. no epsg code attachted). I&#39;ve tried the reprojection (but on the whole<br>
&gt; layer, I don&#39;t know if that will work) and all I get is a firebug error<br>
&gt; &quot;sites.transform is not a function.&quot; Also, note that when I set the if (!<br>
&gt; map.getCenter) to the prsites layer it doesn&#39;t work.<br>
<br>
</div>You do not need to do sites.transform() manually, because the GML<br>
layer will be reprojected properly the way you set it up.<br>
<div class="im"><br>
&gt; why does the projectionless GML file in OL show up in the wrong place,<br>
&gt; regardless of the EPSG code that I specify (i.e. why doesn&#39;t it move when I<br>
&gt; specify a different srs?)<br>
&gt; why does the projected GML file show up in exactly the sample place?<br>
&gt; How do I fix this?<br>
<br>
</div>Looks like you are not including proj4js.js in your application.<br>
OpenLayers out of the box only knows about EPSG:4326 and EPSG:900913.</blockquote><div><br>This is something that I&#39;ve always wondered about! I&#39;ve dug through the
source code as well as the documentation trying to wrap my brain around
where/how these two projection definitions are stored internally. Would you
mind pointing me in the right direction? <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
So all you should need to do is follow the instructions on [1] to set<br>
up reprojection support for the EPSG codes you are using.<br>
<br>
Regards,<br>
Andreas.<br>
<br>
[1] <a href="http://trac.openlayers.org/wiki/Documentation/Dev/proj4js" target="_blank">http://trac.openlayers.org/wiki/Documentation/Dev/proj4js</a><br>
[2] <a href="http://spatialreference.org/" target="_blank">http://spatialreference.org/</a><br>
<font color="#888888"><br>
--<br>
Andreas Hocevar<br>
OpenGeo - <a href="http://opengeo.org/" target="_blank">http://opengeo.org/</a><br>
Expert service straight from the developers.<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@openlayers.org">Users@openlayers.org</a><br>
<a href="http://openlayers.org/mailman/listinfo/users" target="_blank">http://openlayers.org/mailman/listinfo/users</a><br>
</font></blockquote></div><br><br clear="all"><br>-- <br>m a t t h e w k e n n y<br><a href="http://www.mkgeomatics.com">http://www.mkgeomatics.com</a><br>Sent from Santa Paula, CA, United States