[Geoserver-devel] Configuration for a WMS output format

I would like to add some configuration options to the DDS/BIL plugin distributed with the GeoServer community modules. This module implements output formats used by NASA World Wind, and I'd like to add some options to allow the server admin to configure the type of BIL output produced (set the data type, byte order, etc). Is there any established pattern for setting and storing configuration for an output format? I'm thinking of adding a page to the GeoServer web interface, and I'd like to persist the settings using the same mechanism as used for the rest of the GeoServer settings. If anyone can point me at some examples in the code base, it would be very helpful.

Thanks,
Parker

I think you can see examples of additional format options added to the WMS (or WFS) service page as appropriate.

It is a little more tricky if you want to adjust these settings on a layer by layer basis … there is a metadatamap that can be used for this purpose - but you will need to add some UI elements to the layer configuration panels such as KMLLayerConfigPanel.

Now is a good time to do the work as we have recently created a new master branch and the code freeze for release is over.

Jody

···

Jody Garnett

On Tue, Aug 26, 2014 at 8:08 AM, Parker Abercrombie <parker.abercrombie@anonymised.com> wrote:

I would like to add some configuration options to the DDS/BIL plugin
distributed with the GeoServer community modules. This module implements
output formats used by NASA World Wind, and I’d like to add some options
to allow the server admin to configure the type of BIL output produced
(set the data type, byte order, etc). Is there any established pattern
for setting and storing configuration for an output format? I’m thinking
of adding a page to the GeoServer web interface, and I’d like to persist
the settings using the same mechanism as used for the rest of the
GeoServer settings. If anyone can point me at some examples in the code
base, it would be very helpful.

Thanks,
Parker


Slashdot TV.
Video for Nerds. Stuff that matters.
http://tv.slashdot.org/


Geoserver-devel mailing list
Geoserver-devel@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Thanks, Jody. Following your pointers I was able to add UI to the layer config page and populate the metadata map. I think this is a good solution.

-Parker

On 8/26/14, 10:51 AM, Jody Garnett wrote:

I think you can see examples of additional format options added to the WMS (or WFS) service page as appropriate.

It is a little more tricky if you want to adjust these settings on a layer by layer basis ... there is a metadatamap <http://ares.boundlessgeo.com/geoserver/2.4.x/doc/javadoc/org/geoserver/catalog/ResourceInfo.html#getMetadata()&gt; that can be used for this purpose - but you will need to add some UI elements to the layer configuration panels <http://ares.boundlessgeo.com/geoserver/2.4.x/doc/javadoc/&gt; such as KMLLayerConfigPanel.

Now is a good time to do the work as we have recently created a new master branch and the code freeze for release is over.

Jody

Jody Garnett

On Tue, Aug 26, 2014 at 8:08 AM, Parker Abercrombie <parker.abercrombie@anonymised.com <mailto:parker.abercrombie@anonymised.com>> wrote:

    I would like to add some configuration options to the DDS/BIL plugin
    distributed with the GeoServer community modules. This module
    implements
    output formats used by NASA World Wind, and I'd like to add some
    options
    to allow the server admin to configure the type of BIL output produced
    (set the data type, byte order, etc). Is there any established pattern
    for setting and storing configuration for an output format? I'm
    thinking
    of adding a page to the GeoServer web interface, and I'd like to
    persist
    the settings using the same mechanism as used for the rest of the
    GeoServer settings. If anyone can point me at some examples in the
    code
    base, it would be very helpful.

    Thanks,
    Parker

Cool, just be aware when submitting a patch that we will need test cases (to show that your configuration options do something). I know you are probably doing that already but it is worth repeating.

If you have any questions I am interested if the CONTRIBUTING.md file in GitHub is able to answer them :slight_smile:

···

Jody Garnett

On Wed, Aug 27, 2014 at 7:42 AM, Parker Abercrombie <parker.abercrombie@anonymised.com> wrote:

Thanks, Jody. Following your pointers I was able to add UI to the layer config page and populate the metadata map. I think this is a good solution.

-Parker

On 8/26/14, 10:51 AM, Jody Garnett wrote:

I think you can see examples of additional format options added to the WMS (or WFS) service page as appropriate.

It is a little more tricky if you want to adjust these settings on a layer by layer basis … there is a metadatamap that can be used for this purpose - but you will need to add some UI elements to the layer configuration panels such as KMLLayerConfigPanel.

Now is a good time to do the work as we have recently created a new master branch and the code freeze for release is over.

Jody

Jody Garnett

On Tue, Aug 26, 2014 at 8:08 AM, Parker Abercrombie <parker.abercrombie@anonymised.com> wrote:

I would like to add some configuration options to the DDS/BIL plugin
distributed with the GeoServer community modules. This module implements
output formats used by NASA World Wind, and I’d like to add some options
to allow the server admin to configure the type of BIL output produced
(set the data type, byte order, etc). Is there any established pattern
for setting and storing configuration for an output format? I’m thinking
of adding a page to the GeoServer web interface, and I’d like to persist
the settings using the same mechanism as used for the rest of the
GeoServer settings. If anyone can point me at some examples in the code
base, it would be very helpful.

Thanks,
Parker

On Wed, Aug 27, 2014 at 7:42 PM, Jody Garnett <jody.garnett@anonymised.com>
wrote:

Cool, just be aware when submitting a patch that we will need test cases
(to show that your configuration options do something). I know you are
probably doing that already but it is worth repeating.

Mind one detail, adding a patch for a community module is not require (it's
unsupported anyways), but it would be nice to have it,
as it will make the work of anyone trying to bring the module to supported
land in the future easier

Cheers
Andrea

--

GeoServer Professional Services from the experts! Visit
http://goo.gl/NWWaa2 for more information.

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------