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.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