GeoServer: WFS service call

        The WFS standard defines a framework for providing access to discrete geographic features and supporting transactions in a manner independent of the underlying data sources. Through a combination of discovery, query, locking, and transactional operations, users can access source spatial and attribute data in a manner that allows them to query, style, edit (create, update, and delete) and download individual features. The transaction capabilities of WFS also support the development and deployment of collaborative mapping applications.

WFS service loading

        The WFS service released by GeoServer allows developers to directly access the GIS data source selected in the data storage stage, which is the shapefile file data source used in " GeoServer: Linux Environment Deployment and WMS Service Release Test ". The return format can be specified through the outputFormat parameter. For example, if the return format is specified as json, then the value of the outputFormat parameter in the following GET request can be specified as application/json .

http://IP:PORT/geoserver/example/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=example%3Ashanghai&maxFeatures=50&outputFormat=application%2Fjson

        will return a geojson object in json format as shown below,

Guess you like

Origin blog.csdn.net/weixin_43524214/article/details/131742324