WFS 服务访问失败的沿用

http://192.168.3.203:8080/geoserver/agcim/ows?service=wfs&request=GetFeature&version=1.0.0&typeName=htsitr:%E5%8D%97%E6%9D%91%E9%95%87%E6%A0%87%E5%87%86%E5%9C%B0%E5%9D%802021&Filter=%3CFilter%20xmlns=%22http://www.opengis.net/ogc%22%20xmlns:gml=%22http://www.opengis.net/gml%22%3E%3CWithin%3E%3CPropertyName%3Ethe_geom%3C/PropertyName%3E%3Cgml:Polygon%20srsName=%22EPSG:4326%22%20%20xmlns:gml=%22http://www.opengis.net/gml%22%3E%3Cgml:exterior%3E%3Cgml:LinearRing%20%20srsName=%22EPSG:4326%22%3E%3Cgml:coordinates%3E113.40634,23.00295%20113.42634,23.00295%20113.42634,23.02295%20113.40634,23.02295%20113.40634,23.00295%3C/gml:coordinates%3E%3C/gml:LinearRing%3E%3C/gml:exterior%3E%3C/gml:Polygon%3E%3C/Within%3E%3C/Filter%3E&outputFormat=application/json

 

会出现 

<ServiceExceptionReport xmlns="http://www.opengis.net/ogc" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2.0" xsi:schemaLocation="http://www.opengis.net/ogc http://schemas.opengis.net/wfs/1.0.0/OGC-exception.xsd">

<ServiceException code="XML getFeature request SAX parsing error" locator="org.geoserver.ows.XmlRequestReader"> org.xml.sax.SAXException: Attempted to construct illegal filter - I dont understand the tag: gml:exterior. HINT: tags are case-sensitive! Attempted to construct illegal filter - I dont understand the tag: gml:exterior. HINT: tags are case-sensitive! </ServiceException>

</ServiceExceptionReport>

这问题是以为wfs的版本需要设置1.1.0.

 

修改为:http://192.168.3.203:8080/geoserver/agcim/ows?service=wfs&request=GetFeature&version=1.1.0&typeName=htsitr:%E5%8D%97%E6%9D%91%E9%95%87%E6%A0%87%E5%87%86%E5%9C%B0%E5%9D%802021&Filter=%3CFilter%20xmlns=%22http://www.opengis.net/ogc%22%20xmlns:gml=%22http://www.opengis.net/gml%22%3E%3CWithin%3E%3CPropertyName%3Ethe_geom%3C/PropertyName%3E%3Cgml:Polygon%20srsName=%22EPSG:4326%22%20%20xmlns:gml=%22http://www.opengis.net/gml%22%3E%3Cgml:exterior%3E%3Cgml:LinearRing%20%20srsName=%22EPSG:4326%22%3E%3Cgml:coordinates%3E113.40634,23.00295%20113.42634,23.00295%20113.42634,23.02295%20113.40634,23.02295%20113.40634,23.00295%3C/gml:coordinates%3E%3C/gml:LinearRing%3E%3C/gml:exterior%3E%3C/gml:Polygon%3E%3C/Within%3E%3C/Filter%3E&outputFormat=application/json

 

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值