<!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 Marco, <BR>
You are right, then I was change the for school (zoom to the layer for show it because need certain zoom for display by a rule in the style), and continue with out show me the layer WFS.<BR>
<BR>
My code change to<BR>
<BR>
<TT><I><FONT SIZE="1"><!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd"></FONT></I></TT><BR>
<TT><I><FONT SIZE="1"><html xmlns="<A HREF="http://www.w3.org/1999/xhtml">http://www.w3.org/1999/xhtml</A>"></FONT></I></TT><BR>
<TT><I><FONT SIZE="1"><head></FONT></I></TT><BR>
<TT><I><FONT SIZE="1">        <title>Prueba 1a</title></FONT></I></TT><BR>
<TT><I><FONT SIZE="1"></head></FONT></I></TT><BR>
<TT><I><FONT SIZE="1"> <script src="http://172.16.23.21:8080/geoserver/openlayers/OpenLayers.js" type="text/javascript"></FONT></I></TT><BR>
<TT><I><FONT SIZE="1"> </script></FONT></I></TT><BR>
<BR>
<BR>
<TT><I><FONT SIZE="1"><body BGCOLOR=#CCCC98 onload="load();"></FONT></I></TT><BR>
<BR>
<TT><I><FONT SIZE="1"><div id="map" style="width: 800px; height: 500px; top:-3px; left:-350px; border: 9px solid #EBE9D4;"></div></FONT></I></TT><BR>
<BR>
<TT><I><FONT SIZE="1"><script type="text/javascript"></FONT></I></TT><BR>
<TT><I><FONT SIZE="1">function load() {</FONT></I></TT><BR>
<TT><I><FONT SIZE="1">        format = 'image/png';</FONT></I></TT><BR>
<TT><I><FONT SIZE="1">        var options = {</FONT></I></TT><BR>
<TT><I><FONT SIZE="1">        </FONT></I></TT><BR>
<TT><I><FONT SIZE="1"> controls:[</FONT></I></TT><BR>
<TT><I><FONT SIZE="1">                        new OpenLayers.Control.Navigation(),</FONT></I></TT><BR>
<TT><I><FONT SIZE="1">                        new OpenLayers.Control.PanZoomBar(),</FONT></I></TT><BR>
<TT><I><FONT SIZE="1">                        new OpenLayers.Control.LayerSwitcher({'ascending':false}),</FONT></I></TT><BR>
<TT><I><FONT SIZE="1">                        new OpenLayers.Control.ScaleLine(),</FONT></I></TT><BR>
<TT><I><FONT SIZE="1">                        new OpenLayers.Control.MousePosition(),</FONT></I></TT><BR>
<TT><I><FONT SIZE="1">                        new OpenLayers.Control.KeyboardDefaults() ],</FONT></I></TT><BR>
<TT><I><FONT SIZE="1">                numZoomLevels: 31,units: 'm' };</FONT></I></TT><BR>
<TT><I><FONT SIZE="1">        var map = new OpenLayers.Map("map", options);</FONT></I></TT><BR>
<BR>
<TT><I><FONT SIZE="1">        l1 = new OpenLayers.Layer.WMS(</FONT></I></TT><BR>
<TT><I><FONT SIZE="1"> 'Limites', "<A HREF="http://172.16.23.21:8080/geoserver/wms">http://</FONT></I></TT><TT><I><FONT SIZE="1">www.aplicanet.gob.mx</FONT></I></TT><TT><I><FONT SIZE="1">:8080/geoserver/wms</A>",</FONT></I></TT><BR>
<TT><I><FONT SIZE="1"> {layers: 'sde:SPF_CATASTRO.LMA',</FONT></I></TT><BR>
<TT><I><FONT SIZE="1"> srs: 'EPSG:900913',</FONT></I></TT><BR>
<TT><I><FONT SIZE="1">                        transparent: true,</FONT></I></TT><BR>
<TT><I><FONT SIZE="1"> format: format,</FONT></I></TT><BR>
<TT><I><FONT SIZE="1"> tiled: 'true'</FONT></I></TT><BR>
<TT><I><FONT SIZE="1"> },{singleTile: true, isBaseLayer: true});</FONT></I></TT><BR>
<TT><I><FONT SIZE="1">        l1.setVisibility(true); </FONT></I></TT><BR>
<TT><I><FONT SIZE="1"> map.addLayer(l1);</FONT></I></TT><BR>
<BR>
<TT><I><FONT SIZE="1">        var layer2 = new OpenLayers.Layer.WFS( </FONT></I></TT><BR>
<TT><I><FONT SIZE="1"> 'schools', "<A HREF="http://172.16.23.21:8080/geoserver/wfs">http://</A></FONT></I></TT><TT><I><FONT SIZE="1"><A HREF="http://172.16.23.21:8080/geoserver/wms">www.aplicanet.gob.mx</A></FONT></I></TT><TT><I><FONT SIZE="1"><A HREF="http://172.16.23.21:8080/geoserver/wfs">/geoserver/wfs</A>",</FONT></I></TT><BR>
<TT><I><FONT SIZE="1"> {typename: 'sde:USEBEQ.ESCUELASI2008',maxfeatures: 10}, </FONT></I></TT><BR>
<TT><I><FONT SIZE="1"> { featureClass: OpenLayers.Feature.WFS}); </FONT></I></TT><BR>
<TT><I><FONT SIZE="1"> map.addLayer(layer2);</FONT></I></TT><BR>
<TT><I><FONT SIZE="1">map.setCenter(new OpenLayers.LonLat(-99.854736328125,20.80875529543977), 9); </FONT></I></TT><BR>
<BR>
<TT><I><FONT SIZE="1">}</FONT></I></TT><BR>
<TT><I><FONT SIZE="1"></script></FONT></I></TT><BR>
<BR>
<TT><I><FONT SIZE="1"></body></FONT></I></TT><BR>
<TT><I><FONT SIZE="1"></html></FONT></I></TT><BR>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
-- <BR>
Arturo Juárez Lima <<A HREF="mailto:ajuarez@queretaro.gob.mx">ajuarez@queretaro.gob.mx</A>><BR>
GEQ
</TD>
</TR>
</TABLE>
<BR>
<BR>
El jue, 29-10-2009 a las 16:03 +0100, Marco Scheuble escribió:
<BLOCKQUOTE TYPE=CITE>
<PRE>
Hi Arturo,
-> But when I use my shapes in format wms in my maps, I haven't any
problem,
The wms-layer "sde:SPF_CATASTRO.LMA" is shown in the preview map of your
geoserver,
but this feature "sde:DTYT.SSC_RUTAS_2009" not! And so there has to be
s.th. wrong with your service!
Marco
Arturo Juárez Lima schrieb:
> Hi Marco,
>
> But when I use my shapes in format wms in my maps, I haven't any
> problem, I am working very well with them, but I never work with them
> in format WFS.
> --
> Arturo Juárez Lima <<A HREF="mailto:ajuarez@queretaro.gob.mx">ajuarez@queretaro.gob.mx</A>
> <<A HREF="mailto:ajuarez@queretaro.gob.mx">mailto:ajuarez@queretaro.gob.mx</A>>>
> GEQ
>
>
>
> El jue, 29-10-2009 a las 15:25 +0100, Marco Scheuble escribió:
>> Hi Arturo,
>>
>> I just had a look at your geoserver,
>> -> <A HREF="http://www.aplicanet.gob.mx:8080/geoserver/mapPreview.do">http://www.aplicanet.gob.mx:8080/geoserver/mapPreview.do</A>
>> and think, that you have a problem with your layer(Feature)-settings,
>> because even in the geoserver map-preview, there is nothing shown
>>
>> cheers Marco
>>
>>
>> Arturo Juárez Lima schrieb:
>> > sure,
>> >
>> > this is my page and code
>> >
>> > /<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
>> > "DTD/xhtml1-strict.dtd">/
>> > /<html xmlns="<A HREF="http://www.w3.org/1999/xhtml">http://www.w3.org/1999/xhtml</A>">/
>> > /<head>/
>> > / <title>Prueba 1a</title>/
>> > /</head>/
>> > / <script
>> > src="<A HREF="http://172.16.23.21:8080/geoserver/openlayers/OpenLayers.js">http://172.16.23.21:8080/geoserver/openlayers/OpenLayers.js</A>"
>> > type="text/javascript">/
>> > / </script>/
>> >
>> >
>> > /<body BGCOLOR=#CCCC98 onload="load();">/
>> >
>> > /<div id="map" style="width: 800px; height: 500px; top:-3px;
>> > left:-350px; border: 9px solid #EBE9D4;"></div>/
>> >
>> > /<script type="text/javascript">/
>> > /function load() {/
>> > / format = 'image/png';/
>> > / var options = {/
>> > / /
>> > / controls:[/
>> > / new OpenLayers.Control.Navigation(),/
>> > / new OpenLayers.Control.PanZoomBar(),/
>> > / new OpenLayers.Control.LayerSwitcher({'ascending':false}),/
>> > / new OpenLayers.Control.ScaleLine(),/
>> > / new OpenLayers.Control.MousePosition(),/
>> > / new OpenLayers.Control.KeyboardDefaults() ],/
>> > / numZoomLevels: 31,units: 'm' };/
>> > / var map = new OpenLayers.Map("map", options);/
>> >
>> > / l1 = new OpenLayers.Layer.WMS(/
>> > / 'Limites',
>> > "<A HREF="http://www.aplicanet.gob.mx:8080/geoserver/wms,/>">http://www.aplicanet.gob.mx:8080/geoserver/wms",/</A> <<A HREF="http://www.aplicanet.gob.mx:8080/geoserver/wms,/%3E">http://www.aplicanet.gob.mx:8080/geoserver/wms,/%3E</A>>
>> > / {layers: 'sde:SPF_CATASTRO.LMA',/
>> > / srs: 'EPSG:900913',/
>> > / transparent: true,/
>> > / format: format,/
>> > / tiled: 'true'/
>> > / },{singleTile: true, isBaseLayer: true});/
>> > / l1.setVisibility(true); /
>> > / map.addLayer(l1);/
>> >
>> > / var layer2 = new OpenLayers.Layer.WFS( /
>> > / 'CEC', "<A HREF="http://www.aplicanet.gob.mx:8080/geoserver/wfs,/>">http://www.aplicanet.gob.mx:8080/geoserver/wfs",/</A> <<A HREF="http://www.aplicanet.gob.mx:8080/geoserver/wfs,/%3E">http://www.aplicanet.gob.mx:8080/geoserver/wfs,/%3E</A>>
>> > / {typename: 'sde:DTYT.SSC_RUTAS_2009',maxfeatures: 10}, /
>> > / { featureClass: OpenLayers.Feature.WFS}); /
>> > / map.addLayer(layer2);/
>> > /map.setCenter(new
>> > OpenLayers.LonLat(-99.854736328125,20.80875529543977), 9); /
>> >
>> > /}/
>> > /</script>/
>> >
>> > /</body>/
>> > /</html>/
>> >
>> >
>> > hopefully you can help me
>> >
>> > Thanks.
>> >
>> >
>> > --
>> > Arturo Juárez Lima <<A HREF="mailto:ajuarez@queretaro.gob.mx">ajuarez@queretaro.gob.mx</A> <<A HREF="mailto:ajuarez@queretaro.gob.mx">mailto:ajuarez@queretaro.gob.mx</A>>
>> > <<A HREF="mailto:ajuarez@queretaro.gob.mx">mailto:ajuarez@queretaro.gob.mx</A>>>
>> > GEQ
>> >
>> >
>> >
>> > El jue, 29-10-2009 a las 14:26 +0100, Andreas Hocevar escribió:
>> >> It is hard to guess your guess when you don't provide code. Please
>> >> provide a code snippet and explain what does not work and what you don't
>> >> understand.
>> >>
>> >> Regards,
>> >> Andreas.
>> >>
>> >> Arturo Juárez Lima wrote:
>> >> > Thanks Andreas, I was make question because I am trying add to a shape
>> >> > in format WFS with openlayers, but I can't show my shape in my map,
>> >> > then, I was guess, that maybe when I use a shape in WFS, maybe have a
>> >> > EPSG in special. But you tell me that my guess is incorrect, then my
>> >> > option are falling.
>> >> >
>> >> > could you give me a another guess, please :-)???
>> >> >
>> >> > thanks
>> >> > --
>> >> > Arturo Juárez Lima <<A HREF="mailto:ajuarez@queretaro.gob.mx">ajuarez@queretaro.gob.mx</A> <<A HREF="mailto:ajuarez@queretaro.gob.mx">mailto:ajuarez@queretaro.gob.mx</A>> <<A HREF="mailto:ajuarez@queretaro.gob.mx">mailto:ajuarez@queretaro.gob.mx</A>>
>> >> > <<A HREF="mailto:ajuarez@queretaro.gob.mx">mailto:ajuarez@queretaro.gob.mx</A>>>
>> >> > GEQ
>> >> >
>> >> >
>> >> >
>> >> > El jue, 29-10-2009 a las 08:05 +0100, Andreas Hocevar escribió:
>> >> >> was that meant for geoserver-users? You sent it to the OpenLayers
>> >> >> users list.
>> >> > ------------------------------------------------------------------------
>> >> >
>> >> > _______________________________________________
>> >> > Users mailing list
>> >> > <A HREF="mailto:Users@openlayers.org">Users@openlayers.org</A> <<A HREF="mailto:Users@openlayers.org">mailto:Users@openlayers.org</A>> <<A HREF="mailto:Users@openlayers.org">mailto:Users@openlayers.org</A>>
>> >> > <A HREF="http://openlayers.org/mailman/listinfo/users">http://openlayers.org/mailman/listinfo/users</A>
>> >> >
>> >>
>> >>
>> >>
>> > ------------------------------------------------------------------------
>> >
>> > _______________________________________________
>> > Users mailing list
>> > <A HREF="mailto:Users@openlayers.org">Users@openlayers.org</A> <<A HREF="mailto:Users@openlayers.org">mailto:Users@openlayers.org</A>>
>> > <A HREF="http://openlayers.org/mailman/listinfo/users">http://openlayers.org/mailman/listinfo/users</A>
>> >
>>
>>
_______________________________________________
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>