CALC_VOLUME_BETWEEN_SURFACES Use of polygon clipping
Hi,
I am trying to use the CALC_VOLUME_BETWEEN_SURFACES function to calculate some volumes of certain areas within different polygons. I cant use CLIP_COLLAR_POLY which is a shame as this would work well for the polygons that are already DEFINE_SHAPE in the code. I know the AREA_FILENAME parameter exists but i dont want to call an external file as this code will be used by another person.
Is there a way to hard code the bounds?
Answers
-
I could not find a solution to this, so used the following in case anyone is interested.
CALC_VOLUME_BETWEEN_SURFACES LAYER1_FILENAME="Base" LAYER2_FILENAME="Top" AREA_FILENAME="areas.dxf" VOLUME_UNIT="CUBIC_METERS" OUTPUT_FILENAME="out.csv"
My areas.dxf was autogenerated in a previous step and exported prior to this line of code.
I changed to a dxf rather than shp to be simpler and less associated files. You may need a areas.prj file in the same folder as areas.dxf
Still would be good to add the CLIP_COLLAR_POLY as a feature for this. Would save using an external file.
Categories
- 12.8K All Categories
- 5.7K Features Discussion
- 345 Downloading Imagery
- 1.3K Elevation Data
- 385 Georeferencing Imagery Discussion
- 639 GM Script Language
- 54 User Scripts
- 115 GPS Features
- 417 Projection Questions
- 827 Raster Data
- 1.3K Vector Data
- 6.6K Support
- 178 Announcement and News
- 918 Bug Report
- 558 SDK
- 1.2K Suggestion Box
- 3.7K Technical Support
- 570 Other Discussion
- 131 GIS Data Sources
- 27 Global Mapper Showcase
- 239 How I use Global Mapper
- 107 Global Mapper Forum Website