GeoJSON output for GeoServer
I’ve just uploaded a new GeoJSON plug-in for GeoServer, enabling JSON output for any WFS request. The plug-in is definitely compatible with all versions of GeoServer 1.5.x, and will likely work with 1.4.x as well. This was a breeze to write, which is a testament to the nice design of GeoServer and to the strength of the Java open source world. I made use of json-lib, and extended the JSONBuilder to handle geometries. Then hooked that up as an output format plugin for WFS, and we can now plug it in to existing GeoServer installations. Please give us feedback on how it’s working, and if we get a positive response we’ll likely include it in the default release.
The plug-in can be downloaded from sourceforge, and there’s a bit of a write-up in the GeoServer documentation. For more information on GeoJSON, see http://geojson.org. The spec is not yet finalized as 1.0, but is a first release candidate. So hopefully it will hold up, but if not we’ll definitely stay up to date with the latest versions.
Tutorials
- Using Logical Operators in GeoServer Filters
- Exploring CQL/ECQL Filtering in GeoServer
- Using Spatial Operators in GeoServer Filters
- Using Value Comparison Operators in GeoServer Filters
- Using Binary Comparison Operators in GeoServer Filters
- Utilizing the Demo Section in Geoserver
- How to Implement Basic Security in Geoserver
- How to create Tile Layers with GeoServer
- How to style layers using GeoServer and QGIS
- How to Publish a GeoTIFF file in GeoServer