V12 Error Message Loading Package File
Roger Edrinn
Global Mapper UserTrusted User
Error loading file data.
K:\MapData\CO\FinalLayers2011\xxxxxxxx2011.gmp
GlobalMapperOverlay.cpp - 2273
Version: v12.02
Build Time: Jun 24 2011 22:01:28
Repeatedly getting the same error message loading this GM Package file, one of many in a workspace. This happens even if I reload the file and re-save the workspace. File seems okay for subsequent operations, only on initial loading of my workspace containing this package file am I seeing the above error.
Suggestions?
Thanks
Comments
-
It sounds like the file may be truncated or corrupt in some way. Can you provide the file?
Thanks,
Mike
Global Mapper Support
support@globalmapper.com -
global_mapper wrote: »It sounds like the file may be truncated or corrupt in some way. Can you provide the file?
Let me see if I can isolate the error to the smallest file and provide that as a sample. -
I could not reproduce the error. The new workspace file opened w/o incident with the offending package file, even if I closed and reopened GM.
Well, that was easy.
To be continued???
Thanks -
-
Error message from this morning:Error loading file data.
K:\MapData\CO\xxxxxx\xxxxxxx2011.gmp
GlobalMapperOverlay.cpp - 2283
Version: v12.02
Build Time: Jun 24 2011 22:01:28
The work-around is to delete the package file, if it exists, then to open it inside the workspace, and re-save the workspace.
Does that make sense? What should be happening in this situation?
Thanks -
Ah I see what is happening. When you save a workspace referencing a package file it saves the raw file type (like GeoTIFF for raster) of the layer inside the package and the offset and size of that file inside the package, then if you change that package file external to that workspace the workspace doesn't know about the new location and size of the layer (assuming the same layer even exists) in the package file and so it reads from the wrong location.
I may be able to do a lookup in the package file to try and update this automatically. I'll see if I can get a workaround for this for those cases where the same layer still exists in the package but is not the same location/size.
Thanks,
Mike
Global Mapper Support
support@globalmapper.com -
global_mapper wrote: »Ah I see what is happening. When you save a workspace referencing a package file it saves the raw file type (like GeoTIFF for raster) of the layer inside the package and the offset and size of that file inside the package, then if you change that package file external to that workspace the workspace doesn't know about the new location and size of the layer (assuming the same layer even exists) in the package file and so it reads from the wrong location.
I may be able to do a lookup in the package file to try and update this automatically. I'll see if I can get a workaround for this for those cases where the same layer still exists in the package but is not the same location/size.
Basically I want to externally change workspace layers, then have GM recognize by file date that the package file has change and prompt or not to update the workspace when opening. This is not a fully cooked idea, just a framework.
Thanks -
I have updated the workspace loading to detect when a layer has moved in a package file and automatically update the location if possible, otherwise just report that it couldn't find the layer in the updated package file rather than showing the error that you are getting now. It's not always possible to locate a layer in a modified package file, so you would need to reload the package file and save the workspace again in those cases.
I have placed a new build at http://www.globalmapper.com/global_mapper12.zip with the change for you to try. Simply download that file and extract the contents into your existing v12.xx installation folder to give it a try. If you are using the 64-bit v12 version there is a new build at http://www.globalmapper.com/global_mapper12_64bit.zip .
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
- 627 GM Script Language
- 52 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