relative pathnames in gmw file
Yann DUPUY
Global Mapper UserTrusted User
Hi,
when saving a GMW file, is it possible to save filenames relativelly to that gmw file ?
If not, would that be added in future versions ? It is necessary to be able to move complete workspaces from disk part to another, or to send it to someone with different harddrive architecture.
Thanks,
Yann
when saving a GMW file, is it possible to save filenames relativelly to that gmw file ?
If not, would that be added in future versions ? It is necessary to be able to move complete workspaces from disk part to another, or to send it to someone with different harddrive architecture.
Thanks,
Yann
Comments
-
Hello Yann,
Thank you for using Global Mapper. I apologize for the delay in responding.
Although Global Mapper does not store relative paths in the workspace file, if a file can not be found at the stored location, Global Mapper will attempt to find the file relative to the location of the workspace file. Are you having a specific problem where Global Mapper is not able to load some files when loading a workspace?
Cheers,
Bob -
Hello Yann,
Thank you for using Global Mapper. I apologize for the delay in responding.
No probs.Although Global Mapper does not store relative paths in the workspace file, if a file can not be found at the stored location, Global Mapper will attempt to find the file relative to the location of the workspace file. Are you having a specific problem where Global Mapper is not able to load some files when loading a workspace?
For instance, we might separate the input data according to their origin:
Data_Input / Orthophotography
/ Altimetry
/ Planimetry
On my machine, this can be in /MyProjects/theDatabase
I wish I could put the gmw file into Data_Input and it would reference for instance
Orthophotography/thePhoto1.tif
Orthophotography/thePhoto2.tif
Altimetry/theAlti.dted
Planimetry/theBuildings.shp
Planimetry/theRoads.shp
instead of
/MyProjects/theDatabase/Orthophotography/thePhoto1.tif
/MyProjects/theDatabase/Orthophotography/thePhoto2.tif
/MyProjects/theDatabase/Altimetry/theAlti.dted
/MyProjects/theDatabase/Planimetry/theBuildings.shp
/MyProjects/theDatabase/Planimetry/theRoads.shp
Then, if I move my database into let's say G:/Databases/theDatabase, the .gmw file would still reference the correct files.
Am I making myself clearer ?Cheers,
Bob
Thanks Bob,
Yann -
Hello Yann,
That does clarify what you are trying to do, and Global Mapper will allow you to do that even though it stores the full path for the file name in the workspace file. If an input file is not found at the location specified in the workspace file, Global Mapper will attempt to find the file relative to the director where the workspace file is located.
I ran a simple test to illustrate this as follows:- Create a directory called P:\Relative\MyData, and put a couple of shapefiles files in there.
- Load the files into Global Mapper, and save a workspace at P:\Relative\test.gmw. (Note that the workspace file contains the full path to the files at P:\Relative\MyData\...)
- Close Global Mapper.
- Rename the base directory to P:\Relative_xyz, so now the data files are in P:\Relative_xyz\MyData
- Start Global Mapper and load the workspace P:\Relative_xyz\test.gmw.
- The workspace file loads successfully because Global Mapper was able to find the data files relative to the current location of the workspace file.
I used Global Mapper 16 for my test, but this should work in earlier versions as well.
Cheers,
Bob -
You're right Bob.
I might have done something wrong the first time, it seems to be working.
Thanks,
Yann
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