<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.26.0">
</HEAD>
<BODY TEXT="#1a1a1a" LINK="#0000ff" BGCOLOR="#ffffff" BACKGROUND="file:///home/ajuarez">
Thanks<BR>
<BR>
I again change the code, and this form, in firebug send me coord to the lines, whit out errors, but in the map don't show me the shape.<BR>
I was change geometryName of 'the_geom' by 'SHAPE', because with 'the_geom' the firebug send me error.<BR>
<BR>
&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD XHTML 1.0 Strict//EN&quot; &quot;DTD/xhtml1-strict.dtd&quot;&gt;<BR>
&lt;html xmlns=&quot;<A HREF="http://www.w3.org/1999/xhtml">http://www.w3.org/1999/xhtml</A>&quot;&gt;<BR>
&lt;head&gt;<BR>
        &lt;title&gt;Prueba 1a&lt;/title&gt;<BR>
&lt;/head&gt;<BR>
 &lt;script src=&quot;http://www.openlayers.org/dev/OpenLayers.js&quot; type=&quot;text/javascript&quot;&gt;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/script&gt;<BR>
<BR>
<BR>
&lt;body BGCOLOR=#CCCC98 onload=&quot;load();&quot;&gt;<BR>
<BR>
&lt;div id=&quot;map&quot; style=&quot;width: 800px; height: 500px; top:-3px; left:-350px; border: 9px solid #EBE9D4;&quot;&gt;&lt;/div&gt;<BR>
<BR>
&lt;script type=&quot;text/javascript&quot;&gt;<BR>
function load() {<BR>
        format = 'image/png';<BR>
        var options = {<BR>
        <BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; controls:[<BR>
                        new OpenLayers.Control.Navigation(),<BR>
                        new OpenLayers.Control.PanZoomBar(),<BR>
                        new OpenLayers.Control.LayerSwitcher({'ascending':false}),<BR>
                        new OpenLayers.Control.ScaleLine(),<BR>
                        new OpenLayers.Control.MousePosition(),<BR>
                        new OpenLayers.Control.KeyboardDefaults() ],<BR>
                numZoomLevels: 31,units: 'm' };<BR>
        var map = new OpenLayers.Map(&quot;map&quot;, options);<BR>
<BR>
        l1 = new OpenLayers.Layer.WMS(<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'Limites', &quot;<A HREF="http://172.16.23.21:8080/geoserver/wms">http://172.16.23.21:8080/geoserver/wms</A>&quot;,<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {layers: 'sde:SPF_CATASTRO.LMA',<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; srs: 'EPSG:900913',<BR>
                        transparent: true,<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; format: format,<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; tiled: 'true'<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; },{singleTile: true, isBaseLayer: true});<BR>
        l1.setVisibility(true); <BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; map.addLayer(l1);<BR>
<BR>
        var layer = new OpenLayers.Layer.Vector(&quot;WFS&quot;, {<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; strategies: [new OpenLayers.Strategy.BBOX()],<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; protocol: new OpenLayers.Protocol.WFS({<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; url:&nbsp; &quot;<A HREF="http://172.16.23.21:8080/geoserver/wfs">http://172.16.23.21:8080/geoserver/wfs</A>&quot;,<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; featureType: &quot;DTYT.SSC_RUTAS_2009&quot;,<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; featureNS: &quot;<A HREF="http://172.16.23.21:8080/sde">http://172.16.23.21:8080/sde</A>&quot;,<BR>
        &nbsp;&nbsp;&nbsp; geometryName: 'SHAPE',<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; version: &quot;1.1.0&quot;,<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; srsName: &quot;EPSG:4326&quot;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; })&nbsp;&nbsp; });<BR>
<BR>
/*        var layer2 = new OpenLayers.Layer.WFS( <BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'schools', &quot;<A HREF="http://172.16.23.21:8080/geoserver/wfs">http://172.16.23.21:8080/geoserver/wfs</A>&quot;,<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {typename: 'TYT:rutas_2009',maxfeatures: 10}, <BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; { featureClass: OpenLayers.Feature.WFS}); */<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; map.addLayer(layer);<BR>
map.setCenter(new OpenLayers.LonLat(-99.854736328125,20.80875529543977), 9); <BR>
<BR>
}<BR>
&lt;/script&gt;<BR>
<BR>
&lt;/body&gt;<BR>
&lt;/html&gt;<BR>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
-- <BR>
Arturo Ju&#225;rez Lima &lt;<A HREF="mailto:ajuarez@queretaro.gob.mx">ajuarez@queretaro.gob.mx</A>&gt;<BR>
GEQ
</TD>
</TR>
</TABLE>
<BR>
<BR>
El jue, 29-10-2009 a las 17:35 +0100, Andreas Hocevar escribi&#243;:
<BLOCKQUOTE TYPE=CITE>
<PRE>
Arturo Ju&#225;rez Lima wrote:
&gt; Thanks Andreas,
&gt;
&gt; I was change the code with your suggestion, and change the url for the 
&gt; ip, only my local examples.

But you made one fatal modification of my suggestion:

/
/
&gt; /var layer = new OpenLayers.Layer.Vector(&quot;WFS&quot;, {/
&gt; /        strategies: [new OpenLayers.Strategy.BBOX()],/
&gt; /        protocol: new OpenLayers.Protocol.WFS({/
&gt; /            url:  &quot;<A HREF="http://172.16.23.21:8080/geoserver/wfs,/&gt;">http://172.16.23.21:8080/geoserver/wfs&quot;,/</A>
&gt; /            featureType: &quot;sde:DTYT.SSC_RUTAS_2009&quot;,/

/featureType: &quot;DTYT.SSC_RUTAS_2009&quot;,

/
&gt; /            featureNS: &quot;<A HREF="http://geoserver.sf.net">http://geoserver.sf.net</A>&quot;,/
&gt; /            version: &quot;1.1.0&quot;,/
&gt; /            srsName: &quot;EPSG:4326&quot;/
&gt; /        })   });/

Do not use a prefix in featureType -- featureNS takes care of that, by 
using the namespace URI, not the prefix.


Regards,
Andreas.

</PRE>
</BLOCKQUOTE>
</BODY>
</HTML>