Error Using GENERATE_VIEWSHED Command in Script
Hi,
I think there is a problem calculating the angles (start and swept) of transmitter between viewshed runned throught GUI and viewshed executed throught scripting language. Seem that the swept angle calculated with script is counterclockwise and the start angle start at 90° rather than 0° (North). This the difference using Global Mapper 23.1.0 (b030322) and same parameters for GUI e Script:
Parameters From GUI:
Results
Script Used:
GENERATE_VIEWSHED \
LAYER_DESC="TEST SCRIPT" XMIT_POS="7.98625356,43.99973747" XMIT_HEIGHT="18.5 m" \
RECEIVER_ELEV_TYPE="EXPLICIT_HEIGHT" RECEIVER_HEIGHT="1 m" \
RADIUS="5 km" RADIUS_MIN="0 km" START_ANGLE="240" SWEPT_ANGLE="60" COLOR="RGB(255,0,0)"
Results
Thanks for Help
Regards
Andrea
Answers
-
Hi Andreas,
There was indeed an issue with this in the v23.1.0 release. If you get the latest daily build (v23.1.2) from https://www.bluemarblegeo.com/products/global-mapper-daily-builds.php that should fix the issue in scripting.
Thanks,
Mike
Global Mapper Guru
Howdy, Stranger!
Categories
- 12.3K All Categories
- 5.3K Features Discussion
- 312 Downloading Imagery
- 1.2K Elevation Data
- 371 Georeferencing Imagery Discussion
- 581 GM Script Language
- 42 User Scripts
- 112 GPS Features
- 388 Projection Questions
- 789 Raster Data
- 1.3K Vector Data
- 6.4K Support
- 159 Announcement and News
- 881 Bug Report
- 554 SDK
- 1.1K Suggestion Box
- 3.6K Technical Support
- 522 Other Discussion
- 126 GIS Data Sources
- 26 Global Mapper Showcase
- 217 How I use Global Mapper
- 100 Global Mapper Forum Website