[OpenLayers-Dev] Mapserver Mosaics with Tileindex
Copes, Jeff
jcopes at harris.com
Tue Apr 29 13:31:25 EDT 2008
All,
I have not been able to connect MapServer to OpenLayers using TileIndex
directive in Mapserver. Has anyone been able to do this?
There are four geoTIFFs in the directory /ms4w/apps/ms_tiles/data/tiles.
gdaltindex made a tileindex shapfile G15Tiles.shp in the same directory
as the data. The output G15Tiles.shp has the correct entries for each of
the four images to be mosaicked and the correct overall bounding box for
the mosaic. The MapServer mapfile has the following entry:
LAYER
NAME G15Tiles
GROUP "Imagery"
PROJECTION
"init=epsg:4326"
END
TYPE RASTER
DUMP TRUE
STATUS DEFAULT
# where the tiles are
TILEINDEX "/ms4w/apps/ms_tiles/data/tiles/G15Tiles.shp"
TILEITEM "../data/tiles/"
more metadata items
END
This is the layer creation code in OpenLayers:
var map;
window.onload = function(){
map = new OpenLayers.Map('map',{ controls: [] }, {maxResolution:
'auto'} );
var g15tiles = new OpenLayers.Layer.MapServer("G15Tiles",
"http://dnocc8036:8090/cgi-bin/ms_tiles",
{layers: 'G15Tiles'});
map.addLayer(g15tiles);
The OpenLayers HTML page gives two pink boxes. Is there anyone who knows
about MapServer + Tile Mosaics + OpenLayers who can help?
Thanks,
Jeff Copes
Harris Corporation
Enterprise Architecture COE - Geospatial Systems
(321) 984-6556
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-dev/attachments/20080429/3edaef9b/attachment.html
More information about the Dev
mailing list