In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-20 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
This article will explain in detail how to invoke wfs services in Geoserver. The content of the article is of high quality, so the editor shares it for you as a reference. I hope you will have some understanding of the relevant knowledge after reading this article.
GeoServer is the J2EE implementation of OpenGIS Web server specification. GeoServer can be used to publish map data conveniently, allowing users to update, delete and insert feature data. It is relatively easy to share spatial geographic information among users through GeoServer. GeoServer is a community open source project that can be downloaded directly from the community website.
Using Geoserver can replace commercial data publishing software such as Arcgis Server, and release it according to OGC standard, which is compatible with most client software access. The services supported by Geoserver are wmts,wms,wcs,wfs.
In the usual concept, Geoserver only publishes data for the client to call, and the client calls the methods in Geoserver to display information. in fact, Geoserver also provides many built-in service interfaces that can set parameters for querying, which is the same principle as Arcgis Server. Many services have been integrated and developed in these Server, and Arcgis Server has done quite a lot of work on the client side, which can be called using JavaScript's api, which can be called in Geoserver We can also invoke these services at the request of url, which requires familiarity with the invocation of common client web requests.
The following is illustrated according to a simple wfs request, for example, we publish a shp data service in Geoserver, not only to see the data in the map, but also to request the data information in it.
Http://localhost:8977/geoserver/wfs?service=wfs&version=2.0.0&propertyName=cat&request=GetFeature&typeNames=sf:archsites&outputFormat=application/json
This is a service that requests wfs and returns layer specified attribute information and coordinate information:
Service=wfs&version=2.0.0&request=GetFeature is a fixed parameter
TypeNames=sf:archsites is the layer name published by Geoserver. Geoserver generally prefixes the processing area to read the layer name.
PropertyName=cat can control the returned attributes, with multiple attributes separated by commas
The type of data returned by outputFormat=application/json. You can specify json,xml, etc.
Partial return data effect:
In the development of the system, we can splice the above url according to the rules, and return the json data for processing through the web request, so that some services do not need to be developed separately, and in the Geoserver manual, there are other different kinds of service requests, which can be found according to the needs.
So much for sharing the service invocation of wfs in Geoserver. I hope the above content can be of some help and learn more knowledge. If you think the article is good, you can share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.