problem in export package with custom symbol
newgmuser
Global Mapper User
Hi,
I am trying to add custom symbol through SDK and trying to export it to gmp. Want to check the added custom symbol should be visible in global mapper by opening the exported gmp. I have added the same custom symbol 'Smiley' (that I have used in program) in Global mapper configure >> add custom symbol.
step 1. I have successfully added the custom symbol'Smiley' to the point feature from a gmw file created in global mapper 11 in my application through SDK.
step 2. I can see the new symbols in my application Form.
step3. I can export the package without any error.
step4: But when I open the exported gmp file in Global mapper I can't see the new added symbol. Instead I see the Dot symbol.
Please help.
Here is the code.
LastGMError = GlobalMapperDLL.GM_AddCustomSymbol(@D:\smiley1.bmp, "Smiley");
.
.
LastGMError = GlobalMapperDLL.GM_SetPointFeatureDrawStyle(aLayerHandle, ipnts, newPointStyle);
// Drwa layers.
// Can see added custom symbol on screen
LastGMError = GlobalMapperDLL.GM_ExportPackage
(
@d:\gistest1.gmp
, IntPtr.Zero // List of layers to export (NULL)
, 0 // Number of layers in list (0 for all)
, IntPtr.Zero // World bounds to export (NULL)
, 0.0 // Simplification threshold
, GlobalMapperDLL.GM_PackageExportFlags_t32.GM_ExportPackage_KeepAllStyles // Export flags
);
I am trying to add custom symbol through SDK and trying to export it to gmp. Want to check the added custom symbol should be visible in global mapper by opening the exported gmp. I have added the same custom symbol 'Smiley' (that I have used in program) in Global mapper configure >> add custom symbol.
step 1. I have successfully added the custom symbol'Smiley' to the point feature from a gmw file created in global mapper 11 in my application through SDK.
step 2. I can see the new symbols in my application Form.
step3. I can export the package without any error.
step4: But when I open the exported gmp file in Global mapper I can't see the new added symbol. Instead I see the Dot symbol.
Please help.
Here is the code.
LastGMError = GlobalMapperDLL.GM_AddCustomSymbol(@D:\smiley1.bmp, "Smiley");
.
.
LastGMError = GlobalMapperDLL.GM_SetPointFeatureDrawStyle(aLayerHandle, ipnts, newPointStyle);
// Drwa layers.
// Can see added custom symbol on screen
LastGMError = GlobalMapperDLL.GM_ExportPackage
(
@d:\gistest1.gmp
, IntPtr.Zero // List of layers to export (NULL)
, 0 // Number of layers in list (0 for all)
, IntPtr.Zero // World bounds to export (NULL)
, 0.0 // Simplification threshold
, GlobalMapperDLL.GM_PackageExportFlags_t32.GM_ExportPackage_KeepAllStyles // Export flags
);
Comments
-
Can you provide a sample .gmp file that you are creating so that I can see if the custom symbol is being stored in there? Also, what version of the SDK are you using?
Thanks,
Mike
Global Mapper Support
support@globalmapper.com
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