0

我有以下网址:

http://localhost:8080/geoserver/wfs?service=WFS&version=2.0.0&request=GetFeature&typename=anjali%3Aaddress&outputFormat=application%2Fjson&isDenormalized=false&propertyname=housenumber,housename,poi,street,subsublocality,sublocality,locality,village,subdistrict,district,city,state,pincode,formattedaddress,eloc,latitude,longitude,geocodelevel,confidencescore,id,fulladdress ,lat&count=500&startIndex=0

这里fulladress 后面包含一个空格,即'fulladdress',我在通过geoserver 发出wfs 请求时传入了propertyname。我从地理服务器收到以下错误:

<ows:ExceptionReport xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:xsi="http:// /www.w3.org/2001/XMLSchema-instance" version="2.0.0" xsi:schemaLocation="http://www.opengis.net/ows/1.1 http://localhost:8081/geoserver/schemas/ ows/1.1.0/owsAll.xsd"> <ows:Exception exceptionCode="InvalidParameterValue" locator="GetFeature"> ows:ExceptionTextRequested 属性:fulladdress 不适用于 anjali:address。可能的 propertyName 值为:[geom, housenumber, housename, poi, street, subsublocality, sublocality, locality, village, subdistrict, district, city, state, pincode, formattedaddress, eloc, latitude, longitude, geocodelevel, confidencescore, id, fulladdress , lat]</ows:ExceptionText> </ows:Exception>

我尝试了以下方法,但似乎没有任何效果:

  1. 用 %20 替换空间
  2. 用'fulladdress'替换fulladress
  3. 用“fulladdress”替换fulladress

我什至已经阅读了有关此的官方文档,但没有提及有关此问题的任何内容。此外,如果我删除空格,则地理服务器不会返回有关 fulladdress 的信息。非常感谢您的及时帮助。

4

0 回答 0