Using With MapServer
From OpenAerialMap
As of GDAL 1.5, there is support for requesting remote tiles from a WMS-C cache in GDAL.
To do this, simply drop the following into a file:
<GDAL_WMS>
<Service name="WMS">
<Version>1</Version>
<ServerUrl>http://tile.openaerialmap.org/tiles/</ServerUrl>
<Layers>openaerialmap</Layers>
</Service>
<DataWindow>
<UpperLeftX>-180.0</UpperLeftX>
<UpperLeftY>90.0</UpperLeftY>
<LowerRightX>180.0</LowerRightX>
<LowerRightY>-90.0</LowerRightY>
<SizeX>1073741824</SizeX>
<SizeY>536870912</SizeY>
<TileLevel>21</TileLevel>
</DataWindow>
<Projection>EPSG:4326</Projection>
<OverviewCount>21</OverviewCount>
<BlockSizeX>256</BlockSizeX>
<BlockSizeY>256</BlockSizeY>
<BandsCount>3</BandsCount>
</GDAL_WMS>
Then use it in your mapfile like so:
layer
name "world"
type raster
status on
data "/my/path/to/oam_cache.xml"
projection "init=epsg:4326" end
offsite 0 0 0
END
Before GDAL 1.5, you can instead use a remote WMS service to load the data: just use
http://openaerialmap.org/wms/
with a layer of "world".
