Use SDK for data import/export but ignore projections
Hi,
We would like to use the SDK to import data from a variety of file formats and export the data in formats that our program recognizes. However, we will not have projection information for any of this data and nor do we want it. We simply want to convert the data between file formats.
Would anybody be able to suggest what the best/easiest way to do this might be please?
As far as I can see, we might be able to achieve this by setting the SDK to a known ‘default’ projection and then use the QueryProjectionCallback function to specify that the data being loaded is also in this default projection. We would also use the ‘default’ when exporting. This assumes that there will be no re-projection of the data at any stage, as long as the SDK believes it is all in the same projection.
Thanks,
Matt
We would like to use the SDK to import data from a variety of file formats and export the data in formats that our program recognizes. However, we will not have projection information for any of this data and nor do we want it. We simply want to convert the data between file formats.
Would anybody be able to suggest what the best/easiest way to do this might be please?
As far as I can see, we might be able to achieve this by setting the SDK to a known ‘default’ projection and then use the QueryProjectionCallback function to specify that the data being loaded is also in this default projection. We would also use the ‘default’ when exporting. This assumes that there will be no re-projection of the data at any stage, as long as the SDK believes it is all in the same projection.
Thanks,
Matt
Comments
-
Matt,
So long as you are only loading a single file at a time for conversion and don't care about its placement on the earth, using the default projection will work just fine. No need for the QueryProjectionCallback in this case, just pass in the load flag to use the default projection.
Then when exporting just use the GM_GetPixelElevation or GM_GetPixelColor functions (or their full-row equivalents) to get the raw color/elevation data through the image and export it. For vector exports access the individual area, line, and point features and export those.
Let me know if I can be of further assistance.
Thanks,
Mike
Global Mapper Guru
gmsupport@bluemarblegeo.com
http://www.globalmapper.com
Categories
- 12.8K All Categories
- 5.7K Features Discussion
- 345 Downloading Imagery
- 1.3K Elevation Data
- 385 Georeferencing Imagery Discussion
- 637 GM Script Language
- 54 User Scripts
- 114 GPS Features
- 417 Projection Questions
- 826 Raster Data
- 1.3K Vector Data
- 6.6K Support
- 178 Announcement and News
- 913 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