无法从地理服务器检索属性值
Cannot retrieve attribute value from geoserver
我是地理服务器的新手。我已经创建了我所在地区的形状文件,并添加了与 COVID 相关的某些属性,例如 covid count、covid zone、地区名称等。我已将其加载到 postgis 数据库中,我也可以在 table 中看到属性。但是当我尝试使用 postman 检索该功能时。不检索属性值。谁能帮忙
回应是
{
"featureType":{
"name": "ernakulam",
"nativeName": "ernakulam",
"namespace":{
"name": "DistrictWpc",
"href": "http://localhost:8080/geoserver/rest/namespaces/DistrictWpc.json"
},
"title": "ernakulam",
"keywords":{
"string": [
"features",
"ernakulam"
]
},
"srs": "EPSG:404000",
"nativeBoundingBox":{
"minx": 76.1618881225586,
"maxx": 76.6080093383789,
"miny": 9.63820648193359,
"maxy":10.1869020462036
},
"latLonBoundingBox":{
"minx": 76.1618881225586,
"maxx": 76.6080093383789,
"miny": 9.63820648193359,
"maxy": 10.1869020462036,
"crs": "EPSG:4326"
},
"projectionPolicy": "FORCE_DECLARED",
"enabled": 是的,
"store":{
"@class": "dataStore",
"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":错误,
"attributes":{
"attribute": [
{
"name": "id",
"minOccurs": 0,
"maxOccurs": 1,
"nillable": 是的,
"binding": "java.lang.Long"
},
{
"name": "district",
"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"
}
]
}
}
}
GeoServer's REST API 用于管理任务,因此不提供查看存储在数据库中的实际数据的方法,仅提供有关 GeoServer 如何连接到数据库的详细信息以及有关的一些元数据商店。
要访问实际数据,您需要使用 OGC WES Specification and described in the GeoServer manual 描述的 WFS 端点。
如果您必须具有对这些功能的 REST 访问权限,您可以使用 实验性 OGC Features API module 来执行此操作。
我是地理服务器的新手。我已经创建了我所在地区的形状文件,并添加了与 COVID 相关的某些属性,例如 covid count、covid zone、地区名称等。我已将其加载到 postgis 数据库中,我也可以在 table 中看到属性。但是当我尝试使用 postman 检索该功能时。不检索属性值。谁能帮忙
回应是 { "featureType":{ "name": "ernakulam", "nativeName": "ernakulam", "namespace":{ "name": "DistrictWpc", "href": "http://localhost:8080/geoserver/rest/namespaces/DistrictWpc.json" }, "title": "ernakulam", "keywords":{ "string": [ "features", "ernakulam" ] }, "srs": "EPSG:404000", "nativeBoundingBox":{ "minx": 76.1618881225586, "maxx": 76.6080093383789, "miny": 9.63820648193359, "maxy":10.1869020462036 }, "latLonBoundingBox":{ "minx": 76.1618881225586, "maxx": 76.6080093383789, "miny": 9.63820648193359, "maxy": 10.1869020462036, "crs": "EPSG:4326" }, "projectionPolicy": "FORCE_DECLARED", "enabled": 是的, "store":{ "@class": "dataStore", "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":错误, "attributes":{ "attribute": [ { "name": "id", "minOccurs": 0, "maxOccurs": 1, "nillable": 是的, "binding": "java.lang.Long" }, { "name": "district", "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" } ] } } }
GeoServer's REST API 用于管理任务,因此不提供查看存储在数据库中的实际数据的方法,仅提供有关 GeoServer 如何连接到数据库的详细信息以及有关的一些元数据商店。
要访问实际数据,您需要使用 OGC WES Specification and described in the GeoServer manual 描述的 WFS 端点。
如果您必须具有对这些功能的 REST 访问权限,您可以使用 实验性 OGC Features API module 来执行此操作。