<div> Thank you very much. there are truly some problem with the proxy. make a directory"proxy" under the $CATALINA_HOME/webapps/. And I add one line in to my code " OpenLayers.ProxyHost="/proxy/proxy.cgi?url=". <br>But now I can get several WMS shown, after I changed anyone of them into WFS, it could not be shown. But I can get the GML data using the wfs url through the browser. Is there some thing wrong in my configuration?<br><br></div><div> </div><div> </div><div> </div><div></div><br>在2008-08-02,"Arnd Wippermann" <arnd.wippermann@web.de> 写道:<br> <blockquote id="isReplyContent" style="border-left: 1px solid rgb(204, 204, 204); margin: 0px 0px 0px 0.8ex; padding-left: 1ex;">
<div dir="ltr" align="left"><font color="#0000ff" face="Arial" size="2"><span class="968284016-01082008">Hi,</span></font></div>
<div dir="ltr" align="left"><font color="#0000ff" face="Arial" size="2"><span class="968284016-01082008"></span></font> </div>
<div dir="ltr" align="left"><font color="#0000ff" face="Arial" size="2"><span class="968284016-01082008">have you considered this:</span></font></div>
<div dir="ltr" align="left"><font color="#0000ff" face="Arial" size="2"><a href="http://trac.openlayers.org/wiki/FrequentlyAskedQuestions#ProxyHost">http://trac.openlayers.org/wiki/FrequentlyAskedQuestions#ProxyHost</a></font></div>
<div dir="ltr" align="left"><font color="#0000ff" face="Arial" size="2"></font> </div>
<div><span class="968284016-01082008"></span><font face="Arial"><font color="#0000ff"><font size="2">Arnd<span class="968284016-01082008">
Wippermann</span></font></font></font></div>
<div><font face="Arial"><font color="#0000ff"><font size="2"><span class="968284016-01082008"></span></font></font></font><br> </div>
<div class="OutlookMessageHeader" dir="ltr" align="left" lang="de">
<hr tabindex="-1">
<font face="Tahoma" size="2"><b>Von:</b> <a href="mailto:users-bounces@openlayers.org">users-bounces@openlayers.org</a>
[mailto:<a href="mailto:users-bounces@openlayers.org">users-bounces@openlayers.org</a>] <b>Im Auftrag von
</b>lorkyo<br><b>Gesendet:</b> Freitag, 1. August 2008 17:00<br><b>An:</b>
<a href="mailto:users@openlayers.org">users@openlayers.org</a><br><b>Betreff:</b> [OpenLayers-Users] WFS can't be shown.
Can any one help me?<br></font><br></div>
<div></div>
<div>I wrote a page to show wms and wfs, at the same time, but I can't get
the WFS data show. the codes are listed below.It can only show the WMS data , I
exchange the place of "topp:tasmania_water_bodies" and
"topp:tasmania_state_boundaries", then it can only show the
"topp:tasmania_state_boundaries"(WMS). I have check the checkbox of the
layerswitch,and these two layers is the of the same place and have the same SRS,
I have used udig to open them:<br> <br>var map, layer;<br>map = new
OpenLayers.Map('map', {controls:[], 'projection': 'EPSG:4326',
'units':'degrees'}); <br> OpenLayers.IMAGE_RELOAD_ATTEMPTS =
5;<br>
<br> var bounds = new
OpenLayers.Bounds(143.60260815000004,-43.851764249999995,148.71135685000002,-39.370182750000005)<br>
// setup untiled layer<br>
untiled = new
OpenLayers.Layer.WMS.Untiled(<br>
"",
"http://192.168.6.140:8080/geoserver/wms",<br>
{<br>
layers:
'topp:tasmania_water_bodies',<br>
styles:
'',<br>
height:
'382',<br>
width:
'800',<br>
srs:
'EPSG:4326',<br>
format:
'image/png'<br>
},<br>
{maxExtent: bounds, maxResolution: 0.019956049609374915, projection:
"EPSG:4326"}<br>
);<br>
untiled.ratio=1;<br>
untiled.setVisibility(false, false);<br>
map.addLayer(untiled);<br> var roads = new
OpenLayers.Layer.WFS(<br>
"Roads (WFS)", <br>
"http://192.168.6.140:8080/geoserver/wfs?",<br>
{
<br>
layers:
'topp:tasmania_state_boundaries',<br>
request: 'GetFeature',<br>
maxfeatures: 100,
visibility:true<br>
},<br> {maxExtent: bounds, maxResolution: 0.019956049609374915, projection:
"EPSG:4326"});<br> map.addControl(new
OpenLayers.ControlPanZoomBar({div:$('nav')}));<br>
map.addControl(new
OpenLayers.Control.MouseDefaults());<br>
map.addControl(new
OpenLayers.Control.Scale($('scale')));<br>
map.addControl(new OpenLayers.Control.MousePosition({element:
$('position')}));<br>
map.addControl(new
OpenLayers.Control.LayerSwitcher());<br>
map.addControl(new
OpenLayers.Control.OverviewMap());<br>
map.zoomToExtent(bounds);<br>
<br>
lorkyo<br></div>
<div> </div><br><!-- footer --><br>
<hr>
<font style="font-size: 12px; line-height: 15px;">22元超值饭面,8.5折纯珍比萨,必胜宅急送</font><a style="font-size: 12px; color: blue; line-height: 15px; text-decoration: underline;" href="http://popme.163.com/link/004584_0708_6957.html">网上点餐优惠多</a>
</blockquote>