<!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">
Whit this change, send me this with firebug<BR>
<BR>
<TT>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;</TT>
<PRE>
<TT>&lt;wfs:FeatureCollection numberOfFeatures=&quot;342&quot; timeStamp=&quot;2009-10-29T11:43:54.291-06:00&quot; xsi:schemaLocation=&quot;http://geoserver.sf.net http://172.16.23.21:8080/geoserver/wfs?service=WFS&amp;amp;version=1.1.0&amp;amp;request=DescribeFeatureType&amp;amp;typeName=sde:DTYT.SSC_RUTAS_2009 http://www.opengis.net/wfs http://172.16.23.21:8080/geoserver/schemas/wfs/1.1.0/wfs.xsd&quot; xmlns:ogc=&quot;http://www.opengis.net/ogc&quot; xmlns:sde=&quot;http://geoserver.sf.net&quot; xmlns:local=&quot;http://www.aplicanet.gob.mx:8080/geoserver&quot; xmlns:wfs=&quot;http://www.opengis.net/wfs&quot; xmlns:topp=&quot;http://www.openplans.org/topp&quot; xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; xmlns:ows=&quot;http://www.opengis.net/ows&quot; xmlns:TYT=&quot;http://www.aplicanet.gob.mx:8080/geoserver/sitegeq/sitegeq.html&quot; xmlns:gml=&quot;http://www.opengis.net/gml&quot; xmlns:ran=&quot;http://www.aplicanet.gob.mx:8080/geoserver/wms?&quot; xmlns:xlink=&quot;http://www.w3.org/1999/xlink&quot; xmlns:tur=&quot;http://www.recaudanet.gob.mx/mapas&quot;&gt;&lt;gml:featureMembers&gt;&lt;sde:DTYT.SSC_RUTAS_2009 gml:id=&quot;DTYT.SSC_RUTAS_2009.1&quot;&gt;&lt;sde:OBJECTID&gt;2498&lt;/sde:OBJECTID&gt;&lt;sde:CL_RUTA&gt;1&lt;/sde:CL_RUTA&gt;&lt;sde:EMPRESA&gt;TAXIBUSES CTM&lt;/sde:EMPRESA&gt;&lt;sde:ORIGEN&gt;CLUB BRITANIA&lt;/sde:ORIGEN&gt;&lt;sde:DESTINO&gt;TEJEDA&lt;/sde:DESTINO&gt;&lt;sde:UNIDADES&gt;0&lt;/sde:UNIDADES&gt;&lt;sde:T_REC&gt;35&lt;/sde:T_REC&gt;&lt;sde:FREC_PASO&gt;7&lt;/sde:FREC_PASO&gt;&lt;sde:HR_ENTRADA&gt;0.0&lt;/sde:HR_ENTRADA&gt;&lt;sde:HR_SALIDA&gt;0.0&lt;/sde:HR_SALIDA&gt;&lt;sde:ALIAS2&gt;1&lt;/sde:ALIAS2&gt;&lt;sde:CLVMUN&gt;22014&lt;/sde:CLVMUN&gt;&lt;sde:TIPO_RTA&gt;1&lt;/sde:TIPO_RTA&gt;&lt;sde:SHAPE&gt;&lt;gml:MultiLineString srsName=&quot;http://www.opengis.net/gml/srs/epsg.xml#4326&quot;&gt;&lt;gml:lineStringMember&gt;&lt;gml:LineString&gt;&lt;gml:posList&gt;-100.36062051258939 20.589634591030723 -100.36177488683252 20.58928130676133 -100.36301470481301 20.588831728496025 -100.36351586756281 20.588670020102104 -100.36404296548912 20.588570253760565 -100.3640942961405 20.588566625053705 -100.36410652927874 20.588565758449544 -100.3642240573791 20.588557449397467 -100.36434737805138 20.588548731481726 -100.36521288363987 20.588514959918868 -100.36660531797635 20.58852104984244 -100.36796056500968 20.58840071235976 -100.37059345495345 20.587973046264306 -100.37313334828846 20.587532443037002 -100.37494083074384 20.587224289299495 -100.37568066555791 20.58709746121811 -100.37806767235143 20.586690188761736 -100.38010416499388 20.58636623042182 -100.38045798052832 20.586350632115202 -100.38099875013481 20.586374607982528 -100.38262244124239 20.58672848432393 -100.38470790097831 20.58722185824083 -100.38510565000719 20.587258459999763 -100.38551745015776 20.58723635311069 -100.38573825281412 20.587191688211483 -100.38609302953525 20.587073364835366 -100.38870522791947 20.58612503994913 -100.38918963419707 20.58595125384289 -100.39163471754566 20.585062356099034 -100.39383379787692 20.584266572093085 -100.39421740616262 20.58412288887916 -100.39499118924181 20.583801125498624 -100.39575939114434 20.583358638315456 -100.39724356940336 20.582455930451566 -100.39797786813172 20.581964303504783 -100.3981145326687 20.58186821836896 -100.39830093773466 20.58169899163173 -100.39904352951204 20.581063976744492 -100.3991325989432 20.581030527042586 -100.39922804158769 20.581049626176792 -100.39930887097418 20.58108910744475 -100.4007185867905 20.582866274667666 -100.40184538995977 20.58429506732454 -100.40194144438519 20.584471445189838 -100.4020052487834 20.584591233206705 -100.4020784217997 20.58471226814552 -100.40220269642046 20.584779911591163 -100.40240034568754 20.584778603364285 -100.40258370627879 20.584681116330003 -100.40288796317925 20.584529454192346 -100.4032051928797 20.584362884978542 -100.40344264756733 20.584275425700632 -100.40368912794825 20.584231771968792 -100.40394636897946 20.584240339491156 -100.40422146076632 20.58428337148279 -100.40451908501822 20.584325778391847 -100.40479355636666 20.58430611458437 -100.40505832839528 20.584238094006885 -100.40527949067219 20.584125870553663 -100.40545919859827 20.583980079232187 -100.40561703342271 20.583803153645164 -100.40683774941698 20.582077231801225 -100.4069759004892 20.581909544846354 -100.4071251911623 20.581792743960136 -100.40726559456301 20.581708969035052 -100.40728375758317 20.581656137789842 -100...&quot;</TT>

I guess now is right, but continue with out show me the shape. 
</PRE>
<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 10:46 -0600, Arturo Ju&#225;rez Lima escribi&#243;:<BR>
<BLOCKQUOTE TYPE=CITE>
    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>
<PRE>
_______________________________________________
Users mailing list
<A HREF="mailto:Users@openlayers.org">Users@openlayers.org</A>
<A HREF="http://openlayers.org/mailman/listinfo/users">http://openlayers.org/mailman/listinfo/users</A>
</PRE>
</BLOCKQUOTE>
</BODY>
</HTML>