You are here: Wiki>Projects Web>EnviroCar>EnviroCarArcMapClient (05 Sep 2014, BenjaminPross)Edit Attach

ArcMap Client using enviroCar data and processes


About

If you are used to using ArcMap, you can analyse enviroCar data directly in your familar GIS using the 52°North Extensible ArcMap Client. All you need is the Extensible Client and an extra data transformation tool (see the Download section for detailed information). In the following we will show how to use the client with enviroCar data. We will compute the total number of stops (speed smaller than a specified value) at specified points of interest.

Walkthrough

After you have installed the Extensible Client and the extra tools, you should see a new icon in the GIS Servers tree in the Catalogue window. A double click will open the WPS client:

wps-client-2.png

Enter http://ows.dev.52north.org:8080/envirocar-wps/WebProcessingService in the URL field and click "Get Processes".

wps-client-1.png

Select the org.envirocar.wps.Stops4POIProcess and clock "OK". The process will be wrapped in a ArcMap geoprocessing tool in a toolbox called "WPS".

wps-process-geoprocessing-tool-1.png

To transform the data from the format used in ArcMap to a format that the WPS can handle (and vice-versa), additional tools are needed. The different tools are then connected via the model builder. We would recommend to add two new toolboxes named "WPS Tools" and "WPS Models".

wps-process-geoprocessing-tool-3.png

Now we need to add the data transformation tools. Right click on the "WPS Tools" toolbox and select "Add -> Tool...". For the enviroCar data we need two transformation tools, the layer to well known text tool (Layer2WKT) and the zipped shapefile unzip tool(ZippedShapefileUnzipTool). Check the respective boxes and click "OK":

wps-process-geoprocessing-tool-4.png

Now we need to connect the tools. Add a new model to the "WPS Models" toolbox:

wps-process-geoprocessing-tool-5.png

Drag the org.envirocar.wps.Stops4POIProcess, the Layer2WKTTool and the ZippedShapefileUnzipTool onto the modelling area:

model-2.png

Use the "Connect" button to create the following connections: wkt_result with pointsOfInterest, as shown below:

model-3.png

Also connect the result output of the Stops4POIProcess with the Input Filename input of the ZippedShapefileUnzipTool and result_schema, -mimetype and -encoding of the Stops4POIProcess with the respective inputs of the ZippedShapefileUnzipTool.

Now we need to declare some model variables (inputs and outputs). Declare the Input Filename input of the Layer2WKTTool as a variable as shown below (right click on tzhe Layer2WKTTool first):

model-4.png

Now make variables out of the maxSpeed and bufferSize inputs of the Stops4POIProcess and out of the result (2) output of the ZippedShapefileUnzipTool. Make the newly created variables model parameters (right click on the variable):

model-5.png

Now we need to specify some parameters in the Stops4POIProcess. Double click the tool and set the drop boxes of the pointOfInterest_mimetype, result_mimetype and result_encoding as shown below:

model-6.png

Now you can save the model. Now it is time to add some data. For this walkthrough we created a point layer containing several locations of crossroads. Note that the reference system currently has to be EPSG:4326 (GCS_WGS_1984).

data-1.png

Select the points you are interested in. We now can execute the Stops4POIProcess model. Double click the model to bring up the following dialog:

model-7.png

Choose the point layer for the Input Filename. Fill out the rest of the in-/outputs at your discretion. A click on "OK" will start the process.

After successful execution, switch to the results tab and add the result to the display:

result-1.png

You can examine the results using the identify tool:

result-2.png

You could also classify the result:

result-feature-info.png

Code

The soruce code of the Extensible WPS ArcMap Client is located in our SVN repositories. Please refer to Benjamin Pross to gain access.

Download / Installation

The client can be downloaded from here: 52°North Extensible WPS ArcMap Client.

The additional data transformation tools can be downloaded from here: Layer2WKTTool. You will need to unzip the two files in the /java/lib/ext sub-directory of your ArcMap installation, e.g. "C:\Program Files (x86)\ArcGIS\Desktop10.1\java\lib\ext".

Contact

Community mailing list: subscribe with email, web-based forum

Benjamin Pross
I Attachment Action Size Date Who Comment
data-1.pngpng data-1.png manage 345 K 05 Sep 2014 - 10:40 BenjaminPross  
model-1.pngpng model-1.png manage 57 K 05 Sep 2014 - 10:40 BenjaminPross  
model-2.pngpng model-2.png manage 58 K 05 Sep 2014 - 10:40 BenjaminPross  
model-3.pngpng model-3.png manage 52 K 05 Sep 2014 - 10:40 BenjaminPross  
model-4.pngpng model-4.png manage 58 K 05 Sep 2014 - 10:40 BenjaminPross  
model-5.pngpng model-5.png manage 61 K 05 Sep 2014 - 10:40 BenjaminPross  
model-6.pngpng model-6.png manage 30 K 05 Sep 2014 - 10:53 BenjaminPross  
model-7.pngpng model-7.png manage 35 K 05 Sep 2014 - 12:32 BenjaminPross  
result-1.pngpng result-1.png manage 338 K 05 Sep 2014 - 12:37 BenjaminPross  
result-2.pngpng result-2.png manage 321 K 05 Sep 2014 - 12:37 BenjaminPross  
result-feature-info.pngpng result-feature-info.png manage 210 K 05 Sep 2014 - 12:41 BenjaminPross  
wps-client-1.pngpng wps-client-1.png manage 28 K 05 Sep 2014 - 10:40 BenjaminPross  
wps-client-2.pngpng wps-client-2.png manage 26 K 05 Sep 2014 - 10:40 BenjaminPross  
wps-process-geoprocessing-tool-1.pngpng wps-process-geoprocessing-tool-1.png manage 23 K 05 Sep 2014 - 10:53 BenjaminPross  
wps-process-geoprocessing-tool-3.pngpng wps-process-geoprocessing-tool-3.png manage 39 K 05 Sep 2014 - 10:53 BenjaminPross  
wps-process-geoprocessing-tool-4.pngpng wps-process-geoprocessing-tool-4.png manage 32 K 05 Sep 2014 - 10:53 BenjaminPross  
wps-process-geoprocessing-tool-5.pngpng wps-process-geoprocessing-tool-5.png manage 36 K 05 Sep 2014 - 11:55 BenjaminPross  
Topic revision: r2 - 05 Sep 2014, BenjaminPross
Legal Notice | Privacy Statement


This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Wiki? Send feedback