Hi Steve,

You mean a symbolic link in the file system ? Well, that's not really 
applicable in my case.

I'm trying to keep the files for multiple datasets and tilesets in a logical 
structure, i.e.:

ROOT_DIR/
..      Dataset1/
..      ..      (dataset mapping file)
..      ..      Tileset1/
..      ..      ..      (tiles and tile index)
..      ..      Tileset2/
..      ..      ..      (tiles and tile index)
 ..     ..      Tileset3/
..      ..      ..      (tiles and tile index)
..      Dataset2/
..      ..      (dataset mapping file)
..      ..      Tileset1/
..      ..      ..      (tiles and tile index)
..      ..      Tileset2/
..      ..      ..      (tiles and tile index)
 ..     ..      Tileset3/
..      ..      ..      (tiles and their tile index)

The mapping files are specific to a single "Dataset", and each tileset is set 
up as a layer in this.

I would like to set my SHAPEPATH to the Dataset folder, and reference each tile 
index using a relative path. This works.

The problem arises because I want the tileindex to reference the tiles without 
a path, so their movable in the file system.

But if the tiles in each tileindex uses the mapping file SHAPEPATH only, I 
cannot maintain a simple structure.

As it is now, I have to add the tileset folder name into a relative path for 
each tiles (e.g. Tileset2/Tile45), thereby hardcoding them to a specific 
tileset folder (name).


I think it would be beneficial if one could specifiy, that the tiles paths were 
to be considered relative to the tileindex file.


Ps! I'm on a Windows box.


Kind regards / Med venlig hilsen
Lars I. Nielsen
----------------------------------------------------------------
Landinspektør, Senior GIS Programmør og Konsulent
Hvenegaard Landinspektører A/S
Rugaardsvej 55, DK-5000 Odense C
Denmark
Tel. +45 6313 5050
http://www.hvenegaard.dk

-----Oprindelig meddelelse-----
Fra: Lime, Steve D (MNIT) [mailto:[email protected]] 
Sendt: 30. april 2014 03:55
Til: Lars I. Nielsen
Emne: RE: TileIndex and relative paths

I'm afraid your stuck. Can you do a symlink?
________________________________________
From: [email protected] 
[[email protected]] on behalf of Lars I. Nielsen 
[[email protected]]
Sent: Thursday, April 24, 2014 8:32 AM
To: [email protected]
Subject: [mapserver-users] TileIndex and relative paths

Hi,

I'm using Mapserver to display a raster, that I've split into multiple tiles 
for performance reasons.

The shape file I'm using for tile index have no path in the Location field, 
just the file name of the raster tile. And each tile (png) is accompanied by a 
wld file.

I've previously used absolute paths in my tile indexes, but this is not 
feasable in this project.

It looks like entries in a tile index is attempted read from the folder defined 
by the environment variable SHAPEPATH.

I would have thought that entries without path were to be considered relative 
to the tile index table itself.

Is there a way to force Mapserver to fetch the tiles relative to the tile index 
instead of relative to SHAPEPATH ?

Cheers.


Kind regards / Med venlig hilsen
Lars I. Nielsen
----------------------------------------------------------------
Landinspektør, Senior GIS Programmør og Konsulent Hvenegaard Landinspektører 
A/S Rugaardsvej 55, DK-5000 Odense C Denmark Tel. +45 6313 5050 
http://www.hvenegaard.dk<http://www.hvenegaard.dk/>


_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to