GM_SetExportCropAreas
nickgoodliff
Global Mapper UserTrusted User
Hi
After using GM_SetExportCropAreas to set a crop area, how do I then remove it for future exports? The problem I'm having is some images have a feature to crop to and then this needs to be cleared for subsequent exports. At the moment all subsequent exports are coming out blank as the crop area isn't necessarily in the rectangle of them.
Cheers
Nick
After using GM_SetExportCropAreas to set a crop area, how do I then remove it for future exports? The problem I'm having is some images have a feature to crop to and then this needs to be cleared for subsequent exports. At the moment all subsequent exports are coming out blank as the crop area isn't necessarily in the rectangle of them.
Cheers
Nick
Comments
-
Nick,
If you call as GM_SetExportCropAreas( NULL, 0, NULL ) it should reset.
Thanks,
Mike
Global Mapper Guru
gmsupport@bluemarblegeo.com
http://www.bluemarblegeo.com/ -
Hi Mike
My C# app won't let me pass null to this function, it wants refs to GM_AreaFeature_t and GM_Projection_t objects.
Any ideas?
Cheers
Nick -
Nick,
Oh silly C#. If you create an alternate definition of the function you can have those pointer parameters defined as IntPtr rather the reference to those objects, then you can pass in IntPtr.Null for the parameters.
Thanks,
Mike
Global Mapper Guru
gmsupport@bluemarblegeo.com
http://www.bluemarblegeo.com/ -
Perfect, thanks Mike!
Nick
Categories
- 12.8K All Categories
- 5.7K Features Discussion
- 345 Downloading Imagery
- 1.3K Elevation Data
- 385 Georeferencing Imagery Discussion
- 636 GM Script Language
- 54 User Scripts
- 114 GPS Features
- 417 Projection Questions
- 825 Raster Data
- 1.3K Vector Data
- 6.6K Support
- 178 Announcement and News
- 912 Bug Report
- 558 SDK
- 1.2K Suggestion Box
- 3.7K Technical Support
- 569 Other Discussion
- 131 GIS Data Sources
- 27 Global Mapper Showcase
- 238 How I use Global Mapper
- 107 Global Mapper Forum Website