Spatial Operations Tutorial for UDig Framework.pdf

(2456 KB) Pobierz
Spatial Operations Tutorial for
uDig Framework
Reusing Existent Spatial Process
Integrating Sextante
Duration:60 minutes
790168692.023.png 790168692.024.png 790168692.025.png
Spatial Operations Tutorial
Reusing Existent Spatial Process
Integrating Sextante
Author Details Date
Aritz Davila Initial version 03/15/2010
Mauricio PazosGeneral document review 04/29/2010
· +34 94 682 42 86 · info@axios.es ·
Page 2 of 38
790168692.026.png 790168692.001.png 790168692.002.png 790168692.003.png 790168692.004.png 790168692.005.png 790168692.006.png 790168692.007.png 790168692.008.png 790168692.009.png 790168692.010.png 790168692.011.png 790168692.012.png
 
Spatial Operations Tutorial
Reusing Existent Spatial Process
Integrating Sextante
Table of Contents
1 Introduction ......................................................................................................................................4
2 Goal...................................................................................................................................................5
3 Setting the Development Environment.............................................................................................6
3.1 Setting Eclipse...........................................................................................................................6
3.2 Adding the Spatial Operation Framework.................................................................................8
3.3 Testing the Development Environment.....................................................................................9
4 Creating a New Plugin Project........................................................................................................12
5 Extension for Spatial Operations.....................................................................................................14
6 Developing the LineToPolygon Spatial Operation ........................................................................16
7 Writing the LineToPolygon Operation............................................................................................18
7.1 SOLineToPolygonComposite class.........................................................................................22
7.2 LineToPolygonImages class....................................................................................................23
7.3 LineToPolygonCommand class...............................................................................................24
7.4 Adding Sextante.......................................................................................................................32
7.5 LineToPolygonTask class........................................................................................................33
8 Executing the LineToPolygon Spatial Operations .........................................................................36
9 Contact.............................................................................................................................................38
· +34 94 682 42 86 · info@axios.es ·
Page 3 of 38
790168692.013.png 790168692.014.png 790168692.015.png
 
Spatial Operations Tutorial
Reusing Existent Spatial Process
Integrating Sextante
1Introduction
This document is a description of how third parties can contribute
to the Spatial Operations framework.
The Spatial Operations framework, promoted by Gipuzkoa Provincial
template where the spatial operations can be displayed and
executed. It is integrated into uDig .
In this tutorial it is assumed that you know the uDig framework
and your Eclipse environment is configured with uDig SDK . You can
find good documents in the uDig Developers page.
The following figure presents the Spatial Operations view.
We can see the following panels:
Operations List : shows a set of available spatial operations.
Information Area : displays a message in order to guide in the
spatial operation settings.
Parameters : This panel presents the parameters required by
the selected spatial operation in the Operations List .
Demo : Provides feedback about the result of the selected
spatial operation based in the parameters value.
Tool Bar : Provides the actions that can be applied.
· +34 94 682 42 86 · info@axios.es ·
Page 4 of 38
790168692.016.png 790168692.017.png 790168692.018.png
 
Spatial Operations Tutorial
Reusing Existent Spatial Process
Integrating Sextante
2 Goal
In this tutorial we will reuse the spatial operation LineToPolygon
from www.sextantegis.com project . Sextante was developed under the
auspices of the government of the Spanish autonomous region of
Extremadura. We will use the default behavior implemented by
SimplePresenter and SimpleCommand which are provided by the
Spatial Operations framework.
Suppose that you have the country boundaries as shown below:
We will include the LineToPolygon operation as shown in the
following screenshot, which could be used to create a polygon
layer based in the country boundaries.
· +34 94 682 42 86 · info@axios.es ·
Page 5 of 38
790168692.019.png 790168692.020.png 790168692.021.png 790168692.022.png
 
Zgłoś jeśli naruszono regulamin