TransWikia.com

Is there a better geoprocessor for viewshed analysis in ArcGIS JavaScript API?

Geographic Information Systems Asked by Neocyte on May 16, 2021

I am working on a viewshed viewer application for webcams. Viewshed variables that are critical to my application include: elevation, azimuth, and direction.

ArcGIS’ own Viewshed Analysis example uses this geoprocessor. But the variables it takes seem to only include a point and a max viewing distance…

var gpUrl = "https://sampleserver6.arcgisonline.com/arcgis/rest/services/Elevation/ESRI_Elevation_World/GPServer/Viewshed";
var gp = new Geoprocessor(gpUrl);
        gp.outSpatialReference = {
          // autocasts as new SpatialReference()
          wkid: 102100
        };
var params = {
            Input_Observation_Point: featureSet,
            Viewshed_Distance: vsDistance
          };

          gp.execute(params).then(drawResultData);

Is there a way to input my desired variables in this existing geoprocessor? Or is there something even better in the API?

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP