debian/0000755000000000000000000000000011525530552007171 5ustar debian/rules0000755000000000000000000000301711525530257010254 0ustar #!/usr/bin/make -f # -*- makefile -*- # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 PREFIX := debian/tilecache %: dh $@ override_dh_auto_clean: rm -rf TileCache.egg-info/ rm -rf docs/html/ override_dh_auto_build: sed -e 's!tilecache\.cgi!/cgi-bin/tilecache.cgi!' ./index.html > ./cgi-example.html dh_auto_build # build documentation sphinx-build docs/ docs/html/ override_dh_auto_test: python setup.py test override_dh_auto_install: dh_auto_install -- --debian rm $(PREFIX)/usr/bin/tilecache_install_config.py # only used for eggs mv $(PREFIX)/usr/bin/tilecache.* $(PREFIX)/usr/lib/cgi-bin # .cgi, .fcgi mv $(PREFIX)/usr/bin/tilecache_seed.py $(PREFIX)/usr/sbin/tilecache_seed mv $(PREFIX)/usr/bin/tilecache_clean.py $(PREFIX)/usr/sbin/tilecache_clean mv $(PREFIX)/usr/bin/tilecache_http_server.py $(PREFIX)/usr/sbin/tilecache_http_server rmdir $(PREFIX)/usr/bin chmod +x $(PREFIX)/usr/lib/python*/*-packages/TileCache/Service.py chmod +x $(PREFIX)/usr/lib/python*/*-packages/TileCache/Client.py rm $(PREFIX)/usr/lib/python*/*-packages/TileCache/Caches/S3.py # Suggests python-boto instead. rm $(PREFIX)/usr/dev.ini override_dh_install: dh_install rm -rf $(PREFIX)/usr/share/doc/tilecache/html/.doctrees/ rm -rf $(PREFIX)/usr/share/doc/tilecache/html/_sources/ rm -f $(PREFIX)/usr/share/doc/tilecache/html/_static/jquery.js ln -s /usr/share/javascript/jquery/jquery.js \ $(PREFIX)/usr/share/doc/tilecache/html/_static/jquery.js override_dh_installchangelogs: dh_installchangelogs docs/NEWS.txt debian/install0000644000000000000000000000004311525530257010561 0ustar docs/html usr/share/doc/tilecache/ debian/tilecache.cfg.50000644000000000000000000000002511465214647011742 0ustar .so man8/tilecache.8 debian/examples0000644000000000000000000000012111525530257010726 0ustar cgi-example.html docs/EXAMPLES.txt docs/Example.py.txt docs/examples/overlay.kml debian/tilecache_seed.80000644000000000000000000000002511465214647012207 0ustar .so man8/tilecache.8 debian/dirs0000644000000000000000000000003511465214647010062 0ustar usr/sbin usr/lib/cgi-bin etc debian/tilecache_clean.80000644000000000000000000000002511465214647012351 0ustar .so man8/tilecache.8 debian/watch0000644000000000000000000000007511465214647010233 0ustar version=3 http://tilecache.org/ ./tilecache-([\d\.]+).tar.gz debian/manpages0000644000000000000000000000017211465214647010716 0ustar debian/tilecache.8 debian/tilecache_seed.8 debian/tilecache_clean.8 debian/tilecache_http_server.8 debian/tilecache.cfg.5 debian/README.Debian0000644000000000000000000000036211465214647011242 0ustar tilecache for Debian -------------------- The /usr/bin/*.py scripts have been moved to /usr/sbin and the .py extensions removed per Debian packaging policy. -- Christopher Schmidt Sat, 22 Dec 2007 21:03:56 -0800 debian/tilecache_http_server.80000644000000000000000000000002511465214647013634 0ustar .so man8/tilecache.8 debian/compat0000644000000000000000000000000211525530257010371 0ustar 8 debian/control0000644000000000000000000000256211525530257010603 0ustar Source: tilecache Section: web Priority: extra Maintainer: Debian GIS Project Uploaders: David Paleino Build-Depends: debhelper (>= 8) Build-Depends-Indep: python (>= 2.5.4-1~) , python-support (>= 0.3) , python-setuptools , python-sphinx XS-Python-Version: >= 2.1 Standards-Version: 3.9.1 Homepage: http://tilecache.org/ Vcs-Git: git://git.debian.org/pkg-grass/tilecache.git Vcs-Browser: http://git.debian.org/?p=pkg-grass/tilecache.git Package: tilecache Architecture: all Depends: ${misc:Depends} , ${python:Depends} , libjs-jquery Recommends: python-imaging Suggests: python-mapscript (>= 4.10) , python-mapnik , memcached , python-memcache , python-boto , python-flup , python-paste , python-wsgiref Description: a web map tile caching system TileCache is an implementation of a WMS-C compliant server made available by MetaCarta. TileCache provides a Python-based WMS/TMS server, with pluggable caching mechanisms and rendering backends. In the simplest use case, TileCache requires only write access to a disk, the ability to run Python CGI scripts, and a WMS you want to be cached. With these resources, you can create your own local disk-based cache of any WMS server, and use the result in any WMS-C supporting client, like OpenLayers, or any TMS supporting client, like OpenLayers and worldKit. debian/copyright0000644000000000000000000000531011525530257011125 0ustar Format-Specification: http://dep.debian.net/deps/dep5 Files: * Copyright: © 2006-2010, TileCache Contributors License: BSD-3 Files: debian/* Copyright: © 2007-2008, Christopher Schmidt © 2010, David Paleino License: BSD-3 Files: tests/tests.py Copyright: © 2007, Sean C. Gillies License: BSD-3 X-Comment: the license is the one found in http://trac.gispython.org/lab/browser/Shapely/trunk/LICENSE.txt Files: TileCache/Caches/S3.py Copyright: © 2006-2008, Amazon Digital Services, Inc. or its affiliates License: other License: BSD-3 Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: . * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. . * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. . * Neither the name of MetaCarta, Inc. nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. . THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. License: other # This software code is made available "AS IS" without warranties of any # kind. You may copy, display, modify and redistribute the software # code either by itself or as incorporated into your code; provided that # you do not remove any proprietary notices. Your use of this software # code is at your own risk and you waive any claim against Amazon # Digital Services, Inc. or its affiliates with respect to your use of # this software code. (c) 2006-2008 Amazon Digital Services, Inc. or its # affiliates. X-Comment: http://aws.amazon.com/code/134 states that this software is under 'New BSD', but the code carries this notice. Nevertheless, it's DFSG-free. debian/changelog0000644000000000000000000001124211525530353011042 0ustar tilecache (2.11-2) unstable; urgency=low * Upload to unstable. -- David Paleino Sat, 12 Feb 2011 17:10:08 +0100 tilecache (2.11-1) experimental; urgency=low * New upstream version * New maintainer. Package is now maintained by the Debian GIS Team. * debian/source/format: use 3.0 (quilt) * debian/compat bumped to 8 * debian/control: - debhelper B-D bumped to >= 8 - B-D-I field rewrapped - Vcs-* fields added - binary Depends, Recommends and Suggests fields rewrapped - Standards-Version bumped to 3.9.1 - added B-D-I on python-sphinx * debian/copyright updated to DEP-5, added missing info * debian/docs, debian/examples updated * debian/clean added * debian/rules: - rewritten to use dh7 - build HTML documentation * debian/install added, install HTML documentation * debian/doc-base added -- David Paleino Sat, 06 Nov 2010 11:33:31 +0100 tilecache (2.03-2) unstable; urgency=low * Package adopted. * Acknowledge all previous NMUs. -- David Paleino Sun, 14 Nov 2010 19:00:57 +0100 tilecache (2.03-1.4) unstable; urgency=high * Non-maintainer upload. * Patching against a bad disk cache locking issue, as detailed in http://lists.osgeo.org/pipermail/tilecache/2009-May/001858.html See also http://trac.osgeo.org/tilecache/changeset/391/ for proper fix. Thanks crschmidt and Ivan Mincik for reporting. -- Francesco Paolo Lovergine Fri, 05 Nov 2010 15:56:28 +0100 tilecache (2.03-1.3) unstable; urgency=low * Non-maintainer upload. * Be less strict when matching output of an doctest, which can differ between Python versions (closes: #571514). * Move the XS-Python-Version into the source package santza. * Add ‘Depends: ${misc:Depends}’. * Fix typos in the manual page. -- Jakub Wilk Sat, 10 Apr 2010 02:02:11 +0200 tilecache (2.03-1.2) unstable; urgency=low * Non-maintainer upload to make the package ready for Python 2.6; thanks to Josselin Mouette for the report; Closes: #547864 - debian/control + build-depends on python (>= 2.5.4-1~) - debian/rules + added python.mk inclusion + used $(py_setup_install_args) at install time + used '*-packages' instead of 'site-packages' -- Sandro Tosi Sun, 11 Oct 2009 21:16:36 +0200 tilecache (2.03-1.1) unstable; urgency=medium * Non-maintainer upload. * debian/rules - move all the files operation before dh_pysupport call; thanks to Josselin Mouette for the bug report and patch; Closes: #517311 -- Sandro Tosi Fri, 10 Apr 2009 18:38:17 +0200 tilecache (2.03-1) unstable; urgency=low * New upstream release. -- Christopher Schmidt Mon, 19 May 2008 23:26:01 -0400 tilecache (2.02-1) unstable; urgency=low * New upstream release. (Closes #471405) * Fix to packaging: install to python-support/tilecache instead of incorrect python-support/python-package. -- Christopher Schmidt Sat, 10 May 2008 09:48:31 -0400 tilecache (2.01-4) unstable; urgency=low * Improved clean target of rules file to clean up all of setup.py's leftovers. * Fixed watch file, previously reporting incorrect upstream version. -- Christopher Schmidt Thu, 3 Jan 2008 02:10:26 -0500 tilecache (2.01-3) unstable; urgency=low * Initial debian release. (Closes: #458146) * Minor updates to control file. -- Christopher Schmidt Fri, 28 Dec 2007 20:07:29 -0500 tilecache (2.01-2) unstable; urgency=low * Change section, add debian version numbering (keeping in line with earlier releases) -- Christopher Schmidt Thu, 27 Dec 2007 21:12:20 -0500 tilecache (2.01-1) unstable; urgency=low * Updated release. -- Christopher Schmidt Thu, 27 Dec 2007 08:40:22 -0500 tilecache (2.0-1) unstable; urgency=low * Updated release. -- Christopher Schmidt Sat, 22 Dec 2007 21:03:56 -0800 tilecache (1.9-1) unstable; urgency=low * Updated release. -- Christopher Schmidt Fri, 14 Sep 2007 11:04:58 -0400 tilecache (1.8-1) unstable; urgency=low * Updated release. -- Christopher Schmidt Fri, 4 May 2007 07:33:15 -0400 tilecache (1.7-1) unstable; urgency=low * Updated release. -- Christopher Schmidt Fri, 13 Apr 2007 20:33:06 -0400 tilecache (1.5-1) unstable; urgency=low * Initial Release. -- Schuyler Erle Wed, 28 Mar 2007 11:49:06 -0500 debian/source/0000755000000000000000000000000011525530257010473 5ustar debian/source/format0000644000000000000000000000001411525530257011701 0ustar 3.0 (quilt) debian/clean0000644000000000000000000000002111525530257010171 0ustar cgi-example.html debian/docs0000644000000000000000000000011511525530257010043 0ustar docs/CONTRIBUTORS.txt docs/Caches.txt docs/README.txt docs/SuperOverlays.txt debian/doc-base0000644000000000000000000000043711525530257010577 0ustar Document: tilecache Title: TileCache Documentation Author: labs@metacarta.com Abstract: This manual describes what TileCache is and how it can be used. Section: Science/Geoscience Format: HTML Index: /usr/share/doc/tilecache/html/index.html Files: /usr/share/doc/tilecache/html/*.html debian/tilecache.80000644000000000000000000002737611465214647011231 0ustar .TH tilecache 8 "2008-05-19" "2.03" "GIS Utilities" .SH NAME tilecache \- Cache and serve map tiles .SH DESCRIPTION TileCache is a BSD licensed tile caching mechanism. The goal is to make it easy to set up a WMS or TMS frontend to any backend data services you might be interested in, using a pluggable caching and rendering mechanism. TileCache was developed by MetaCarta Labs and released to the public under a BSD license. The TileCache was designed as a companion to OpenLayers, the BSD licensed web mapping interface. If you are using TileCache with OpenLayers, please read the section of this readme which describes how to do so. For additional help with setting up TileCache for use with OpenLayers, please feel free to stop by #openlayers, on irc.freenode.net, or to send email to tilecache@openlayers.org. .SH RUNNING UNDER CGI .TP 2 \(bu TileCache should have a cgi installed under /usr/lib/cgi-bin, called tilecache.cgi. This is accessible from http://yourmachine.example.com/cgi-bin/tilecache.cgi. .TP 2 \(bu Edit /etc/tilecache.cfg to point the DiskCache to the location you wish to cache tiles, and the layers to point to the map file or WMS server you wish to cache. .TP 2 \(bu Visit: .nf http://yourmachine.example.com/cgi-bin/tilecache.cgi?LAYERS=basic&SERVICE=WMS&BBOX=\-180,\-90,0,90 .fi .TP 2 \(bu Or visit: .nf http://yourmachine.example.com/cgi-bin/tilecache.cgi/1.0.0/basic/0/0/0.png .fi .TP 2 \(bu If you see a tile, TileCache is working correctly. .SH RUNNING UNDER MOD_PYTHON .TP 2 \(bu Edit /etc/tilecache.cfg to point the DiskCache to the location you wish to cache tiles, and the layers to point to the map file or WMS server you wish to cache. .TP 2 \(bu Add the following to your Apache configuration: .nf Alias /tiles /var/lib/python-support/python2.4/tilecache/ SetHandler python-program PythonHandler TileCache.Service PythonOption TileCacheConfig /etc/tilecache.cfg .fi .TP 2 \(bu Visit one of the URLs described above, replacing tilecache.cgi with tilecache.py .TP 2 \(bu If you see a tile you have set up your configuration correctly. Congrats! .SH RUNNING STANDALONE (UNDER WSGI) TileCache includes standalone HTTP server which uses the WSGI handler. This implementation depends on .I Python Paste , which can be installed via the python-paste package. .\" depart_block_quote For versions of Python earlier than 2.5, you will also need to install wsgiref: .\" visit_block_quote http://cheeseshop.python.org/pypi/wsgiref .\" depart_block_quote Once you have all the prerequisites installed, simply run: .\" visit_block_quote .nf /usr/sbin/tilecache_http_server .fi .\" depart_block_quote This will start a webserver listening on port 8080 (by default), after which you should be able to open: .\" visit_block_quote .nf http://yourmachine.example.com:8080/1.0.0/basic/0/0/0.png .fi .\" depart_block_quote to see your first tile. .SH RUNNING UNDER FASTCGI TileCache includes a fastcgi implementation. In order to use this implementation, you will need to install flup, available from: .\" visit_block_quote http://trac.saddi.com/flup .\" depart_block_quote This implementation also depends on Python Paste, which can be downloaded via the python-paste package: .\" depart_block_quote Once you have done this, you can configure your fastcgi server to use tilecache.fcgi. Configuring FastCGI is beyond the scope of this documentation. .\" depart_block_quote .SH CONFIGURATION TileCache is configured by a config file, defaulting to tilecache.cfg. There are several parameters to control TileCache layers that are applicable to all layers: .\" visit_block_quote .TP .B bbox The bounding box of the Layer. The resolutions array defaults to having resolutions which are equal to the bbox divided by 512 (two standard tiles). .TP .B debug Whether to send debug output to the error.log. Defaults to "yes", can be set to "no" .TP .B description Layer description, used in some metadata responses. Default is blank. .TP .B extension File extension of the layer. Used to request images from WMS servers, as well as when writing cache files. .TP .B layers A string used to describe the layers. Typically passed directly to the renderer. The WMSLayer sends this in the HTTP request, and the MapServerLayer chooses which layer to render based on this string. If no layer is provided, the layer name is used to fill this property. .TP .B levels An integer, describing the number of \'zoom levels\' or scales to support. Overridden by resolutions, if passed. .TP .B mapfile The absolute file location of a mapfile. Required for MapServer and Mapnik layers. .TP .B maxResolution The maximum resolution. If this is set, a resolutions array is automatically calculated up to a number of levels controlled by the \'levels\' option. .TP .B metaTile set to "yes" to turn on metaTiling. This will request larger tiles, and split them up using the Python Imaging library. Defaults to "no". .TP .B metaBuffer an integer number of pixels to request around the outside of the rendered tile. This is good to combat edge effects in various map renderers. Defaults to 10. .TP .B metaSize A comma separated pair of integers, which is used to determine how many tiles should be rendered when using metaTiling. Default is 5,5. .TP .B resolutions Comma separate list of resolutions you want the TileCache instance to support. .TP .B size Comma separated set of integers, describing the width/height of the tiles. Defaults to 256,256 .TP .B srs String describing the SRS value. Default is "EPSG:4326" .TP .B type The type of layer. Options are: WMSLayer, MapnikLayer, MapServerLayer, ImageLayer .TP .B url URL to use when requesting images from a remote WMS server. Required for WMSLayer. .TP .B watermarkImage The watermarkImage parameter is assigned on a per\-layer basis. This is a fully qualified path to an image you would like to apply to each tile. We recommend you use a watermark image the same size as your tiles. If using the default tile size, you should use a 256x256 image. NOTE: Python Imaging Library DOES NOT support interlaced images. .TP .B watermarkOpacity The watermarkOpacity parameter is assigned on a per\-layer basis. This configures the opacity of the watermark over the tile, it is a floating point number between 0 and 1. Usage is optional and will otherwise default. .TP .B extent_type Setting this to \'loose\' will allow TileCache to generate tiles outside the maximum bounding box. Useful for clients that don\'t know when to stop asking for tiles. .TP .B tms_type Setting this to "google" will cause tiles to switch vertical order (that is, following the Google style x/y pattern). .\" depart_block_quote .SH USING TILECACHE WITH OPENLAYERS To run OpenLayers with TileCache the URL passed to the OpenLayers.Layer.WMS constructor must point to the TileCache script, i.e. tilecache.cgi or tilecache.py. As an example see the example-cgi.html file included in the TileCache distribution, under /usr/share/doc/tilecache/examples/. Note: example-cgi.html assumes TileCache is set up under CGI (see above). If you set up TileCache under mod_python you\'d need to slighly modify example-cgi.html: the URL passed to the OpenLayers.Layer.WMS constructor must point to the mod_python script as opposed to the CGI script. Similarly, you would need to edit this URL if you were to use TileCache with the standalone HTTP Server or FastCGI. The most important thing to do is to ensure that the OpenLayers Layer has the same resolutions and bounding box as your TileCache layer. You can define the resolutions in OpenLayers via the \'resolutions\' option or the \'maxResolution\' option on the layer. The maxExtent should be defined to match the bbox parameter of the TileCache layer. .SH USING TILECACHE WITH MAPSERVER MapServer has a map level metadata option, labelcache_map_edge_buffer, which is set automatically by TileCache to the metaBuffer plus five when metaTiling is on, if it is not set in the mapfile. If you are using MetaTiling, be aware that MapServer generates interlaced PNG files, which PIL will not read. See http://mapserver.gis.umn.edu/docs/faq/pil_mapscript on how to resolve this. .SH SEEDING YOUR TILECACHE The tilecache_seed utility will seed tiles in a cache automatically. You will need to have TileCache set up in one of the previously described configurations. .SS Usage .\" visit_block_quote /usr/sbin/tilecache_seed [ []] .\" depart_block_quote .SS Arguments .\" visit_block_quote .TP .B url http://example.com/yourdir/tilecache.cgi? or http://example.com/yourdir/tilecache.py .TP .B layer same layer name that is in the tilecache.cfg .TP .B zoom start Zoom level to start the process .TP .B zoom end Zoom level to end the process .TP .B bbox The bounding box to seed .SS Seeding by center point and radius If called without zoom level arguments, tilecache_seed.py will assume that it needs to read a list of points and radii from standard input, in the form: .nf ,, ,, ,, ,, .fi The format of this file is: .TP .B lon the position(s) to seed longitude .TP .B lat the position(s) to seed latitude .TP .B radius the radius around the lon/lat to seed in degrees .SS Examples An example with zoom levels 5 through 12 would be like; .nf $ /usr/sbin/tilecache_seed "http://example.com/yourdir/tilecache.cgi?" Zip_Codes 5 12 "\-118.12500,31.952162238,\-116.015625,34.3071438563" .fi The bbox can be dropped and defaults to world lonlat(\-180,\-90,180,90): .nf $ /usr/sbin/tilecache_seed.py "http://example.com/yourdir/tilecache.cgi?" Zip_Codes 0 9 .fi In center point/radius mode, the zoom level range is not specifiable from the command\-line. An example usage might look like: .nf $ /usr/sbin/tilecache_seed.py "http://example.com/yourdir/tilecache.cgi?" Zip_Codes \-118.12500,31.952162238,0.05 \-121.46327,32.345345645,0.08 .fi \&... the seeding will then commence ... .SH CLEANING YOUR TILECACHE The tilecache_clean utility will remove the least recently accessed tiles from a cache, down to a specified size. .SS Usage /usr/sbin/tilecache_clean [options] .SS Options .TP .B \-\-version show program\'s version number and exit .TP .B \-h , \-\-help show this help message and exit .TP .BI \-s\ SIZE ,\ \-\-size\ SIZE Maximum cache size, in megabytes. .TP .BI \-e\ ENTRIES ,\ \-\-entries\ ENTRIES Maximum cache entries. This limits the amount of memory that will be used to store information about tiles to remove. .SS Notes The \-\-entries option to tilecache_clean.py is optional, and is used to regulate how much memory it uses to do its bookkeeping. The default value of 1 million will hopefully keep RAM utilization under about 100M on a 32\-bit x86 Linux machine. If tilecache_clean.py doesn\'t appear to be keeping your disk cache down to an appropriate size, try upping this value. tilecache_clean is designed to be run from a cronjob like so: .nf 00 05 * * * /usr/sbin/tilecache_clean.py \-s500 /var/www/tilecache .fi .SH TROUBLESHOOTING Occasionally, for some reason, when using meta tiles, your server may leave behind lock files. If this happens, there will be files in your cache directory with the extension \'.lck\'. If you are seeing tiles not render and taking multiple minutes before returning a 500 error, you may be suffering under a stuck lock. Removing all files with extension \'.lck\' from the cache directory will resolve this problem. .SH SEE ALSO memcached(8) http://tilecache.org/ http://openlayers.org/ http://wiki.osgeo.org/index.php/WMS_Tiling_Client_Recommendation http://wiki.osgeo.org/index.php/Tile_Map_Service_Specification .SH AUTHOR crschmidt@metacarta.com .SH COPYRIGHT (c) 2006-2007 MetaCarta, Inc. Distributed under the BSD license.