Saturday, 26 September 2015

describe feature type - Custom DescribeFeatureType response in Geoserver?


I'm using Geoserver in my web application. I need custom DescribeFeatureType response. What this mean?

layer_a is a layer in Geoserver. It have Feature Type Details as follow:


enter image description here


DiscribeFeatureType request for this layer, return a response as follow:



xmlns:opengeo="http://opengeo.org"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified"
targetNamespace="http://opengeo.org">

schemaLocation="http://localhost:8080/geoserver/schemas/gml/3.1.1/base/gml.xsd"/>



















I want to get more description for some fields. For example, for SQKM row, I want to get some extra description such as: minValue, maxValue and etc.



Is it possible? If yes, HOW?


A suggestion: We can put our data in column comment of table and then define a db datastore in geoserver. So we can response comment of table with describeFeatureType?




No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...