无法从地理服务器检索属性值

问题描述 投票:0回答:1

我是地理服务器的新手。我已经创建了我所在地区的形状文件,并添加了与COVID相关的某些属性,例如covid计数,covid区域,地区名称等。我已经将其加载到postgis数据库中,并且可以在表中看到属性。但是当我尝试使用postman检索功能时。不会检索属性值。谁能帮忙

以下是我的要求http://localhost:8080/geoserver/rest/workspaces/DistrictWpc/datastores/district_store/featuretypes/ernakulam.json

响应为{“ featureType”:{“ name”:“ ernakulam”,“ nativeName”:“ ernakulam”,“命名空间”:{“ name”:“ DistrictWpc”,“ href”:“ http://localhost:8080/geoserver/rest/namespaces/DistrictWpc.json”},“ title”:“ ernakulam”,“关键字”:{“字符串”:[“特征”,“ ernakulam”]},“ srs”:“ EPSG:404000”,“ nativeBoundingBox”:{“ minx”:76.1618881225586,“ maxx”:76.6080093383789,“ miny”:9.63820648193359,“最大”:10.1869020462036},“ latLonBoundingBox”:{“ minx”:76.1618881225586,“ maxx”:76.6080093383789,“ miny”:9.63820648193359,“最大值”:10.1869020462036,“ crs”:“ EPSG:4326”},“ projectionPolicy”:“ FORCE_DECLARED”,“已启用”:是,“商店”:{“ @class”:“数据存储”,“ name”:“ DistrictWpc:district_store”,“ href”:“ http://localhost:8080/geoserver/rest/workspaces/DistrictWpc/datastores/district_store.json”},“ serviceConfiguration”:否,“ maxFeatures”:0,“ numDecimals”:0,“ padWithZeros”:否,“ forcedDecimal”:否,“ overridingServiceSRS”:否,“ skipNumberMatched”:否,“ circularArcPresent”:否,“属性”:{“属性”:[{“ name”:“ id”,“ minOccurs”:0,“ maxOccurs”:1,“ nillable”:是的,“ binding”:“ java.lang.Long”},{“ name”:“地区”,“ minOccurs”:0,“ maxOccurs”:1,“ nillable”:是的,“ binding”:“ java.lang.String”},{“ name”:“ count”,“ minOccurs”:0,“ maxOccurs”:1,“ nillable”:是的,“ binding”:“ java.lang.Long”},{“ name”:“ zone”,“ minOccurs”:0,“ maxOccurs”:1,“ nillable”:是的,“ binding”:“ java.lang.String”},{“ name”:“ geom”,“ minOccurs”:0,“ maxOccurs”:1,“ nillable”:是的,“ binding”:“ org.locationtech.jts.geom.MultiPolygon”}]}}}

postgis geoserver
1个回答
0
投票
要访问实际数据,您需要使用由OGC WES Specification描述并在GeoServer manual中描述的WFS端点。

如果您必须对这些功能具有REST访问权限,则可以使用

experimental OGC Features API module执行此操作。

© www.soinside.com 2019 - 2024. All rights reserved.