we are in a need of generating the VS polygons and have found this example
which is great, though we are struggling to replicate the server side geoprocessing tool.
If we use out of the box viewshed 2 task, (as viewshed doesn't accept the distance), it takes nearly 3minutes (probably busy generating the TIF, but also, the grid is much more detailed (0.5m) for a point and 1km distance, whereas in the sample, it takes only 3secs.
Additionally, I can see that the model is returning the GPFeatureRecordSetLayer, which json, where as the viewshed 2 task generates only raster. Is this raster additionally converted to features?
Thank you for any insight on how we could improve on this.
Following steps/tools, we have followed
We have published Viewshed2 as a GP service and consumed it in our portal.
In raster - presently we have hardcoded with existing DSM (do you know how to pass this as a parameter)
Horizontal start angle
Horizontal end angle
Vertical lower angle
Vertical upper angle
Raster to Polygon
Thanks and Regards,