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
- 13K All Categories
- 5.8K Features Discussion
- 350 Downloading Imagery
- 1.3K Elevation Data
- 385 Georeferencing Imagery Discussion
- 652 GM Script Language
- 56 User Scripts
- 115 GPS Features
- 421 Projection Questions
- 837 Raster Data
- 1.4K Vector Data
- 6.7K Support
- 182 Announcement and News
- 942 Bug Report
- 562 SDK
- 1.2K Suggestion Box
- 3.8K Technical Support
- 581 Other Discussion
- 132 GIS Data Sources
- 27 Global Mapper Showcase
- 245 How I use Global Mapper
- 111 Global Mapper Forum Website
