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

 



_______________________________________________
Dev mailing list
[email protected]
http://openlayers.org/mailman/listinfo/dev

Reply via email to