Hey again,<br><br>thanks a lot for the help Andreas.<br><br>I didn&#39;t have proj4js loaded. I thought it came along with OL. :P<br><br>It is working great now.<br><br>I just have a minor issue that is the first load of the page.<br>

On firebug, the BBOX filter of the first request doesn&#39;t get reprojected to 29193, but from the second request on, the BBOX gets reprojected and the data is drawn.<br><br>This might have something to do with the request being sent before proj4js is completely loaded. I used the complete version with all EPSG projections on it, and it is a 70kb compressed js file.<br>

<br>I will try removing all the other projections from it and initializing only EPSG:29193 using &quot;Proj4js.defs&quot; and see if that solves the problem.<br><br>Do you have any suggestion regarding this?<br><br><div class="gmail_quote">

On Tue, Nov 10, 2009 at 10:37 AM, 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>
<br>
do you have proj4js.js included in your html page? See<br>
<a href="http://trac.openlayers.org/wiki/Documentation/Dev/proj4js" target="_blank">http://trac.openlayers.org/wiki/Documentation/Dev/proj4js</a><br>
<br>
OpenLayers out of the box can only transform between EPSG:4326 and EPSG:900913.<br>
<br>
Regards,<br>
<font color="#888888">Andreas.<br>
</font><div><div></div><div class="h5"><br>
On 11/10/09, Pedro Baracho &lt;<a href="mailto:pedropbaracho@gmail.com">pedropbaracho@gmail.com</a>&gt; wrote:<br>
&gt; Thanks for the reply.<br>
&gt;<br>
&gt; I changed to 1.1.0, but I am still having problems with projections.<br>
&gt;<br>
&gt; The BBOX filter of the request is being built with weird numbers on it:<br>
&gt;<br>
&gt; &lt;ogc:BBOX&gt;&lt;ogc:PropertyName&gt;GEOLOC&lt;/ogc:PropertyName&gt;&lt;gml:Envelope<br>
&gt; xmlns:gml=&quot;<a href="http://www.opengis.net/gml" target="_blank">http://www.opengis.net/gml</a>&quot;<br>
&gt; srsName=&quot;EPSG:29193&quot;&gt;&lt;gml:lowerCorner&gt;-4987936.2379319<br>
&gt; -2307634.0730985&lt;/gml:lowerCorner&gt;&lt;gml:upperCorner&gt;-4797149.4153663<br>
&gt; -2213769.4023813&lt;/gml:upperCorner&gt;&lt;/gml:Envelope&gt;&lt;/ogc:BBOX&gt;<br>
&gt;<br>
&gt; Those numbers don&#39;t make any sense in EPSG:29193 (<br>
&gt; <a href="http://spatialreference.org/ref/epsg/29193/" target="_blank">http://spatialreference.org/ref/epsg/29193/</a>)<br>
&gt; The bounds should be limited to: 166020.2387, 7087605.5418, 833979.7613,<br>
&gt; 10000000.0000, and I am seeing some negative numbers.<br>
&gt;<br>
&gt; I also changed the displayProjection on the map to EPSG:29193 and those<br>
&gt; weird numbers are confirmed by OpenLayers.Control.MousePosition.<br>
&gt;<br>
&gt; My guess is that there is some problem with the reprojection routine from<br>
&gt; 900913 to 29193. I am also guessing this may be because 29193 is limited to<br>
&gt; a region of the globe while 900913 is a world-wide projection. Does it make<br>
&gt; sense? I don&#39;t know much about cartography and projections and I didn&#39;t dig<br>
&gt; in OpenLayers code yet.<br>
&gt;<br>
&gt; Do you have any other hint for me?<br>
&gt;<br>
&gt; On Mon, Nov 9, 2009 at 6:40 PM, Andreas Hocevar &lt;<a href="mailto:ahocevar@opengeo.org">ahocevar@opengeo.org</a>&gt;wrote:<br>
&gt;<br>
&gt;&gt; Hi,<br>
&gt;&gt;<br>
&gt;&gt; WFS 1.0.0 does not support on-the-fly reprojection. You have to use WFS<br>
&gt;&gt; 1.1.0, which is e.g. supported by GeoServer. And you have to specify the<br>
&gt;&gt; version on the protocol:<br>
&gt;&gt;<br>
&gt;&gt; Pedro Baracho wrote:<br>
&gt;&gt; &gt; var layer = new OpenLayers.Layer.Vector(&quot;WFS&quot;, {<br>
&gt;&gt; &gt;                     strategies: [new OpenLayers.Strategy.BBOX(),<br>
&gt;&gt; &gt; saveStrategy],<br>
&gt;&gt; &gt;                     protocol: new OpenLayers.Protocol.WFS({<br>
&gt;&gt;                             version: &quot;1.1.0&quot;,<br>
&gt;&gt; &gt;                         url:  &quot;<a href="http://localhost:8080/geoserver/wfs" target="_blank">http://localhost:8080/geoserver/wfs</a>&quot;,<br>
&gt;&gt; &gt;                         featureType: &quot;Regional&quot;,<br>
&gt;&gt; &gt;                         featureNS: &quot;<a href="http://prodabel1062.pbh:8080/avis" target="_blank">http://prodabel1062.pbh:8080/avis</a>&quot;,<br>
&gt;&gt; &gt;                         geometryName: &quot;GEOLOC&quot;,<br>
&gt;&gt; &gt;                         srsName: &quot;EPSG:29193&quot;<br>
&gt;&gt; &gt;                     }),<br>
&gt;&gt; &gt;                     projection: new OpenLayers.Projection(&quot;EPSG:29193&quot;)<br>
&gt;&gt; &gt;             });<br>
&gt;&gt; &gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Regards,<br>
&gt;&gt; Andreas.<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; Andreas Hocevar<br>
&gt;&gt; OpenGeo - <a href="http://opengeo.org/" target="_blank">http://opengeo.org/</a><br>
&gt;&gt; Expert service straight from the developers.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;<br>
<br>
<br>
</div></div>--<br>
<div><div></div><div class="h5">Andreas Hocevar<br>
OpenGeo - <a href="http://opengeo.org/" target="_blank">http://opengeo.org/</a><br>
Expert service straight from the developers.<br>
</div></div></blockquote></div><br>