<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.2800.1106" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT face=Arial><SPAN class=281433813-02082008>>
</SPAN>can get the GML data using the wfs url through the
browser</FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial></FONT> </DIV>
<DIV dir=ltr align=left><SPAN class=281433813-02082008><FONT face=Arial>do the
url includes the proxy-part or is it only the url for the wfs request? If
not included, test the url in your browser through your proxy script
proxy.cgi.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=281433813-02082008><FONT
face=Arial></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=281433813-02082008><FONT
face=Arial>Arnd</FONT></SPAN></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff
size=2></FONT> </DIV><BR>
<DIV class=OutlookMessageHeader lang=de dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>Von:</B> lorkyo@163.com [mailto:lorkyo@163.com]
<BR><B>Gesendet:</B> Samstag, 2. August 2008 14:56<BR><B>An:</B> Arnd
Wippermann; users@openlayers.org<BR><B>Betreff:</B> Re:AW: [OpenLayers-Users]
WFS can't be shown. Can any one help me?<BR></FONT><BR></DIV>
<DIV></DIV>
<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="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=968284016-01082008>Hi,</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=968284016-01082008></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=968284016-01082008>have you considered this:</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff 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 face=Arial color=#0000ff
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 lang=de dir=ltr align=left>
<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></BODY></HTML>