Raster Layers are usually used as Base Mapping but they may also be used for My Maps. If you are using them for My Maps then simply define a raster layer in the .map file and create a Map Source layer that's associated with it. Bear in mind that the Info click mechanism will not return information. Any information relating to the values of the raster should be displayed through a legend graphic. If you wish to use local raster sources as a base map for iShare then follow the instructions below which describe the creation of the .map file, WMS compliance and the build of a WMS base map mapsource.
...
Code Block |
---|
D:\astun\tools\ogr\gdaltindex <Tile_index_name>.shp --optfile <path to file>.txt |
Update the .MAP file
Now you have created the Tile Index .shp file you then add this as a WMS layer to the BaseMap or MyMaps .map file e.g.
Code Block |
---|
LAYER
METADATA
WMS_TITLE "OS Vectormap District (Raster)"
END
NAME OSVectormap
STATUS DEFAULT
TILEINDEX "D:/OS VectorMap District (Raster)/data/osvectormapdistrict.shp"
TYPE RASTER
END |
...