[OpenLayers-Dev] Mapserver Mosaics with Tileindex
Pedro Simonetti Garcia
pedrosimonetti at gmail.com
Tue Apr 29 13:41:07 EDT 2008
Hi Jeff,
I never worked with MapServer + Tile Mosaics + OpenLayers, so I don't
have much to share with you.
But here goes a small suggestion. Have you ever tried to use the
"shp2img" command line tool to verify if MapServer is rendering
correctly the mapfile? If you can't generate a proper image with
shp2img it may indicate that you have a problem in your mapfile
configuration.
I hope this helps,
Pedro Simonetti.
2008/4/29 Copes, Jeff <jcopes at harris.com>:
>
>
>
> 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
> Dev at openlayers.org
> http://openlayers.org/mailman/listinfo/dev
>
>
More information about the Dev
mailing list