I am working with a customer who has just gone and forked imagemoasic in order to get absolute paths to work; apparently the raster files are in one location (on a nice fast RAID) and the index file in another.
The index shapefile has been provided with the raster data; we will get new copies of this file as data sets are made available and it would be great if we could use it out of the box.
OPTION ONE
The image-moasic plugin looks for the hard coded attribute "location" in order to figure out the raster files. If we use the provided index shapefile we will need to be able specify which attribute indicates the location of the raster files.
This could be provided as a HINT or as an entry in the properties file.
OPTION TWO
We can copy the provided index shapefile; process it so it has a "location" attribute and place it in a new location;. Problem is that the shapefile is in a seperate folder; and the image moasic code is built to handle relative paths.
So for this to work we need either:
- modify the code to look at the "location" and detect when an absolute path is being used
- provide a new "base" directory where it should look for the images from; this could be a HINT or an entry in the properties file?