[Tilecache] Where should feature requests go?
Christopher Schmidt
crschmidt at metacarta.com
Wed Oct 7 09:29:00 EDT 2009
On Fri, Aug 14, 2009 at 02:17:17PM -0400, Russell McOrmond wrote:
> On Fri, 14 Aug 2009, Christopher Schmidt wrote:
>
>> On Fri, Aug 14, 2009 at 08:28:27AM -0400, Russell McOrmond wrote:
>>>
>>> I have a feature request that is likely easy to add. I would send a
>>> patch, but suspect it is quicker for one of the already trusted developers
>>> to do things.
>>
>> Feel free to make requests to the mailing list; if someone impements
>> it, I will apply the patch.
>
>
> I don't know python or TileCache well, but the following appears to do
> what I need:
Committed as r395.
>
> --- Client.py-orig 2009-01-18 22:01:24.000000000 -0500
> +++ Client.py 2009-08-14 14:09:29.000000000 -0400
> @@ -133,7 +133,10 @@
>
> parser.add_option("-b","--bbox",action="store", type="string", dest="bbox", default = None,
> help="restrict to specified bounding box")
> - + + parser.add_option("-c","--config",action="store", type="string",
> dest="tilecacheconfig", default = None,
> + help="path to configuration file")
> +
> parser.add_option("-p","--padding",action="store", type="int", dest="padding", default = 0,
> help="extra margin tiles to seed around target area. Defaults to 0 "+
> "(some edge tiles might be missing). A value of 1 ensures all tiles "+
> @@ -149,7 +152,14 @@
>
> from Service import Service, cfgfiles
> from Layer import Layer
> - svc = Service.load(*cfgfiles)
> +
> + cfgs = cfgfiles
> + if options.tilecacheconfig:
> + configFile = options.tilecacheconfig
> + print "Config file set to %s" % (configFile)
> + cfgs = cfgs + (configFile,)
> + + svc = Service.load(*cfgs)
> layer = svc.layers[args[0]]
>
> if options.bbox:
>
>
>
> --
> Russell McOrmond, Internet Consultant: <http://www.flora.ca/>
> Please help us tell the Canadian Parliament to protect our property
> rights as owners of Information Technology. Sign the petition!
> http://digital-copyright.ca/petition/ict/ http://KillBillC61.ca
>
> "The government, lobbied by legacy copyright holders and hardware
> manufacturers, can pry control over my camcorder, computer,
> home theatre, or portable media player from my cold dead hands!"
--
Christopher Schmidt
MetaCarta
More information about the Tilecache
mailing list