Ok, I got this working, but right now it is really just a kludge. I have an aspx/php script that serves up the tiles, and the GDAL minidriver configuration file. I had to use the GDAL WorldWind minidriver due to the way my tiles were layed out, with the 0 row tiles at the bottom, but since I couldn't figure out how to set the <T> option I had to hard code it into the URL. Anyway I now have it serving up my pre-tiled BMNG tile set to my WMS client. Sweet! In case it helps anyone else, I'll post my aspx scritp, and the gdal configuration file below. Any suggestion on how to set that <T> option to be filled in by the minidriver would be greatly appreciated. Thanks, James
Tile.aspx --- Copy to the \ms4w\apache\htdocs directory <? // This scipt is for serving out your own WW Cached tiles to World Wind, useful for own imagery and for working "off line" // This script can be named what ever you want, it is controlled via a World Wind XML // thanks to MaurizoZA and Nowak for the script $X = $_GET['X']; $Y = $_GET['Y']; $L = $_GET['L']; $T = $_GET["T1"]; function addzeros($string) { //echo $string; if(strlen($string) >= 4) { return $string; } $string = "0" . "$string"; if(strlen($string) < 4) { $string = addzeros($string); } return $string; } $ext = ".jpg"; // Change the following to the location of your local root cache folder $url = 'd:/MapData/TiledMapData/'; $doneurl = $url . $T . "/" . $L . "/" . addzeros($Y) . "/" . addzeros($Y) . "_" . addzeros($X) . $ext; $tileData = file_exists($doneurl) ? file_get_contents($doneurl) : false; if ($tileData === false) die(); @header('Content-type: image/jpeg'); print($tileData); ?> BMNG_01.2004.xml -- Copy to \ms4w\apache\cgi-bin <GDAL_WMS> <Service name="WorldWind"> <Version>1</Version> <interface>worldwind</interface> <ServerUrl>http://localhost/tile.aspx?T1=BMNG_01.2004</ServerUrl> <Dataset>BMNG_01.2004</Dataset> </Service> <DataWindow> <UpperLeftx>-180.0</UpperLeftx> <UpperLefty>90.0</UpperLefty> <LowerRightx>180.0</LowerRightx> <LowerRighty>-90.0</LowerRighty> <SizeX>81920</SizeX> <SizeY>40960</SizeY> <TileLevel>4</TileLevel> </DataWindow>> <Projection>EPSG:4326</Projection> <BlockSizeX>512</BlockSizeX> <BlockSizeY>512</BlockSizeY> <BandsCount>3</BandsCount> </GDAL_WMS>
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users