2. In case of DIMTS, map-tiles have been cached and kept in C:/inetpub/wwwroot/tilecache/dimts.Setting up Tile-Cache on IIS<br />Follow the steps below to create a new tile-cache.<br />Download the windows installer for the latest version (2.5.1) of Python from here. <br />Run the Python installer for windows and install Python to its default location “C:ython25.<br /> <br />Setup the Python install directory in the system environment ‘PATH’ variable. Right-click on ‘My Computer’ and select ‘Properties’. Click on the ‘Advanced’ tab. Click on the ‘Environment Variables’ button. In the ‘Environment Variables’ dialog, select ‘PATH’ from the ‘System Variables’ group. <br />Click the ‘Edit button and add your Python path (C:ython25 to the end of the current PATH value. <br />Download TileCache from here (version 2.10). Unzip its contents to ‘C:netpubwwrootilecache-2.10’. This is just a location, it can obviously be setup as a virtual directory at any path desired. <br />Setup the unzipped ’tilecache’ directory as an application in IIS. Click ‘Start->Run’ and type in ‘inetmgr’ and click ok. This brings up the Internet Service Manager (ISM). <br />Now, we need to setup IIS to run Python scripts. Find ’tilecache’ under ‘Default Web Site’ and right-click to select properties. <br />In the ‘Directory’ tab, under the ‘Application Settings’ section, the ‘Application Name’ and its value should be disabled. Click the ‘Create’ button next to it. This should setup ’tilecache’ as the application name. Click OK to exit the dialog. <br />In the ISM, right-click on ‘Default Web Site’ and select ‘Properties’. Under the ‘Home Directory’ tab, select the ‘Configuration’ button. <br />This should bring up the ‘Application Configuration’ dialog, Click on the ‘Add’ button. This brings up the ‘Add/Edit Application Extension Mapping’ dialog. In the executable field, enter ‘C:ython25ython.exe %s %s’. In the extension field, enter ‘.py’. Check both ‘Script engine’ and ‘Check that file exists’ options. <br />This should add a new entry for ‘.py’ in the ‘Application Configuration’ dialog. <br />Open up the command prompt and change directory to ‘C:netpubdminScripts’. Execute the following:<br />adsutil set w3svc/AllowPathInfoForScriptMappings True <br />adsutil set w3svc/1/AllowPathInfoForScriptMappings True <br />Rename ‘C:netpubwwrootilecache-2.10ilecache.cgi’ to ‘C:netpubwwrootilecacheilecache.py’. <br />Edit ‘C:netpubwwrootilecache-2.10ilecache.py’ and remove the first line in it that reads ‘#!/usr/bin/env python‘. Also, change the ‘Service.Load’ parameter to ‘C:Inetpubwwwroottilecachetilecache.cfg’ like shown within quotes. <br />Create a directory called ‘Cache’ under ‘C:netpubwwrootilecache-2.10. This is where to generated cache will be outputted. Give write permissions to the ‘Internet Guest account’ to this directory since the cache generated will be written to this location, please do take the time to setup the security properly as per your requirements. <br />Edit ‘C:netpubwwrootilecache-2.10ilecache.cfg’. Change the value for ‘base’ under the ‘[Cache]‘ section to ‘C:netpubwwrootilecache-2.10ache’, the directory where the cache will be outputted. <br />From<br /> <br />1028700288290To<br /> <br />Also, change the ‘url’ value under the ‘[basic]‘ to the URL of the WMS service that you want to be cached. Here ‘[basic]‘ is the name of the layer you want cached. Configure it accordingly for the WMS service you are using. <br />These are the steps to configure TileCache on IIS.<br />Look in your ‘C:netpubwwrootilecache-2.10ache’ directory as the cache is generated. You should be able to see a whole bunch directory and files being generated when browsing around. <br />We don’t want to be browsing all around the map at all scales to fully generate the cache. In order to generate the cache for the desired region automatically, a python utility script has been provided with TileCache. To run the script, open up command prompt and execute the following. <br />python “C:netpubwwrootilecache-2.10ilecache_seed.py” “http://localhost/tilecache-2.10/tilecache.py?” DelhiBaseMap 0 2 <br />This generates the cache for the basic layer between scales 0 and 2. Please be aware that as you start increasing the scale range (0 to 6 etc), the time required to generate the cache will exponentially increase. <br />MapServer Client-side Installation<br />MapServer Client-side API is installed in your web-application folder. This API comprises of the following java-script files, which will be further interacting with the MapServer server-side API.<br />OpenLayers.js and associated files<br />mapstraction.js<br />sirfequest.js<br />MapServer has the following dependencies:<br />SSS License Manager: Installation instructions for this component are out-of-scope of this document.<br />SSS Security Server: Installation instructions for this component are out-of-scope of this document.<br />Map-data: Installation of map-data is done through GA installation.<br />OpenLayers<br />Extract OpenLayers 2.8 API files from <MapServerPath>/releases/SSS-MapServer-1.5.0.0.0 /OpenLayers-2.8.zip.<br />Extract these files and copy them to a sub-folder of your web-application.<br />Replace OpenLayers.js in the above sub-folder with the one available in <MapServerPath>/mapstraction folder.<br />Mapstraction<br />Copy latest mapstraction.js and mapstraction.config.js from <MapServerPath>/mapstraction folder to the same directory in which you have placed OpenLayers API.<br />Update server-paths in mapstraction.config.js. <br />tileCachePath: URL containing the the base-map-tilecache. If your web-application doesn’t have its own tile-cache and instead uses a third-party base-map from Google, Bing etc, then this configuration can be avoided.<br />mapServerPathForWms: URL of web-service handling WMS-requests for dynamic layers (http://<MapServerMachine>/SiRFStudioMapServer1.5.1/MapServerHandler.ashx)<br />defaultMapName: Default map-file name used by your web-application<br />sirfrequest<br />Copy latest sirfrequest.js from //sirfstudio/server/ssrelease/dimts1.0/cross_domain_api folder in Perforce to the same directory in which you have placed mapstraction.js.<br />Update following paths in sirfrequest.js.<br />urlRouter: Location of Security Server. Ask SiRFStudio MapServer team for assistance.<br />proxyPath: Location of proxy page. Ask SiRFStudio MapServer team for assistance.<br />Document References<br />DocumentReferenceSiRF Studio Product Requirements Definition, Revision 1.0 02/20/2007<Cognidox Ref><br />Please add feedback on these documents in Cognidox or by emailing comments@csr.com.<br />Terms and Definitions<br />BlueCore®Group term for CSR’s range of Bluetooth wireless technology chipsBluetooth®Set of technologies providing audio and data transfer over short-range radio connectionsCSRCambridge Silicon RadioUniFi®Group term for CSR’s range of chips designed to meet IEEE 802.11 standards<br />