Scripting concave hull creation in GM14.1.1
danb
Global Mapper User
I have just started working with Global Mapper 14 which I purchased for amongst other things its ability to create a concave hull of a 2D point set. This works really well in the GUI, but I am curious to know if this functionality is exposed to Global Mapper's scripting language? I have had a look through the scripting reference and can't see anything obvious.
Any pointers much appreciated Dan
Any pointers much appreciated Dan
Comments
-
Dan,
There isn't currently any way to generate a concave hull from points in a script. Would you want to create the concave hull from an entire layer of points?
Thanks,
Mike
Global Mapper Guru
gmsupport@bluemarblegeo.com
http://www.bluemarblegeo.com/ -
Hi Mike, thanks for the quick reply. Yes, I would like to import a set of points from an ASCII file and to export a concave hull representing the extent of the points. This function works really well in the GUI.
To give you a bit of background, I have a bunch of XYZ bathymetry files which I am looping through to export as a point shapefile and grid for each file. The icing on the cake for me would be to also export a concave hull as a shapefile for each pointset.
Many thanks Dan -
Dan,
I have added support for adding CREATE_COVERAGE_AREAS=YES to the EDIT_VECTOR script command so you can create the coverage areas from a script. I have placed a new build at http://www.bluemarblegeo.com/downloads/global-mapper/global_mapper14.zip with the latest changes for you to try. Simply download that file and extract the contents into your existing v14.xx installation folder to give it a try. If you are using the 64-bit v14 version there is a new build at http://www.bluemarblegeo.com/downloads/global-mapper/global_mapper14_64bit.zip .
Thanks,
Mike
Global Mapper Guru
gmsupport@bluemarblegeo.com
http://www.bluemarblegeo.com/ -
global_mapper wrote: »Dan,
I have added support for adding CREATE_COVERAGE_AREAS=YES to the EDIT_VECTOR script command so you can create the coverage areas from a script. I have placed a new build at http://www.bluemarblegeo.com/downloads/global-mapper/global_mapper14.zip with the latest changes for you to try. Simply download that file and extract the contents into your existing v14.xx installation folder to give it a try. If you are using the 64-bit v14 version there is a new build at http://www.bluemarblegeo.com/downloads/global-mapper/global_mapper14_64bit.zip .
Thanks,
Mike
Global Mapper Guru
gmsupport@bluemarblegeo.com
http://www.bluemarblegeo.com/
Wow, now that's what I call customer service (longtime Manifold user here). Thank you so much Mike, I'll give it a go when I am back in the office next week and let you know how I get on. -
Mike,
I have just tested the x64 bit build and the command works perfectly. Thank you so much for this addition, it will make a real difference to my work with bathymetric and lidar data.
Many thanks Dan -
I downloaded the 64-bit build zip file from the link above, installed it and my program shows as: "Global Mapper v14.1 (b022013) [64-bit]"
When I run the script below the points import fine, but then I get the following error:
"WARNING: Unknown parameter <CREATE_COVERAGE_AREAS> ignored."
Any thoughts?
=H
IMPORT_ASCII FILENAME="C:\files\testconvxhull\2010_Towing_Two.txt" TYPE=POINT_ONLY COORD_DELIM=AUTO COORD_ORDER=X_FIRST SKIP_COLUMNS=3,INC_COORD_LINE_ATTRS=YES
EDIT_VECTOR CREATE_COVERAGE_AREAS=YES
EXPORT_VECTOR FILENAME="C:\files\testconvxhull\ScripTest\2010_Towing_Two.SHP" TYPE=SHAPEFILE SHAPE_TYPE=AREAS GEN_PRJ_FILE=YES -
That's definitely an old version. Try getting the latest installers from http://www.bluemarblegeo.com/products/global-mapper-download.php and they will have the coverage area option.
Thanks,
Mike
Global Mapper Guru
gmsupport@bluemarblegeo.com
http://www.bluemarblegeo.com/products/global-mapper.php
Categories
- 12.7K All Categories
- 5.6K Features Discussion
- 342 Downloading Imagery
- 1.3K Elevation Data
- 380 Georeferencing Imagery Discussion
- 628 GM Script Language
- 53 User Scripts
- 113 GPS Features
- 414 Projection Questions
- 819 Raster Data
- 1.3K Vector Data
- 6.6K Support
- 177 Announcement and News
- 908 Bug Report
- 558 SDK
- 1.2K Suggestion Box
- 3.7K Technical Support
- 562 Other Discussion
- 129 GIS Data Sources
- 27 Global Mapper Showcase
- 233 How I use Global Mapper
- 107 Global Mapper Forum Website