The visibility processor generates a viewshed calculated from a geoprocessing service. The visibility processor requires an elevation service over the area where the viewshed is to be generated.
- See common solutions-geoevent-java requirements.
- The ArcGIS Runtime for Java SDK is required in order to run the standalone Maven Tests included with this project.
- See the solutions-geoevent-java instructions for general instructions on
- verifying your Maven installation
- setting the location of GeoEvent Processor and GeoEvent Processor SDK repositories
- and any other common required steps
- Open a command prompt and navigate to
solutions-geoevent-java/solutions-geoevent/10.3.0/processors/visibility-processor
- Enter
mvn install
at the prompt.
- Enter
- Install the Visibility Processor.
- Browse to
solutions-geoevent-java/solutions-geoevent/processors/10.3.0/visibility-processor/target
(this directory is created when you execute mvn install). - Copy the .jar file and paste it into the deploy folder in the GeoEvent Processor install directory ([GeoEvent Processor install location]\deploy\ -- default location is C:\Program Files\ArcGIS\Server\GeoEventProcessor\deploy).
- Browse to
- See the solutions-geoevent-java validation instructions.
- Ensure the Visibility Processor exists.
If you have already deployed the test configuration you may move on to Testing the Component
In GeoEvent Extension Manager
- Go to the Site >> Configuration Store Tab.
- Click the 'Import Configuration' button.
- Select 'Choose File'
- Browse to the ./solutions-geoevent-java/data/configurations/ directory
- Select the SolutionsComponentTestConfig.xml
- Click 'Open' in the dialog.
- Click 'Next'.
- When prompted choose 'Import Configuration'.
The test service configuration will be deployed to your instance of GeoEvent.
The Introduction to GeoEvent tutorial has a simple TCP-Console application that will be used for most of the tests. It can be found here.
You will use the Visibility-Test service from the Solutions Test Configuration to test the functionality of the Visibility processor.
- This simulation requires the GEPViewshed GeoProcessing service to be published to your default datastore. Make adjustments as needed to query another service or if the refugee_cams service is published to a different ArcGIS Server instance. A map package containing the layers for this service can be found here
- A valid elevation service (image service) over the area for which the viewshed will be generated is required for this simulation.
- Open the Visibility-Test service in GEE Manager.
- Click on the visibility-tcp-txt-in Input and expand the 'Advanced' tab. Note that the input uses TCP port 5614.
- Open the ArcGIS GeoEvent Simulator (this is installed with GeoEvent Extension and can be found at the GeoEvent Extension install location).
- Make sure the Server points to the server on which GeoEvent Extension is deployed (default is local host).
- In the upper right, change the port to 5614 and click the button with the red X to connect (Note: if you cannot connect the server is not listening on that port. This may be because the Input in GeoEvent extension has not been started).
- Make sure 'File' is selected in the combo box on the upper left.
- Click the 'Load File' button in the upper right.
- In the new dialog, click the file folder button in the upper right.
- Browse to the ./solutions-geoevent-java/data/simulation-files/ directory.
- Select visibility.csv and click 'Open'
- Click the 'Load' button. In the Preview Edits window you will see 1 record.
- Browse to the directory of the TCP-Console application (if you downloaded it from the tutorial it will be at ./IntroductionToGeoEvent/utilities/tcp-server-app).
- Double click TCPServerApp.bat (the application will not start if no services are listening on port 5570 - if you have deployed the test configuration an output service has been configured to listen on this port. Check that the Output tcp-out-5570 has been deployed and started).
- In the GeoEvent Simulator click the 'Step' button.
- In the TCP-console you will see that the Received Event (Event Definition name) is viewshed_out with a comma separated list of values. Both visible and nonvisible polygons will be represented as json polygon geometries.
Copyright 2014 Esri
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
A copy of the license is available in the repository's license.txt file.