Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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 Map Source. 

Info

If you have multiple sets of Raster images to process then you may wish to check the page on using a Batch Script for creating tileindices.


Note

For iShare GIS a Legacy map source can be used instead without the WMS compliance.

...

  • Navigate to the folder where the raster files reside.Create
  • a .txt file and add a row for the path to each raster file e.gUse the following command to create a file listing all the raster files in the directory. Switch the command to list *.jpg as appropriate.
Code Block
D:\OS VectorMap District (Raster)\data\SX01dir /s/b *.tif D:\OS VectorMap District (Raster)\data\SX02.tif
...
D:\OS VectorMap District (Raster)\data\SX99.tif> tileindex.txt
  • Now, from a command prompt, navigate to the folder where you have created your .txt file and run the following:
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

...

When generating a TileCache for Aerial layers where there are regions without Aerial Photo Data, in addition to the Layer for the Aerial Photography itself, an additional layer needs to be set up to cover the blank/empty regions (built in a similar way to creating OutOfArea masks - i.e. subtracting the Aerial data from a polygon covering the whole region). See Tilecache and Aerial Layers for details.