Export to DEM from contour shape files
mcb9060
Global Mapper UserTrusted User
Hi, I was wondering if it is possible to write a script that that can sequentially open large shape files with contour lines in a directory (over 100Mb per file), define the elevation values from the attribute field, use the "Create elevation Grid from 3D Vector data..." function in the Overlay Control Centre and then export the resultant DEM to a file with a 10km grid and so to the next file...
I have also tried to save the workspace and I get a message "The following errors were encountered saving the workspace: ERROR: Unexpected error embedding overlay data."
Is there something that I am doing incorrectly?
Thanks
Mark
I have also tried to save the workspace and I get a message "The following errors were encountered saving the workspace: ERROR: Unexpected error embedding overlay data."
Is there something that I am doing incorrectly?
Thanks
Mark
Comments
-
Mark,
Yes, you can do that with a script using the DIR_LOOP_START...DIR_LOOP_END pair to loop over the files. Inside the loop, use IMPORT to load the Shapefile and the ELEV_FIELD parameter to specify what attribute to use for elevations. Once the data is loaded, use the GENERATE_ELEV_GRID script command to create the elevation grid, then EXPORT_ELEVATION to create a new DEM, and finally UNLOAD_ALL to unload everything.
See the Scripting Reference at http://globalmapper.com/helpv11/ScriptReference.html for details and examples.
You may be running out of memory trying to save the workspace.
Let me know if I can be of further assistance.
Thanks,
Mike
Global Mapper Support
support@globalmapper.com -
Thanks very much Mike, I was almost certain that it was possible using GM scripting, will try it out now.
Thanks again for such a fast response.
Mark
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