Skip to content

romanwoessner/wps-pd-52n

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

52°North WPS-PD Extension

Extension for the 52°North WPS Server which makes a process able to generate WPS-PD Elements. The extension contains an AbstractPDGenerator, seven generators for practical PD-Elements and seven PD-Bindings to wrap the PD-Elements. Each of the PD-Generators supports the appropriate PD-Binding IDataType.

Supported WPS-PD Elements

  • Link
  • Message
  • Viewport
  • Marker
  • Geometry
  • StyledFeatureCollection
  • Group

Configuration

Register each necessary generator in the wps_config.xml of your 52n WPS-Server instance. Use the appropriate schema according to disy WPS-PD as exclusive format.

Example:

<Generator name="PDViewportGenerator"
    className="net.disy.wps.n52.generator.PDViewportGenerator"
    active="true">
    <Format mimetype="text/xml"
        encoding="default"
        schema="http://schemas.disy.net/wps-pd/1.0.0/wps-pd.xsd#Viewport" />
</Generator>

Usage

Once the generators are registered, you can use PD-Elements as outputs of algorithms. The following code-sample shows an extract of an AbstractAnnotatedAlgorithm.

import net.disy.ogc.wpspd.v_1_0_0.ViewportType;

private ViewportType outputPDViewport;

@ComplexDataOutput(
    identifier ="PDViewport", title = "pd:Viewport output",
    abstrakt="This is a dummy pd:Viewport", binding = PDViewportBinding.class)
public ViewportType getPDViewport() {
    return this.outputPDViewport;
}

See the example algorithm PDViewportDummy.java for detailed information on how to create a pd-object and assign it as an algorithms complex output.

About

WPS-PD Bindings and Generators for 52°North WPS Server

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages