[mapserver-users] Scale dependant image tile

bbarrett brian at zetica.com
Mon Oct 19 09:59:26 EDT 2009


Hello,

I have recently started using mapserver and ran out of ideas with this
problem. 

I have three maps for the same location that I wish to be visible at
different scales (but in the same map layer). Each map comes as 4 or 5 tif
files. I have created a tileindex shapefile for each map using gdaltindex. I
have then created a tileindex shapefile that references each of these using
tile4ms

I had expected the following code to do the trick:

LAYER
	NAME "maps"
	TILEINDEX "D:\path_to_my_files\maps.shp"
	TILEITEM "LOCATION" 
	TYPE RASTER
	STATUS ON
	CLASSITEM "LOCATION"
	CLASS # 1-10000
		EXPRESSION '/1-10000/' # 1:10000 scale map tileindex has 1-10000 in file
path
		MINSCALEDENOM 0
		MAXSCALEDENOM 6000
	END
	CLASS # 1-25000
		EXPRESSION '/1-25000/' # 1:25000 scale map tileindex has 1-10000 in file
path
		MINSCALEDENOM 6000
		MAXSCALEDENOM 20000
	END
	CLASS # 1-50000
		EXPRESSION '/1-50000/' # 1:50000 scale map tileindex has 1-10000 in file
path
		MINSCALEDENOM 20000
	END
END

Can anyone help me to get this scale dependant map that I desire please? 

Thanks

Brian
-- 
View this message in context: http://n2.nabble.com/Scale-dependant-image-tile-tp3849182p3849182.html
Sent from the Mapserver - User mailing list archive at Nabble.com.


More information about the mapserver-users mailing list