Documente Academic
Documente Profesional
Documente Cultură
This book informs that it was produced by receiving the support of the research fund of
the Ministry of Land, Infrastructure and Transport (KISA) (project number 14NSIP-
B080144-01)..
2
Spatial Extension for GeoServer WPS 1.0
Copyright Notice
Copyright ⓒ 2016 MangoSystem Inc. All Rights Reserved.
E-mail: master.mangosystem@gmail.com
Homepage: http://www.mangosystem.com
Trademarks
MangoSystem Spatial Extension for GeoServer Is a registered trademark of All other products and
company names are trademarks of their respective owners and are used for informational purposes only.
information.
⚫ GeoTools: http://www.geotools.org
⚫ GeoServer: http://geoserver.org
Contents
1.2.2. DescribeProcess................................................................................................................. 11
1.3.1. Literal...................................................................................................................................... 16
1.3.2. BoundingBox....................................................................................................................... 16
1.3.3. Complex................................................................................................................................ 16
1.4.2. ResponseDocument......................................................................................................... 19
2 Installation ...................................................................................................................................................... 21
4
Spatial Extension for GeoServer WPS 1.0
3 Quick Start...................................................................................................................................................... 28
3.1. Overview........................................................................................................................................ 28
3.4.1. WFS......................................................................................................................................... 33
4.2.4. Overlay................................................................................................................................... 96
4.2.5. Proximity.............................................................................................................................113
4.2.6. Aggregation ......................................................................................................................137
5
Spatial Extension for GeoServer WPS 1.0
4.2.8. Editing..................................................................................................................................183
4.3.2. Conversion.........................................................................................................................277
4.3.6. Management.....................................................................................................................310
4.3.7. Extraction............................................................................................................................323
4.3.8. Density.................................................................................................................................339
4.3.11. Zonal.....................................................................................................................................385
4.3.13. Utilities.................................................................................................................................396
4.4.2. Distributions......................................................................................................................421
4.4.3. Point Pattern Analysis...................................................................................................438
6
Spatial Extension for GeoServer WPS 1.0
5.1.1. Goal.......................................................................................................................................486
5.2. Examples......................................................................................................................................492
5.2.2. D1 ..........................................................................................................................................496
5.2.3. D2 ..........................................................................................................................................502
5.2.4. D3 ..........................................................................................................................................509
5.2.5. D4 ..........................................................................................................................................514
5.2.6. D5 ..........................................................................................................................................520
6 References ....................................................................................................................................................523
요청 응답 설명
GetCapabilities XML Return meta information about serviceable process as XML
DescribeProcess XML Provides detailed information about the process (input, output,available formats, etc.)
Excute XML Run one of the processes that WPS provides and return the result
1 https://en.wikipedia.org/wiki/Web_Processing_Service
2
Geo-Processing is a process used to manipulate GIS data. It consists of one or more input data
It is a format that returns the result after data processing by using it. Usually, there is nesting, raster analysis,
and data conversion.
8
Spatial Extension for GeoServer WPS 1.0
1.2. Operations
The Web Processing Service version 1.0.0 consists of three operations: GetCapabilities,
DescribeProcess, and Execute.
1.2.1. GetCapabilities
Provides metadata about operation and process list provided by WPS server.
◼ HTTP Get Request
http://127.0.0.1:8080/geoserver/ows?
service=wps&
version=1.0.0&
request=GetCapabilities
◼ Response Document
<wps:Capabilities xmlns:wps="http://www.opengis.net/wps/1.0.0"
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:xlink="http://www.w3.org/1999/xlink"
xsi:schemaLocation="http://www.opengis.net/wps/1.0.0 http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:ServiceIdentification>
<ows:Abstract />
<ows:ServiceType>WPS</ows:ServiceType>
<ows:ServiceTypeVersion>1.0.0</ows:ServiceTypeVersion>
</ows:ServiceIdentification>
<ows:ServiceProvider>
<ows:ServiceContact />
</ows:ServiceProvider>
<ows:OperationsMetadata>
<ows:Operation name="GetCapabilities">
<ows:DCP>
<ows:HTTP>
<ows:Get xlink:href="http://127.0.0.1:8080/geoserver/wps" />
</ows:HTTP>
</ows:DCP>
</ows:Operation>
9
Spatial Extension for GeoServer WPS 1.0
<ows:Operation name="DescribeProcess">
<ows:DCP>
<ows:HTTP>
</ows:HTTP>
</ows:DCP>
</ows:Operation>
<ows:Operation name="Execute">
<ows:DCP>
<ows:HTTP>
</ows:HTTP>
</ows:DCP>
</ows:Operation>
</ows:OperationsMetadata>
<wps:ProcessOfferings>
<wps:Process wps:processVersion="1.0.0">
<ows:Identifier>statistics:AttributeJoin</ows:Identifier>
field.</ows:Abstract>
</wps:Process>
<wps:Process wps:processVersion="1.0.0">
<ows:Identifier>statistics:BufferFeatures</ows:Identifier>
</wps:Process>
...
</wps:ProcessOfferings>
<wps:Languages>
<wps:Default>
<ows:Language>en-US</ows:Language>
</wps:Default>
<wps:Supported>
<ows:Language>en-US</ows:Language>
</wps:Supported>
</wps:Languages>
</wps:Capabilities>
10
Spatial Extension for GeoServer WPS 1.0
1.2.2. DescribeProcess
Provides metadata such as input and output parameters of process provided by WPS server,
Mime type related to each parameter, default value of parameter, whether process status is
supported.
http://127.0.0.1:8080/geoserver/ows?
service=wps&
version=1.0.0&
request=DescribeProcess&
Identifier=statistics:BufferFeatures
◼ Response Document
<wps:ProcessDescriptions xmlns:wps="http://www.opengis.net/wps/1.0.0"
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:xlink="http://www.w3.org/1999/xlink"
xsi:schemaLocation="http://www.opengis.net/wps/1.0.0 http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:BufferFeatures</ows:Identifier>
<DataInputs>
<ows:Identifier>inputFeatures</ows:Identifier>
<ows:Title>Input Features</ows:Title>
<ComplexData>
<Default>
<Format>
<MimeType>text/xml; subtype=wfs-collection/1.0</MimeType>
</Format>
</Default>
<Supported>
<Format>
<MimeType>text/xml; subtype=wfs-collection/1.0</MimeType>
</Format>
<Format>
<MimeType>application/json</MimeType>
11
Spatial Extension for GeoServer WPS 1.0
</Format>
</Supported>
</ComplexData>
</Input>
<ows:Identifier>distance</ows:Identifier>
<ows:Title>Distance Expression</ows:Title>
<ows:Abstract>The distance expression used to create distance. ex) 1000 or [field] or [field] * 0.5
etc...</ows:Abstract>
<LiteralData>
<ows:AnyValue />
</LiteralData>
</Input>
<ows:Identifier>quadrantSegments</ows:Identifier>
<ows:Title>Quadrant Segments</ows:Title>
circle.</ows:Abstract>
<LiteralData>
<ows:DataType>xs:int</ows:DataType>
<ows:AnyValue />
</LiteralData>
</Input>
</DataInputs>
<ProcessOutputs>
<Output>
<ows:Identifier>result</ows:Identifier>
<ows:Title>Result Features</ows:Title>
<ComplexOutput>
<Default>
<Format>
<MimeType>text/xml; subtype=wfs-collection/1.0</MimeType>
</Format>
</Default>
<Supported>
<Format>
<MimeType>text/xml; subtype=wfs-collection/1.0</MimeType>
</Format>
<Format>
<MimeType>text/xml; subtype=gml/3.1.1</MimeType>
</Format>
12
Spatial Extension for GeoServer WPS 1.0
</Supported>
</ComplexOutput>
</Output>
</ProcessOutputs>
</ProcessDescription>
</wps:ProcessDescriptions>
1.2.3. Execute
HTTT Operation to execute Get / Post based process. The following is an example of a request
statement that runs the Simplify process.
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0"
xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0"
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1"
xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:Simplify</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>inputFeatures</ows:Identifier>
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
<wfs:Query typeName="foss:road"/>
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>tolerance</ows:Identifier>
<wps:Data>
<wps:LiteralData>30</wps:LiteralData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<wps:RawDataOutput mimeType="application/json">
<ows:Identifier>result</ows:Identifier>
13
Spatial Extension for GeoServer WPS 1.0
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
For more information about the processes provided by GeoServer and Spatial Extension for GeoServer,
please refer to Chapter 3 GeoServer Process Reference.
14
Spatial Extension for GeoServer WPS 1.0
15
Spatial Extension for GeoServer WPS 1.0
1.3.1. Literal
The Literal data type is a parameter passed as a string containing the Java Native Type. This
includes byte, short, int, long, float, double, String and other Enum, Filter Expression, and so
on.
The following example shows Literal data being used in a WPS request statement.
<wps:Input>
<ows:Identifier>joinType</ows:Identifier>
<wps:Data>
<wps:LiteralData>KeepAllRecord</wps:LiteralData>
</wps:Data>
</wps:Input>
1.3.2. BoundingBox
The BoundingBox data type is a parameter that represents the minimum bounding rectangle
consisting of LowerCorner, UpperCorner, and Coordinate Reference System (CRS). The
following is used in the WPS request statement:
<wps:Input>
<ows:Identifier>clip</ows:Identifier>
<wps:Data>
<ows:LowerCorner>0.0 0.0</ows:LowerCorner>
<ows:UpperCorner>100.0 200.0</ows:UpperCorner>
</wps:BoundingBoxData>
</wps:Data>
</wps:Input>
1.3.3. Complex
Complex data types are all user defined type parameters except Literal and BoundingBox
parameters. They can be expanded by implementing process parameter IO such as XML, GML,
GeoJSON, raster data (GeoTIFF etc.), Filter Encoding and SLD (Styled Layer Descriptor) I will.
◼ Geometry 의 WKT 포맷 활용
16
Spatial Extension for GeoServer WPS 1.0
<wps:Input>
<ows:Identifier>poi</ows:Identifier>
<wps:Data>
200)]]></wps:ComplexData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>inputFeatures</ows:Identifier>
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
<wfs:Query typeName="foss:stores"/>
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>coverage</ows:Identifier>
<wps:Body>
<ows:Identifier>cite:dem</ows:Identifier>
<wcs:DomainSubset>
<gml:BoundingBox crs="http://www.opengis.net/gml/srs/epsg.xml#5181">
<ows:LowerCorner>360798.47130000126 166606.5</ows:LowerCorner>
<ows:UpperCorner>409658.47130000126 212476.5</ows:UpperCorner>
</gml:BoundingBox>
</wcs:DomainSubset>
<wcs:Output format="image/tiff"/>
</wcs:GetCoverage>
</wps:Body>
</wps:Reference>
</wps:Input>
17
Spatial Extension for GeoServer WPS 1.0
1.4.1. RawDataOutput
When you request with RawDataOutput, the response returns XML, GML, GeoJSON, raster data
directly. The following example returns xml directly with RawDataOutput.
18
Spatial Extension for GeoServer WPS 1.0
1.4.2. ResponseDocument
When a request is made with ResponseDocument, the response is returned in WPS's
ExecuteResponse XML format.
If you set asReference of the Output parameter to true as follows, return the URL of the result
data 3 temporarily stored on the server, otherwise return it in RawData format (XML). Non-
XML formats can not be contained within the ExecuteResponse XML.
3
You can set the Resource release time in the GeoServer WPS Settings page.
19
Spatial Extension for GeoServer WPS 1.0
application/gml-2.1.2
application/gml-3.1.1
GeoJSON application/json
Feature Features GML2.1 text/xml; subtype=wfs-collection/1.0
WKT application/wkt
Collection WFS application/wfs-collection/1.0
application/wfs-collection/1.1
text/xml; subtype=gml/3.1.1
GeoJSON application/json
Grid WCS GeoTiff image/tiff
Shapefile application/zip
Coverage Ascii application/arcgrid
SLD User XML text/xml; subtype=sld/1.0.0
text/xml; subtype=sld/1.1.0
Filter User XML text/xml; subtype=filter/1.0
text/xml; subtype=filter/1.1
text/plain; subtype=cql
XML User XML text/xml
Literal User - -
20
Spatial Extension for GeoServer WPS 1.0
2 Installation
In this case, you can use GeoServer in the most commonly used Apache Tomcat environment.
Describes the installation process. For other procedures, please refer to the GeoServer Online manual.
Spatial Extension for GeoServer has been developed for GeoServer 2.5.x, 2.7.x, and 2.8.x
versions and has been tested to GeoServer versions 2.5.x through 2.9.x.
The following describes the installation process based on GeoServer version 2.8.5.
2.1.1. Java and Tomcat
GeoServer 2.8.5 supports the Java 7 version. The installation process for Java is skipped.
21
Spatial Extension for GeoServer WPS 1.0
✓ https://sourceforge.net/projects/geoserver/files/GeoServer/2.8.5/geoserver-
2.8.5-war.zip
After unzipping the downloaded geoserver-2.8.5-war.zip file, copy the geoserver.war file to
the webapps folder in the Tomcat installation folder. After a while GeoServer will be
installed.
◼ WPS Extension
✓ https://sourceforge.net/projects/geoserver/files/GeoServer/2.8.5/extensions/ge
oserver-2.8.5-wps-plugin.zip
After unzipping the downloaded geoserver-2.8.5-wps-plugin.zip file, copy all included jar
files into the webapps / geoserver / WEB-INF / lib folder.
Now restart the Tomcat service and go to the GeoServer admin page. You can see that the
WPS Extension is normally installed as shown below.
4 https://sourceforge.net/projects/geoserver
22
Spatial Extension for GeoServer WPS 1.0
✓ https://sourceforge.net/projects/mango-
spatialstatistics/files/GeoServer ✓ gt-process-spatialstatistics-2.8.5.jar
✓ gs-wps-spatialstatistics-2.8.5.jar
Copy the two downloaded jar files into the webapps / geoserver / WEB-INF / lib folder.
5
https://sourceforge.net/projects/mango-spatialstatistics
23
Spatial Extension for GeoServer WPS 1.0
Environment
In the GeoServer Administrator page, click the Server Status page to view the GeoServer Data
Directory
To move the GeoServer Data Directory, shut down the Tomcat service, move the webapps \
geoserver \ data folder, modify the web.xml file in the webapps \ geoserver \ WEB-INF \
folder, and restart the Tomcat service.
<context-param>
<param-name>GEOSERVER_DATA_DIR</param-name>
<param-value>C:\workspace\geoserver\data</param-value>
</context-param>
24
Spatial Extension for GeoServer WPS 1.0
When you install GeoServer for the first time, it follows the [DFAULT_LOGGING.properties] log
policy and leaves a number of logs in addition to the error, including general and warning
information. By default, the log file is stored in the logs folder within the GeoServer Data
Directory, which can also be changed.
To leave a smaller error in the operating environment,
Select [RODUCTION_LOGGING.properties] and click the button at the bottom of the page to
change the policy.
25
Spatial Extension for GeoServer WPS 1.0
<context-param>
<param-name>GS-SHAPEFILE-CHARSET</param-name>
<param-value>x-windows-949</param-value>
</context-param>
5174=PROJCS["Korean 1985 / Modified Central Belt", GEOGCS["Korean 1985", DATUM["Korean Datum 1985",
If you add a new coordinate system that is not already existing, you can add the coordinate
system to the epsg.properties file in the above format, and the EPSG code must be a unique
numeric value.
-Dfile.encoding=UTF-8
26
Spatial Extension for GeoServer WPS 1.0
For more environment configurations required for the JVM and Tomcat operating
environments, see:
http://docs.geoserver.org/stable/en/user/production/index.html
http://geoserver.geo-solutions.it/edu/en/adv_gsconfig/gsproduction.html
27
Spatial Extension for GeoServer WPS 1.0
3 Quick Start
After running the web browser, go to the GeoServer admin page URL.
3.1. Overview
After logging in to GeoServer, look to the right of the start page to see a list of the OGC Web
Services you are currently servicing. If WPS: 1.0.0 is displayed in this list, GeoServer's WPS
Extension has been properly installed.
If you click WPS: 1.0.06 item, you can see the GetCapabilities document of WPS as follows.
6
http://127.0.0.1:8080/geoserver/ows?service=wps&version=1.0.0&request=GetCapabilities
28
Spatial Extension for GeoServer WPS 1.0
Scroll down to see the next Run Settings tab. The Connection Effective Time defaults to 120
seconds, which is the time the connection ends after the process runs. If the processing time
of the WPS process is long, you can increase this time.
In Resource Settings, the Resource Valid Time defaults to 300 seconds, which is the number of
WPS requests processed
The time to keep processing results on the server if you set the option to leave the data on
the server (when requesting with as Reference set to True).
29
Spatial Extension for GeoServer WPS 1.0
More information can be found in the GeoServer manual [WPS Service page 7].
On the WPS Request Builder page, select a process from the Process Selection combo
box.
You can check the parameter information of the selected process as follows.
7
http://docs.geoserver.org/stable/en/user/extensions/wps/administration.html
30
Spatial Extension for GeoServer WPS 1.0
After inputting each input and output parameter, you can see the WPS request statement composed by
XML. This generated request statement can be executed by GeoServer in HTTP Post way and utilize the
result data.
If you press the button after parameter setting, you can check the processing result as
follows.
There is. The following example shows Union Overaly analysis of two polygon layers
and output to GeoJSON.31
Spatial Extension for GeoServer WPS 1.0
32
Spatial Extension for GeoServer WPS 1.0
3.4.1. WFS
Web Feature Service supports DBMS SQL query statements using OGC Filter Encoding
standard.
The following example queries WFS when the input parameter of WPS is vector data
<ows:Identifier>overlayFeatures</ows:Identifier>
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
<wfs:Query typeName="foss:sgg"/>
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
◼ Using specific fields and filters in vector data
</wps:Input>
The following example queries WFS when the input parameter of WPS is vector data
This is an example of query using a specific field (gid, geom, pop_den field) and a spatial filter
(BBOX Filter). In other words, you can increase the processing speed by filtering only the data
for the analysis area in the request statement that will be used for the input parameter of
WPS.
FROM sgg
33
Spatial Extension for GeoServer WPS 1.0
<wps:Input>
<ows:Identifier>inputFeatures</ows:Identifier>
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
<wfs:Query typeName="foss:sgg">
<wfs:PropertyName>gid</wfs:PropertyName>
<wfs:PropertyName>geom</wfs:PropertyName>
<wfs:PropertyName>pop_den</wfs:PropertyName>
<ogc:Filter>
<ogc:BBOX>
<ogc:PropertyName>geom</ogc:PropertyName>
<gml:Envelope srsName="http://www.opengis.net/gml/srs/epsg.xml#3857">
<gml:lowerCorner>14147434 4509613</gml:lowerCorner>
<gml:upperCorner>14148345 4524017</gml:upperCorner>
</gml:Envelope>
</ogc:BBOX>
</ogc:Filter>
</wfs:Query>
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
3.4.2. WCS
The Web Coverage Service provides subset, resample, and reproject functions for raster
requests.
of using Subset
data.
<wps:Input>
<ows:Identifier>data</ows:Identifier>
<wps:Body>
<ows:Identifier>foss:dem30</ows:Identifier>
<wcs:DomainSubset>
34
Spatial Extension for GeoServer WPS 1.0
<gml:BoundingBox crs="urn:ogc:def:crs:EPSG::5181">
<ows:LowerCorner>179171.39881047895 436569.3290600816</ows:LowerCorner>
<ows:UpperCorner>216221.0981287582 466869.08315843146</ows:UpperCorner>
</gml:BoundingBox>
</wcs:DomainSubset>
</wcs:GetCoverage>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>data</ows:Identifier>
<wps:Body>
<ows:Identifier>foss:dem30</ows:Identifier>
<wcs:DomainSubset>
<gml:BoundingBox crs="urn:ogc:def:crs:EPSG::5181">
<ows:LowerCorner>179171.39881047895 436569.3290600816</ows:LowerCorner>
<ows:UpperCorner>216221.0981287582 466869.08315843146</ows:UpperCorner>
</gml:BoundingBox>
</wcs:DomainSubset>
<wcs:GridCRS>
<wcs:GridBaseCRS>urn:ogc:def:crs:EPSG::3857</wcs:GridBaseCRS>
<wcs:GridType>urn:ogc:def:method:WCS:1.1:2dSimpleGrid</wcs:GridType>
<wcs:GridOffsets>50.0 -50.0</wcs:GridOffsets>
<wcs:GridCS>urn:ogc:def:cs:OGC:0.0:Grid2dSquareCS</wcs:GridCS>
</wcs:GridCRS>
</Output>
</wcs:GetCoverage>
</wps:Body>
</wps:Reference>
35
Spatial Extension for GeoServer WPS 1.0
</wps:Input>
36
Spatial Extension for GeoServer WPS 1.0
4.1. Process
Here is a list of processes that WPS offers as of October 2017:
37
Spatial Extension for GeoServer WPS 1.0
Moran’s I
Geary’s c
Getis-Ord’s General G
Lee’s S
Lee’s L
Local Moran’s I
Local Geary’s c
Local Spatial Auto-Correlation Local G(Gi*)
Lee’s Si
Lee’s Li
Global Spatial Modeling Ordinary Least Squares (OLS)
41
Spatial Extension for GeoServer WPS 1.0
◼ Syntax
◼ Parameters
◼ Data Inputs
◼ Process Outputs
◼ Constraints
- If you set the boundsSource parameter, only the boundsSource and the intersecting grid
◼ Request Examples
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0"
xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0"
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1"
xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:FishnetCount</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>extent</ows:Identifier>
<wps:Data>
<ows:LowerCorner>1.4111357E7 4498975.0</ows:LowerCorner>
<ows:UpperCorner>1.4158036E7 4537337.0</ows:UpperCorner>
</wps:BoundingBoxData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>boundsSource</ows:Identifier>
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
<wfs:Query typeName="foss:sid"/>
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>columns</ows:Identifier>
<wps:Data>
<wps:LiteralData>25</wps:LiteralData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>rows</ows:Identifier>
<wps:Data>
<wps:LiteralData>25</wps:LiteralData>
</wps:Data>
</wps:Input>
43
Spatial Extension for GeoServer WPS 1.0
</wps:DataInputs>
<wps:ResponseForm>
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
◼ Parameters
◼ Data Inputs
◼ Process Outputs
◼ Constraints
- If you set the boundsSource parameter, create only the boundsSource and the
intersecting grid.
◼ Request Examples
<?xml version="1.0" encoding="UTF-8"?><wps:Execute version="1.0.0" service="WPS"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0"
xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0"
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1"
45
Spatial Extension for GeoServer WPS 1.0
xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:FishnetSize</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>extent</ows:Identifier>
<wps:Data>
<ows:LowerCorner>1.4111357E7 4498975.0</ows:LowerCorner>
<ows:UpperCorner>1.4158036E7 4537337.0</ows:UpperCorner>
</wps:BoundingBoxData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>boundsSource</ows:Identifier>
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
<wfs:Query typeName="foss:sid"/>
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>width</ows:Identifier>
<wps:Data>
<wps:LiteralData>2500</wps:LiteralData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>height</ows:Identifier>
<wps:Data>
<wps:LiteralData>2500</wps:LiteralData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
46
Spatial Extension for GeoServer WPS 1.0
◼ Response
An example of creating a Fishnet grid of 2,500 meters horizontally and vertically based on a
trial boundary.
47
Spatial Extension for GeoServer WPS 1.0
◼ Parameters
◼ Data Inputs
◼ Process Outputs
◼ Constraints
- If you set the boundsSource parameter, it creates only the hexagon that is
- The sideLen parameter is the distance from the center of the hexagon to the edge.
◼ Request Examples
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0"
xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0"
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1"
xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:Hexagon</ows:Identifier>
48
Spatial Extension for GeoServer WPS 1.0
<wps:DataInputs>
<wps:Input>
<ows:Identifier>extent</ows:Identifier>
<wps:Data>
<ows:LowerCorner>1.4111357E7 4498975.0</ows:LowerCorner>
<ows:UpperCorner>1.4158036E7 4537337.0</ows:UpperCorner>
</wps:BoundingBoxData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>boundsSource</ows:Identifier>
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
<wfs:Query typeName="foss:sid"/>
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>sideLen</ows:Identifier>
<wps:Data>
<wps:LiteralData>1500</wps:LiteralData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
A hexagonal grid of 1500 m in size is created based on the boundary of the trial,
49
Spatial Extension for GeoServer WPS 1.0
50
Spatial Extension for GeoServer WPS 1.0
◼ Parameters
◼ Data Inputs
◼ Process Outputs
◼ Constraints
- If you set the boundsSource parameter, create only the triangle that intersects
boundsSource.
◼ Request Examples
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0"
xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0"
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1"
xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:TriangularGrid</ows:Identifier>
<wps:DataInputs>
<wps:Input>
51
Spatial Extension for GeoServer WPS 1.0
<ows:Identifier>extent</ows:Identifier>
<wps:Data>
<ows:LowerCorner>1.4111357E7 4498975.0</ows:LowerCorner>
<ows:UpperCorner>1.4158036E7 4537337.0</ows:UpperCorner>
</wps:BoundingBoxData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>boundsSource</ows:Identifier>
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
<wfs:Query typeName="foss:sid"/>
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>size</ows:Identifier>
<wps:Data>
<wps:LiteralData>2500</wps:LiteralData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
An example of creating a 2500-meter triangular grid based on a trial boundary.
52
Spatial Extension for GeoServer WPS 1.0
53
Spatial Extension for GeoServer WPS 1.0
◼ Parameters
◼ Data Inputs
◼ Process Outputs
◼ Constraints
◼ Request Examples
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0"
xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0"
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1"
xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:CircularGrid</ows:Identifier>
54
Spatial Extension for GeoServer WPS 1.0
<wps:DataInputs>
<wps:Input>
<ows:Identifier>extent</ows:Identifier>
<wps:Data>
<ows:LowerCorner>1.4111357E7 4498975.0</ows:LowerCorner>
<ows:UpperCorner>1.4158036E7 4537337.0</ows:UpperCorner>
</wps:BoundingBoxData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>boundsSource</ows:Identifier>
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
<wfs:Query typeName="foss:sid"/>
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>radius</ows:Identifier>
<wps:Data>
<wps:LiteralData>2500</wps:LiteralData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>circularType</ows:Identifier>
<wps:Data>
<wps:LiteralData>Hex</wps:LiteralData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
55
Spatial Extension for GeoServer WPS 1.0
An example of a Circular grid with a radius of 2500 meters based on the starting boundary is
created with the Hexagon, Grid option.
56
Spatial Extension for GeoServer WPS 1.0
◼ Parameters
◼ Data Inputs
Identifier Description Type Required
The point input features from which thiessen
inputFeatures Complex ✓
polygons will be generated.
Attribute mode: ONLY_FID (default), ALL (retain input
attributes Literal -
feature’s attribute).
clipArea The clip area polygon geometry. Complex -
◼ Process Outputs
◼ Constraints
- inputFeatures can be point, line, or polygon, but it extracts the center of gravity
- If the Attributes parameter is ALL, all attribute values of inputFeatures are retained.
◼ Request Examples
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0"
xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0"
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1"
57
Spatial Extension for GeoServer WPS 1.0
xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:ThiessenPolygon</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>inputFeatures</ows:Identifier>
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
<wfs:Query typeName="foss:stores"/>
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>attributes</ows:Identifier>
<wps:Data>
<wps:LiteralData>ALL</wps:LiteralData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
This is an example of Thiessen Polygon of current screen range based on train / subway
stations in Japan.
58
Spatial Extension for GeoServer WPS 1.0
59
Spatial Extension for GeoServer WPS 1.0
SimpleFeatureCollection
◼ Parameters
◼ Data Inputs
Identifier Description Type Required
The point input features from which delaunay
inputFeatures Complex ✓
triangulations will be generated.
clipArea Clip area polygon. Complex -
◼ Process Outputs
◼ Constraints
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0"
xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0"
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1"
xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:DelaunayTriangulation</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>inputFeatures</ows:Identifier>
60
Spatial Extension for GeoServer WPS 1.0
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
<wfs:Query typeName="foss:apartment"/>
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
◼ Syntax
◼ Parameters
◼ Data Inputs
◼ Process Outputs
◼ Constraints
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0"
xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0"
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1"
xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:RandomPoints</ows:Identifier>
<wps:DataInputs>
<wps:Input>
62
Spatial Extension for GeoServer WPS 1.0
<ows:Identifier>polygonFeatures</ows:Identifier>
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
<wfs:Query typeName="foss:sid"/>
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>pointCount</ows:Identifier>
<wps:Data>
<wps:LiteralData>1000</wps:LiteralData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
◼ Syntax
expression): SimpleFeatureCollection
◼ Parameters
◼ Data Inputs
◼ Process Outputs
◼ Constraints
- Expression parameter can be a number, field, or formula (multiple space and attribute
field operations
The number of random points can be set for each feature of the polygon layer when the
formula is used.
◼ Request Examples
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0"
xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0"
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1"
xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:RandomPointsPerFeatures</ows:Identifier>
64
Spatial Extension for GeoServer WPS 1.0
<wps:DataInputs>
<wps:Input>
<ows:Identifier>polygonFeatures</ows:Identifier>
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
<wfs:Query typeName="foss:sgg"/>
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>expression</ows:Identifier>
<wps:Data>
<wps:LiteralData>[pop_den] / 100</wps:LiteralData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
This is an example of random point generation using population density attribute information
by city.
65
Spatial Extension for GeoServer WPS 1.0
4.2.2. Calculation
It consists of processes that calculate the new value by using the property value of the
geometry or field.
◼ Syntax
◼ Parameters
◼ Data Inputs
Identifier Description Type Required
inputFeatures The input features to be calculated. Complex ✓
xField X coordinate field that will be calculated. Literal -
yField Y coordinate field that will be calculated. Literal -
inside Centroid(False, Default), Inside(True) Literal -
The target coordinate reference system to use for
targetCRS Literal -
reprojection. Ex)epsg:4326
◼ Process Outputs
◼ Constraints
66
Spatial Extension for GeoServer WPS 1.0
◼ Request Examples
After loading GeoServer's foss: stores layer into WFS, add xcoord and ycoord fields
EPSG: 4326 (WGS84 latitude and longitude) This is the result of calculating the coordinates of
the coordinate system and returning it to GML3.
Since the inside value is True, if inputFeatures is Polygon, the center point is within Polygon
xmlns="http://www.opengis.net/wps/1.0.0" xmlns:wfs="http://www.opengis.net/wfs"
xmlns:wps="http://www.opengis.net/wps/1.0.0" xmlns:ows="http://www.opengis.net/ows/1.1"
xmlns:gml="http://www.opengis.net/gml" xmlns:ogc="http://www.opengis.net/ogc"
xmlns:wcs="http://www.opengis.net/wcs/1.1.1" xmlns:xlink="http://www.w3.org/1999/xlink"
xsi:schemaLocation="http://www.opengis.net/wps/1.0.0 http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:CalculateXYCoordinate</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>inputFeatures</ows:Identifier>
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>xField</ows:Identifier>
<wps:Data>
<wps:LiteralData>xcoord</wps:LiteralData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>yField</ows:Identifier>
<wps:Data>
<wps:LiteralData>ycoord</wps:LiteralData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>inside</ows:Identifier>
67
Spatial Extension for GeoServer WPS 1.0
<wps:Data>
<wps:LiteralData>True</wps:LiteralData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>targetCRS</ows:Identifier>
<wps:Data>
<wps:LiteralData>EPSG:4326</wps:LiteralData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
Based on the center value of the polygon layer, xcoord and ycoord coordinate values are
EPSG: 4326 (WGS84 latitude and longitude)
perimeterField): SimpleFeatureCollection
◼ Parameters
◼ Data Inputs
Identifier Description Type Required
inputFeatures The input polygon features to be calculated. Complex ✓
The area field that will be calculated.
areaField Literal -
geom_area is a default.
perimeterField The perimeter field that will be calculated. Literal -
◼ Process Outputs
◼ Constraints
- The calculated values for area and perimeter follow the coordinate system of
inputFeatures.
◼ Request Examples
The result of loading the foss: randomsgg layer of WFS and calculating the area and perimeter
values and then returning them to GML.
xmlns="http://www.opengis.net/wps/1.0.0" xmlns:wfs="http://www.opengis.net/wfs"
xmlns:wps="http://www.opengis.net/wps/1.0.0" xmlns:ows="http://www.opengis.net/ows/1.1"
xmlns:gml="http://www.opengis.net/gml" xmlns:ogc="http://www.opengis.net/ogc"
xmlns:wcs="http://www.opengis.net/wcs/1.1.1" xmlns:xlink="http://www.w3.org/1999/xlink"
xsi:schemaLocation="http://www.opengis.net/wps/1.0.0 http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
69
Spatial Extension for GeoServer WPS 1.0
<ows:Identifier>statistics:CalculateArea</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>inputFeatures</ows:Identifier>
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>areaField</ows:Identifier>
<wps:Data>
<wps:LiteralData>area</wps:LiteralData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>perimeterField</ows:Identifier>
<wps:Data>
<wps:LiteralData>perimeter</wps:LiteralData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
This is the result of calculating the area value of the polygon in the ara field.
70
Spatial Extension for GeoServer WPS 1.0
71
Spatial Extension for GeoServer WPS 1.0
SimpleFeatureCollection
◼ Parameters
◼ Data Inputs
Identifier Description Type Required
inputFeatures The input line or polygon features to be calculated. Complex ✓
The length field that will be calculated.
lengthField Literal -
geom_len is a default.
◼ Process Outputs
◼ Constraints
This is the result of calling the foss: line layer of WFS and returning len (length of geometry)
value to GML after calculating.
<?xml version="1.0" encoding="utf-8"?>
xmlns="http://www.opengis.net/wps/1.0.0" xmlns:wfs="http://www.opengis.net/wfs"
xmlns:wps="http://www.opengis.net/wps/1.0.0" xmlns:ows="http://www.opengis.net/ows/1.1"
xmlns:gml="http://www.opengis.net/gml" xmlns:ogc="http://www.opengis.net/ogc"
xmlns:wcs="http://www.opengis.net/wcs/1.1.1" xmlns:xlink="http://www.w3.org/1999/xlink"
xsi:schemaLocation="http://www.opengis.net/wps/1.0.0 http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:CalculateLength</ows:Identifier>
72
Spatial Extension for GeoServer WPS 1.0
<wps:DataInputs>
<wps:Input>
<ows:Identifier>inputFeatures</ows:Identifier>
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>lengthField</ows:Identifier>
<wps:Data>
<wps:LiteralData>len</wps:LiteralData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
The result of calculating the length of the line in the len field.
73
Spatial Extension for GeoServer WPS 1.0
◼ Syntax
fieldName): SimpleFeatureCollection
◼ Parameters
◼ Data Inputs
◼ Process Outputs
◼ Constraints
◼ Request Examples
It is the result of populating the pop_den field and then returning it to GML by populating the
foss: randomsgg layer of the WFS and populating population density using pop2008
(population) and area ([geom]) of the geometry.
xmlns="http://www.opengis.net/wps/1.0.0" xmlns:wfs="http://www.opengis.net/wfs"
74
Spatial Extension for GeoServer WPS 1.0
xmlns:wps="http://www.opengis.net/wps/1.0.0" xmlns:ows="http://www.opengis.net/ows/1.1"
xmlns:gml="http://www.opengis.net/gml" xmlns:ogc="http://www.opengis.net/ogc"
xmlns:wcs="http://www.opengis.net/wcs/1.1.1" xmlns:xlink="http://www.w3.org/1999/xlink"
xsi:schemaLocation="http://www.opengis.net/wps/1.0.0 http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:CalculateField</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>inputFeatures</ows:Identifier>
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>expression</ows:Identifier>
<wps:Data>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>fieldName</ows:Identifier>
<wps:Data>
<wps:LiteralData>pop_den</wps:LiteralData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
75
Spatial Extension for GeoServer WPS 1.0
◼ Advanced Expression
최소 원
폴리곤, 라인, 멀티포인트를 포함하는 minimumdiameter( [geom] ) Line
영역의 최소 반경 라인
폴리곤, 라인, 멀티포인트를 포함하는 minrectangle( [geom] ) Polygon
영역의 최소 반경 영역
76
Spatial Extension for GeoServer WPS 1.0
최소 8 각형 영역
x offset, y offset 만큼 이동 offset( [geom], 4000, 3000) Geometry
77
Spatial Extension for GeoServer WPS 1.0
◼ Parameters
◼ Data Inputs
◼ Process Outputs
◼ Constraints
- Calculate and return the number of features using layers and filters.
◼ Request Examples
xmlns="http://www.opengis.net/wps/1.0.0" xmlns:wfs="http://www.opengis.net/wfs"
xmlns:wps="http://www.opengis.net/wps/1.0.0" xmlns:ows="http://www.opengis.net/ows/1.1"
xmlns:gml="http://www.opengis.net/gml" xmlns:ogc="http://www.opengis.net/ogc"
xmlns:wcs="http://www.opengis.net/wcs/1.1.1" xmlns:xlink="http://www.w3.org/1999/xlink"
xsi:schemaLocation="http://www.opengis.net/wps/1.0.0 http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:CountFeatures</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>inputFeatures</ows:Identifier>
<wps:Reference mimeType="text/xml" xlink:href="http://geoserver/wfs" method="POST">
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
78
Spatial Extension for GeoServer WPS 1.0
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>filter</ows:Identifier>
<wps:Data>
'강남구']]></wps:ComplexData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<wps:RawDataOutput>
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
◼ Parameters
◼ Data Inputs
◼ Process Outputs
◼ Constraints
- Returns the geometry area sum of the feature using the polygon layer and filter.
◼ Request Examples
xmlns="http://www.opengis.net/wps/1.0.0" xmlns:wfs="http://www.opengis.net/wfs"
xmlns:wps="http://www.opengis.net/wps/1.0.0" xmlns:ows="http://www.opengis.net/ows/1.1"
xmlns:gml="http://www.opengis.net/gml" xmlns:ogc="http://www.opengis.net/ogc"
xmlns:wcs="http://www.opengis.net/wcs/1.1.1" xmlns:xlink="http://www.w3.org/1999/xlink"
xsi:schemaLocation="http://www.opengis.net/wps/1.0.0 http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:SumAreas</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>inputFeatures</ows:Identifier>
<wps:Reference mimeType="text/xml" xlink:href="http://geoserver/wfs" method="POST">
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
80
Spatial Extension for GeoServer WPS 1.0
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>filter</ows:Identifier>
<wps:Data>
'강남구']]></wps:ComplexData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<wps:RawDataOutput>
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
◼ Parameters
◼ Data Inputs
◼ Process Outputs
◼ Constraints
◼ Request Examples
xmlns="http://www.opengis.net/wps/1.0.0" xmlns:wfs="http://www.opengis.net/wfs"
82
Spatial Extension for GeoServer WPS 1.0
xmlns:wps="http://www.opengis.net/wps/1.0.0" xmlns:ows="http://www.opengis.net/ows/1.1"
xmlns:gml="http://www.opengis.net/gml" xmlns:ogc="http://www.opengis.net/ogc"
xmlns:wcs="http://www.opengis.net/wcs/1.1.1" xmlns:xlink="http://www.w3.org/1999/xlink"
xsi:schemaLocation="http://www.opengis.net/wps/1.0.0 http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:ExtractValuesToPoints</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>pointFeatures</ows:Identifier>
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>valueField</ows:Identifier>
<wps:Data>
<wps:LiteralData>evaluated</wps:LiteralData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>valueCoverage</ows:Identifier>
<wps:Body>
<ows:Identifier>foss:seoul_dem30</ows:Identifier>
<wcs:DomainSubset>
<gml:BoundingBox crs="http://www.opengis.net/gml/srs/epsg.xml#5181">
<ows:LowerCorner>179171.39881047895 436569.3290600816</ows:LowerCorner>
<ows:UpperCorner>216221.0981287582 466869.08315843146</ows:UpperCorner>
</gml:BoundingBox>
</wcs:DomainSubset>
</wcs:GetCoverage>
</wps:Body>
</wps:Reference>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
83
Spatial Extension for GeoServer WPS 1.0
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
It is the result of calculating the elevation value of DEM in the point data of the city / county
office.
84
Spatial Extension for GeoServer WPS 1.0
4.2.3. Extract
It consists of processes that use filters or geometry to select or cut features.
4.2.3.1. Select Features (Query & Retype)
In the feature layer, select a feature by setting a space or property filter and field list.
◼ Syntax
SimpleFeatureCollection
◼ Parameters
◼ Data Inputs
◼ Process Outputs
◼ Constraints
- You can use filters to select only those features that meet certain criteria.
- You can select some attribute information or change the field order by setting a
comma-separated field.
◼ Request Examples
xmlns="http://www.opengis.net/wps/1.0.0" xmlns:wfs="http://www.opengis.net/wfs"
xmlns:wps="http://www.opengis.net/wps/1.0.0" xmlns:ows="http://www.opengis.net/ows/1.1"
xmlns:gml="http://www.opengis.net/gml" xmlns:ogc="http://www.opengis.net/ogc"
85
Spatial Extension for GeoServer WPS 1.0
xmlns:wcs="http://www.opengis.net/wcs/1.1.1" xmlns:xlink="http://www.w3.org/1999/xlink"
xsi:schemaLocation="http://www.opengis.net/wps/1.0.0 http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:SelectFeatures</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>inputFeatures</ows:Identifier>
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>filter</ows:Identifier>
<wps:Data>
'강남구']]></wps:ComplexData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>attributes</ows:Identifier>
<wps:Data>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
Select only Gangnam-gu from the boundary data of the eup and myeon-dong and only geom,
sgg_nm, emd_cd, emd_nm fields
86
Spatial Extension for GeoServer WPS 1.0
87
Spatial Extension for GeoServer WPS 1.0
SimpleFeatureCollection
◼ Parameters
◼ Data Inputs
Identifier Description Type Required
inputFeatures The features to be clipped. Complex ✓
The polygon geometry used to clip the input
clipGeometry Complex ✓
features.
◼ Process Outputs
◼ Constraints
xmlns="http://www.opengis.net/wps/1.0.0" xmlns:wfs="http://www.opengis.net/wfs"
xmlns:wps="http://www.opengis.net/wps/1.0.0" xmlns:ows="http://www.opengis.net/ows/1.1"
xmlns:gml="http://www.opengis.net/gml" xmlns:ogc="http://www.opengis.net/ogc"
xmlns:wcs="http://www.opengis.net/wcs/1.1.1" xmlns:xlink="http://www.w3.org/1999/xlink"
xsi:schemaLocation="http://www.opengis.net/wps/1.0.0 http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:ClipWithGeometry</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>inputFeatures</ows:Identifier>
88
Spatial Extension for GeoServer WPS 1.0
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>clipGeometry</ows:Identifier>
<wps:Data>
4505796))]]></wps:ComplexData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
It is the result of clipping only a specific area (Geometry) from Euphyeon-dong boundary data.
89
Spatial Extension for GeoServer WPS 1.0
clipFeatures): SimpleFeatureCollection
◼ Parameters
◼ Data Inputs
◼ Process Outputs
◼ Constraints
xmlns="http://www.opengis.net/wps/1.0.0" xmlns:wfs="http://www.opengis.net/wfs"
xmlns:wps="http://www.opengis.net/wps/1.0.0" xmlns:ows="http://www.opengis.net/ows/1.1"
xmlns:gml="http://www.opengis.net/gml" xmlns:ogc="http://www.opengis.net/ogc"
xmlns:wcs="http://www.opengis.net/wcs/1.1.1" xmlns:xlink="http://www.w3.org/1999/xlink"
xsi:schemaLocation="http://www.opengis.net/wps/1.0.0 http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:ClipWithFeatures</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>inputFeatures</ows:Identifier>
<wps:Reference mimeType="text/xml" xlink:href="http://geoserver/wfs" method="POST">
<wps:Body>
90
Spatial Extension for GeoServer WPS 1.0
xmlns:foss="http://www.opengeospatial.net/foss">
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>clipFeatures</ows:Identifier>
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
This is an example of using a random polygon layer to clip a boundary polygon layer.
91
Spatial Extension for GeoServer WPS 1.0
92
Spatial Extension for GeoServer WPS 1.0
Merges multiple layers with the same feature type into one layer.
◼ Syntax
◼ Parameters
◼ Data Inputs
◼ Process Outputs
◼ Constraints
- The features parameter is a collection type, so you can use one or more
- The schema of the output layer follows the first layer schema of the features parameter.
◼ Request Examples
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0"
xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0"
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1"
xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:MergeFeatures</ows:Identifier>
<wps:DataInputs>
<wps:Input>
93
Spatial Extension for GeoServer WPS 1.0
<ows:Identifier>features</ows:Identifier>
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
<wfs:Query typeName="foss:sgga"/>
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>features</ows:Identifier>
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
<wfs:Query typeName="foss:sggb"/>
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
4.2.4. Overlay
Union, Intersect, Symmetrical Difference, Difference, Identity, and Update.
4.2.4.1. Union
Perform Union Overlay analysis on two input feature layers. The output layer retains all the
property values of both features.
◼ Syntax
SimpleFeatureCollection
◼ Parameters
◼ Data Inputs
◼ Process Outputs
◼ Constraints
- The input feature layer can be point, line, or polygon, and the feature type of the
- The output layer contains all of the attribute values of inputFeatures and overlayFeatures.
◼ Request Examples
xmlns="http://www.opengis.net/wps/1.0.0" xmlns:wfs="http://www.opengis.net/wfs"
xmlns:wps="http://www.opengis.net/wps/1.0.0" xmlns:ows="http://www.opengis.net/ows/1.1"
96
Spatial Extension for GeoServer WPS 1.0
xmlns:gml="http://www.opengis.net/gml" xmlns:ogc="http://www.opengis.net/ogc"
xmlns:wcs="http://www.opengis.net/wcs/1.1.1" xmlns:xlink="http://www.w3.org/1999/xlink"
xsi:schemaLocation="http://www.opengis.net/wps/1.0.0 http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:Union</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>inputFeatures</ows:Identifier>
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>overlayFeatures</ows:Identifier>
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
This is the result of Union Overlay analysis between two polygon layers. The two layer's
property values
All included.
97
Spatial Extension for GeoServer WPS 1.0
98
Spatial Extension for GeoServer WPS 1.0
4.2.4.2. Intersect
Perform Intersect Overlay analysis on two input feature layers. The output layer retains all the
property values of both features.
◼ Syntax
overlayFeatures): SimpleFeatureCollection
◼ Parameters
◼ Data Inputs
◼ Process Outputs
◼ Constraints
- The input feature layer can be point, line, or polygon, and the feature type of the
- The output layer contains all field values for inputFeatures and overlayFeatures.
◼ Request Examples
xmlns="http://www.opengis.net/wps/1.0.0" xmlns:wfs="http://www.opengis.net/wfs"
xmlns:wps="http://www.opengis.net/wps/1.0.0" xmlns:ows="http://www.opengis.net/ows/1.1"
xmlns:gml="http://www.opengis.net/gml" xmlns:ogc="http://www.opengis.net/ogc"
xmlns:wcs="http://www.opengis.net/wcs/1.1.1" xmlns:xlink="http://www.w3.org/1999/xlink"
xsi:schemaLocation="http://www.opengis.net/wps/1.0.0 http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:Intersect</ows:Identifier>
<wps:DataInputs>
99
Spatial Extension for GeoServer WPS 1.0
<wps:Input>
<ows:Identifier>inputFeatures</ows:Identifier>
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>overlayFeatures</ows:Identifier>
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
The result of Intersect Overlay analysis between two polygon layers. Contains all attribute
values for both layers.
100
Spatial Extension for GeoServer WPS 1.0
101
Spatial Extension for GeoServer WPS 1.0
4.2.4.3. Difference
◼ Syntax
differenceFeatures): SimpleFeatureCollection
◼ Parameters
◼ Data Inputs
◼ Process Outputs
◼ Constraints
- The feature types and fields of the output layer follow the inputFeatures layer.
◼ Request Examples
xmlns="http://www.opengis.net/wps/1.0.0" xmlns:wfs="http://www.opengis.net/wfs"
xmlns:wps="http://www.opengis.net/wps/1.0.0" xmlns:ows="http://www.opengis.net/ows/1.1"
xmlns:gml="http://www.opengis.net/gml" xmlns:ogc="http://www.opengis.net/ogc"
xmlns:wcs="http://www.opengis.net/wcs/1.1.1" xmlns:xlink="http://www.w3.org/1999/xlink"
xsi:schemaLocation="http://www.opengis.net/wps/1.0.0 http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:Difference</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>inputFeatures</ows:Identifier>
<wps:Body>
102
Spatial Extension for GeoServer WPS 1.0
xmlns:foss="http://www.opengeospatial.net/foss">
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>differenceFeatures</ows:Identifier>
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
It is the result of performing Difference Overlay analysis between two polygon layers.
103
Spatial Extension for GeoServer WPS 1.0
differenceFeatures): SimpleFeatureCollection
◼ Parameters
◼ Data Inputs
◼ Process Outputs
◼ Constraints
- The input layer must be a polygon feature type, and the feature type of
- The output layer contains all of the attribute values of inputFeatures and
differenceFeatures.
◼ Request Examples
xmlns="http://www.opengis.net/wps/1.0.0" xmlns:wfs="http://www.opengis.net/wfs"
xmlns:wps="http://www.opengis.net/wps/1.0.0" xmlns:ows="http://www.opengis.net/ows/1.1"
xmlns:gml="http://www.opengis.net/gml" xmlns:ogc="http://www.opengis.net/ogc"
xmlns:wcs="http://www.opengis.net/wcs/1.1.1" xmlns:xlink="http://www.w3.org/1999/xlink"
xsi:schemaLocation="http://www.opengis.net/wps/1.0.0 http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:SymDifference</ows:Identifier>
<wps:DataInputs>
104
Spatial Extension for GeoServer WPS 1.0
<wps:Input>
<ows:Identifier>inputFeatures</ows:Identifier>
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>differenceFeatures</ows:Identifier>
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
The result of symmetrical difference overlay analysis between two polygon layers. Contains all
attribute values for both layers.
105
Spatial Extension for GeoServer WPS 1.0
106
Spatial Extension for GeoServer WPS 1.0
4.2.4.5. Identity
identityFeatures): SimpleFeatureCollection
◼ Parameters
◼ Data Inputs
◼ Process Outputs
◼ Constraints
Type.
- The output layer contains all field values of inputFeatures, identityFeatures.
◼ Request Examples
xmlns="http://www.opengis.net/wps/1.0.0" xmlns:wfs="http://www.opengis.net/wfs"
xmlns:wps="http://www.opengis.net/wps/1.0.0" xmlns:ows="http://www.opengis.net/ows/1.1"
xmlns:gml="http://www.opengis.net/gml" xmlns:ogc="http://www.opengis.net/ogc"
xmlns:wcs="http://www.opengis.net/wcs/1.1.1" xmlns:xlink="http://www.w3.org/1999/xlink"
xsi:schemaLocation="http://www.opengis.net/wps/1.0.0 http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:Identity</ows:Identifier>
<wps:DataInputs>
<wps:Input>
107
Spatial Extension for GeoServer WPS 1.0
<ows:Identifier>inputFeatures</ows:Identifier>
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>identityFeatures</ows:Identifier>
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
This is the result of performing Identity Overlay analysis between two polygon layers.
108
Spatial Extension for GeoServer WPS 1.0
109
Spatial Extension for GeoServer WPS 1.0
4.2.4.6. Update
SimpleFeatureCollection
◼ Parameters
◼ Data Inputs
◼ Process Outputs
◼ Constraints
Type.
- The output layer contains all of the field values of inputFeatures and updateFeatures.
◼ Request Examples
xmlns="http://www.opengis.net/wps/1.0.0" xmlns:wfs="http://www.opengis.net/wfs"
xmlns:wps="http://www.opengis.net/wps/1.0.0" xmlns:ows="http://www.opengis.net/ows/1.1"
xmlns:gml="http://www.opengis.net/gml" xmlns:ogc="http://www.opengis.net/ogc"
xmlns:wcs="http://www.opengis.net/wcs/1.1.1" xmlns:xlink="http://www.w3.org/1999/xlink"
xsi:schemaLocation="http://www.opengis.net/wps/1.0.0 http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:Update</ows:Identifier>
<wps:DataInputs>
<wps:Input>
110
Spatial Extension for GeoServer WPS 1.0
<ows:Identifier>inputFeatures</ows:Identifier>
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>updateFeatures</ows:Identifier>
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
The result of the Update Overlay analysis between two polygon layers. Input layer and Update
4.2.5. Proximity
◼ Syntax
quadrantSegments): SimpleFeatureCollection
◼ Parameters
◼ Data Inputs
◼ Process Outputs
◼ Constraints
8
See http://docs.geoserver.org/stable/en/user/filter/function_reference.html
113
Spatial Extension for GeoServer WPS 1.0
◼ Request Examples
xmlns="http://www.opengis.net/wps/1.0.0" xmlns:wfs="http://www.opengis.net/wfs"
xmlns:wps="http://www.opengis.net/wps/1.0.0" xmlns:ows="http://www.opengis.net/ows/1.1"
xmlns:gml="http://www.opengis.net/gml" xmlns:ogc="http://www.opengis.net/ogc"
xmlns:wcs="http://www.opengis.net/wcs/1.1.1" xmlns:xlink="http://www.w3.org/1999/xlink"
xsi:schemaLocation="http://www.opengis.net/wps/1.0.0 http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:BufferFeatures</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>inputFeatures</ows:Identifier>
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>distance</ows:Identifier>
<wps:Data>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
Using the attribute value of the polygon layer, the buffer distance is expressed as Expression
([pop_den] / 2.0) * 0.5)
114
Spatial Extension for GeoServer WPS 1.0
115
Spatial Extension for GeoServer WPS 1.0
◼ Syntax
quadrantSegments): SimpleFeatureCollection
◼ Parameters
◼ Data Inputs
◼ Process Outputs
◼ Constraints
◼ Request Examples
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0"
xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0"
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1"
xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:SingleSidedBuffer</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>inputFeatures</ows:Identifier>
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
<wfs:Query typeName="foss:line"/>
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>distance</ows:Identifier>
<wps:Data>
<wps:LiteralData>250</wps:LiteralData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
If the buffer distance value is positive, the buffer is shifted in the direction of the left
Generated.
117
Spatial Extension for GeoServer WPS 1.0
118
Spatial Extension for GeoServer WPS 1.0
◼ Parameters
◼ Data Inputs
Identifier Description Type Required
inputFeatures The input features to be buffered. Complex ✓
The comma separated list of buffer distances.
distances Literal ✓
Ex) 250,500,750,1000
The area inside of the input polygon features will
outsideOnly Literal -
excluded from the resulting buffer. Default is True.
Determines if buffers will be dissolved to resemble
dissolve Literal -
rings around the input features. Default is False.
◼ Process Outputs
◼ Constraints
ignored and the attribute value of inputFeatures is maintained if the distance value
is False.
◼ Request Examples
<?xml version="1.0" encoding="UTF-8"?><wps:Execute version="1.0.0" service="WPS"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0"
xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0"
119
Spatial Extension for GeoServer WPS 1.0
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1"
xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:MultipleRingBuffer</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>inputFeatures</ows:Identifier>
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
<wfs:Query typeName="foss:wardoffice"/>
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>distances</ows:Identifier>
<wps:Data>
<wps:LiteralData>250,500,750,1000,1250,1500</wps:LiteralData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>outsideOnly</ows:Identifier>
<wps:Data>
<wps:LiteralData>True</wps:LiteralData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
It is the result of processing buffer analysis at 250, 500, 750, 1000, 1250, and 1500 meters
intervals.
120
Spatial Extension for GeoServer WPS 1.0
121
Spatial Extension for GeoServer WPS 1.0
◼ Parameters
◼ Data Inputs
◼ Process Outputs
◼ Constraints
122
Spatial Extension for GeoServer WPS 1.0
- The innerRadius and outerRadius parameter values are compared and the higher
value is used as the outerRadius value, and one of them should be greater than 0.
◼ Request Examples
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0"
xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0"
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1"
xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:WedgeBuffer</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>pointFeatures</ows:Identifier>
<wps:Reference mimeType="text/xml" xlink:href="http://geoserver/wfs" method="POST">
<wps:Body>
10 See http://docs.geoserver.org/stable/en/user/filter/function_reference.html123
Spatial Extension for GeoServer WPS 1.0
xmlns:foss="http://www.opengeospatial.net/foss">
<wfs:Query typeName="foss:anglepoint"/>
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>azimuth</ows:Identifier>
<wps:Data>
<wps:LiteralData>azimuth</wps:LiteralData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>wedgeAngle</ows:Identifier>
<wps:Data>
<wps:LiteralData>wedgeangle</wps:LiteralData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>innerRadius</ows:Identifier>
<wps:Data>
<wps:LiteralData>radius1</wps:LiteralData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>outerRadius</ows:Identifier>
<wps:Data>
<wps:LiteralData>radius2</wps:LiteralData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<wps:RawDataOutput mimeType="text/xml; subtype=wfs-collection/1.0">
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
This is the result of executing the Wedge buffer using the attributes of the point
layer.124
Spatial Extension for GeoServer WPS 1.0
125
Spatial Extension for GeoServer WPS 1.0
Calculates the distance and attribute values of the nearest feature relative to the input feature
layer.
◼ Syntax
◼ Parameters
◼ Data Inputs
◼ Process Outputs
◼ Constraints
- If you do not set the nearIdField field, use the feature's internal ID.
- inputFeatures, nearFeatures are both point, line, and polygon, and calculate the shortest
distance between two geometries.
- If maximumDistance is set and there is no feature within the set distance, a null value is
entered.
◼ Request Examples
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0"
xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0"
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml"
126
Spatial Extension for GeoServer WPS 1.0
xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1"
xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:Near</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>inputFeatures</ows:Identifier>
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
<wfs:Query typeName="foss:apartment"/>
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>nearFeatures</ows:Identifier>
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
<wfs:Query typeName="foss:wardoffice"/>
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
This is the result of Near analysis between apartment and municipal office. Shortest distance is
property
Calculated.
127
Spatial Extension for GeoServer WPS 1.0
128
Spatial Extension for GeoServer WPS 1.0
Calculates the number of Near features in the radius based on the input feature layer.
◼ Syntax
◼ Parameters
◼ Data Inputs
◼ Process Outputs
◼ Constraints
- The unit of the searchRadius parameter must be greater than 0 using the
◼ Request Examples
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0"
xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0"
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1"
xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
129
Spatial Extension for GeoServer WPS 1.0
<ows:Identifier>statistics:NearestNeighborCount</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>inputFeatures</ows:Identifier>
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
<wfs:Query typeName="foss:road"/>
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>countField</ows:Identifier>
<wps:Data>
<wps:LiteralData>pub_cnt</wps:LiteralData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>nearFeatures</ows:Identifier>
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
<wfs:Query typeName="foss:pubs"/>
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>searchRadius</ows:Identifier>
<wps:Data>
<wps:LiteralData>500</wps:LiteralData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
130
Spatial Extension for GeoServer WPS 1.0
◼ Response
This is the graduated symbol representation of the number of points within a 500-meter radius
of a major road.
131
Spatial Extension for GeoServer WPS 1.0
sides): SimpleFeatureCollection
◼ Parameters
◼ Data Inputs
Identifier Description Type Required
origin The center features of polar grids. Complex ✓
The list of radius(unit:data unit):
radius Literal ✓
Ex) 200, 300, 400, 500.
radialType Radial Type: Polar (Default), Base. Literal -
sides The number of sides. Default is 8 Literal -
◼ Process Outputs
◼ Constraints
- In each cell of the output layer, angle and radius values are calculated.
- If you use the default value of the sides parameter (8), the azimuth field is added
◼ Request Examples
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0"
xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0"
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1"
xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
132
Spatial Extension for GeoServer WPS 1.0
<ows:Identifier>statistics:PolarGridsFromGeometry</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>origin</ows:Identifier>
<wps:Data>
4513573.676204068)]]></wps:ComplexData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>radius</ows:Identifier>
<wps:Data>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>radialType</ows:Identifier>
<wps:Data>
<wps:LiteralData>Polar</wps:LiteralData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
This is the result of creating Polar Grid with intervals of 1500, 2000, and 2500 meters.
133
Spatial Extension for GeoServer WPS 1.0
134
Spatial Extension for GeoServer WPS 1.0
◼ Parameters
◼ Data Inputs
◼ Process Outputs
◼ Constraints
- In each cell of the output layer, angle and radius values are calculated.
If you use the default value of the - sides parameter (8), the azimuth field is added and the
direction values of NE, N, NW, W, SW, S, SE,
◼ Request Examples
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0"
xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0"
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1"
135
Spatial Extension for GeoServer WPS 1.0
xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:PolarGridsFromFeatures</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>origin</ows:Identifier>
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
<wfs:Query typeName="foss:wardoffice"/>
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>radius</ows:Identifier>
<wps:Data>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>radialType</ows:Identifier>
<wps:Data>
<wps:LiteralData>Polar</wps:LiteralData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
Generate 8-way Polar Grid with a radius of 250,500,750,1000,1250,1500 meters based on the
municipal office
The result is a mapping of the result of calculating the number of apartments in each cell.
136
Spatial Extension for GeoServer WPS 1.0
4.2.6. Aggregation
And processes for nesting one or more pieces of data to compute a new value.
Calculates the number or base statistic value of the polygon feature layer and the nesting
point layer.
◼ Syntax
◼ Parameters
◼ Data Inputs
◼ Process Outputs
◼ Constraints
- Statistics Fields are entered in the [function name.fieldname] structure as follows, and the
available functions are
Min: Numeric field, minimum value of Dissolve target feature MIN_Field Name
Max: Maximum value of the Numeric field, Dissolve target feature MAX_FieldName
Std: Numeric field, standard deviation of Dissolve target feature STD_ field name
Var: Variance of Numeric Field, Dissolve Target Feature VAR_ field name
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0"
xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0"
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1"
xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:PointStatistics</ows:Identifier>
<wps:DataInputs>
<wps:Input>
138
Spatial Extension for GeoServer WPS 1.0
<ows:Identifier>polygonFeatures</ows:Identifier>
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
<wfs:Query typeName="foss:sgg"/>
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>pointFeatures</ows:Identifier>
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
<wfs:Query typeName="foss:gasstation"/>
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>countField</ows:Identifier>
<wps:Data>
<wps:LiteralData>cnt</wps:LiteralData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>statisticsFields</ows:Identifier>
<wps:Data>
<wps:LiteralData>Mean.price</wps:LiteralData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
139
Spatial Extension for GeoServer WPS 1.0
140
Spatial Extension for GeoServer WPS 1.0
SimpleFeatureCollection
◼ Parameters
◼ Data Inputs
◼ Process Outputs
◼ Constraints
- If the preserveHole parameter is False, all Interior Rings will remove the removed polygon
Return.
◼ Request Examples
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0"
xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0"
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1"
xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:UnionPolygon</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>polygonFeatures</ows:Identifier>
141
Spatial Extension for GeoServer WPS 1.0
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
<wfs:Query typeName="foss:sgg"/>
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>preserveHole</ows:Identifier>
<wps:Data>
<wps:LiteralData>False</wps:LiteralData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
This is the result of union of all city and county boundaries. Because the preserveHole
parameter is False
Creates point features with the same or different radius within a single feature.
◼ Syntax
tolerance): SimpleFeatureCollection
◼ Parameters
◼ Data Inputs
Identifier Description Type Required
inputFeatures The features representing event or incident data. Complex ✓
The field to be calculated coincident points count.
countField Literal -
icount (Default ).
◼ Process Outputs
◼ Constraints
- If you do not set the countField parameter, use the icount field as the default.
- A tolerance value of 0 means an exact match point; a value greater than 0 means a
tolerance
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0"
xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0"
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1"
xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
143
Spatial Extension for GeoServer WPS 1.0
<ows:Identifier>statistics:CollectEvents</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>inputFeatures</ows:Identifier>
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
<wfs:Query typeName="foss:checkins"/>
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>countField</ows:Identifier>
<wps:Data>
<wps:LiteralData>icount</wps:LiteralData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>tolerance</ows:Identifier>
<wps:Data>
<wps:LiteralData>5</wps:LiteralData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
This is the result of combining points within the set distance.
144
Spatial Extension for GeoServer WPS 1.0
145
Spatial Extension for GeoServer WPS 1.0
◼ Parameters
◼ Data Inputs
◼ Process Outputs
◼ Constraints
- If the value of the joinType parameter is KeepAllRecord, then the spatial join is not
performed
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0"
xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0"
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1"
146
Spatial Extension for GeoServer WPS 1.0
xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:SpatialJoin</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>inputFeatures</ows:Identifier>
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
<wfs:Query typeName="foss:stores"/>
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>joinFeatures</ows:Identifier>
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
<wfs:Query typeName="foss:sgg"/>
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>joinType</ows:Identifier>
<wps:Data>
<wps:LiteralData>KeepAllRecord</wps:LiteralData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<wps:RawDataOutput mimeType=“text/xml; subtype=wfs-collection/1.1”>
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
147
Spatial Extension for GeoServer WPS 1.0
This is the result of Spatial Join on the information of the city and districts to which the large
store point layer belongs. For Pont or Line layers, you can set the search radius to get the
properties of nearby features.
148
Spatial Extension for GeoServer WPS 1.0
◼ Syntax
SimpleFeatureCollection
◼ Parameters
◼ Data Inputs
◼ Process Outputs
◼ Constraints
- If the joinType is INNER, it returns only the features of the inputFeatures to be joined.
◼ Request Examples
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0"
xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0"
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1"
xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:AttributeJoin</ows:Identifier>
149
Spatial Extension for GeoServer WPS 1.0
<wps:DataInputs>
<wps:Input>
<ows:Identifier>inputFeatures</ows:Identifier>
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
<wfs:Query typeName="foss:stores"/>
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>primaryKey</ows:Identifier>
<wps:Data>
<wps:LiteralData>sgg_cd</wps:LiteralData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>joinFeatures</ows:Identifier>
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
<wfs:Query typeName="foss:sgg"/>
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>foreignKey</ows:Identifier>
<wps:Data>
<wps:LiteralData>sgg_cd</wps:LiteralData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>joinType</ows:Identifier>
<wps:Data>
<wps:LiteralData>OUTER</wps:LiteralData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
150
Spatial Extension for GeoServer WPS 1.0
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
It is the result of joining using the city and county code of large department store and city
government administrative boundary as join field.
151
Spatial Extension for GeoServer WPS 1.0
◼ Syntax
SimpleFeatureCollection
◼ Parameters
◼ Data Inputs
◼ Process Outputs
◼ Constraints
Mean.pop
Input value Return Field Name
First: String field, first value of the Dissolve target feature FST_FieldName
152
LST_FieldName
Last: String field, Dissolve Last value of target feature Sum: Numeric SUM_FieldName
Field, Dissolve Sum of target features Mean: Numeric field, Dissolve
AVG_FieldName
Mean value of target feature Min: Numeric field, Dissolve target
MIN_Field Name
Feature Min: Max: Numeric field, Dissolve Target Feature
MAX_FieldName
Maximum value Std: Numeric field, standard deviation of Dissolve
STD_ field name
target feature Var:
VAR_ field name
Numeric field, Dissolve Dispersion of target feature Range: Numeric
RNG_Field
field,
Name
Scope of Dissolve Target Feature
CNT_FieldName
Count: Number of Dissolve targetfeatures
◼ Request Examples
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0"
xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0"
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1"
xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:BufferPointStatistics</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>inputFeatures</ows:Identifier>
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
<wfs:Query typeName="foss:wardoffice"/>
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>distance</ows:Identifier>
<wps:Data>
<wps:LiteralData>2000</wps:LiteralData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>pointFeatures</ows:Identifier>
<wps:Body>
153
Spatial Extension for GeoServer WPS 1.0
xmlns:foss="http://www.opengeospatial.net/foss">
<wfs:Query typeName="foss:apartment"/>
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>countField</ows:Identifier>
<wps:Data>
<wps:LiteralData>cnt</wps:LiteralData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
It is a result of calculating and mapping the number of apartments included within 2000
meters of the municipal office.
154
Spatial Extension for GeoServer WPS 1.0
◼ Syntax
◼ Parameters
◼ Data Inputs
◼ Process Outputs
◼ Constraints
- The lengthField stores the sum of the lengths of the lines that overlap the
- countField stores the number of lines in the polygon. The default value is
line_cnt.
◼ Request Examples
<?xml version="1.0" encoding="UTF-8"?><wps:Execute version="1.0.0" service="WPS"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0"
xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0"
155
Spatial Extension for GeoServer WPS 1.0
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1"
xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:SumLineLength</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>polygons</ows:Identifier>
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
<wfs:Query typeName="foss:emd"/>
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>lengthField</ows:Identifier>
<wps:Data>
<wps:LiteralData>len</wps:LiteralData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>lines</ows:Identifier>
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
<wfs:Query typeName="foss:road"/>
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
156
Spatial Extension for GeoServer WPS 1.0
◼ Response
It is map result after calculation of extension of main road by Eup and Myeon Dong.
157
Spatial Extension for GeoServer WPS 1.0
quadrantSegments): SimpleFeatureCollection
◼ Parameters
◼ Data Inputs
Identifier Description Type Required
inputFeatures Input features to be buffered. Complex ✓
The radius expression used to create distance. Ex)
radius Literal ✓
1000 or [field] or [field] * 0.5 etc...
The number of line segments used to represent a
quadrantSegments Literal -
quadrant of a circle. Default is 8.
◼ Process Outputs
◼ Constraints
xmlns="http://www.opengis.net/wps/1.0.0" xmlns:wfs="http://www.opengis.net/wfs"
xmlns:wps="http://www.opengis.net/wps/1.0.0" xmlns:ows="http://www.opengis.net/ows/1.1"
xmlns:gml="http://www.opengis.net/gml" xmlns:ogc="http://www.opengis.net/ogc"
xmlns:wcs="http://www.opengis.net/wcs/1.1.1" xmlns:xlink="http://www.w3.org/1999/xlink"
xsi:schemaLocation="http://www.opengis.net/wps/1.0.0 http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:SpatialClumpMap</ows:Identifier>
<wps:DataInputs>
<wps:Input>
158
Spatial Extension for GeoServer WPS 1.0
<ows:Identifier>inputFeatures</ows:Identifier>
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>radius</ows:Identifier>
<wps:Data>
<wps:LiteralData>5000</wps:LiteralData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
This is the result of creating a Spatial Clump Map with a radius of 5 km.
159
Spatial Extension for GeoServer WPS 1.0
◼ Syntax
◼ Parameters
◼ Data Inputs
◼ Process Outputs
◼ Constraints
160
Spatial Extension for GeoServer WPS 1.0
xmlns="http://www.opengis.net/wps/1.0.0" xmlns:wfs="http://www.opengis.net/wfs"
xmlns:wps="http://www.opengis.net/wps/1.0.0" xmlns:ows="http://www.opengis.net/ows/1.1"
xmlns:gml="http://www.opengis.net/gml" xmlns:ogc="http://www.opengis.net/ogc"
xmlns:wcs="http://www.opengis.net/wcs/1.1.1" xmlns:xlink="http://www.w3.org/1999/xlink"
xsi:schemaLocation="http://www.opengis.net/wps/1.0.0 http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:HexagonalBinning</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>features</ows:Identifier>
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
<wfs:Query typeName="foss:apartment"/>
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>size</ows:Identifier>
<wps:Data>
<wps:LiteralData>1500</wps:LiteralData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
It is the result of visualizing the apartment point data of Seoul city after creating 1000 meter
Hexagon.
161
Spatial Extension for GeoServer WPS 1.0
162
Spatial Extension for GeoServer WPS 1.0
◼ Syntax
SimpleFeatureCollection
◼ Parameters
◼ Data Inputs
Identifier Description Type Required
features Input point features to be aggregated. Complex ✓
The numeric field or expression used to weight
weight Literal -
values. Ex) [field] or [field] * 0.5 etc...
bbox The extent of the grids. Complex -
width Width of the grids. Literal ✓
height Height of the grids. Literal ✓
validGrid Returns only valid grid. Default is True. Literal -
◼ Process Outputs
◼ Constraints
Return.
163
Spatial Extension for GeoServer WPS 1.0
◼ Request Examples
xmlns="http://www.opengis.net/wps/1.0.0" xmlns:wfs="http://www.opengis.net/wfs"
xmlns:wps="http://www.opengis.net/wps/1.0.0" xmlns:ows="http://www.opengis.net/ows/1.1"
xmlns:gml="http://www.opengis.net/gml" xmlns:ogc="http://www.opengis.net/ogc"
xmlns:wcs="http://www.opengis.net/wcs/1.1.1" xmlns:xlink="http://www.w3.org/1999/xlink"
xsi:schemaLocation="http://www.opengis.net/wps/1.0.0 http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:RectangularBinning</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>features</ows:Identifier>
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
<wfs:Query typeName="foss:apartment"/>
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>width</ows:Identifier>
<wps:Data>
<wps:LiteralData>1500</wps:LiteralData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>height</ows:Identifier>
<wps:Data>
<wps:LiteralData>1500</wps:LiteralData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
164
Spatial Extension for GeoServer WPS 1.0
◼ Response
The result.
◼ Parameters
◼ Data Inputs
◼ Process Outputs
◼ Constraints
◼ Request Examples
xmlns="http://www.opengis.net/wps/1.0.0" xmlns:wfs="http://www.opengis.net/wfs"
xmlns:wps="http://www.opengis.net/wps/1.0.0" xmlns:ows="http://www.opengis.net/ows/1.1"
xmlns:gml="http://www.opengis.net/gml" xmlns:ogc="http://www.opengis.net/ogc"
xmlns:wcs="http://www.opengis.net/wcs/1.1.1" xmlns:xlink="http://www.w3.org/1999/xlink"
xsi:schemaLocation="http://www.opengis.net/wps/1.0.0 http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:CircularBinning</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>features</ows:Identifier>
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
<wfs:Query typeName="foss:apartment"/>
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
166
Spatial Extension for GeoServer WPS 1.0
</wps:Input>
<wps:Input>
<ows:Identifier>radius</ows:Identifier>
<wps:Data>
<wps:LiteralData>750</wps:LiteralData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
The Seoul apartment point data is visualized after creating circle of 750-meter radius
The result.
167
Spatial Extension for GeoServer WPS 1.0
4.2.7. Generalization
◼ Parameters
◼ Data Inputs
◼ Process Outputs
◼ Constraints
- If useMultiPart is False, convert the dissociated features into a single part and return.
Mean.pop
Input value Return Field Name
First: String field, first value of the Dissolve target feature FST_FieldName
168
Spatial Extension for GeoServer WPS 1.0
Last: String field, last value of the Dissolve target feature. LST_FieldName
Sum: Sum of Numeric fields, Dissolve target features Mean: Numeric SUM_FieldName
Average value Min: Numeric field, minimum value of dissolve target MIN_Field Name
Numeric field, maximum value of Dissolve target feature Std: STD_ field name
features
◼ Request Examples
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0"
xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0"
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1"
xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:Dissolve</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>inputFeatures</ows:Identifier>
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
<wfs:Query typeName="foss:emd"/>
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>dissolveField</ows:Identifier>
<wps:Data>
<wps:LiteralData>sgg_nm</wps:LiteralData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>statisticsFields</ows:Identifier>
<wps:Data>
<wps:LiteralData>fst.sid_nm,sum.pop2007,sum.pop2008,sum.pts</wps:LiteralData>
169
Spatial Extension for GeoServer WPS 1.0
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
This is the result of setting the county name (sgg_nm) field and fst.sid_nm, sum.pop2007,
sum.pop2008, and sum.pts aggregate fields and performing Dissolve.
170
Spatial Extension for GeoServer WPS 1.0
SimpleFeatureCollection
◼ Parameters
◼ Data Inputs
◼ Process Outputs
◼ Constraints
If it is larger than 0, only the hole with a smaller area than the corresponding value is deleted.
◼ Request Examples
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0"
xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0"
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1"
171
Spatial Extension for GeoServer WPS 1.0
xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:RemoveHoles</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>inputFeatures</ows:Identifier>
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
<wfs:Query typeName="foss:overlay01"/>
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>minimumArea</ows:Identifier>
<wps:Data>
<wps:LiteralData>1000</wps:LiteralData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
173
Spatial Extension for GeoServer WPS 1.0
◼ Syntax
SimpleFeatureCollection
◼ Parameters
◼ Data Inputs
◼ Process Outputs
◼ Constraints
or field values.
constituting the MultiPolygon are deleted, leaving only the largest ring. If the
value is larger than 0, only the ring smaller than the corresponding value is
deleted.
◼ Request Examples
<?xml version="1.0" encoding="UTF-8"?><wps:Execute version="1.0.0" service="WPS"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0"
xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0"
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml"
174
Spatial Extension for GeoServer WPS 1.0
xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1"
xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:RemoveParts</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>inputFeatures</ows:Identifier>
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
<wfs:Query typeName="foss:korea_sgg"/>
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
4.2.7.4. Simplify
preserveTopology): SimpleFeatureCollection
◼ Parameters
◼ Data Inputs
Identifier Description Type Required
inputFeatures The input line or polygon features to be simplified. Complex ✓
Distance tolerance to simplify ex) 10.0 or filter
tolerance Literal ✓
expression.
◼ Process Outputs
◼ Constraints
Douglas-Peucker algorithm.
◼ Request Examples
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0"
xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0"
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1"
176
Spatial Extension for GeoServer WPS 1.0
xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:Simplify</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>inputFeatures</ows:Identifier>
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
<wfs:Query typeName="foss:road"/>
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>tolerance</ows:Identifier>
<wps:Data>
<wps:LiteralData>5</wps:LiteralData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
The blue line is the original, the red line is the Simplify result.
177
Spatial Extension for GeoServer WPS 1.0
4.2.7.5. Densify
Adds the vertices of the tolerance interval you set for each line segment of the polygon or line
feature.
◼ Syntax
SimpleFeatureCollection
◼ Parameters
◼ Data Inputs
◼ Process Outputs
◼ Constraints
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0"
xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0"
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1"
xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:Densify</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>inputFeatures</ows:Identifier>
178
Spatial Extension for GeoServer WPS 1.0
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
<wfs:Query typeName="foss:line"/>
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>tolerance</ows:Identifier>
<wps:Data>
<wps:LiteralData>250</wps:LiteralData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
It is the result of performing Densify at 250m interval from original line composed of start
point and end point. Blue is the original vertex, and red is the added vertex.
179
Spatial Extension for GeoServer WPS 1.0
4.2.7.6. Eliminate
Remove the Sliver polygon based on the shared area or length of the neighboring polygon.
◼ Syntax
exception): SimpleFeatureCollection
◼ Parameters
◼ Data Inputs
Identifier Description Type Required
The layer whose polygons will be merged into
inputFeatures Complex ✓
neighboring polygons.
The options specify which method will be used for
option Literal -
eliminating features.
The exception filter used to identify features that will
exception Literal -
not be altered .
◼ Process Outputs
◼ Constraints
the Sliver polygon with the largest shared length, the largest area (SmallArea),
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0"
xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0"
180
Spatial Extension for GeoServer WPS 1.0
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1"
xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:Eliminate</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>inputFeatures</ows:Identifier>
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
<wfs:Query typeName="foss:seoul_series"/>
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>option</ows:Identifier>
<wps:Data>
<wps:LiteralData>Length</wps:LiteralData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
Sliver Original Original with polygon Original and result with Sliver polygon removed based on
shared length in layer.
181
Spatial Extension for GeoServer WPS 1.0
182
Spatial Extension for GeoServer WPS 1.0
4.2.8. Editing
◼ Parameters
◼ Data Inputs
◼ Process Outputs
◼ Constraints
◼ Request Examples
xmlns="http://www.opengis.net/wps/1.0.0" xmlns:wfs="http://www.opengis.net/wfs"
xmlns:wps="http://www.opengis.net/wps/1.0.0" xmlns:ows="http://www.opengis.net/ows/1.1"
xmlns:gml="http://www.opengis.net/gml" xmlns:ogc="http://www.opengis.net/ogc"
xmlns:wcs="http://www.opengis.net/wcs/1.1.1" xmlns:xlink="http://www.w3.org/1999/xlink"
xsi:schemaLocation="http://www.opengis.net/wps/1.0.0 http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:FlipLine</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>lineFeatures</ows:Identifier>
183
Spatial Extension for GeoServer WPS 1.0
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
The line source (red) data and the converted result (blue) data.
184
Spatial Extension for GeoServer WPS 1.0
185
Spatial Extension for GeoServer WPS 1.0
SimpleFeatureCollection
◼ Parameters
◼ Data Inputs
Identifier Description Type Required
Input features that can be multipoint, line, and
inputFeatures Complex ✓
polygon.
◼ Process Outputs
◼ Constraints
- If the offsetX value is positive on the basis of the original position, it moves to the
right if the value is negative. If the value of offsetY is positive, it moves to the
negative value.
◼ Request Examples
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0"
xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0"
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1"
xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:OffsetFeatures</ows:Identifier>
<wps:DataInputs>
<wps:Input>
186
Spatial Extension for GeoServer WPS 1.0
<ows:Identifier>inputFeatures</ows:Identifier>
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
<wfs:Query typeName="foss:randomsgg"/>
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>offsetX</ows:Identifier>
<wps:Data>
<wps:LiteralData>500</wps:LiteralData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>offsetY</ows:Identifier>
<wps:Data>
<wps:LiteralData>500</wps:LiteralData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
This is the result of moving the original layer to 500 on the X axis and 500 on the Y axis.
187
Spatial Extension for GeoServer WPS 1.0
188
Spatial Extension for GeoServer WPS 1.0
◼ Parameters
◼ Data Inputs
◼ Process Outputs
◼ Constraints
◼ Request Examples
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0"
xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0"
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1"
xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
189
Spatial Extension for GeoServer WPS 1.0
<ows:Identifier>statistics:SnapPointsToLines</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>pointFeatures</ows:Identifier>
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
<wfs:Query typeName="foss:pubs"/>
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>lineFeatures</ows:Identifier>
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
<wfs:Query typeName="foss:road"/>
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
The result of snapping the points around the road to the nearest road (line).
190
Spatial Extension for GeoServer WPS 1.0
191
Spatial Extension for GeoServer WPS 1.0
SimpleFeatureCollection
◼ Parameters
◼ Data Inputs
extend length.
◼ Process Outputs
◼ Constraints
To be applied.
◼ Request Examples
192
Spatial Extension for GeoServer WPS 1.0
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0"
xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0"
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1"
xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:ExtendLine</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>lineFeatures</ows:Identifier>
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
<wfs:Query typeName="foss:line"/>
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>length</ows:Identifier>
<wps:Data>
<wps:LiteralData>2000</wps:LiteralData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>extendTo</ows:Identifier>
<wps:Data>
<wps:LiteralData>True</wps:LiteralData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<wps:RawDataOutput mimeType="text/xml; subtype=wfs-collection/1.0">
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
193
Spatial Extension for GeoServer WPS 1.0
194
Spatial Extension for GeoServer WPS 1.0
Cut features in the line layer that are shorter than a certain length and do not intersect other
lines and start / end points.
◼ Syntax
deleteShort): SimpleFeatureCollection
◼ Parameters
◼ Data Inputs
✓ both endpoints
Controls whether line segments which are less than
(dangles) will be trimmed.
deleteShort the dangle length and are free-standing will be Literal -
◼ Process Outputs
◼ Constraints
intersect any other line at the start / end point is less than the dangleLength
length, it is deleted.
◼ Request Examples
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0"
xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0"
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml"
195
Spatial Extension for GeoServer WPS 1.0
xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1"
xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:TrimLine</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>lineFeatures</ows:Identifier>
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
<wfs:Query typeName="foss:line"/>
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>dangleLength</ows:Identifier>
<wps:Data>
<wps:LiteralData>1700</wps:LiteralData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>deleteShort</ows:Identifier>
<wps:Data>
<wps:LiteralData>True</wps:LiteralData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
196
Spatial Extension for GeoServer WPS 1.0
197
Spatial Extension for GeoServer WPS 1.0
◼ Parameters
◼ Data Inputs
◼ Process Outputs
◼ Constraints
- inputFeatures can be point, line, or polygon, and the geometry of each feature
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0"
xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0"
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1"
xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:DeleteDuplicates</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>inputFeatures</ows:Identifier>
<wps:Reference mimeType="text/xml" xlink:href="http://geoserver/wfs" method="POST">
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
198
Spatial Extension for GeoServer WPS 1.0
<wfs:Query typeName="foss:pubs"/>
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
Duplicate points have only one feature stored:
199
Spatial Extension for GeoServer WPS 1.0
singlePart): SimpleFeatureCollection
◼ Parameters
◼ Data Inputs
◼ Process Outputs
◼ Constraints
- If singlePart is True and the Geometry is MultiPart, convert the geometry of all
◼ Request Examples
200
Spatial Extension for GeoServer WPS 1.0
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0"
xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0"
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1"
xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:FeatureToPoint</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>inputFeatures</ows:Identifier>
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
<wfs:Query typeName="foss:korea_sgg"/>
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>inside</ows:Identifier>
<wps:Data>
<wps:LiteralData>True</wps:LiteralData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>singlePart</ows:Identifier>
<wps:Data>
<wps:LiteralData>False</wps:LiteralData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<wps:RawDataOutput mimeType=“text/xml; subtype=wfs-collection/1.1”>
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
201
Spatial Extension for GeoServer WPS 1.0
The inside parameter is True and the singlePart parameter is True. For MultiPolygon, one
center point is converted.
The inside parameter is True and the singlePart parameter is False. For MultiPolygon, the
center point is converted by the number of polygons.
202
Spatial Extension for GeoServer WPS 1.0
◼ Parameters
◼ Data Inputs
◼ Process Outputs
◼ Constraints
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0"
xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0"
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1"
xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:MultipartToSinglepart</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>inputFeatures</ows:Identifier>
<wps:Reference mimeType="text/xml" xlink:href="http://geoserver/wfs" method="POST">
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
203
Spatial Extension for GeoServer WPS 1.0
<wfs:Query typeName="foss:korea_sgg"/>
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
204
Spatial Extension for GeoServer WPS 1.0
205
Spatial Extension for GeoServer WPS 1.0
dissolve): SimpleFeatureCollection
◼ Parameters
◼ Data Inputs
◼ Process Outputs
◼ Constraints
- f the Dissolve parameter is True, the adjacent polygons or lines are Dissolve
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0"
xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0"
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1"
xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:SinglepartToMultipart</ows:Identifier>
<wps:DataInputs>
206
Spatial Extension for GeoServer WPS 1.0
<wps:Input>
<ows:Identifier>inputFeatures</ows:Identifier>
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
<wfs:Query typeName="foss:emd"/>
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>caseField</ows:Identifier>
<wps:Data>
<wps:LiteralData>sgg_nm</wps:LiteralData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
208
Spatial Extension for GeoServer WPS 1.0
singleEnvelope): SimpleFeatureCollection
◼ Parameters
◼ Data Inputs
◼ Process Outputs
◼ Constraints
MultiPolygon, it converts to Single Part and returns Envelope polygon for each
geometry.
◼ Request Examples
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0"
xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0"
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1"
xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:FeatureEnvelopeToPolygon</ows:Identifier>
<wps:DataInputs>
209
Spatial Extension for GeoServer WPS 1.0
<wps:Input>
<ows:Identifier>inputFeatures</ows:Identifier>
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
<wfs:Query typeName="foss:korea_sgg"/>
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>singleEnvelope</ows:Identifier>
<wps:Data>
<wps:LiteralData>False</wps:LiteralData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
Using the [Calculate Field] function, you can get the minimum bounding envelope surrounding the polygon
as follows:
211
Spatial Extension for GeoServer WPS 1.0
◼ Parameters
◼ Data Inputs
sortField feature will be used in the order they are found. If a Literal -
◼ Process Outputs
◼ Constraints
- Setting the lineField parameter creates each line according to the unique value of
lineField.
- When you set the sortField parameter, it creates a line using the sortField-
aligned points.
- If the closeLine parameter is True, the polygon is created by concatenating the start and
end points.
◼ Request Examples
212
Spatial Extension for GeoServer WPS 1.0
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0"
xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0"
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1"
xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:PointsToLine</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>inputFeatures</ows:Identifier>
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
<wfs:Query typeName="foss:track_points"/>
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>lineField</ows:Identifier>
<wps:Data>
<wps:LiteralData>cat</wps:LiteralData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>sortField</ows:Identifier>
<wps:Data>
<wps:LiteralData>id</wps:LiteralData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>closeLine</ows:Identifier>
<wps:Data>
<wps:LiteralData>False</wps:LiteralData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
213
Spatial Extension for GeoServer WPS 1.0
</wps:ResponseForm>
</wps:Execute>
◼ Response
This is the result of converting all points including the category and serial number to Line. The
line is created according to the serial number sequence and consists of two categories.
214
Spatial Extension for GeoServer WPS 1.0
◼ Parameters
◼ Data Inputs
◼ Process Outputs
◼ Constraints
- The fields parameter uses the number of consecutive fields or rings, such as a
215
Spatial Extension for GeoServer WPS 1.0
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0"
xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0"
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1"
xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:RingMap</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>inputFeatures</ows:Identifier>
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
<wfs:Query typeName="foss:seoul_series"/>
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>fields</ows:Identifier>
<wps:Data>
<wps:LiteralData>a3_2000,a3_2001,a3_2002,a3_2003,a3_2004,a3_2005</wps:LiteralData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>targetField</ows:Identifier>
<wps:Data>
<wps:LiteralData>ring_val</wps:LiteralData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<wps:ResponseDocument>
<ows:Identifier>anchor</ows:Identifier>
</wps:Output>
<ows:Identifier>ringmap</ows:Identifier>
</wps:Output>
</wps:ResponseDocument>
</wps:ResponseForm>
216
Spatial Extension for GeoServer WPS 1.0
</wps:Execute>
◼ Response
This is the result of creating the Ring Map using the population growth rate property of the
city from 2000 to 2005.
217
Spatial Extension for GeoServer WPS 1.0
Create a Wind Rose Map by setting the point feature layer and center point.
◼ Syntax
center): SimpleFeatureCollection
◼ Parameters
◼ Data Inputs
◼ Process Outputs
◼ Constraints
- The weightField parameter must be a Numeric field, and if set, the sum of these
field values will be reflected in the result, otherwise the number of features will
be reflected.
- Output returns the anchor line and the windRose polygon layer to display the leader line.
◼ Request Examples
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0"
xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0"
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1"
xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:WindRoseMap</ows:Identifier>
218
Spatial Extension for GeoServer WPS 1.0
<wps:DataInputs>
<wps:Input>
<ows:Identifier>inputFeatures</ows:Identifier>
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
<wfs:Query typeName="foss:apartment"/>
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>center</ows:Identifier>
<wps:Data>
<wps:ComplexData mimeType="application/wkt"><![CDATA[POINT(14135161.941
4518394.452)]]></wps:ComplexData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<wps:ResponseDocument>
<ows:Identifier>anchor</ows:Identifier>
</wps:Output>
<ows:Identifier>windRose</ows:Identifier>
</wps:Output>
</wps:ResponseDocument>
</wps:ResponseForm>
</wps:Execute>
◼ Response
It is the result of generating the distribution of apartments based on Seoul City Hall as Wind
Rose Map.
219
Spatial Extension for GeoServer WPS 1.0
220
Spatial Extension for GeoServer WPS 1.0
SimpleFeatureCollection
◼ Parameters
◼ Data Inputs
◼ Process Outputs
◼ Constraints
Centroid of Geometry.
- If the useBezierCurve parameter is True, the shortest line between the two
221
Spatial Extension for GeoServer WPS 1.0
◼ Request Examples
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0"
xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0"
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1"
xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:HubLinesByID</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>hubFeatures</ows:Identifier>
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
<wfs:Query typeName="foss:wardoffice"/>
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>hubIdField</ows:Identifier>
<wps:Data>
<wps:LiteralData>sgg_nm</wps:LiteralData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>spokeFeatures</ows:Identifier>
<wps:Reference mimeType="text/xml" xlink:href="http://geoserver/wfs" method="POST">
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
<wfs:Query typeName="foss:emd"/>
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
222
Spatial Extension for GeoServer WPS 1.0
</wps:Input>
<wps:Input>
<ows:Identifier>spokeIdField</ows:Identifier>
<wps:Data>
<wps:LiteralData>sgg_nm</wps:LiteralData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>preserveAttributes</ows:Identifier>
<wps:Data>
<wps:LiteralData>True</wps:LiteralData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>useCentroid</ows:Identifier>
<wps:Data>
<wps:LiteralData>True</wps:LiteralData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
It is the result of setting the city municipal office as Hub, setting the polygon of the eup
andong as a spoke layer, and creating the hub line based on the city and district code.
223
Spatial Extension for GeoServer WPS 1.0
224
Spatial Extension for GeoServer WPS 1.0
◼ Parameters
◼ Data Inputs
◼ Process Outputs
◼ Constraints
If the type is line or polygon, create a hub line using Centroid of Geometry.
- If the useBezierCurve parameter is True, the shortest line between the two
◼ Request Examples
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0"
xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0"
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1"
xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:HubLinesByDistance</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>spokeFeatures</ows:Identifier>
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
<wfs:Query typeName="foss:wardoffice"/>
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>hubFeatures</ows:Identifier>
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
<wfs:Query typeName="foss:apartment"/>
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>preserveAttributes</ows:Identifier>
<wps:Data>
<wps:LiteralData>True</wps:LiteralData>
</wps:Data>
</wps:Input>
226
Spatial Extension for GeoServer WPS 1.0
<wps:Input>
<ows:Identifier>useCentroid</ows:Identifier>
<wps:Data>
<wps:LiteralData>True</wps:LiteralData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
It is the result of connecting the closest apartment in the municipal office with the city district
office as the hub and the apartment distribution as the spoke. It is located in the same area as
Thiessen Polygon, as shown in the figure.
227
Spatial Extension for GeoServer WPS 1.0
With the Bezier curve option, you can create a curve as follows:
228
Spatial Extension for GeoServer WPS 1.0
SimpleFeatureCollection
◼ Parameters
◼ Data Inputs
◼ Process Outputs
◼ Constraints
◼ Request Examples
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0"
xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0"
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1"
xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:FeatureToLine</ows:Identifier>
229
Spatial Extension for GeoServer WPS 1.0
<wps:DataInputs>
<wps:Input>
<ows:Identifier>inputFeatures</ows:Identifier>
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
<wfs:Query typeName="foss:sgg"/>
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>preserveAttributes</ows:Identifier>
<wps:Data>
<wps:LiteralData>True</wps:LiteralData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
◼ Parameters
◼ Data Inputs
features.
◼ Process Outputs
◼ Constraints
◼ Request Examples
<?xml version="1.0" encoding="UTF-8"?><wps:Execute version="1.0.0" service="WPS"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0"
xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0"
232
Spatial Extension for GeoServer WPS 1.0
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1"
xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:FeatureToPolygon</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>inputFeatures</ows:Identifier>
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
<wfs:Query typeName="foss:line"/>
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>tolerance</ows:Identifier>
<wps:Data>
<wps:LiteralData>0.001</wps:LiteralData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
SimpleFeatureCollection
◼ Parameters
◼ Data Inputs
◼ Process Outputs
◼ Constraints
option Explanation
All All vertices of line or polygon geometry, default
Mid Midpoint of line or polygon geometry
Start Starting point of line or polygon geometry
End Endpoint of line or polygon geometry
BothEnds The starting and ending points of the line or polygon geometry
◼ Request Examples
235
Spatial Extension for GeoServer WPS 1.0
xmlns="http://www.opengis.net/wps/1.0.0" xmlns:wfs="http://www.opengis.net/wfs"
xmlns:wps="http://www.opengis.net/wps/1.0.0" xmlns:ows="http://www.opengis.net/ows/1.1"
xmlns:gml="http://www.opengis.net/gml" xmlns:ogc="http://www.opengis.net/ogc"
xmlns:wcs="http://www.opengis.net/wcs/1.1.1" xmlns:xlink="http://www.w3.org/1999/xlink"
xsi:schemaLocation="http://www.opengis.net/wps/1.0.0 http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:VerticesToPoints</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>inputFeatures</ows:Identifier>
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>location</ows:Identifier>
<wps:Data>
<wps:LiteralData>Mid</wps:LiteralData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
The result of converting the Mid (midpoint) of the line feature to a point.
236
Spatial Extension for GeoServer WPS 1.0
237
Spatial Extension for GeoServer WPS 1.0
Correct the error after validating the geometry of each feature in the feature layer.
◼ Syntax
◼ Parameters
◼ Data Inputs
◼ Process Outputs
◼ Constraints
- Validate coordinates
◼ Request Examples
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0"
xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0"
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1"
xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:RepairGeometry</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>inputFeatures</ows:Identifier>
238
Spatial Extension for GeoServer WPS 1.0
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
<wfs:Query typeName="foss:seoul_series"/>
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
- None
239
Spatial Extension for GeoServer WPS 1.0
SimpleFeatureCollection
◼ Parameters
◼ Data Inputs
◼ Process Outputs
◼ Constraints
xmlns="http://www.opengis.net/wps/1.0.0" xmlns:wfs="http://www.opengis.net/wfs"
xmlns:wps="http://www.opengis.net/wps/1.0.0" xmlns:ows="http://www.opengis.net/ows/1.1"
xmlns:gml="http://www.opengis.net/gml" xmlns:ogc="http://www.opengis.net/ogc"
xmlns:wcs="http://www.opengis.net/wcs/1.1.1" xmlns:xlink="http://www.w3.org/1999/xlink"
xsi:schemaLocation="http://www.opengis.net/wps/1.0.0 http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:PointsAlongLines</ows:Identifier>
<wps:DataInputs>
240
Spatial Extension for GeoServer WPS 1.0
<wps:Input>
<ows:Identifier>lineFeatures</ows:Identifier>
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>distance</ows:Identifier>
<wps:Data>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
The following example is the result of creating a point at 1/5 the line length.
241
Spatial Extension for GeoServer WPS 1.0
◼ Parameters
◼ Data Inputs
Identifier Description Type Required
lineFeatures The line features to be splitted. Complex ✓
The point features whose locations will be used to
pointFeatures Complex ✓
split the line features.
Search radius. If tolerance is 0, the nearest point will
tolerance Literal -
be used to split the line feature.
◼ Process Outputs
◼ Constraints
If there are no intersecting point features, the closest one point feature is used for line
splitting.
- If the tolerance parameter is greater than or equal to zero, all point features within
◼ Request Examples
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0"
242
Spatial Extension for GeoServer WPS 1.0
xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0"
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1"
xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:SplitLineAtPoint</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>lineFeatures</ows:Identifier>
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
<wfs:Query typeName="foss:line"/>
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>pointFeatures</ows:Identifier>
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
<wfs:Query typeName="foss:stores"/>
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>tolerance</ows:Identifier>
<wps:Data>
<wps:LiteralData>50</wps:LiteralData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
243
Spatial Extension for GeoServer WPS 1.0
◼ Response
244
Spatial Extension for GeoServer WPS 1.0
◼ Parameters
◼ Data Inputs
◼ Process Outputs
◼ Constraints
xmlns="http://www.opengis.net/wps/1.0.0" xmlns:wfs="http://www.opengis.net/wfs"
xmlns:wps="http://www.opengis.net/wps/1.0.0" xmlns:ows="http://www.opengis.net/ows/1.1"
xmlns:gml="http://www.opengis.net/gml" xmlns:ogc="http://www.opengis.net/ogc"
xmlns:wcs="http://www.opengis.net/wcs/1.1.1" xmlns:xlink="http://www.w3.org/1999/xlink"
xsi:schemaLocation="http://www.opengis.net/wps/1.0.0 http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:SplitLineAtVertices</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>lineFeatures</ows:Identifier>
<wps:Body>
<wfs:GetFeature service="WFS" version="1.0.0" outputFormat="GML2"
xmlns:foss="http://www.opengeospatial.net/foss">
245
Spatial Extension for GeoServer WPS 1.0
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
The result of converting the boundary of a polygon feature to a line feature per vertex.
246
Spatial Extension for GeoServer WPS 1.0
SimpleFeatureCollection
◼ Parameters
◼ Data Inputs
◼ Process Outputs
◼ Constraints
xmlns="http://www.opengis.net/wps/1.0.0" xmlns:wfs="http://www.opengis.net/wfs"
xmlns:wps="http://www.opengis.net/wps/1.0.0" xmlns:ows="http://www.opengis.net/ows/1.1"
xmlns:gml="http://www.opengis.net/gml" xmlns:ogc="http://www.opengis.net/ogc"
xmlns:wcs="http://www.opengis.net/wcs/1.1.1" xmlns:xlink="http://www.w3.org/1999/xlink"
xsi:schemaLocation="http://www.opengis.net/wps/1.0.0 http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:SplitLineByDistance</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>lineFeatures</ows:Identifier>
247
Spatial Extension for GeoServer WPS 1.0
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>distance</ows:Identifier>
<wps:Data>
<wps:LiteralData>100</wps:LiteralData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
This is the result of dividing the boundary of the polygon feature into lines of 100 meters
apart.
248
Spatial Extension for GeoServer WPS 1.0
◼ Parameters
◼ Data Inputs
◼ Process Outputs
◼ Constraints
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0"
xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0"
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1"
xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:IntersectionPoints</ows:Identifier>
249
Spatial Extension for GeoServer WPS 1.0
<wps:DataInputs>
<wps:Input>
<ows:Identifier>inputFeatures</ows:Identifier>
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
<wfs:Query typeName="foss:randomsgg"/>
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>intersectFeatures</ows:Identifier>
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
<wfs:Query typeName="foss:line"/>
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
◼ Parameters
◼ Data Inputs
◼ Process Outputs
◼ Constraints
◼ Request Examples
xmlns="http://www.opengis.net/wps/1.0.0" xmlns:wfs="http://www.opengis.net/wfs"
xmlns:wps="http://www.opengis.net/wps/1.0.0" xmlns:ows="http://www.opengis.net/ows/1.1"
xmlns:gml="http://www.opengis.net/gml" xmlns:ogc="http://www.opengis.net/ogc"
252
Spatial Extension for GeoServer WPS 1.0
xmlns:wcs="http://www.opengis.net/wcs/1.1.1" xmlns:xlink="http://www.w3.org/1999/xlink"
xsi:schemaLocation="http://www.opengis.net/wps/1.0.0 http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:FlowMap</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>lineFeatures</ows:Identifier>
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
<wfs:Query typeName="foss:od_flow"/>
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>odValue</ows:Identifier>
<wps:Data>
<wps:LiteralData>o_d</wps:LiteralData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>maxSize</ows:Identifier>
<wps:Data>
<wps:LiteralData>2500</wps:LiteralData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
This is the result of generating the Flow Map using the Seoul municipal population moving
data.
253
Spatial Extension for GeoServer WPS 1.0
254
Spatial Extension for GeoServer WPS 1.0
SimpleFeatureCollection
◼ Parameters
◼ Data Inputs
Identifier Description Type Required
The input features that can be multipoint, line,
inputFeatures Complex ✓
polygon.
feature.
◼ Process Outputs
◼ Constraints
Conversion.
◼ Request Examples
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0"
xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0"
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1"
xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
255
Spatial Extension for GeoServer WPS 1.0
<ows:Identifier>statistics: FeatureToOctagonalEnvelope</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>inputFeatures</ows:Identifier>
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
<wfs:Query typeName="foss:sgg"/>
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
The result of converting the polygon feature to the minimum bounding octagonal polygon.
256
Spatial Extension for GeoServer WPS 1.0
257
Spatial Extension for GeoServer WPS 1.0
SimpleFeatureCollection
◼ Parameters
◼ Data Inputs
Identifier Description Type Required
The input features that can be multipoint, line,
inputFeatures Complex ✓
polygon.
feature.
◼ Process Outputs
◼ Constraints
Conversion.
◼ Request Examples
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0"
xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0"
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1"
xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
258
Spatial Extension for GeoServer WPS 1.0
<ows:Identifier>statistics: FeatureToMinimumRectangle</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>inputFeatures</ows:Identifier>
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
<wfs:Query typeName="foss:sgg"/>
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
The result of converting the polygon feature to the minimum bounding rectangle.
259
Spatial Extension for GeoServer WPS 1.0
Converts each feature into a convex hull polygon that surrounds the feature layer.
◼ Syntax
SimpleFeatureCollection
◼ Parameters
◼ Data Inputs
Identifier Description Type Required
The input features that can be multipoint, line,
inputFeatures Complex ✓
polygon.
feature.
◼ Process Outputs
◼ Constraints
Conversion.
◼ Request Examples
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0"
xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0"
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1"
xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
260
Spatial Extension for GeoServer WPS 1.0
<ows:Identifier>statistics: FeatureToConvexHull</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>inputFeatures</ows:Identifier>
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
<wfs:Query typeName="foss:sgg"/>
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
singlePart): SimpleFeatureCollection
◼ Parameters
◼ Data Inputs
Identifier Description Type Required
The input features that can be multipoint, line,
inputFeatures Complex ✓
polygon.
feature.
◼ Process Outputs
◼ Constraints
- If singlePart is True and the Geometry is MultiPart, the Geometry of all Part
Conversion.
◼ Request Examples
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0"
xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0"
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1"
xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
262
Spatial Extension for GeoServer WPS 1.0
<ows:Identifier>statistics:FeatureToMinimumBoundingCircle</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>inputFeatures</ows:Identifier>
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
<wfs:Query typeName="foss:sgg"/>
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
The result of converting the polygon feature to the Minimum Bounding Circle.
263
Spatial Extension for GeoServer WPS 1.0
◼ Syntax
◼ Parameters
◼ Data Inputs
◼ Process Outputs
◼ Constraints
is converted.
◼ Request Examples
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0"
xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0"
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1"
xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:GeometryToFeatures</ows:Identifier>
264
Spatial Extension for GeoServer WPS 1.0
<wps:DataInputs>
<wps:Input>
<ows:Identifier>geometry</ows:Identifier>
<wps:Data>
<wps:ComplexData mimeType="application/wkt"><![CDATA[POINT(127
38)]]></wps:ComplexData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>crs</ows:Identifier>
<wps:Data>
<wps:LiteralData>EPSG:4326</wps:LiteralData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<wps:RawDataOutput mimeType="application/json">
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
The result of converting polygon layer extents to polygon features.
265
Spatial Extension for GeoServer WPS 1.0
4.2.9.25. Reproject
feature layer.
◼ Syntax
◼ Parameters
Identifier Description Type Required
inputFeatures
◼ Data Inputs The input features that will be reprojected. Complex ✓
forcedCRS Coordinate reference system to use for input features. Literal -
Target coordinate reference system to use for
targetCRS Literal -
reprojection.
◼ Process Outputs
◼ Constraints
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0"
xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0"
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1"
xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:Reproject</ows:Identifier>
<wps:DataInputs>
266
Spatial Extension for GeoServer WPS 1.0
<wps:Input>
<ows:Identifier>inputFeatures</ows:Identifier>
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
<wfs:Query typeName="foss:emd"/>
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>targetCRS</ows:Identifier>
<wps:Data>
<wps:LiteralData>EPSG:5186</wps:LiteralData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
None
267
Spatial Extension for GeoServer WPS 1.0
Set the raster layer and specific areas to analyze the basic statistics (Sum, Minimum, Maximum,
Mean, Standard Deviation, etc.) for raster cell values contained in the area.
◼ Syntax
bandIndex): DataStatisticsResult
◼ Parameters
◼ Data Inputs
◼ Process Outputs
◼ Constraints
- If cropShape is Null, create statistics for all cells in the input raster.
◼ Request Examples
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0"
xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0"
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1"
xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:StatisticsGridCoverage</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>inputCoverage</ows:Identifier>
<wps:Body>
<ows:Identifier>foss:seoul_dem30</ows:Identifier>
<wcs:DomainSubset>
<gml:BoundingBox crs="http://www.opengis.net/gml/srs/epsg.xml#5181">
<ows:LowerCorner>179171.39881047895 436569.3290600816</ows:LowerCorner>
<ows:UpperCorner>216221.0981287582 466869.08315843146</ows:UpperCorner>
</gml:BoundingBox>
</wcs:DomainSubset>
<wcs:Output format="image/tiff"/>
</wcs:GetCoverage>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>cropShape</ows:Identifier>
<wps:Data>
<wps:ComplexData mimeType="application/wkt"><![CDATA[POLYGON
((……………………………………))]]></wps:ComplexData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<wps:RawDataOutput mimeType="text/xml">
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
269
Spatial Extension for GeoServer WPS 1.0
◼ Response
<DataStatistics>
<Item>
<TypeName>dem</TypeName>
<PropertyName>Value</PropertyName>
<Count>678064</Count>
<InvalidCount>0</InvalidCount>
<Minimum>1.0</Minimum>
<Maximum>754.0</Maximum>
<Range>753.0</Range>
<Ranges>1.0 - 754.0</Ranges>
<Sum>4.2785658E7</Sum>
<Mean>63.09973394841785</Mean>
<Variance>7285.154424054373</Variance>
<StandardDeviation>85.35311607700315</StandardDeviation>
<CoefficientOfVariance>1.3526699834705607</CoefficientOfVariance>
<NoData class="double">-9999</NoData>
</Item>
</DataStatistics>
270
Spatial Extension for GeoServer WPS 1.0
4.3.1.2. Histogram
Set raster layers and specific regions to extract raster cell unique values and
◼ Syntax
bandIndex): GridCoverage2D
◼ Parameters
◼ Data Inputs
◼ Process Outputs
◼ Constraints
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0"
xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0"
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1"
xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
271
Spatial Extension for GeoServer WPS 1.0
<ows:Identifier>statistics:HistogramGridCoverage</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>inputCoverage</ows:Identifier>
<wps:Body>
<ows:Identifier>foss:landuse</ows:Identifier>
<wcs:DomainSubset>
<gml:BoundingBox crs="http://www.opengis.net/gml/srs/epsg.xml#5181">
<ows:LowerCorner>179171.39881047895 436569.3290600816</ows:LowerCorner>
<ows:UpperCorner>216221.0981287582 466869.08315843146</ows:UpperCorner>
</gml:BoundingBox>
</wcs:DomainSubset>
<wcs:Output format="image/tiff"/>
</wcs:GetCoverage>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>cropShape</ows:Identifier>
<wps:Data>
<wps:ComplexData mimeType="application/wkt"><![CDATA[MULTIPOLYGON
202045.8134286803 451170.87479061395)))]]></wps:ComplexData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<wps:RawDataOutput mimeType="text/xml">
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
Clusters of specific areas of a raster layer with grades such as national environmental
The result I wrote. Because the number of cells for each value is returned, multiplying by one
cell area (CellSize * CellSize) yields the area for each cell.
272
Spatial Extension for GeoServer WPS 1.0
<Histogram>
<TypeName>landuse</TypeName>
<PropertyName>Value</PropertyName>
<Area>25498176.913556</Area>
<CellSize>30.0</CellSize>
<HistogramItem>
<Value>1</Value>
<Frequency>876</Frequency>
</HistogramItem>
<HistogramItem>
<Value>2</Value>
<Frequency>543</Frequency>
</HistogramItem>
<HistogramItem>
<Value>3</Value>
<Frequency>292</Frequency>
</HistogramItem>
<HistogramItem>
<Value>4</Value>
<Frequency>1345</Frequency>
</HistogramItem>
<HistogramItem>
<Value>5</Value>
<Frequency>765</Frequency>
</HistogramItem>
</Histogram>
273
Spatial Extension for GeoServer WPS 1.0
◼ Parameters
◼ Data Inputs
◼ Process Outputs
◼ Constraints
- If detailed is true, basic statistics information for each band is calculated and returned.
- Output is returned in XML.
◼ Request Examples
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0"
xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0"
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1"
xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:RasterDescribe</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>inputCoverage</ows:Identifier>
274
Spatial Extension for GeoServer WPS 1.0
<wps:Body>
<ows:Identifier>foss:seoul_dem30</ows:Identifier>
<wcs:DomainSubset>
<ows:BoundingBox crs="http://www.opengis.net/gml/srs/epsg.xml#3857">
<ows:LowerCorner>1.4111343323506365E7 4498971.750719266</ows:LowerCorner>
<ows:UpperCorner>1.4158021303411832E7 4537343.6431004135</ows:UpperCorner>
</ows:BoundingBox>
</wcs:DomainSubset>
<wcs:Output format="image/tiff"/>
</wcs:GetCoverage>
</wps:Body>
</wps:Reference>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<wps:RawDataOutput mimeType="text/xml">
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
<RasterDescription>
<Name>seoul_dem30</Name>
<Columns>1556</Columns>
<Rows>1279</Rows>
<NumberOfBands>1</NumberOfBands>
<CellSizeX>29.998701738731725</CellSizeX>
<CellSizeY>30.001479578692326</CellSizeY>
<PixelType>UNSIGNED_16BITS</PixelType>
<PixelDepth>16BITS</PixelDepth>
<NoData>0.0</NoData>
<Extent>
<XMin>1.4111343323506365E7</XMin>
<YMin>4498971.750719266</YMin>
<XMax>1.4158021303411832E7</XMax>
<YMax>4537343.6431004135</YMax>
</Extent>
275
Spatial Extension for GeoServer WPS 1.0
AUTHORITY["EPSG","6326"]],
AUTHORITY["EPSG","4326"]],
AUTHORITY["EPSG","3857"]]
</SpatialReference>
<Band>
<BandIndex>0</BandIndex>
<Description>GRAY_INDEX</Description>
<Count>1068918</Count>
<Minimun>1.0</Minimun>
<Maximin>754.0</Maximin>
<Mean>61.70939866294702</Mean>
<Sum>6.5962287E7</Sum>
<Variance>6771.511633069396</Variance>
<StandardDeviation>82.2891951173992</StandardDeviation>
<NoData>0.0</NoData>
</Band>
</RasterDescription>
276
Spatial Extension for GeoServer WPS 1.0
4.3.2. Conversion
It consists of conversion processes between vector data and raster data.
4.3.2.1. Features To Raster
◼ Parameters
◼ Data Inputs
inputField The field used to assign values to the output raster. Literal -
cellSize The cell size for the output raster. Literal -
extent The extent for the output raster. Complex -
◼ Process Outputs
◼ Constraints
277
Spatial Extension for GeoServer WPS 1.0
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0"
xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0"
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1"
xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:FeaturesToRaster</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>inputFeatures</ows:Identifier>
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
<wfs:Query typeName="foss:sgg"/>
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>inputField</ows:Identifier>
<wps:Data>
<wps:LiteralData>pop_den</wps:LiteralData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>cellSize</ows:Identifier>
<wps:Data>
<wps:LiteralData>30</wps:LiteralData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<wps:RawDataOutput mimeType="image/tiff">
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
278
Spatial Extension for GeoServer WPS 1.0
279
Spatial Extension for GeoServer WPS 1.0
GridCoverage2D
◼ Parameters
◼ Data Inputs
Identifier Description Type Required
The point or multipoint input feature dataset to be
inputFeatures Complex ✓
converted to a raster.
inputField The field used to assign values to the output raster. Literal ✓
The method to determine how the cell will be
cellAssignment assigned a value when more than one feature falls Literal -
within a cell.
cellSize The cell size for the output raster. Literal -
extent The extent for the output raster. Complex -
◼ Process Outputs
◼ Constraints
280
Spatial Extension for GeoServer WPS 1.0
- The cellAssignment parameter defines how cell values are assigned when more than
option Explanation
MostFrequent Frequency, number of frequencies, and
Mean
Averag
e Maximum
Maxim
um value Minimum
Minim
◼ Request Examples
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0"
xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0"
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1"
xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:PointsToRaster</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>inputFeatures</ows:Identifier>
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
<wfs:Query typeName="foss:pubs"/>
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>inputField</ows:Identifier>
<wps:Data>
<wps:LiteralData>gid</wps:LiteralData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>cellAssignment</ows:Identifier>
281
Spatial Extension for GeoServer WPS 1.0
<wps:Data>
<wps:LiteralData>Count</wps:LiteralData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>cellSize</ows:Identifier>
<wps:Data>
<wps:LiteralData>30</wps:LiteralData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<wps:RawDataOutput mimeType="image/tiff">
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
◼ Syntax
extent): GridCoverage2D
◼ Parameters
Identifier
◼ Data Inputs Description Type Required
The input geometry to be converted to a raster
inputGeometry Complex ✓
dataset.
defaultValue The default value for the output pixel: 1(default). Literal -
pixelType The pixel type for the output raster. Literal -
cellSize The cell size for the output raster. Literal -
extent The extent for the output raster. Complex -
◼ Process Outputs
◼ Constraints
- If the forcedCRS parameter is Null, use the CRS value of the inputGeometry,
- If you do not set the extent parameter, use the range of the inputGeometry.
- If the cellSize parameter is not set, the width and height of the Extent, whichever is smaller
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0"
xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0"
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1"
xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:GeometryToRaster</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>inputGeometry</ows:Identifier>
<wps:Data>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>forcedCRS</ows:Identifier>
<wps:Data>
<wps:LiteralData>EPSG:3857</wps:LiteralData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>defaultValue</ows:Identifier>
<wps:Data>
<wps:LiteralData>1</wps:LiteralData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>pixelType</ows:Identifier>
<wps:Data>
<wps:LiteralData>INTEGER</wps:LiteralData>
</wps:Data>
</wps:Input>
<wps:Input>
284
Spatial Extension for GeoServer WPS 1.0
<ows:Identifier>cellSize</ows:Identifier>
<wps:Data>
<wps:LiteralData>50</wps:LiteralData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<wps:RawDataOutput mimeType="image/tiff">
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
SimpleFeatureCollection
◼ Parameters
◼ Data Inputs
Identifier Description Type Required
inputCoverage The input gridcoverage to be converted. Complex ✓
bandIndex The zero-based band index, default index is 0. Literal -
The field used to assign values from the cells.
valueField Literal -
Default i s value.
◼ Process Outputs
◼ Constraints
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0"
xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0"
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1"
xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:RasterToPoint</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>inputCoverage</ows:Identifier>
286
Spatial Extension for GeoServer WPS 1.0
<wps:Body/>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>valueField</ows:Identifier>
<wps:Data>
<wps:LiteralData>val</wps:LiteralData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
◼ Parameters
◼ Data Inputs
Identifier Description Type Required
inputCoverage The input gridcoverage to be converted. Complex ✓
bandIndex The zero-based band index, default index is 0. Literal -
Determines if the output polygons will be smoothed
weeding Literal -
into simpler shapes. Default is False.
The field used to assign values from the cells.
valueField Literal -
Default i s value.
◼ Process Outputs
◼ Constraints
xmlns="http://www.opengis.net/wps/1.0.0" xmlns:wfs="http://www.opengis.net/wfs"
xmlns:wps="http://www.opengis.net/wps/1.0.0" xmlns:ows="http://www.opengis.net/ows/1.1"
xmlns:gml="http://www.opengis.net/gml" xmlns:ogc="http://www.opengis.net/ogc"
289
Spatial Extension for GeoServer WPS 1.0
xmlns:wcs="http://www.opengis.net/wcs/1.1.1" xmlns:xlink="http://www.w3.org/1999/xlink"
xsi:schemaLocation="http://www.opengis.net/wps/1.0.0 http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:RasterToPolygon</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>inputCoverage</ows:Identifier>
<wps:Body>
<ows:Identifier>foss:seoul_dem30</ows:Identifier>
<wcs:DomainSubset>
<ows:BoundingBox crs="http://www.opengis.net/gml/srs/epsg.xml#3857">
<ows:LowerCorner>1.4111343323506365E7 4498971.750719266</ows:LowerCorner>
<ows:UpperCorner>1.4158021303411832E7 4537343.6431004135</ows:UpperCorner>
</ows:BoundingBox>
</wcs:DomainSubset>
<wcs:Output format="image/tiff"/>
</wcs:GetCoverage>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>weeding</ows:Identifier>
<wps:Data>
<wps:LiteralData>True</wps:LiteralData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
It is the result of extracting more than 250 meters above sea level from the DEM layer and
converting it to polygon.
290
Spatial Extension for GeoServer WPS 1.0
291
Spatial Extension for GeoServer WPS 1.0
Style style, Integer width, Integer height, String format, Boolean transparent, String
bgColor): Image
◼ Parameters
◼ Data Inputs
Identifier Description Type Required
coverage The input gridcoverage to be converted. Complex ✓
Bounding box corners (lower left, upper right): minx,
bbox Literal -
miny, maxx, maxy.
crs CRS for Bounding Box. Ex) EPSG:3857 Literal -
Styled Layer Descriptor (SLD) style containing a
style Complex -
raster symbolizer.
width Image width in pixels of resulting map. Literal ✓
height Image height in pixels of resulting map. Literal ✓
Output format of map. Valid values are image/jpeg,
format Literal -
image/png (Default), and image/gif.
transparent Map background transparency. Default is True. Literal -
Hexidecimal red-blue-green color value for the map
bgColor Literal -
background color. Default is 0xFFFFFF (white).
◼ Process Outputs
◼ Constraints
- If the bbox and crs parameters are null, the coverage extents and coordinate system are
used.
- If the style parameter is null, the Equal Interval Style with minimum / maximum values To
be applied.
292
Spatial Extension for GeoServer WPS 1.0
◼ Request Examples
xmlns="http://www.opengis.net/wps/1.0.0" xmlns:wfs="http://www.opengis.net/wfs"
xmlns:wps="http://www.opengis.net/wps/1.0.0" xmlns:ows="http://www.opengis.net/ows/1.1"
xmlns:gml="http://www.opengis.net/gml" xmlns:ogc="http://www.opengis.net/ogc"
xmlns:wcs="http://www.opengis.net/wcs/1.1.1" xmlns:xlink="http://www.w3.org/1999/xlink"
xsi:schemaLocation="http://www.opengis.net/wps/1.0.0 http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:RasterToImage</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>coverage</ows:Identifier>
<wps:Body>
<ows:Identifier>foss:seoul_dem30</ows:Identifier>
<wcs:DomainSubset>
<ows:BoundingBox crs="http://www.opengis.net/gml/srs/epsg.xml#3857">
<ows:LowerCorner>1.4111343323506365E7 4498971.750719266</ows:LowerCorner>
<ows:UpperCorner>1.4158021303411832E7 4537343.6431004135</ows:UpperCorner>
</ows:BoundingBox>
</wcs:DomainSubset>
<wcs:Output format="image/tiff"/>
</wcs:GetCoverage>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>width</ows:Identifier>
<wps:Data>
<wps:LiteralData>500</wps:LiteralData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>height</ows:Identifier>
<wps:Data>
<wps:LiteralData>400</wps:LiteralData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>format</ows:Identifier>
<wps:Data>
293
Spatial Extension for GeoServer WPS 1.0
<wps:LiteralData>image/png</wps:LiteralData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>transparent</ows:Identifier>
<wps:Data>
<wps:LiteralData>True.</wps:LiteralData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<wps:RawDataOutput mimeType="image/png">
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
This is the result of requesting a DEM layer of Seoul with an image of 500 pixels wide by 400
pixels high. The requested result can be added to the image layer in OpenLayers.
294
Spatial Extension for GeoServer WPS 1.0
4.3.3. Distance
It consists of distance and proximity analysis processes using vector and raster data.
4.3.3.1. Euclidean Distance
Create a raster dataset based on Euclidean distance between each cell and feature.
◼ Syntax
◼ Parameters
◼ Data Inputs
◼ Process Outputs
◼ Constraints
- When the maximumDistance parameter is set, areas above the set distance will be
- If you do not set the extent parameter, use the range of the inputFeatures layer.
- If you do not set the cellSize parameter, use the value of the Extent's Width
◼ Request Examples
295
Spatial Extension for GeoServer WPS 1.0
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0"
xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0"
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1"
xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:EuclideanDistance</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>inputFeatures</ows:Identifier>
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
<wfs:Query typeName="foss:stores"/>
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>maximumDistance</ows:Identifier>
<wps:Data>
<wps:LiteralData>2500</wps:LiteralData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>cellSize</ows:Identifier>
<wps:Data>
<wps:LiteralData>30</wps:LiteralData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<wps:RawDataOutput mimeType="image/tiff">
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
296
Spatial Extension for GeoServer WPS 1.0
The result of Euclidean Distance analysis with maximum distance of 2.5km and cell size of 30m
using Seoul store location data.
297
Spatial Extension for GeoServer WPS 1.0
4.3.4. Math
GridCoverage2D
◼ Parameters
◼ Data Inputs
◼ Process Outputs
◼ Constraints
- The functions available in the expression parameter use the Filter Function11 of
GeoTools.
◼ Request Examples
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0"
11
http://docs.geoserver.org/stable/en/user/filter/function_reference.html
298
Spatial Extension for GeoServer WPS 1.0
xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0"
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1"
xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:RasterMath</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>inputCoverage</ows:Identifier>
<wps:Body>
<ows:Identifier>cite:dem05</ows:Identifier>
<wcs:DomainSubset>
<ows:BoundingBox crs="http://www.opengis.net/gml/srs/epsg.xml#5181">
<ows:LowerCorner>321541.5348100797 235208.86605789233</ows:LowerCorner>
<ows:UpperCorner>359950.1365611528 281299.18815918005</ows:UpperCorner>
</ows:BoundingBox>
</wcs:DomainSubset>
<wcs:Output format="image/tiff"/>
</wcs:GetCoverage>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>bandIndex</ows:Identifier>
<wps:Data>
<wps:LiteralData>0</wps:LiteralData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>expression</ows:Identifier>
<wps:Data>
<wps:LiteralData>log(Value * 250)</wps:LiteralData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<wps:RawDataOutput mimeType="image/tiff">
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
299
Spatial Extension for GeoServer WPS 1.0
◼ Response
It is the result of applying log (Value * 250) calculation formula in DEM raster data of Seoul
city.
300
Spatial Extension for GeoServer WPS 1.0
◼ Parameters
◼ Data Inputs
◼ Process Outputs
◼ Constraints
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0"
xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0"
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml"
301
Spatial Extension for GeoServer WPS 1.0
xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1"
xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:RasterSetNull</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>inputCoverage</ows:Identifier>
<wps:Body>
<ows:Identifier>cite:dem30</ows:Identifier>
<wcs:DomainSubset>
<ows:BoundingBox crs="http://www.opengis.net/gml/srs/epsg.xml#5181">
<ows:LowerCorner>322223.9108718962 235108.16003333713</ows:LowerCorner>
<ows:UpperCorner>360624.44972726464 281188.51233892346</ows:UpperCorner>
</ows:BoundingBox>
</wcs:DomainSubset>
<wcs:Output format="image/tiff"/>
</wcs:GetCoverage>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>bandIndex</ows:Identifier>
<wps:Data>
<wps:LiteralData>0</wps:LiteralData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>filter</ows:Identifier>
<wps:Data>
250]]></wps:ComplexData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<wps:RawDataOutput mimeType="image/tiff">
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
302
Spatial Extension for GeoServer WPS 1.0
◼ Response
It is the result of processing NoData in areas with a value of 50 or more in Seoul DEM raster
data.
303
Spatial Extension for GeoServer WPS 1.0
4.3.4.3. NDVI
Calculates the Normalized Difference Vegetation Index (NDVI)
from two raster bands.
◼ Syntax
◼ Parameters
◼ Data Inputs
◼ Process Outputs
◼ Constraints
◼ Request Examples
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0"
xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0"
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1"
xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:RasterNDVI</ows:Identifier>
<wps:DataInputs>
304
Spatial Extension for GeoServer WPS 1.0
<wps:Input>
<ows:Identifier>nirCoverage</ows:Identifier>
<wps:Body>
<ows:Identifier>nir</ows:Identifier>
<wcs:DomainSubset>
<ows:BoundingBox crs="http://www.opengis.net/gml/srs/epsg.xml#3857">
<ows:LowerCorner>1.4111343323506365E7 4498971.750719266</ows:LowerCorner>
<ows:UpperCorner>1.4158021303411832E7 4537343.6431004135</ows:UpperCorner>
</ows:BoundingBox>
</wcs:DomainSubset>
<wcs:Output format="image/tiff"/>
</wcs:GetCoverage>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>nirIndex</ows:Identifier>
<wps:Data>
<wps:LiteralData>0</wps:LiteralData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>redCoverage</ows:Identifier>
<wps:Body>
<ows:Identifier>red</ows:Identifier>
<wcs:DomainSubset>
<ows:BoundingBox crs="http://www.opengis.net/gml/srs/epsg.xml#3857">
<ows:LowerCorner>1.4111283326102886E7 4498971.750719266</ows:LowerCorner>
<ows:UpperCorner>1.4158051302113568E7 4537343.6431004135</ows:UpperCorner>
</ows:BoundingBox>
</wcs:DomainSubset>
<wcs:Output format="image/tiff"/>
</wcs:GetCoverage>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>redIndex</ows:Identifier>
<wps:Data>
305
Spatial Extension for GeoServer WPS 1.0
<wps:LiteralData>0</wps:LiteralData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<wps:RawDataOutput mimeType="image/tiff">
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
It is the result of processing NoData in areas with a value of 50 or more in Seoul DEM raster
data.
306
Spatial Extension for GeoServer WPS 1.0
4.3.5. Classification
It consists of processes that reclassify raster values into a range of values.
4.3.5.1. Reclass
Reclass the raster data to the given range and the value assigned to each range.
◼ Syntax
GridCoverage2D
◼ Parameters
◼ Data Inputs
◼ Process Outputs
◼ Constraints
xmlns="http://www.opengis.net/wps/1.0.0" xmlns:wfs="http://www.opengis.net/wfs"
xmlns:wps="http://www.opengis.net/wps/1.0.0" xmlns:ows="http://www.opengis.net/ows/1.1"
xmlns:gml="http://www.opengis.net/gml" xmlns:ogc="http://www.opengis.net/ogc"
xmlns:wcs="http://www.opengis.net/wcs/1.1.1" xmlns:xlink="http://www.w3.org/1999/xlink"
xsi:schemaLocation="http://www.opengis.net/wps/1.0.0 http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:RasterReclass</ows:Identifier>
307
Spatial Extension for GeoServer WPS 1.0
<wps:DataInputs>
<wps:Input>
<ows:Identifier>inputCoverage</ows:Identifier>
<wps:Body>
<ows:Identifier>foss:seoul_dem30</ows:Identifier>
<wcs:DomainSubset>
<ows:BoundingBox crs="http://www.opengis.net/gml/srs/epsg.xml#3857">
<ows:LowerCorner>1.4111343323506365E7 4498971.750719266</ows:LowerCorner>
<ows:UpperCorner>1.4158021303411832E7 4537343.6431004135</ows:UpperCorner>
</ows:BoundingBox>
</wcs:DomainSubset>
<wcs:Output format="image/tiff"/>
</wcs:GetCoverage>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>ranges</ows:Identifier>
<wps:Data>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<wps:RawDataOutput mimeType="image/tiff">
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
For DEM layer in Seoul, 0.1 ~ 30.0 is 1 value, 30.0 ~ 200.0 is 2 value, and 200.0 ~ 500.0 is 3
value
Reclass results.
308
Spatial Extension for GeoServer WPS 1.0
309
Spatial Extension for GeoServer WPS 1.0
4.3.6. Management
It is a tool that provides processing functions such as rotating, reversing, moving, and scaling
raster data.
4.3.6.1. Flip
Adjusts the direction of the raster by flipping it from top to bottom along the horizontal axis
with respect to the center of the raster.
◼ Syntax
◼ Parameters
◼ Data Inputs
◼ Process Outputs
◼ Constraints
◼ Request Examples
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0"
xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0"
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1"
xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:RasterFlip</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>inputCoverage</ows:Identifier>
310
Spatial Extension for GeoServer WPS 1.0
<wps:Body>
<ows:Identifier>foss:seoul_dem30</ows:Identifier>
<wcs:DomainSubset>
<ows:BoundingBox crs="http://www.opengis.net/gml/srs/epsg.xml#3857">
<ows:LowerCorner>1.4111343323506365E7 4498971.750719266</ows:LowerCorner>
<ows:UpperCorner>1.4158021303411832E7 4537343.6431004135</ows:UpperCorner>
</ows:BoundingBox>
</wcs:DomainSubset>
<wcs:Output format="image/tiff"/>
</wcs:GetCoverage>
</wps:Body>
</wps:Reference>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<wps:RawDataOutput mimeType="image/tiff">
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
4.3.6.2. Mirror
Changes the direction of the raster from left to right along the vertical axis relative to the
center of the raster.
◼ Syntax
◼ Parameters
◼ Data Inputs
◼ Process Outputs
◼ Constraints
◼ Request Examples
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0"
xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0"
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1"
xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:RasterMirror</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>inputCoverage</ows:Identifier>
<wps:Reference mimeType="image/tiff" xlink:href="http://geoserver/wcs" method="POST">
<wps:Body>
<ows:Identifier>foss:seoul_dem30</ows:Identifier>
312
Spatial Extension for GeoServer WPS 1.0
<wcs:DomainSubset>
<ows:BoundingBox crs="http://www.opengis.net/gml/srs/epsg.xml#3857">
<ows:LowerCorner>1.4111343323506365E7 4498971.750719266</ows:LowerCorner>
<ows:UpperCorner>1.4158021303411832E7 4537343.6431004135</ows:UpperCorner>
</ows:BoundingBox>
</wcs:DomainSubset>
<wcs:Output format="image/tiff"/>
</wcs:GetCoverage>
</wps:Body>
</wps:Reference>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<wps:RawDataOutput mimeType="image/tiff">
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
The result is the original raster (left) and the mirrored raster (right).
313
Spatial Extension for GeoServer WPS 1.0
4.3.6.3. Rescale
Resizes the raster to the specified x, y scale values.
◼ Syntax
GridCoverage2D
◼ Parameters
◼ Data Inputs
Identifier Description Type Required
inputCoverage The input raster from which cells will be extracted. Complex ✓
The factor in which to scale the cell size in the x
xScale Literal -
direction. The factor must be greater than zero.
The factor in which to scale the cell size in the y
yScale Literal -
direction. The factor must be greater than zero.
◼ Process Outputs
◼ Constraints
- The value of the xScale, yScale parameter must be greater than zero.
◼ Request Examples
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0"
xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0"
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1"
xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:RasterRescale</ows:Identifier>
<wps:DataInputs>
<wps:Input>
314
Spatial Extension for GeoServer WPS 1.0
<ows:Identifier>inputCoverage</ows:Identifier>
<wps:Body>
<ows:Identifier>foss:seoul_dem30</ows:Identifier>
<wcs:DomainSubset>
<ows:BoundingBox crs="http://www.opengis.net/gml/srs/epsg.xml#3857">
<ows:LowerCorner>1.4111343323506365E7 4498971.750719266</ows:LowerCorner>
<ows:UpperCorner>1.4158021303411832E7 4537343.6431004135</ows:UpperCorner>
</ows:BoundingBox>
</wcs:DomainSubset>
<wcs:Output format="image/tiff"/>
</wcs:GetCoverage>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>xScale</ows:Identifier>
<wps:Data>
<wps:LiteralData>1.5</wps:LiteralData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>yScale</ows:Identifier>
<wps:Data>
<wps:LiteralData>1.5</wps:LiteralData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<wps:RawDataOutput mimeType="image/tiff">
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
It is a result of rescale 1.5 times in X, Y axis from original raster (left) (right).
315
Spatial Extension for GeoServer WPS 1.0
316
Spatial Extension for GeoServer WPS 1.0
4.3.6.4. Rotate
Rotates the raster by the angle value specified in degrees around the specified pivot point.
◼ Syntax
◼ Parameters
◼ Data Inputs
Identifier Description Type Required
inputCoverage The input raster to be converted. Complex ✓
The pivot point around which to rotate the raster.
anchorPoint The default is the lower left corner of the input Complex -
raster dataset.
angle The angle in degrees to rotate the raster. Literal ✓
The resampling algorithm to be used. The default is
interpolation Literal -
NEAREST.
◼ Process Outputs
◼ Constraints
- If the anchorPoint parameter is Null, it refers to the lower left corner of the raster extent.
- The unit of angle parameter is in degrees.
- The interpolation parameter can use NEAREST (default), BILINEAR, BICUBIC
options.
◼ Request Examples
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0"
xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0"
317
Spatial Extension for GeoServer WPS 1.0
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1"
xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:RasterRotate</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>inputCoverage</ows:Identifier>
<wps:Body>
<ows:Identifier>foss:seoul_dem30</ows:Identifier>
<wcs:DomainSubset>
<ows:BoundingBox crs="http://www.opengis.net/gml/srs/epsg.xml#3857">
<ows:LowerCorner>1.4111343323506365E7 4498971.750719266</ows:LowerCorner>
<ows:UpperCorner>1.4158021303411832E7 4537343.6431004135</ows:UpperCorner>
</ows:BoundingBox>
</wcs:DomainSubset>
<wcs:Output format="image/tiff"/>
</wcs:GetCoverage>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>angle</ows:Identifier>
<wps:Data>
<wps:LiteralData>45</wps:LiteralData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>interpolation</ows:Identifier>
<wps:Data>
<wps:LiteralData>NEAREST</wps:LiteralData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<wps:RawDataOutput mimeType="image/tiff">
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
318
Spatial Extension for GeoServer WPS 1.0
◼ Response
It is a result of 45 degrees rotation (right) based on the center point of the original raster (left).
319
Spatial Extension for GeoServer WPS 1.0
4.3.6.5. Shift
Moves the raster to a new geographic location based on the x, y move values.
◼ Syntax
GridCoverage2D
◼ Parameters
◼ Data Inputs
◼ Process Outputs
◼ Constraints
- Move to the right if xShift parameter value is greater than 0, or to the left if it is smaller.
- If the value of the yShift parameter is greater than 0, move to the top, and to the bottom.
◼ Request Examples
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0"
xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0"
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1"
xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:RasterShift</ows:Identifier>
<wps:DataInputs>
<wps:Input>
320
Spatial Extension for GeoServer WPS 1.0
<ows:Identifier>inputCoverage</ows:Identifier>
<wps:Body>
<ows:Identifier>foss:seoul_dem30</ows:Identifier>
<wcs:DomainSubset>
<ows:BoundingBox crs="http://www.opengis.net/gml/srs/epsg.xml#3857">
<ows:LowerCorner>1.4111343323506365E7 4498971.750719266</ows:LowerCorner>
<ows:UpperCorner>1.4158021303411832E7 4537343.6431004135</ows:UpperCorner>
</ows:BoundingBox>
</wcs:DomainSubset>
<wcs:Output format="image/tiff"/>
</wcs:GetCoverage>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>xShift</ows:Identifier>
<wps:Data>
<wps:LiteralData>15000</wps:LiteralData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<wps:RawDataOutput mimeType="image/tiff">
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
It is the result of processing NoData in areas with a value of 50 or more in Seoul DEM raster
data.
321
Spatial Extension for GeoServer WPS 1.0
322
Spatial Extension for GeoServer WPS 1.0
4.3.7. Extraction
GridCoverage2D
◼ Parameters
◼ Data Inputs
◼ Process Outputs
◼ Constraints
◼ Request Examples
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0"
xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0"
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1"
323
Spatial Extension for GeoServer WPS 1.0
xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:RasterExtraction</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>inputCoverage</ows:Identifier>
<wps:Body/>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>filter</ows:Identifier>
<wps:Data>
250]]></wps:ComplexData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<wps:RawDataOutput mimeType="image/tiff">
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
The result of extracting the area (value> = 250) where the cell value is 250 or more from the
raster data.
324
Spatial Extension for GeoServer WPS 1.0
325
Spatial Extension for GeoServer WPS 1.0
GridCoverage2D
◼ Parameters
◼ Data Inputs
◼ Process Outputs
◼ Constraints
- The Extent parameter is of type BoundingBoxData and has the following values: crs,
dimensions,
LowerCorner, UpperCorner.
<wps:Data>
<ows:LowerCorner>0.0 0.0</ows:LowerCorner>
<ows:UpperCorner>1.0 1.0</ows:UpperCorner>
</wps:BoundingBoxData>
</wps:Data>
◼ Request Examples
<?xml version="1.0" encoding="UTF-8"?><wps:Execute version="1.0.0" service="WPS"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0"
xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0"
326
Spatial Extension for GeoServer WPS 1.0
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1"
xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:RasterClipByExtent</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>inputCoverage</ows:Identifier>
<wps:Body>
<ows:Identifier>foss:seoul_dem30</ows:Identifier>
<wcs:DomainSubset>
<gml:BoundingBox crs="http://www.opengis.net/gml/srs/epsg.xml#5181">
<ows:LowerCorner>179171.39881047895 436569.3290600816</ows:LowerCorner>
<ows:UpperCorner>216221.0981287582 466869.08315843146</ows:UpperCorner>
</gml:BoundingBox>
</wcs:DomainSubset>
<wcs:Output format="image/tiff"/>
</wcs:GetCoverage>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>cropShape</ows:Identifier>
<wps:Data>
<ows:LowerCorner>196200.93382496 446742.832084541</ows:LowerCorner>
<ows:UpperCorner>200948.405261965 450277.401141511</ows:UpperCorner>
</wps:BoundingBoxData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<wps:RawDataOutput mimeType="image/tiff">
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
327
Spatial Extension for GeoServer WPS 1.0
BoundingBox (MinX, MinY, MaxX, MaxY, CRS) This is the result of raster cell extraction by
setting the area.
328
Spatial Extension for GeoServer WPS 1.0
GridCoverage2D
◼ Parameters
◼ Data Inputs
◼ Process Outputs
◼ Constraints
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0"
xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0"
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1"
xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:RasterClipByGeometry</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>inputCoverage</ows:Identifier>
<wps:Reference mimeType="image/tiff" xlink:href="http://geoserver/wcs" method="POST">
<wps:Body>
329
Spatial Extension for GeoServer WPS 1.0
<ows:Identifier>foss:seoul_dem30</ows:Identifier>
<wcs:DomainSubset>
<gml:BoundingBox crs="http://www.opengis.net/gml/srs/epsg.xml#5181">
<ows:LowerCorner>179171.39881047895 436569.3290600816</ows:LowerCorner>
<ows:UpperCorner>216221.0981287582 466869.08315843146</ows:UpperCorner>
</gml:BoundingBox>
</wcs:DomainSubset>
<wcs:Output format="image/tiff"/>
</wcs:GetCoverage>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>cropShape</ows:Identifier>
<wps:Data>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<wps:RawDataOutput mimeType="image/tiff">
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
This is the result of setting the Polygon or MultiPolygon Geometry to extract the raster cells.
330
Spatial Extension for GeoServer WPS 1.0
331
Spatial Extension for GeoServer WPS 1.0
◼ Parameters
◼ Data Inputs
Identifier Description Type Required
inputCoverage The input gridcoverage to be clipped. Complex ✓
The center point of the circle defining the area to be
center Complex ✓
extracted.
◼ Process Outputs
◼ Constraints
- If the Inside parameter is False, returns the area excluding the circle.
◼ Request Examples
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0"
xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0"
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1"
xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:RasterClipByCircle</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>inputCoverage</ows:Identifier>
332
Spatial Extension for GeoServer WPS 1.0
<wps:Body>
<ows:Identifier>foss:seoul_dem30</ows:Identifier>
<wcs:DomainSubset>
<gml:BoundingBox crs="http://www.opengis.net/gml/srs/epsg.xml#5181">
<ows:LowerCorner>179171.39881047895 436569.3290600816</ows:LowerCorner>
<ows:UpperCorner>216221.0981287582 466869.08315843146</ows:UpperCorner>
</gml:BoundingBox>
</wcs:DomainSubset>
<wcs:Output format="image/tiff"/>
</wcs:GetCoverage>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>center</ows:Identifier>
<wps:Data>
<wps:ComplexData mimeType="application/wkt"><![CDATA[POINT(197598
451746)]]></wps:ComplexData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>radius</ows:Identifier>
<wps:Data>
<wps:LiteralData>1500</wps:LiteralData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<wps:RawDataOutput mimeType="image/tiff">
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
Only raster cells corresponding to a circle with a radius of 1500 meters around a certain point
The result.
333
Spatial Extension for GeoServer WPS 1.0
GridCoverage2D
◼ Parameters
◼ Data Inputs
◼ Process Outputs
◼ Constraints
334
Spatial Extension for GeoServer WPS 1.0
- If the Inside parameter is False, returns the area excluding the circle.
◼ Request Examples
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0"
xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0"
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1"
xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:RasterClipByFeatures</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>inputCoverage</ows:Identifier>
<wps:Body>
<ows:Identifier>foss:seoul_dem30</ows:Identifier>
<wcs:DomainSubset>
<ows:BoundingBox crs="http://www.opengis.net/gml/srs/epsg.xml#3857">
<ows:LowerCorner>1.4111343323506365E7 4498971.750719266</ows:LowerCorner>
<ows:UpperCorner>1.4158021303411832E7 4537343.6431004135</ows:UpperCorner>
</ows:BoundingBox>
</wcs:DomainSubset>
<wcs:Output format="image/tiff"/>
</wcs:GetCoverage>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>cropFeatures</ows:Identifier>
<wps:Body>
<wfs:GetFeature service="WFS" version="1.0.0" outputFormat="GML2"
xmlns:foss="http://www.opengeospatial.net/foss">
<wfs:Query typeName="foss:clip"/>
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
335
Spatial Extension for GeoServer WPS 1.0
<wps:RawDataOutput mimeType="image/tiff">
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
336
Spatial Extension for GeoServer WPS 1.0
Converts the cell value of the raster to a True or False value according to the filter condition.
◼ Syntax
◼ Parameters
◼ Data Inputs
Identifier Description Type Required
inputCoverage The input gridcoverage to be clipped. Complex ✓
bandIndex The zero-based band index, default index is a 0. Literal -
A logical expression that determines which of the
filter Complex ✓
input cells are to be true or false. ex> Value > 250
The input whose values will be used as the output
trueValue Literal ✓
cell values if the condition is true.
The input whose values will be used as the output
falseValue Literal -
cell values if the condition is false. Default is NoData.
◼ Process Outputs
◼ Constraints
xmlns="http://www.opengis.net/wps/1.0.0" xmlns:wfs="http://www.opengis.net/wfs"
337
Spatial Extension for GeoServer WPS 1.0
xmlns:wps="http://www.opengis.net/wps/1.0.0" xmlns:ows="http://www.opengis.net/ows/1.1"
xmlns:gml="http://www.opengis.net/gml" xmlns:ogc="http://www.opengis.net/ogc"
xmlns:wcs="http://www.opengis.net/wcs/1.1.1" xmlns:xlink="http://www.w3.org/1999/xlink"
xsi:schemaLocation="http://www.opengis.net/wps/1.0.0 http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:RasterCon</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>inputCoverage</ows:Identifier>
<wps:Body>
<ows:Identifier>foss:seoul_dem30</ows:Identifier>
<wcs:DomainSubset>
<ows:BoundingBox crs="http://www.opengis.net/gml/srs/epsg.xml#3857">
<ows:LowerCorner>1.4111343323506365E7 4498971.750719266</ows:LowerCorner>
<ows:UpperCorner>1.4158021303411832E7 4537343.6431004135</ows:UpperCorner>
</ows:BoundingBox>
</wcs:DomainSubset>
<wcs:Output format="image/tiff"/>
</wcs:GetCoverage>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>filter</ows:Identifier>
<wps:Data>
250]]></wps:ComplexData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>trueValue</ows:Identifier>
<wps:Data>
<wps:LiteralData>1</wps:LiteralData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<wps:RawDataOutput mimeType="image/tiff">
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
338
Spatial Extension for GeoServer WPS 1.0
◼ Response
Only raster cells corresponding to a circle with a radius of 1500 meters around a certain point
The result.
4.3.8. Density
It consists of processes that perform density analysis of the raster.
4.3.8.1. Kernel Density
Performs kernel density analysis based on point features and various kernel functions.
◼ Syntax
GridCoverage2D
◼ Parameters
◼ Data Inputs
◼ Process Outputs
◼ Constraints
TRICUBE.
- If you do not set the extent parameter, use the range of the inputFeatures layer.
- If you do not set the cellSize parameter, use the value of the Extent's Width
- If you do not set the searchRadius parameter, the smaller of the Width and Height
◼ Request Examples
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0"
xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0"
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1"
12
https://en.wikipedia.org/wiki/Kernel_%28statistics%29
340
Spatial Extension for GeoServer WPS 1.0
xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:KernelDensity</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>inputFeatures</ows:Identifier>
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
<wfs:Query typeName="foss:gasstation"/>
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>kernelType</ows:Identifier>
<wps:Data>
<wps:LiteralData>QUADRATIC</wps:LiteralData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>cellSize</ows:Identifier>
<wps:Data>
<wps:LiteralData>30</wps:LiteralData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>extent</ows:Identifier>
<wps:Data>
<ows:LowerCorner>1.4111357E7 4498975.0</ows:LowerCorner>
<ows:UpperCorner>1.4158036E7 4537337.0</ows:UpperCorner>
</wps:BoundingBoxData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<wps:RawDataOutput mimeType="image/tiff">
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
341
Spatial Extension for GeoServer WPS 1.0
◼ Response
Kernel Density of 30 meter cell size based on Seoul city area using Seoul gas station data
Analysis results.
342
Spatial Extension for GeoServer WPS 1.0
◼ Parameters
◼ Data Inputs
Identifier Description Type Required
The input point features for which to calculate the
inputFeatures Complex ✓
density.
Neighborhood:
◼ Process Outputs
◼ Constraints
- If you do not set the neighborhood parameter, use the Circle + radius (the
by 30).
- If you do not set the extent parameter, use the range of the inputFeatures layer.
- If you do not set the cellSize parameter, use the value of the Extent's Width and Height,
whichever is smaller, divided by 250.
◼ Request Examples
343
Spatial Extension for GeoServer WPS 1.0
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0"
xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0"
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1"
xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:PointDensity</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>inputFeatures</ows:Identifier>
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
<wfs:Query typeName="foss:pubs"/>
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>cellSize</ows:Identifier>
<wps:Data>
<wps:LiteralData>30</wps:LiteralData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<wps:RawDataOutput mimeType="image/tiff">
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
The result of Point Density analysis of 30 meter cell size based on Seoul city area using Seoul
city point data.
344
Spatial Extension for GeoServer WPS 1.0
345
Spatial Extension for GeoServer WPS 1.0
◼ Parameters
◼ Data Inputs
Identifier Description Type Required
The input line features for which to calculate the
inputFeatures Complex ✓
density.
◼ Process Outputs
◼ Constraints
- If the searchRadius parameter is not set, the width and height of the Extent, whichever is
smaller
The value divided by 30 is used.
- If you do not set the extent parameter, use the range of the inputFeatures layer.
- If you do not set the cellSize parameter, use the value of the Extent's Width and Height,
whichever is smaller, divided by 250.
◼ Request Examples
346
Spatial Extension for GeoServer WPS 1.0
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0"
xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0"
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1"
xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:LineDensity</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>inputFeatures</ows:Identifier>
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
<wfs:Query typeName="foss:road"/>
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>cellSize</ows:Identifier>
<wps:Data>
<wps:LiteralData>30</wps:LiteralData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<wps:RawDataOutput mimeType="image/tiff">
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
It is the result of Line Density analysis of 30 meter cell size based on the Seoul metropolitan
area using the Seoul highway data.
347
Spatial Extension for GeoServer WPS 1.0
348
Spatial Extension for GeoServer WPS 1.0
4.3.9. Interpolation
It consists of processes that perform interpolation using points and attribute values.
4.3.9.1. IDW (Inverse Distance Weighted)
Perform an Inverse Distance Weighted (IDW) Interpolation analysis using the point feature
layer.
◼ Syntax
◼ Parameters
◼ Data Inputs
distance which to limit the search for the nearest input Literal -
sample points.
cellSize The cell size for the output raster. Literal -
extent The extent for the output raster. Complex -
◼ Process Outputs
◼ Constraints
349
Spatial Extension for GeoServer WPS 1.0
- If you do not set the extent parameter, use the range of the inputFeatures layer.
- If the cellSize parameter is not set, the width and height of the Extent, whichever is smaller
The value divided by 250 is used.
◼ Request Examples
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0"
xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0"
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1"
xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:IDW</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>inputFeatures</ows:Identifier>
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
<wfs:Query typeName="foss:gasstation"/>
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>inputField</ows:Identifier>
<wps:Data>
<wps:LiteralData>price</wps:LiteralData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>power</ows:Identifier>
<wps:Data>
<wps:LiteralData>2.0</wps:LiteralData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>radiusType</ows:Identifier>
<wps:Data>
350
Spatial Extension for GeoServer WPS 1.0
<wps:LiteralData>Variable</wps:LiteralData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>numberOfPoints</ows:Identifier>
<wps:Data>
<wps:LiteralData>24</wps:LiteralData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>cellSize</ows:Identifier>
<wps:Data>
<wps:LiteralData>30</wps:LiteralData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>extent</ows:Identifier>
<wps:Data>
<ows:LowerCorner>1.4111357E7 4498975.0</ows:LowerCorner>
<ows:UpperCorner>1.4158036E7 4537337.0</ows:UpperCorner>
</wps:BoundingBoxData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<wps:RawDataOutput mimeType="image/tiff">
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
351
Spatial Extension for GeoServer WPS 1.0
352
Spatial Extension for GeoServer WPS 1.0
Use the point feature layer to perform Thin Plate Spline (TPS) interpolation analysis.
◼ Syntax
◼ Parameters
◼ Data Inputs
Identifier Description Type Required
The input point features for which to calculate the
inputFeatures Complex ✓
density.
◼ Process Outputs
◼ Constraints
- If you do not set the extent parameter, use the range of the inputFeatures layer.
- If the cellSize parameter is not set, the width and height of the Extent, whichever is smaller
The value divided by 250 is used.
◼ Request Examples
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0"
xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0"
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1"
353
Spatial Extension for GeoServer WPS 1.0
xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:TPS</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>inputFeatures</ows:Identifier>
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
<wfs:Query typeName="foss:gasstation"/>
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>inputField</ows:Identifier>
<wps:Data>
<wps:LiteralData>price</wps:LiteralData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>cellSize</ows:Identifier>
<wps:Data>
<wps:LiteralData>30</wps:LiteralData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>extent</ows:Identifier>
<wps:Data>
<ows:LowerCorner>1.4111357E7 4498975.0</ows:LowerCorner>
<ows:UpperCorner>1.4158036E7 4537337.0</ows:UpperCorner>
</wps:BoundingBoxData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<wps:RawDataOutput mimeType="image/tiff">
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
354
Spatial Extension for GeoServer WPS 1.0
◼ Response
Thin Plate of 30 meter cell size based on Seoul city area using oil price information of Seoul
gas station
SimpleFeatureCollection
◼ Parameters
◼ Data Inputs
◼ Process Outputs
◼ Constraints
- If the interval parameter is not set, the userLine length is divided by 20.
- The Output point layer contains distance (cumulative distance) and value (cell
◼ Request Examples
xmlns="http://www.opengis.net/wps/1.0.0" xmlns:wfs="http://www.opengis.net/wfs"
356
Spatial Extension for GeoServer WPS 1.0
xmlns:wps="http://www.opengis.net/wps/1.0.0" xmlns:ows="http://www.opengis.net/ows/1.1"
xmlns:gml="http://www.opengis.net/gml" xmlns:ogc="http://www.opengis.net/ogc"
xmlns:wcs="http://www.opengis.net/wcs/1.1.1" xmlns:xlink="http://www.w3.org/1999/xlink"
xsi:schemaLocation="http://www.opengis.net/wps/1.0.0 http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:RasterProfile</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>inputCoverage</ows:Identifier>
<wps:Body>
<ows:Identifier>foss:seoul_dem30</ows:Identifier>
<wcs:DomainSubset>
<ows:BoundingBox crs="http://www.opengis.net/gml/srs/epsg.xml#3857">
<ows:LowerCorner>1.4111343323506365E7 4498971.750719266</ows:LowerCorner>
<ows:UpperCorner>1.4158021303411832E7 4537343.6431004135</ows:UpperCorner>
</ows:BoundingBox>
</wcs:DomainSubset>
<wcs:Output format="image/tiff"/>
</wcs:GetCoverage>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>userLine</ows:Identifier>
<wps:Data>
14144040 4531525)]]></wps:ComplexData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
This is
the result
of profile
analysis
using
point
layer and
graph
using
DEM in
Seoul.357
Spatial Extension for GeoServer WPS 1.0
358
Spatial Extension for GeoServer WPS 1.0
◼ Parameters
◼ Data Inputs
◼ Process Outputs
◼ Constraints
359
Spatial Extension for GeoServer WPS 1.0
- The output line layer includes the Angle, Visible field, the visible field when the
Visible field value is 1, and the non-visible area when the value is 0.
◼ Request Examples
xmlns="http://www.opengis.net/wps/1.0.0" xmlns:wfs="http://www.opengis.net/wfs"
xmlns:wps="http://www.opengis.net/wps/1.0.0" xmlns:ows="http://www.opengis.net/ows/1.1"
xmlns:gml="http://www.opengis.net/gml" xmlns:ogc="http://www.opengis.net/ogc"
xmlns:wcs="http://www.opengis.net/wcs/1.1.1" xmlns:xlink="http://www.w3.org/1999/xlink"
xsi:schemaLocation="http://www.opengis.net/wps/1.0.0 http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:RadialLineOfSight</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>inputCoverage</ows:Identifier>
<wps:Body>
<ows:Identifier>foss:seoul_dem30</ows:Identifier>
<wcs:DomainSubset>
<ows:BoundingBox crs="http://www.opengis.net/gml/srs/epsg.xml#3857">
<ows:LowerCorner>1.4111343323506365E7 4498971.750719266</ows:LowerCorner>
<ows:UpperCorner>1.4158021303411832E7 4537343.6431004135</ows:UpperCorner>
</ows:BoundingBox>
</wcs:DomainSubset>
<wcs:Output format="image/tiff"/>
</wcs:GetCoverage>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>observerPoint</ows:Identifier>
<wps:Data>
360
Spatial Extension for GeoServer WPS 1.0
<wps:ComplexData mimeType="application/wkt"><![CDATA[POINT(14136287.706512472
4516237.6022168035)]]></wps:ComplexData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>observerOffset</ows:Identifier>
<wps:Data>
<wps:LiteralData>1.8</wps:LiteralData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>radius</ows:Identifier>
<wps:Data>
<wps:LiteralData>5000</wps:LiteralData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
It is the result of analyzing the visible area of 5000 m radius based on Namsan using DEM in
Seoul.
361
Spatial Extension for GeoServer WPS 1.0
◼ Parameters
◼ Data Inputs
◼ Process Outputs
◼ Constraints
- The output line layer includes a visible field, a visible field when the Visible
◼ Request Examples
xmlns="http://www.opengis.net/wps/1.0.0" xmlns:wfs="http://www.opengis.net/wfs"
xmlns:wps="http://www.opengis.net/wps/1.0.0" xmlns:ows="http://www.opengis.net/ows/1.1"
xmlns:gml="http://www.opengis.net/gml" xmlns:ogc="http://www.opengis.net/ogc"
xmlns:wcs="http://www.opengis.net/wcs/1.1.1" xmlns:xlink="http://www.w3.org/1999/xlink"
xsi:schemaLocation="http://www.opengis.net/wps/1.0.0 http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:LinearLineOfSight</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>inputCoverage</ows:Identifier>
<wps:Body>
<ows:Identifier>foss:seoul_dem30</ows:Identifier>
<wcs:DomainSubset>
<ows:BoundingBox crs="http://www.opengis.net/gml/srs/epsg.xml#3857">
<ows:LowerCorner>1.4111343323506365E7 4498971.750719266</ows:LowerCorner>
<ows:UpperCorner>1.4158021303411832E7 4537343.6431004135</ows:UpperCorner>
</ows:BoundingBox>
</wcs:DomainSubset>
<wcs:Output format="image/tiff"/>
</wcs:GetCoverage>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>observerPoint</ows:Identifier>
<wps:Data>
<wps:ComplexData mimeType="application/wkt"><![CDATA[POINT(14136291.5572
4516245.7128)]]></wps:ComplexData>
</wps:Data>
</wps:Input>
<wps:Input>
363
Spatial Extension for GeoServer WPS 1.0
<ows:Identifier>observerOffset</ows:Identifier>
<wps:Data>
<wps:LiteralData>1.8</wps:LiteralData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>targetPoint</ows:Identifier>
<wps:Data>
<wps:ComplexData mimeType="application/wkt"><![CDATA[POINT(14128854.8064
4511075.0345)]]></wps:ComplexData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
This is the result of analyzing the line of sight of Yeouido using Namsan as a base point by
using DEM in Seoul.
364
Spatial Extension for GeoServer WPS 1.0
◼ Parameters
◼ Data Inputs
◼ Process Outputs
◼ Constraints
◼ Request Examples
xmlns="http://www.opengis.net/wps/1.0.0" xmlns:wfs="http://www.opengis.net/wfs"
xmlns:wps="http://www.opengis.net/wps/1.0.0" xmlns:ows="http://www.opengis.net/ows/1.1"
xmlns:gml="http://www.opengis.net/gml" xmlns:ogc="http://www.opengis.net/ogc"
xmlns:wcs="http://www.opengis.net/wcs/1.1.1" xmlns:xlink="http://www.w3.org/1999/xlink"
xsi:schemaLocation="http://www.opengis.net/wps/1.0.0 http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
365
Spatial Extension for GeoServer WPS 1.0
<ows:Identifier>statistics:RasterHighLowPoints</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>inputCoverage</ows:Identifier>
<wps:Body>
<ows:Identifier>foss:seoul_dem30</ows:Identifier>
<wcs:DomainSubset>
<ows:BoundingBox crs="http://www.opengis.net/gml/srs/epsg.xml#3857">
<ows:LowerCorner>1.4111343323506365E7 4498971.750719266</ows:LowerCorner>
<ows:UpperCorner>1.4158021303411832E7 4537343.6431004135</ows:UpperCorner>
</ows:BoundingBox>
</wcs:DomainSubset>
<wcs:Output format="image/tiff"/>
</wcs:GetCoverage>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>valueType</ows:Identifier>
<wps:Data>
<wps:LiteralData>Both</wps:LiteralData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
It is the result of analyzing the highest point based on the current map range using DEM in
Seoul.
366
Spatial Extension for GeoServer WPS 1.0
367
Spatial Extension for GeoServer WPS 1.0
4.3.10.5. Slope
Use the DEM raster data to perform gradient analysis in degrees or percentages.
◼ Syntax
GridCoverage2D
◼ Parameters
◼ Data Inputs
Identifier Description Type Required
inputCoverage The input surface raster. Complex ✓
Determines the measurement units of the output
slopeType Literal -
slope data. Degree (default), Percentrise.
The number of ground x, y units in one surface z
zFactor Literal -
unit. The default is 1.0.
◼ Process Outputs
◼ Constraints
- The slopeType parameter uses the Degree or Percentrise value. If it is null, the
- If the units of the x, y and z values in the coordinate system are different, set
◼ Request Examples
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0"
xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0"
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1"
368
Spatial Extension for GeoServer WPS 1.0
xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:RasterSlope</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>inputCoverage</ows:Identifier>
<wps:Body>
<ows:Identifier>foss:seoul_dem30</ows:Identifier>
<wcs:DomainSubset>
<ows:BoundingBox crs="http://www.opengis.net/gml/srs/epsg.xml#3857">
<ows:LowerCorner>1.4111343323506365E7 4498971.750719266</ows:LowerCorner>
<ows:UpperCorner>1.4158021303411832E7 4537343.6431004135</ows:UpperCorner>
</ows:BoundingBox>
</wcs:DomainSubset>
<wcs:Output format="image/tiff"/>
</wcs:GetCoverage>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>slopeType</ows:Identifier>
<wps:Data>
<wps:LiteralData>Degree</wps:LiteralData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>zFactor</ows:Identifier>
<wps:Data>
<wps:LiteralData>1.0</wps:LiteralData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<wps:RawDataOutput mimeType="image/tiff">
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
369
Spatial Extension for GeoServer WPS 1.0
370
Spatial Extension for GeoServer WPS 1.0
4.3.10.6. Aspect
◼ Parameters
◼ Data Inputs
◼ Process Outputs
◼ Constraints
◼ Request Examples
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0"
xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0"
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1"
xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:RasterAspect</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>inputCoverage</ows:Identifier>
<wps:Reference mimeType="image/tiff" xlink:href="http://geoserver/wcs" method="POST">
<wps:Body>
<ows:Identifier>foss:seoul_dem30</ows:Identifier>
<wcs:DomainSubset>
371
Spatial Extension for GeoServer WPS 1.0
<ows:BoundingBox crs="http://www.opengis.net/gml/srs/epsg.xml#3857">
<ows:LowerCorner>1.4111343323506365E7 4498971.750719266</ows:LowerCorner>
<ows:UpperCorner>1.4158021303411832E7 4537343.6431004135</ows:UpperCorner>
</ows:BoundingBox>
</wcs:DomainSubset>
<wcs:Output format="image/tiff"/>
</wcs:GetCoverage>
</wps:Body>
</wps:Reference>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<wps:RawDataOutput mimeType="image/tiff">
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
4.3.10.7. Hillshade
Creates shaded relief using DEM raster data.
◼ Syntax
◼ Parameters
◼ Data Inputs
Identifier Description Type Required
inputCoverage The input surface raster. Complex ✓
Azimuth angle of the light source. The default is 315
azimuth Literal -
degrees.
◼ Process Outputs
◼ Constraints
- The value of the azimuth parameter is measured clockwise from 0 to 360 degrees north
It is the direction of the sun. The default azimuth is 315 degrees (NW).
- The altitude parameter is the illuminance value of the sun above the horizon, from 0
(horizontal) to 90
373
Spatial Extension for GeoServer WPS 1.0
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0"
xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0"
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1"
xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:RasterHillshade</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>inputCoverage</ows:Identifier>
<wps:Body>
<ows:Identifier>foss:seoul_dem30</ows:Identifier>
<wcs:DomainSubset>
<ows:BoundingBox crs="http://www.opengis.net/gml/srs/epsg.xml#3857">
<ows:LowerCorner>1.4111343323506365E7 4498971.750719266</ows:LowerCorner>
<ows:UpperCorner>1.4158021303411832E7 4537343.6431004135</ows:UpperCorner>
</ows:BoundingBox>
</wcs:DomainSubset>
<wcs:Output format="image/tiff"/>
</wcs:GetCoverage>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>azimuth</ows:Identifier>
<wps:Data>
<wps:LiteralData>315</wps:LiteralData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>altitude</ows:Identifier>
<wps:Data>
<wps:LiteralData>45</wps:LiteralData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>zFactor</ows:Identifier>
<wps:Data>
<wps:LiteralData>1.0</wps:LiteralData>
</wps:Data>
374
Spatial Extension for GeoServer WPS 1.0
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<wps:RawDataOutput mimeType="image/tiff">
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
◼ Parameters
◼ Data Inputs
◼ Process Outputs
◼ Constraints
◼ Request Examples
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0"
xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0"
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1"
xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:RasterTPI</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>inputCoverage</ows:Identifier>
<wps:Reference mimeType="image/tiff" xlink:href="http://geoserver/wcs" method="POST">
<wps:Body>
<ows:Identifier>foss:seoul_dem30</ows:Identifier>
376
Spatial Extension for GeoServer WPS 1.0
<wcs:DomainSubset>
<ows:BoundingBox crs="http://www.opengis.net/gml/srs/epsg.xml#3857">
<ows:LowerCorner>1.4111343323506365E7 4498971.750719266</ows:LowerCorner>
<ows:UpperCorner>1.4158021303411832E7 4537343.6431004135</ows:UpperCorner>
</ows:BoundingBox>
</wcs:DomainSubset>
<wcs:Output format="image/tiff"/>
</wcs:GetCoverage>
</wps:Body>
</wps:Reference>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<wps:RawDataOutput mimeType="image/tiff">
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
Extract TRI (Terrain Ruggedness Index) using DEM raster data. TRI is the average of the
difference between the center cell and the surrounding cells.
◼ Syntax
◼ Parameters
◼ Data Inputs
◼ Process Outputs
◼ Constraints
◼ Request Examples
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0"
xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0"
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1"
xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:RasterTRI</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>inputCoverage</ows:Identifier>
<wps:Reference mimeType="image/tiff" xlink:href="http://geoserver/wcs" method="POST">
<wps:Body>
<ows:Identifier>foss:seoul_dem30</ows:Identifier>
378
Spatial Extension for GeoServer WPS 1.0
<wcs:DomainSubset>
<ows:BoundingBox crs="http://www.opengis.net/gml/srs/epsg.xml#3857">
<ows:LowerCorner>1.4111343323506365E7 4498971.750719266</ows:LowerCorner>
<ows:UpperCorner>1.4158021303411832E7 4537343.6431004135</ows:UpperCorner>
</ows:BoundingBox>
</wcs:DomainSubset>
<wcs:Output format="image/tiff"/>
</wcs:GetCoverage>
</wps:Body>
</wps:Reference>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<wps:RawDataOutput mimeType="image/tiff">
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
4.3.10.10. Roughness
Roughness is extracted using DEM raster data. Roughness refers to the degree of surface
irregularity, and calculates the largest value of the center cell and its surrounding cells.
◼ Syntax
◼ Parameters
◼ Data Inputs
◼ Process Outputs
◼ Constraints
◼ Request Examples
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0"
xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0"
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1"
xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:RasterRoughness</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>inputCoverage</ows:Identifier>
<wps:Reference mimeType="image/tiff" xlink:href="http://geoserver/wcs" method="POST">
<wps:Body>
<ows:Identifier>foss:seoul_dem30</ows:Identifier>
380
Spatial Extension for GeoServer WPS 1.0
<wcs:DomainSubset>
<ows:BoundingBox crs="http://www.opengis.net/gml/srs/epsg.xml#3857">
<ows:LowerCorner>1.4111343323506365E7 4498971.750719266</ows:LowerCorner>
<ows:UpperCorner>1.4158021303411832E7 4537343.6431004135</ows:UpperCorner>
</ows:BoundingBox>
</wcs:DomainSubset>
<wcs:Output format="image/tiff"/>
</wcs:GetCoverage>
</wps:Body>
</wps:Reference>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<wps:RawDataOutput mimeType="image/tiff">
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
It is the result of analyzing the highest point based on the current map range using DEM in
Seoul.
381
Spatial Extension for GeoServer WPS 1.0
4.3.10.11. Curvature
Calculates the curvature of the earth's surface using DEM raster data.
◼ Syntax
◼ Parameters
◼ Data Inputs
◼ Process Outputs
◼ Constraints
- If the units of the x, y and z values in the coordinate system are different, set
◼ Request Examples
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0"
xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0"
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1"
xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:RasterCurvature</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>inputCoverage</ows:Identifier>
382
Spatial Extension for GeoServer WPS 1.0
<wps:Body>
<ows:Identifier>foss:seoul_dem30</ows:Identifier>
<wcs:DomainSubset>
<ows:BoundingBox crs="http://www.opengis.net/gml/srs/epsg.xml#3857">
<ows:LowerCorner>1.4111343323506365E7 4498971.750719266</ows:LowerCorner>
<ows:UpperCorner>1.4158021303411832E7 4537343.6431004135</ows:UpperCorner>
</ows:BoundingBox>
</wcs:DomainSubset>
<wcs:Output format="image/tiff"/>
</wcs:GetCoverage>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>zFactor</ows:Identifier>
<wps:Data>
<wps:LiteralData>1.0</wps:LiteralData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<wps:RawDataOutput mimeType="image/tiff">
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
4.3.11. Zonal
It consists of processes that perform zoning statistics
4.3.11.1. Zonal Statistics
Calculates statistics for the values of raster data for each area of zone data.
◼ Syntax
◼ Parameters
◼ Data Inputs
◼ Process Outputs
◼ Constraints
value
Range of cells
Standard Deviation
◼ Request Examples
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0"
xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0"
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1"
xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:ZonalStatistics</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>zoneFeatures</ows:Identifier>
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
<wfs:Query typeName="foss:sgg"/>
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>targetField</ows:Identifier>
<wps:Data>
<wps:LiteralData>h_mean</wps:LiteralData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>valueCoverage</ows:Identifier>
<wps:Body>
<ows:Identifier>foss:seoul_dem30</ows:Identifier>
386
Spatial Extension for GeoServer WPS 1.0
<wcs:DomainSubset>
<ows:BoundingBox crs="http://www.opengis.net/gml/srs/epsg.xml#3857">
<ows:LowerCorner>1.4111343323506365E7 4498971.750719266</ows:LowerCorner>
<ows:UpperCorner>1.4158021303411832E7 4537343.6431004135</ows:UpperCorner>
</ows:BoundingBox>
</wcs:DomainSubset>
<wcs:Output format="image/tiff"/>
</wcs:GetCoverage>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>bandIndex</ows:Identifier>
<wps:Data>
<wps:LiteralData>0</wps:LiteralData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>statisticsType</ows:Identifier>
<wps:Data>
<wps:LiteralData>Mean</wps:LiteralData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
This is the result of analyzing the average elevation by using DEM in Seoul.
387
Spatial Extension for GeoServer WPS 1.0
388
Spatial Extension for GeoServer WPS 1.0
4.3.12. Projection
It consists of defining the coordinate system of raster data, transforming, changing the cell
size, and so on.
4.3.12.1. Resample
Change the resolution (cell size) of the raster data.
Syntax
resamplingType): GridCoverage2D
◼ Parameters
◼ Data Inputs
◼ Constraints
- The resamplingType parameter can use the NEAREST (default), BILINEAR, and
BICUBIC options.
◼ Request Examples
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0"
xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0"
389
Spatial Extension for GeoServer WPS 1.0
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1"
xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:RasterResample</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>inputCoverage</ows:Identifier>
<wps:Body>
<ows:Identifier>foss:seoul_dem30</ows:Identifier>
<wcs:DomainSubset>
<ows:BoundingBox crs="http://www.opengis.net/gml/srs/epsg.xml#3857">
<ows:LowerCorner>1.4111343323506365E7 4498971.750719266</ows:LowerCorner>
<ows:UpperCorner>1.4158021303411832E7 4537343.6431004135</ows:UpperCorner>
</ows:BoundingBox>
</wcs:DomainSubset>
<wcs:Output format="image/tiff"/>
</wcs:GetCoverage>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>cellSize</ows:Identifier>
<wps:Data>
<wps:LiteralData>50</wps:LiteralData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>resamplingType</ows:Identifier>
<wps:Data>
<wps:LiteralData>NEAREST</wps:LiteralData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<wps:RawDataOutput mimeType="image/tiff">
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
390
Spatial Extension for GeoServer WPS 1.0
GridCoverage2D
◼ Parameters
◼ Data Inputs
Identifier Description Type Required
The raster dataset for which you want to redefine
inputCoverage Complex ✓
the coordinate reference system.
Coordinate reference system to use for input raster
forcedCRS Literal ✓
dataset.
◼ Process Outputs
◼ Constraints
◼ Request Examples
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0"
xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0"
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1"
xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:RasterForceCRS</ows:Identifier>
<wps:DataInputs>
<wps:Input>
391
Spatial Extension for GeoServer WPS 1.0
<ows:Identifier>inputCoverage</ows:Identifier>
<wps:Body>
<ows:Identifier>foss:seoul_dem30</ows:Identifier>
<wcs:DomainSubset>
<ows:BoundingBox crs="http://www.opengis.net/gml/srs/epsg.xml#3857">
<ows:LowerCorner>1.4111343323506365E7 4498971.750719266</ows:LowerCorner>
<ows:UpperCorner>1.4158021303411832E7 4537343.6431004135</ows:UpperCorner>
</ows:BoundingBox>
</wcs:DomainSubset>
<wcs:Output format="image/tiff"/>
</wcs:GetCoverage>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>forcedCRS</ows:Identifier>
<wps:Data>
<wps:LiteralData>EPSG:5181</wps:LiteralData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<wps:RawDataOutput mimeType="image/tiff">
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
Daegu Metropolitan City EPSG: 5181 The result of redefining the original DEM as EPSG: 5186.
392
Spatial Extension for GeoServer WPS 1.0
4.3.12.3. Reproject
GridCoverage2D
◼ Parameters
◼ Data Inputs
Identifier Description Type Required
The raster dataset for which you want to change the
inputCoverage Complex ✓
spatial reference system.
Target coordinate reference system to use for
targetCRS Literal ✓
reprojection.
◼ Process Outputs
◼ Constraints
- The targetCRS and forcedCRS parameters must be in the [EPSG: code number] format.
- The resamplingType parameter can use the NEAREST (default), BILINEAR, and BICUBIC
options.
- If the cellSize parameter is not set, the original cell size is used. If converting from
the geographic coordinate system to the projection coordinate system, the cell size
- When the forcedCRS parameter is set, the coordinate system of the original raster data is
set.
Coordinate system.
◼ Request Examples
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0"
xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0"
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1"
xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:RasterReproject</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>inputCoverage</ows:Identifier>
<wps:Reference mimeType="image/tiff" xlink:href="http://geoserver/wcs" method="POST">
<wps:Body>
394
Spatial Extension for GeoServer WPS 1.0
<ows:Identifier>foss:seoul_dem30</ows:Identifier>
<wcs:DomainSubset>
<ows:BoundingBox crs="http://www.opengis.net/gml/srs/epsg.xml#3857">
<ows:LowerCorner>1.4111343323506365E7 4498971.750719266</ows:LowerCorner>
<ows:UpperCorner>1.4158021303411832E7 4537343.6431004135</ows:UpperCorner>
</ows:BoundingBox>
</wcs:DomainSubset>
<wcs:Output format="image/tiff"/>
</wcs:GetCoverage>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>targetCRS</ows:Identifier>
<wps:Data>
<wps:LiteralData>EPSG:5181</wps:LiteralData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>resamplingType</ows:Identifier>
<wps:Data>
<wps:LiteralData>NEAREST</wps:LiteralData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>cellSize</ows:Identifier>
<wps:Data>
<wps:LiteralData>50</wps:LiteralData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<wps:RawDataOutput mimeType="image/tiff">
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
395
Spatial Extension for GeoServer WPS 1.0
4.3.13. Utilities
The process consists of moving, resizing, rotating, and reversing raster data.
4.3.13.1. Flip
Adjusts the direction of the raster by flipping it from top to bottom along the horizontal axis
with respect to the center of the raster.
◼ Syntax
◼ Parameters
◼ Data Inputs
◼ Process Outputs
◼ Constraints
◼ Request Examples
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0"
xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0"
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1"
xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:RasterFlip</ows:Identifier>
<wps:DataInputs>
<wps:Input>
396
Spatial Extension for GeoServer WPS 1.0
<ows:Identifier>inputCoverage</ows:Identifier>
<wps:Body>
<ows:Identifier>foss:seoul_dem30</ows:Identifier>
<wcs:DomainSubset>
<ows:BoundingBox crs="http://www.opengis.net/gml/srs/epsg.xml#3857">
<ows:LowerCorner>1.4111343323506365E7 4498971.750719266</ows:LowerCorner>
<ows:UpperCorner>1.4158021303411832E7 4537343.6431004135</ows:UpperCorner>
</ows:BoundingBox>
</wcs:DomainSubset>
<wcs:Output format="image/tiff"/>
</wcs:GetCoverage>
</wps:Body>
</wps:Reference>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<wps:RawDataOutput mimeType="image/tiff">
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
4.3.13.2. Mirror
Changes the direction of the raster from left to right along the vertical axis relative to the
center of the raster.
◼ Syntax
◼ Parameters
◼ Data Inputs
◼ Process Outputs
◼ Constraints
◼ Request Examples
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0"
xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0"
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1"
xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:RasterMirror</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>inputCoverage</ows:Identifier>
<wps:Reference mimeType="image/tiff" xlink:href="http://geoserver/wcs" method="POST">
<wps:Body>
398
Spatial Extension for GeoServer WPS 1.0
<ows:Identifier>foss:seoul_dem30</ows:Identifier>
<wcs:DomainSubset>
<ows:BoundingBox crs="http://www.opengis.net/gml/srs/epsg.xml#3857">
<ows:LowerCorner>1.4111343323506365E7 4498971.750719266</ows:LowerCorner>
<ows:UpperCorner>1.4158021303411832E7 4537343.6431004135</ows:UpperCorner>
</ows:BoundingBox>
</wcs:DomainSubset>
<wcs:Output format="image/tiff"/>
</wcs:GetCoverage>
</wps:Body>
</wps:Reference>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<wps:RawDataOutput mimeType="image/tiff">
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
4.3.13.3. Rescale
Resizes the raster to the specified x, y scale values.
◼ Syntax
GridCoverage2D
◼ Parameters
◼ Data Inputs
Identifier Description Type Required
inputCoverage The input raster to be converted. Complex ✓
The factor in which to scale the cell size in the x
xScale Literal -
direction. The factor must be greater than zero.
The factor in which to scale the cell size in the y
yScale Literal -
direction. The factor must be greater than zero.
◼ Process Outputs
◼ Constraints
◼ Request Examples
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0"
xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0"
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml"
400
Spatial Extension for GeoServer WPS 1.0
xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1"
xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:RasterRescale</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>inputCoverage</ows:Identifier>
<wps:Body>
<ows:Identifier>foss:seoul_dem30</ows:Identifier>
<wcs:DomainSubset>
<ows:BoundingBox crs="http://www.opengis.net/gml/srs/epsg.xml#3857">
<ows:LowerCorner>1.4111343323506365E7 4498971.750719266</ows:LowerCorner>
<ows:UpperCorner>1.4158021303411832E7 4537343.6431004135</ows:UpperCorner>
</ows:BoundingBox>
</wcs:DomainSubset>
<wcs:Output format="image/tiff"/>
</wcs:GetCoverage>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>xScale</ows:Identifier>
<wps:Data>
<wps:LiteralData>1.5</wps:LiteralData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>yScale</ows:Identifier>
<wps:Data>
<wps:LiteralData>1.5</wps:LiteralData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<wps:RawDataOutput mimeType="image/tiff">
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
401
Spatial Extension for GeoServer WPS 1.0
◼ Response
This is the result of rescaling the original DEM raster dataset by 1.5 times in the X and Y
directions.
402
Spatial Extension for GeoServer WPS 1.0
4.3.13.4. Rotate
Rotates the raster by the angle value specified in degrees around the specified pivot point.
◼ Syntax
◼ Parameters
◼ Data Inputs
Identifier Description Type Required
inputCoverage The input raster to be converted. Complex ✓
The pivot point around which to rotate the raster.
anchorPoint The default is the lower left corner of the input Complex -
raster dataset.
angle The angle in degrees to rotate the raster. Literal ✓
The resampling algorithm to be used. The default is
interpolation Literal -
NEAREST.
◼ Process Outputs
◼ Constraints
- The resamplingType parameter can use the NEAREST (default), BILINEAR, BICUBIC
options
have.
◼ Request Examples
403
Spatial Extension for GeoServer WPS 1.0
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0"
xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0"
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1"
xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:RasterRotate</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>inputCoverage</ows:Identifier>
<wps:Body>
<ows:Identifier>foss:seoul_dem30</ows:Identifier>
<wcs:DomainSubset>
<ows:BoundingBox crs="http://www.opengis.net/gml/srs/epsg.xml#3857">
<ows:LowerCorner>1.4111343323506365E7 4498971.750719266</ows:LowerCorner>
<ows:UpperCorner>1.4158021303411832E7 4537343.6431004135</ows:UpperCorner>
</ows:BoundingBox>
</wcs:DomainSubset>
<wcs:Output format="image/tiff"/>
</wcs:GetCoverage>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>angle</ows:Identifier>
<wps:Data>
<wps:LiteralData>45</wps:LiteralData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<wps:RawDataOutput mimeType="image/tiff">
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
404
Spatial Extension for GeoServer WPS 1.0
The result of rotating the original DEM raster dataset by 45 degrees from the bottom left
corner.
405
Spatial Extension for GeoServer WPS 1.0
4.3.13.5. Shift
Moves the raster to a new geographic location based on the specified x, y displacement value.
◼ Syntax
GridCoverage2D
◼ Parameters
◼ Data Inputs
◼ Process Outputs
◼ Constraints
- The unit of xShift, yShift value uses distance unit of input raster coordinate system.
◼ Request Examples
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0"
xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0"
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1"
xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:RasterShift</ows:Identifier>
<wps:DataInputs>
406
Spatial Extension for GeoServer WPS 1.0
<wps:Input>
<ows:Identifier>inputCoverage</ows:Identifier>
<wps:Body>
<ows:Identifier>foss:seoul_dem30</ows:Identifier>
<wcs:DomainSubset>
<ows:BoundingBox crs="http://www.opengis.net/gml/srs/epsg.xml#3857">
<ows:LowerCorner>1.4111343323506365E7 4498971.750719266</ows:LowerCorner>
<ows:UpperCorner>1.4158021303411832E7 4537343.6431004135</ows:UpperCorner>
</ows:BoundingBox>
</wcs:DomainSubset>
<wcs:Output format="image/tiff"/>
</wcs:GetCoverage>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>xShift</ows:Identifier>
<wps:Data>
<wps:LiteralData>5000</wps:LiteralData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>yShift</ows:Identifier>
<wps:Data>
<wps:LiteralData>5000</wps:LiteralData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<wps:RawDataOutput mimeType="image/tiff">
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
This is the result of shifting the original DEM raster dataset to the right by 1.5 km.
407
Spatial Extension for GeoServer WPS 1.0
408
Spatial Extension for GeoServer WPS 1.0
Perform basic statistical analysis based on field values in the feature layer.
◼ Syntax
caseField): DataStatisticsResult
◼ Parameters
◼ Data Inputs
✓ specified
The field used to group features for separate
caseField Literal -
statistics calculations.
◼ Process Outputs
◼ Constraints
- When the caseField parameter is set, statistical information is generated for each unique
value of the caseField.
◼ Request Examples
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0"
xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0"
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1"
xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:StatisticsFeatures</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>inputFeatures</ows:Identifier>
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
<wfs:Query typeName="foss:korea_sgg"/>
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>inputFields</ows:Identifier>
<wps:Data>
<wps:LiteralData>a3_2005</wps:LiteralData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>caseField</ows:Identifier>
<wps:Data>
<wps:LiteralData>sid_nm</wps:LiteralData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<wps:RawDataOutput mimeType="text/xml">
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
410
Spatial Extension for GeoServer WPS 1.0
◼ Response
<DataStatistics>
<Item>
<TypeName>korea_sgg</TypeName>
<CaseValue>강원도</CaseValue>
<PropertyName>a3_2000</PropertyName>
<Count>18</Count>
<InvalidCount>0</InvalidCount>
<Minimum>0.24774</Minimum>
<Maximum>7.81668</Maximum>
<Range>7.56894</Range>
<Ranges>0.24774 - 7.81668</Ranges>
<Sum>79.64533043000002</Sum>
<Mean>4.424740579444445</Mean>
<Variance>6.976857255428096</Variance>
<StandardDeviation>2.641374122578643</StandardDeviation>
<CoefficientOfVariance>0.5969557028607279</CoefficientOfVariance>
</Item>
<Item>
<TypeName>korea_sgg</TypeName>
<CaseValue>경기도</CaseValue>
<PropertyName>a3_2000</PropertyName>
<Count>31</Count>
<InvalidCount>0</InvalidCount>
<Minimum>0.0</Minimum>
<Maximum>15.46253</Maximum>
<Range>15.46253</Range>
<Ranges>0.0 - 15.46253</Ranges>
<Sum>271.03358996</Sum>
<Mean>8.74301903096774</Mean>
<Variance>21.209124717119646</Variance>
<StandardDeviation>4.605336547649872</StandardDeviation>
<CoefficientOfVariance>0.5267444267635456</CoefficientOfVariance>
</Item>
</DataStatistics>
411
Spatial Extension for GeoServer WPS 1.0
◼ Parameters
◼ Data Inputs
✓ statistic.
◼ Process Outputs
◼ Constraints
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0"
xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0"
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1"
xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:Pearson</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>inputFeatures</ows:Identifier>
<wps:Reference mimeType="text/xml" xlink:href="http://geoserver/wfs" method="POST">
<wps:Body>
412
Spatial Extension for GeoServer WPS 1.0
xmlns:foss="http://www.opengeospatial.net/foss">
<wfs:Query typeName="foss:korea_sgg"/>
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>inputFields</ows:Identifier>
<wps:Data>
<wps:LiteralData>pop2008, pop_den</wps:LiteralData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<wps:RawDataOutput mimeType="text/xml">
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
The results of Pearson correlation analysis using the two fields of the administrative district of
the national city / province are returned in the following XML format.
<?xml version="1.0" encoding="utf-8"?>
<PearsonResult>
<PropertyName Name="pop2008">
<Item Name="pop2008">
<Value>1.0</Value>
</Item>
<Item Name="pop_den">
<Value>0.3002549407911261</Value>
</Item>
</PropertyName>
<PropertyName Name="pop_den">
<Item Name="pop2008">
<Value>0.3002549407911261</Value>
</Item>
<Item Name="pop_den">
<Value>1.0</Value>
413
Spatial Extension for GeoServer WPS 1.0
</Item>
</PropertyName>
</PearsonResult>
414
Spatial Extension for GeoServer WPS 1.0
Using the two attribute field values, the standardized score calculates the standardized
score of dissimilarity.
◼ Syntax
◼ Parameters
Identifier
◼ Data Inputs Description Type Required
The features for which the standardized score of
inputFeatures Complex ✓
dissimilarity will be calculated.
xField X Value Field. Literal ✓
yField Y Value Field. Literal ✓
targetField Target Field. std_scr is default. Literal -
◼ Process Outputs
◼ Constraints
415
Spatial Extension for GeoServer WPS 1.0
<wps:Body>
<wfs:GetFeature service=“WFS” version=“1.1.0” outputFormat=“GML3”
xmlns:foss="http://www.opengeospatial.net/foss">
<wfs:Query typeName="foss:korea_sgg"/>
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>xField</ows:Identifier>
<wps:Data>
<wps:LiteralData>a0_2005</wps:LiteralData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>yField</ows:Identifier>
<wps:Data>
<wps:LiteralData>a3_2005</wps:LiteralData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>targetField</ows:Identifier>
<wps:Data>
<wps:LiteralData>std_scr</wps:LiteralData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<wps:RawDataOutput mimeType=“text/xml; subtype=wfs-collection/1.1”>
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼
◼ Response
The results of the standardized score analysis using the two fields of the administrative district
of the national city /
The same. You can visualize the score results using a standardized image using the property
values of targetField.
416
Spatial Extension for GeoServer WPS 1.0
417
Spatial Extension for GeoServer WPS 1.0
◼ Parameters
◼ Data Inputs
◼ Process Outputs
◼ Constraints
- The fields of the Output layer return flq, flqd, and fz values.
◼ Request Examples
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0"
xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0"
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1"
xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:FocalLQ</ows:Identifier>
<wps:DataInputs>
418
Spatial Extension for GeoServer WPS 1.0
<wps:Input>
<ows:Identifier>inputFeatures</ows:Identifier>
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
<wfs:Query typeName="foss:korea_sgg"/>
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>xField</ows:Identifier>
<wps:Data>
<wps:LiteralData>a0_2005</wps:LiteralData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>yField</ows:Identifier>
<wps:Data>
<wps:LiteralData>a3_2005</wps:LiteralData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
The results of analyzing and visualizing the regional specialization using the two fields of the
national city / county district are as follows.
419
Spatial Extension for GeoServer WPS 1.0
420
Spatial Extension for GeoServer WPS 1.0
4.4.2. Distributions
◼ Parameters
◼ Data Inputs
◼ Constraints
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0"
xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0"
421
Spatial Extension for GeoServer WPS 1.0
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1"
xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:MeanCenter</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>inputFeatures</ows:Identifier>
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
<wfs:Query typeName="foss:apartment"/>
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>caseField</ows:Identifier>
<wps:Data>
<wps:LiteralData>sgg_nm</wps:LiteralData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
This is the result of analyzing the mean center of city and district in Seoul apartment.
422
Spatial Extension for GeoServer WPS 1.0
423
Spatial Extension for GeoServer WPS 1.0
◼ Parameters
◼ Data Inputs
◼ Process Outputs
◼ Constraints
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0"
xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0"
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1"
424
Spatial Extension for GeoServer WPS 1.0
xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:MedianCenter</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>inputFeatures</ows:Identifier>
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
<wfs:Query typeName="foss:apartment"/>
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>caseField</ows:Identifier>
<wps:Data>
<wps:LiteralData>sgg_nm</wps:LiteralData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
This is the result of analyzing the Median Center by city and district for apartment distribution
in Seoul.
425
Spatial Extension for GeoServer WPS 1.0
426
Spatial Extension for GeoServer WPS 1.0
Returns the feature (Central Feature) with the smallest sum of total distances for all features in
the feature layer.
◼ Syntax
SimpleFeatureCollection
◼ Parameters
◼ Data Inputs
Identifier Description Type Required
The features containing a distribution of features
✓ feature.
Specifies how distances are calculated from each
or Manhattan.
The numeric field used to weight distances in the
weightField Literal -
origin-destination distance matrix.
The field representing self-potential. The distance or
selfPotentialWeightField Literal -
weight between a feature and itself.
◼ Process Outputs
◼ Constraints
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0"
xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0"
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1"
xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:CentralFeature</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>inputFeatures</ows:Identifier>
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
<wfs:Query typeName="foss:apartment"/>
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>distanceMethod</ows:Identifier>
<wps:Data>
<wps:LiteralData>Euclidean</wps:LiteralData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>caseField</ows:Identifier>
<wps:Data>
<wps:LiteralData>sgg_nm</wps:LiteralData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<wps:RawDataOutput mimeType=“text/xml; subtype=wfs-collection/1.1”>
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
428
Spatial Extension for GeoServer WPS 1.0
This is the result of analyzing the Central Feature of each city and district in Seoul apartment.
429
Spatial Extension for GeoServer WPS 1.0
◼ Parameters
◼ Data Inputs
✓ calculated.
The size (1, 2, 3) of output circles in standard
circleSize Literal -
dev iations.
◼ Process Outputs
◼ Constraints
◼ Request Examples
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0"
430
Spatial Extension for GeoServer WPS 1.0
xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0"
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1"
xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:StandardDistance</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>inputFeatures</ows:Identifier>
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
<wfs:Query typeName="foss:apartment"/>
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>circleSize</ows:Identifier>
<wps:Data>
<wps:LiteralData>1_Standard_Deviation</wps:LiteralData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>caseField</ows:Identifier>
<wps:Data>
<wps:LiteralData>sgg_nm</wps:LiteralData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
This is the result of analyzing Standard Distance by city and district for apartment distribution
in Seoul.
431
Spatial Extension for GeoServer WPS 1.0
432
Spatial Extension for GeoServer WPS 1.0
Measures the degree to which all features in the feature layer are concentrated or centered by
the Mean Center and the orientation of the distribution.
◼ Syntax
◼ Parameters
◼ Data Inputs
Identifier Description Type Required
The features containing a distribution of features for
✓ calculated.
The size (1, 2, 3) of output ellipses in standard
ellipseSize Literal -
dev iations.
◼ Process Outputs
◼ Constraints
◼ Request Examples
<?xml version="1.0" encoding="UTF-8"?><wps:Execute version="1.0.0" service="WPS"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0"
433
Spatial Extension for GeoServer WPS 1.0
xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0"
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1"
xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:StandardDeviationalEllipse</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>inputFeatures</ows:Identifier>
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
<wfs:Query typeName="foss:apartment"/>
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>ellipseSize</ows:Identifier>
<wps:Data>
<wps:LiteralData>1_Standard_Deviation</wps:LiteralData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>caseField</ows:Identifier>
<wps:Data>
<wps:LiteralData>sgg_nm</wps:LiteralData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
This is the result of analyzing Standard Deviational Ecclipse by city and district of
◼ Parameters
◼ Data Inputs
Identifier Description Type Required
The line features containing vectors for which the
inputFeatures Complex ✓
mean direction will be calculated.
The From and To nodes are utilized in calculating
orientationOnly Literal -
the mean .
◼ Process Outputs
◼ Constraints
◼ Request Examples
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0"
xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0"
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1"
xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:LinearDirectionalMean</ows:Identifier>
<wps:DataInputs>
436
Spatial Extension for GeoServer WPS 1.0
<wps:Input>
<ows:Identifier>inputFeatures</ows:Identifier>
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
<wfs:Query typeName="foss:line"/>
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>orientationOnly</ows:Identifier>
<wps:Data>
<wps:LiteralData>True</wps:LiteralData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
Linear Directional Mean Analysis of Line Layer with Length and Direction
The result.
437
Spatial Extension for GeoServer WPS 1.0
◼ Parameters
◼ Data Inputs
or Manhattan.
area A numeric value representing the study area. Literal -
◼ Process Outputs
◼ Constraints
Centroid of inputFeatures.
- The output is returned as XML. If the returned Nearest Neighbor Ratio value
concentrated.
438
Spatial Extension for GeoServer WPS 1.0
◼ Request Examples
xmlns="http://www.opengis.net/wps/1.0.0" xmlns:wfs="http://www.opengis.net/wfs"
xmlns:wps="http://www.opengis.net/wps/1.0.0" xmlns:ows="http://www.opengis.net/ows/1.1"
xmlns:gml="http://www.opengis.net/gml" xmlns:ogc="http://www.opengis.net/ogc"
xmlns:wcs="http://www.opengis.net/wcs/1.1.1" xmlns:xlink="http://www.w3.org/1999/xlink"
xsi:schemaLocation="http://www.opengis.net/wps/1.0.0 http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:NearestNeighborIndex</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>inputFeatures</ows:Identifier>
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>distanceMethod</ows:Identifier>
<wps:Data>
<wps:LiteralData>Euclidean</wps:LiteralData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<wps:RawDataOutput mimeType="text/xml">
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
Analysis
of the
Average
Nearest
Neigbor
for
Apartme
nt
Distributi
on in
Seoul.
Format. It
can be
described
as Cluter
because
the
Nearest
Neighbor
Ratio is
less than
1
.439
Spatial Extension for GeoServer WPS 1.0
<NearestNeighborIndex>
<TypeName>apartment</TypeName>
<Observed_Point_Count>4052</Observed_Point_Count>
<Study_Area>1.047557075141607E9</Study_Area>
<Observed_Mean_Distance>200.00446</Observed_Mean_Distance>
<Expected_Mean_Distance>254.22844</Expected_Mean_Distance>
<Nearest_Neighbor_Ratio>0.786712</Nearest_Neighbor_Ratio>
<Z_Score>-25.973484</Z_Score>
<P_Value>0.0</P_Value>
<Standard_Error>2.087667</Standard_Error>
</NearestNeighborIndex>
440
Spatial Extension for GeoServer WPS 1.0
◼ Parameters
◼ Data Inputs
◼ Process Outputs
◼ Constraints
- If you do not set the cellSize parameter, use the following formula to calculate
xmlns="http://www.opengis.net/wps/1.0.0" xmlns:wfs="http://www.opengis.net/wfs"
xmlns:wps="http://www.opengis.net/wps/1.0.0" xmlns:ows="http://www.opengis.net/ows/1.1"
xmlns:gml="http://www.opengis.net/gml" xmlns:ogc="http://www.opengis.net/ogc"
xmlns:wcs="http://www.opengis.net/wcs/1.1.1" xmlns:xlink="http://www.w3.org/1999/xlink"
xsi:schemaLocation="http://www.opengis.net/wps/1.0.0 http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:QuadratAnalysis</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>inputFeatures</ows:Identifier>
441
Spatial Extension for GeoServer WPS 1.0
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<wps:RawDataOutput mimeType="text/xml">
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
This is the result of analyzing the Quadrate Method for the distribution of gas stations in Seoul
and is returned in XML format.
<QuadratAnalysis>
<TypeName>gasstation</TypeName>
<FeatureCount>587</FeatureCount>
<Area>1.4406602767217913E9</Area>
<CellSize>2215.5254234488443</CellSize>
<Columns>19</Columns>
<Rows>16</Rows>
<Number_of_Quadrats>304</Number_of_Quadrats>
<Mean>1.930921052631579</Mean>
<Variance>5.643254414819944</Variance>
<Variance_Mean_Ratio>2.9225712812696134</Variance_Mean_Ratio>
<Kolmogorov_Smirnov_Test>0.32209069225598863</Kolmogorov_Smirnov_Test>
<Critical_Value_at_5percent>0.078001349515991</Critical_Value_at_5percent>
</QuadratAnalysis>
442
Spatial Extension for GeoServer WPS 1.0
convexHull): SimpleFeatureCollection
◼ Parameters
◼ Data Inputs
◼ Process Outputs
◼ Constraints
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0"
xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0"
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1"
xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:KNearestNeighborMap</ows:Identifier>
443
Spatial Extension for GeoServer WPS 1.0
<wps:DataInputs>
<wps:Input>
<ows:Identifier>inputFeatures</ows:Identifier>
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
<wfs:Query typeName="foss:checkins"/>
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>neighbor</ows:Identifier>
<wps:Data>
<wps:LiteralData>2</wps:LiteralData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>convexHull</ows:Identifier>
<wps:Data>
<wps:LiteralData>False</wps:LiteralData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
numberOfClusters): SimpleFeatureCollection
◼ Parameters
◼ Data Inputs
◼ Process Outputs
◼ Constraints
- If you do not set the targetField parameter, the default cluster field is used.
- If you do not set the numberOfClusters parameter, use the default value of 5.
◼ Request Examples
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0"
xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0"
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1"
xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:KMeansClustering</ows:Identifier>
446
Spatial Extension for GeoServer WPS 1.0
<wps:DataInputs>
<wps:Input>
<ows:Identifier>inputFeatures</ows:Identifier>
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
<wfs:Query typeName="foss:apartment"/>
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>targetField</ows:Identifier>
<wps:Data>
<wps:LiteralData>cluster</wps:LiteralData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>numberOfClusters</ows:Identifier>
<wps:Data>
<wps:LiteralData>5</wps:LiteralData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
contiguityType): JoinCountProcessResult
◼ Parameters
◼ Data Inputs
◼ Process Outputs
◼ Constraints
xmlns="http://www.opengis.net/wps/1.0.0" xmlns:wfs="http://www.opengis.net/wfs"
449
Spatial Extension for GeoServer WPS 1.0
xmlns:wps="http://www.opengis.net/wps/1.0.0" xmlns:ows="http://www.opengis.net/ows/1.1"
xmlns:gml="http://www.opengis.net/gml" xmlns:ogc="http://www.opengis.net/ogc"
xmlns:wcs="http://www.opengis.net/wcs/1.1.1" xmlns:xlink="http://www.w3.org/1999/xlink"
xsi:schemaLocation="http://www.opengis.net/wps/1.0.0 http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:JoinCount</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>inputFeatures</ows:Identifier>
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>blackExpression</ows:Identifier>
<wps:Data>
18890]]></wps:ComplexData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>contiguityType</ows:Identifier>
<wps:Data>
<wps:LiteralData>Queen</wps:LiteralData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<wps:RawDataOutput mimeType="text/xml">
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
It is the result of analyzing the join count statistic by the queen method, and returns it in XML
format.
450
Spatial Extension for GeoServer WPS 1.0
<JoinCountStatistics>
<TypeName>sgg</TypeName>
<ContiguityType>Queen</ContiguityType>
<FeatureCount>25</FeatureCount>
<BlackCount>11</BlackCount>
<WhiteCount>14</WhiteCount>
<NumberOfJoins>56</NumberOfJoins>
<ObservedBB>11</ObservedBB>
<ObservedWW>18</ObservedWW>
<ObservedBW>27</ObservedBW>
<ExpectedBB>10.8416</ExpectedBB>
<ExpectedWW>17.561600000000002</ExpectedWW>
<ExpectedBW>27.5968</ExpectedBW>
<StdDevBB>5.487588556005269</StdDevBB>
<StdDevWW>6.831669500202715</StdDevWW>
<StdDevBW>3.9479960283667954</StdDevBW>
<ZScoreBB>0.028865137825731742</ZScoreBB>
<ZScoreWW>0.06417172259094052</ZScoreWW>
<ZScoreBW>-0.15116529898002093</ZScoreBW>
</JoinCountStatistics>
451
Spatial Extension for GeoServer WPS 1.0
4.4.4.2. Moran’s I
Measure global Moran's I spatial autocorrelation based on the position and property values of
the feature layer.
◼ Syntax
◼ Parameters
◼ Data Inputs
Identifier Description Type Required
The features for which spatial autocorrelation will be
inputFeatures Complex ✓
calculated.
◼ Process Outputs
◼ Constraints
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0"
xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0"
452
Spatial Extension for GeoServer WPS 1.0
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1"
xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:GlobalMoransI</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>inputFeatures</ows:Identifier>
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
<wfs:Query typeName="foss:korea_sgg"/>
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>inputField</ows:Identifier>
<wps:Data>
<wps:LiteralData>a3_2005</wps:LiteralData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>spatialConcept</ows:Identifier>
<wps:Data>
<wps:LiteralData>InverseDistance</wps:LiteralData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>distanceMethod</ows:Identifier>
<wps:Data>
<wps:LiteralData>Euclidean</wps:LiteralData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>standardization</ows:Identifier>
<wps:Data>
<wps:LiteralData>Row</wps:LiteralData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
453
Spatial Extension for GeoServer WPS 1.0
<wps:RawDataOutput mimeType="text/xml">
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
<MoransI>
<TypeName>korea_sgg</TypeName>
<PropertyName>a3_2005</PropertyName>
<Observed_Index>0.070175</Observed_Index>
<Expected_Index>-0.004292</Expected_Index>
<Variance>0.000203</Variance>
<Z_Score>5.230945</Z_Score>
<P_Value>0</P_Value>
<Conceptualization>InverseDistance</Conceptualization>
<DistanceMethod>Euclidean</DistanceMethod>
<RowStandardization>Row</RowStandardization>
<DistanceThreshold>191807.950591</DistanceThreshold>
</MoransI>
454
Spatial Extension for GeoServer WPS 1.0
4.4.4.3. Geary’s c
Measure the global Geary's c-space autocorrelation based on the position and property values
of the feature layer.
◼ Syntax
◼ Parameters
◼ Process Outputs
◼ Constraints
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0"
xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0"
455
Spatial Extension for GeoServer WPS 1.0
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1"
xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:GlobalGearysC</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>inputFeatures</ows:Identifier>
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
<wfs:Query typeName="foss:korea_sgg"/>
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>inputField</ows:Identifier>
<wps:Data>
<wps:LiteralData>a3_2005</wps:LiteralData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>spatialConcept</ows:Identifier>
<wps:Data>
<wps:LiteralData>InverseDistance</wps:LiteralData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>distanceMethod</ows:Identifier>
<wps:Data>
<wps:LiteralData>Euclidean</wps:LiteralData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>standardization</ows:Identifier>
<wps:Data>
<wps:LiteralData>Row</wps:LiteralData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
456
Spatial Extension for GeoServer WPS 1.0
<wps:RawDataOutput mimeType="text/xml">
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
<GlobalGearysC>
<TypeName>korea_sgg</TypeName>
<PropertyName>a3_2005</PropertyName>
<Observed_Index>0.908981</Observed_Index>
<Expected_Index>1</Expected_Index>
<Variance>0.00029</Variance>
<Z_Score>-5.341097</Z_Score>
<P_Value>0</P_Value>
<Conceptualization>InverseDistance</Conceptualization>
<DistanceMethod>Euclidean</DistanceMethod>
<RowStandardization>Row</RowStandardization>
<DistanceThreshold>191807.950591</DistanceThreshold>
</GlobalGearysC>
457
Spatial Extension for GeoServer WPS 1.0
◼ Parameters
◼ Data Inputs
◼ Process Outputs
◼ Constraints
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0"
458
Spatial Extension for GeoServer WPS 1.0
xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0"
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1"
xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:GlobalGStatistics</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>inputFeatures</ows:Identifier>
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
<wfs:Query typeName="foss:korea_sgg"/>
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>inputField</ows:Identifier>
<wps:Data>
<wps:LiteralData>a3_2005</wps:LiteralData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>spatialConcept</ows:Identifier>
<wps:Data>
<wps:LiteralData>InverseDistance</wps:LiteralData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>distanceMethod</ows:Identifier>
<wps:Data>
<wps:LiteralData>Euclidean</wps:LiteralData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>standardization</ows:Identifier>
<wps:Data>
<wps:LiteralData>Row</wps:LiteralData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
459
Spatial Extension for GeoServer WPS 1.0
<wps:ResponseForm>
<wps:RawDataOutput mimeType="text/xml">
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
<GStatistics>
<TypeName>korea_sgg</TypeName>
<PropertyName>a3_2005</PropertyName>
<Observed_Index>0.004492</Observed_Index>
<Expected_Index>0.004292</Expected_Index>
<Variance>0</Variance>
<Z_Score>4.275913</Z_Score>
<P_Value>0.000019</P_Value>
<Conceptualization>InverseDistance</Conceptualization>
<DistanceMethod>Euclidean</DistanceMethod>
<RowStandardization>Row</RowStandardization>
<DistanceThreshold>191807.950591</DistanceThreshold>
</GStatistics>
460
Spatial Extension for GeoServer WPS 1.0
4.4.4.5. Lee's S
Measure the global Lee's S-space autocorrelation based on the position and property values of
the feature layer.
◼ Syntax
◼ Parameters
◼ Process Outputs
◼ Constraints
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0"
xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0"
461
Spatial Extension for GeoServer WPS 1.0
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1"
xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:GlobalLeesS</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>inputFeatures</ows:Identifier>
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
<wfs:Query typeName="foss:korea_sgg"/>
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>inputField</ows:Identifier>
<wps:Data>
<wps:LiteralData>a3_2005</wps:LiteralData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>spatialConcept</ows:Identifier>
<wps:Data>
<wps:LiteralData>InverseDistance</wps:LiteralData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>distanceMethod</ows:Identifier>
<wps:Data>
<wps:LiteralData>Euclidean</wps:LiteralData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>standardization</ows:Identifier>
<wps:Data>
<wps:LiteralData>Row</wps:LiteralData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
462
Spatial Extension for GeoServer WPS 1.0
<wps:RawDataOutput mimeType="text/xml">
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
<GlobalLeesS>
<TypeName>korea_sgg</TypeName>
<PropertyName>a3_2005</PropertyName>
<Observed_Index>0.065413</Observed_Index>
<Expected_Index>0.090566</Expected_Index>
<Variance>0</Variance>
<Z_Score>0</Z_Score>
<P_Value>1</P_Value>
<Conceptualization>InverseDistance</Conceptualization>
<DistanceMethod>Euclidean</DistanceMethod>
<RowStandardization>Row</RowStandardization>
<DistanceThreshold>191807.950591</DistanceThreshold>
</GlobalLeesS>
463
Spatial Extension for GeoServer WPS 1.0
4.4.4.6. Lee's L
Measure the global Lee's L spatial autocorrelation based on the position of the feature layer
and the values of the two properties.
◼ Syntax
◼ Parameters
◼ Data Inputs
◼ Process Outputs
◼ Constraints
◼ Request Examples
464
Spatial Extension for GeoServer WPS 1.0
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0"
xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0"
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1"
xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:GlobalLeesL</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>inputFeatures</ows:Identifier>
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
<wfs:Query typeName="foss:korea_sgg"/>
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>inputField</ows:Identifier>
<wps:Data>
<wps:LiteralData>a3_2005</wps:LiteralData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>spatialConcept</ows:Identifier>
<wps:Data>
<wps:LiteralData>InverseDistance</wps:LiteralData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>distanceMethod</ows:Identifier>
<wps:Data>
<wps:LiteralData>Euclidean</wps:LiteralData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>standardization</ows:Identifier>
<wps:Data>
<wps:LiteralData>Row</wps:LiteralData>
</wps:Data>
465
Spatial Extension for GeoServer WPS 1.0
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<wps:RawDataOutput mimeType="text/xml">
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
<GlobalLeesL>
<TypeName>korea_sgg</TypeName>
<PropertyName>a + b</PropertyName>
<Observed_Index>0.42206509</Observed_Index>
<Expected_Index>0.090566</Expected_Index>
<Variance>0</Variance>
<Z_Score>0</Z_Score>
<P_Value>1</P_Value>
<Conceptualization>0.42206509</Conceptualization>
<DistanceMethod>Euclidean</DistanceMethod>
<RowStandardization>Row</RowStandardization>
<DistanceThreshold>0</DistanceThreshold>
</GlobalLeesL>
466
Spatial Extension for GeoServer WPS 1.0
◼ Parameters
◼ Data Inputs
◼ Constraints
467
Spatial Extension for GeoServer WPS 1.0
- The Output layer contains all the fields of inputFeatures and adds LMiIndex,
◼ Request Examples
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0"
xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0"
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1"
xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:LocalMoransI</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>inputFeatures</ows:Identifier>
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
<wfs:Query typeName="foss:korea_sgg"/>
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>inputField</ows:Identifier>
<wps:Data>
<wps:LiteralData>a3_2005</wps:LiteralData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>spatialConcept</ows:Identifier>
<wps:Data>
<wps:LiteralData>InverseDistance</wps:LiteralData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>distanceMethod</ows:Identifier>
<wps:Data>
<wps:LiteralData>Euclidean</wps:LiteralData>
</wps:Data>
468
Spatial Extension for GeoServer WPS 1.0
</wps:Input>
<wps:Input>
<ows:Identifier>standardization</ows:Identifier>
<wps:Data>
<wps:LiteralData>Row</wps:LiteralData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
469
Spatial Extension for GeoServer WPS 1.0
◼ Parameters
◼ Data Inputs
◼ Process Outputs
◼ Constraints
- The Output layer contains all the fields of inputFeatures and adds the fields
◼ Request Examples
470
Spatial Extension for GeoServer WPS 1.0
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0"
xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0"
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1"
xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:LocalGStatistics</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>inputFeatures</ows:Identifier>
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
<wfs:Query typeName="foss:emd"/>
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>inputField</ows:Identifier>
<wps:Data>
<wps:LiteralData>pts</wps:LiteralData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>spatialConcept</ows:Identifier>
<wps:Data>
<wps:LiteralData>InverseDistance</wps:LiteralData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>distanceMethod</ows:Identifier>
<wps:Data>
<wps:LiteralData>Euclidean</wps:LiteralData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>standardization</ows:Identifier>
<wps:Data>
<wps:LiteralData>Row</wps:LiteralData>
</wps:Data>
471
Spatial Extension for GeoServer WPS 1.0
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
472
Spatial Extension for GeoServer WPS 1.0
◼ Parameters
◼ Data Inputs
Identifier Description Type Required
The features for which spatial autocorrelation will be
inputFeatures Complex ✓
calculated.
◼ Process Outputs
◼ Constraints
- The Output layer contains all the fields of inputFeatures and adds the fields
◼ Request Examples
<?xml version="1.0" encoding="UTF-8"?><wps:Execute version="1.0.0" service="WPS"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0"
473
Spatial Extension for GeoServer WPS 1.0
xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0"
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1"
xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:LocalGearysC</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>inputFeatures</ows:Identifier>
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
<wfs:Query typeName="foss:korea_sgg"/>
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>inputField</ows:Identifier>
<wps:Data>
<wps:LiteralData>a3_2005</wps:LiteralData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>spatialConcept</ows:Identifier>
<wps:Data>
<wps:LiteralData>InverseDistance</wps:LiteralData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>distanceMethod</ows:Identifier>
<wps:Data>
<wps:LiteralData>Euclidean</wps:LiteralData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>standardization</ows:Identifier>
<wps:Data>
<wps:LiteralData>Row</wps:LiteralData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
474
Spatial Extension for GeoServer WPS 1.0
<wps:ResponseForm>
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
475
Spatial Extension for GeoServer WPS 1.0
4.4.5.4. Lee's Si
Calculates the local Lee's S statistic from the feature layer.
◼ Syntax
◼ Parameters
◼ Data Inputs
Identifier Description Type Required
The features for which spatial autocorrelation will be
inputFeatures Complex ✓
calculated.
◼ Process Outputs
◼ Constraints
- The Output layer contains all the fields of inputFeatures and adds the
◼ Request Examples
<?xml version="1.0" encoding="UTF-8"?><wps:Execute version="1.0.0" service="WPS"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0"
476
Spatial Extension for GeoServer WPS 1.0
xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0"
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1"
xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:LocalLeesS</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>inputFeatures</ows:Identifier>
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
<wfs:Query typeName="foss:emd"/>
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>inputField</ows:Identifier>
<wps:Data>
<wps:LiteralData>pts</wps:LiteralData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>spatialConcept</ows:Identifier>
<wps:Data>
<wps:LiteralData>InverseDistance</wps:LiteralData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>distanceMethod</ows:Identifier>
<wps:Data>
<wps:LiteralData>Euclidean</wps:LiteralData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>standardization</ows:Identifier>
<wps:Data>
<wps:LiteralData>Row</wps:LiteralData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
477
Spatial Extension for GeoServer WPS 1.0
<wps:ResponseForm>
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
478
Spatial Extension for GeoServer WPS 1.0
4.4.5.5. Lee's Li
Calculate the local Lee's L statistic from the feature layer and the values of both attributes.
◼ Syntax
◼ Parameters
◼ Data Inputs
Identifier Description Type Required
The features for which spatial autocorrelation will be
inputFeatures Complex ✓
calculated.
◼ Process Outputs
◼ Constraints
- The Output layer contains all the fields of inputFeatures, including LLlIndex, LLlZScore,
479
Spatial Extension for GeoServer WPS 1.0
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0"
xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0"
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1"
xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>statistics:LocalLeesL</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>inputFeatures</ows:Identifier>
<wps:Body>
xmlns:foss="http://www.opengeospatial.net/foss">
<wfs:Query typeName="foss:hexa2009"/>
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
<wps:Input>
<ows:Identifier>xField</ows:Identifier>
<wps:Data>
<wps:LiteralData>a2009</wps:LiteralData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>yField</ows:Identifier>
<wps:Data>
<wps:LiteralData>b2009</wps:LiteralData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>spatialConcept</ows:Identifier>
<wps:Data>
<wps:LiteralData>ContiguityEdgesNodes</wps:LiteralData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>distanceMethod</ows:Identifier>
<wps:Data>
<wps:LiteralData>Euclidean</wps:LiteralData>
</wps:Data>
480
Spatial Extension for GeoServer WPS 1.0
</wps:Input>
<wps:Input>
<ows:Identifier>standardization</ows:Identifier>
<wps:Data>
<wps:LiteralData>Row</wps:LiteralData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
◼ Response
481
Spatial Extension for GeoServer WPS 1.0
◼ Syntax
◼ Parameters
◼ Data Inputs
Identifier Description Type Required
The features containing the dependent and
inputFeatures Complex ✓
independent variables for analysis.
The numeric field containing values for what you are
dependentVariable Literal ✓
trying to model.
◼ Process Outputs
Identifier Description Type Required
The output features to receive dependent variable
olsFeatures Complex
estimates and residuals.
report Output OLS results. Complex ✓
◼ Constraints
- The olsFeatures layer contains all the fields of inputFeatures and adds the
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0"
>
<wps:Data></wps:Execute>
◼ Response
⚫ 지도
⚫ XML
<OrdinaryLeastSquares>
<Diagnostics>
<R>0.6101560399292024</R>
<RSquared>0.3722903930620865</RSquared>
<AdjustedRSquared>0.3290000753422304</AdjustedRSquared>
<StandardError>12.933848555707566</StandardError>
<NumberOfObservations>63</NumberOfObservations>
<AIC>508.1174991231418</AIC>
<AICc>509.6174991231418</AICc>
</Diagnostics>
<Variance>
<Regression>
<DegreesOfFreedom>4</DegreesOfFreedom>
483
Spatial Extension for GeoServer WPS 1.0
<SumOfSquare>5754.486696189348</SumOfSquare>
<SquareMean>1438.621674047337</SquareMean>
<FStatistic>8.599853562435902</FStatistic>
<FProbability>1.609736408525464E-5</FProbability>
</Regression>
<Residual>
<DegreesOfFreedom>58</DegreesOfFreedom>
<SumOfSquare>9702.497430794765</SumOfSquare>
<SquareMean>167.2844384619787</SquareMean>
</Residual>
<Sum>
<DegreesOfFreedom>62</DegreesOfFreedom>
<SumOfSquare>15456.984126984113</SumOfSquare>
</Sum>
</Variance>
<Variables>
<Item>
<Variable>Intercept</Variable>
<Coefficient>1.8149624761790997</Coefficient>
<StdError>2.256350184412793</StdError>
<TStatistic>0.8043797849806887</TStatistic>
<Probability>0.42445922884684884</Probability>
</Item>
<Item>
<Variable>etc</Variable>
<Coefficient>6.922393697035605</Coefficient>
<StdError>1.217664912349127</StdError>
<TStatistic>5.684974270697246</TStatistic>
<Probability>5.13680658710916E-7</Probability>
</Item>
<Item>
<Variable>ccc</Variable>
<Coefficient>-0.2585330201573057</Coefficient>
<StdError>0.4672538188264545</StdError>
<TStatistic>-0.5533031721530541</TStatistic>
<Probability>0.5821837017619861</Probability>
</Item>
<Item>
<Variable>mlbflb</Variable>
<Coefficient>-0.04321817419824479</Coefficient>
<StdError>2.571603704239341</StdError>
<TStatistic>-0.01680592313932304</TStatistic>
<Probability>0.9866481737384326</Probability>
484
Spatial Extension for GeoServer WPS 1.0
</Item>
<Item>
<Variable>airport</Variable>
<Coefficient>-2.3644517041718496</Coefficient>
<StdError>2.64338529816144</StdError>
<TStatistic>-0.8944786466870351</TStatistic>
<Probability>0.3747591210649666</Probability>
</Item>
</Variables>
</OrdinaryLeastSquares>
485
Spatial Extension for GeoServer WPS 1.0
5.1. Introduction
5.1.1. Goal
JavaScript environment
⚫ Sample spatial data is different from actual data and can not be used for
research or business.
13
http://openlayers.org/
486
Spatial Extension for GeoServer WPS 1.0
Icons GeoSilk
487
Spatial Extension for GeoServer WPS 1.0
5.1.4.1. Downloads
Download the necessary files for installation from the following URL and unzip it.
⚫ Download: https://sourceforge.net/projects/mango-
spatialstatistics/files/GeoServer/demo/GeoServer-WPS-Demo.zip
The unpacked folder consists of the following three folders.
⚫ PostGIS-2.0: statistics.backup 파일
5.1.4.2. PostGIS
Create a spatial database named statistics in the PostGIS database to be used, and restore the
downloaded statistics.backup file.
488
Spatial Extension for GeoServer WPS 1.0
5.1.4.3. GeoServer
Copy the downloaded data, styles, and workspaces folders to the GeoServer's Data Directory
and restart GeoServer.
First, go to the "Storage" page and edit the statistics repository as follows:
On the Modify page, change the user and passwd information to the PostGIS account that you
installed
Then save.
489
Spatial Extension for GeoServer WPS 1.0
Now go to the [Server Status] page and press the [Reload] button at the bottom to activate all
layers. If the layer is not activated on the [Layer] page as below, please check the connection
information again.
Now open your browser and go to wpsol3 (eg http://127.0.0.1:8080/wpsol3/). If the following screen is
displayed normally, installation is completed.
490
Spatial Extension for GeoServer WPS 1.0
491
Spatial Extension for GeoServer WPS 1.0
5.2. Examples
Open a web browser and go to http://127.0.0.1:8080/wpsol3 site and go to the following initial screen. The
menu consists of General, D1 ~ D5 (will be updated continuously).
5.2.1. General
It consists of metadata and theme drawing tools for layers and WPS processes.
492
Spatial Extension for GeoServer WPS 1.0
493
Spatial Extension for GeoServer WPS 1.0
494
Spatial Extension for GeoServer WPS 1.0
5.2.1.6. About
You can find information about the current demo program.
495
Spatial Extension for GeoServer WPS 1.0
5.2.2. D1
A spatial statistical analysis function that can analyze the distribution pattern of data.
5.2.2.1. Mean Center
This function analyzes the Mean Center of point data.
The following example is the result of analyzing the Mean Center of Seoul apartment data.
496
Spatial Extension for GeoServer WPS 1.0
data.
The Central Feature is chosen from the features of the source data, so if more than one feature
is in the same location, one or more features can be selected.
498
Spatial Extension for GeoServer WPS 1.0
499
Spatial Extension for GeoServer WPS 1.0
500
Spatial Extension for GeoServer WPS 1.0
501
Spatial Extension for GeoServer WPS 1.0
5.2.3. D2
You can select the Equal Interval, Quantile, Standard deviation and the color palette provided
by Color Brewer14.
14
http://colorbrewer2.org/
502
Spatial Extension for GeoServer WPS 1.0
Currently, Moran's I, Getis-Ord's G, Geary's c, and Lee's S provide four analytical techniques.
503
Spatial Extension for GeoServer WPS 1.0
505
Spatial Extension for GeoServer WPS 1.0
5.2.3.9. Hexagonal Grids -> Point Aggregation -> Global Spatial AutoCorrelation
number of point features in each cell in the grid, and then analyzing global spatial
autocorrelation.
506
Spatial Extension for GeoServer WPS 1.0
AutoCorrelation
507
Spatial Extension for GeoServer WPS 1.0
508
Spatial Extension for GeoServer WPS 1.0
5.2.4. D3
509
Spatial Extension for GeoServer WPS 1.0
5.2.4.3. Multiple Ring Buffer -> Point Aggregation -> Polygon Symbolizer It is a
in the point layer, calculates the number of points included in each ring, and creates
a motif.
The following is an example of creating a thematic map after calculating the length of major
roads by Euphyeon-dong, Seoul.
It is a function to create Thiessen polygon by using reference point layer, calculate the
The following is an example of creating a Thiessen polygon based on the school and then
calculating the number of apartments included in the polygon and then creating a thematic
map.
511
Spatial Extension for GeoServer WPS 1.0
512
Spatial Extension for GeoServer WPS 1.0
This function creates a Hub Line connecting each feature of the Hub layer and the Spoke layer
closest to the feature.
The following example shows Hub Line connecting the closest Ward office in an apartment in
Seoul.
513
Spatial Extension for GeoServer WPS 1.0
5.2.5. D4
514
Spatial Extension for GeoServer WPS 1.0
The following is an example of the ring-map of 2000 to 2005 population growth rate of Seoul.
515
Spatial Extension for GeoServer WPS 1.0
516
Spatial Extension for GeoServer WPS 1.0
Generate heat map from server and generate and return image using standard WMS, so large
data processing is possible.
517
Spatial Extension for GeoServer WPS 1.0
◼ Hexagonal Binning
519
Spatial Extension for GeoServer WPS 1.0
5.2.6. D5
Point This function calculates the cell value of the raster layer that overlaps with each feature
of the layer.
The following example shows the result of calculating the elevation value using DEM data for
each ward office in Seoul.
This function analyzes the profile using the line specified by the user.
This is the result of visualizing the profile (cross section) between two points using the DEM in
Seoul and then using points and graphs.
520
Spatial Extension for GeoServer WPS 1.0
521
Spatial Extension for GeoServer WPS 1.0
522
Spatial Extension for GeoServer WPS 1.0
6 References
◼ GitHub
- https://github.com/mapplus/spatial_statistics_for_geotools_udig
◼ Transifex
- https://www.transifex.com/mangosystem/ss-rd
6.2. Reference
◼ http://www.opengeospatial.org/standards/wps
◼ http://docs.geoserver.org/stable/en/user/extensions/wps/index.html
◼ https://github.com/mapplus/spatial_statistics_for_geotools_udig
[End of document]
523