Tilecache 2.0 installation and configuration

Source: Internet
Author: User
Author: flyingis

Tilecache is a map tile cache, which greatly improves the response speed of MAP access. Only when the requested map is not in the tiles Column, to interact with other services such as WMS to request maps, consuming space server resources.

Tilecache can be installed in IIS or Apache. The installation methods in both environments are available on the Internet. Here, you only need to record your experience in installing tilecache in Windows:

1. install Apache 2.0.58. I also installed Tomcat 5.5.27 as a servlet container. There is a lot of related information on how to install Apache + Tomcat on the Internet.
2. Install Python 2.4 In the root directory of the hard disk.
3. Install the mod_python-3.2.8-win32-py2.4 and generate the mod_python.so file under The apache2 \ modules directory.
4. Open the conf \ httpd. conf file and add
Loadmodule python_module modules/mod_python.so
5. Open the conf \ httpd. conf file and go to <directory/>
Options followsymlinks
AllowOverride none
</Directory>

Add alias/tilecache/"C:/tilecache-2.01 /"
<Directory "C:/tilecache-2.01/">
Addhandler mod_python. py
Addhandler Python-program. py
Pythonhandler tilecache. Service
Pythonoption tilecacheconfig C:/tilecache-2.01/tilecache. cfg
Pythondebug on
</Directory>

In this way, a virtual directory named tilecache is created. The tilecache configuration process is as follows:

1. Modify tilecache. cgi first behavior under the tilecache-2.01 directory "#! C:/python24/python.exe-u. Note that there is no space between the characters "-U.
2. Modify tilecache. cfg [cache]
Type = diskcache
Base = c: \ tilecache \

Base specifies the directory for generating cache, that is, the directory for storing map tiles.
3. Rename tilecache. cgi to tilecache. py.
4. Access the image through the following link to prove that tilecache has been installed. Note that the parameters after tilecache. py, especially bBox, width, and height, cannot be changed at will. We will talk about it later:
Http: // 192.168.200.195/tilecache. py? Layers = Basic & service = WMS & version = 1.1.1 & request = getmap & SRS = epsg: 4326 & bBox =-180,-90,0, 90 & width = 256 & Height = 256

ArcGIS Server can provide the WMS service. When creating a new service in catalog, you must check the corresponding options to generate the server service and create the corresponding WMS service, the version of tilecache2.0 also adds support for ArcXML, which can be used in the ArcIMS map cache. This function makes more significant and fills in the blank space of the ArcIMS map slicing function, we will discuss how to apply tilecache to ArcIMS later.

I have just studied tilecache and hope you can give me more advice and share your experience. Thank your colleague caoxin for your help!

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.