[Tilecache] defaults for layers ?
Ivan Grcic
igrcic at gmail.com
Thu Nov 4 07:59:59 EDT 2010
hi, just define one layer at the beggining of cfg file, it will serve
as a template to other layers if they dont have defined parameters:
[DEFAULT]
type=WMS
url=http://mapserver/mapserver?map=/home/gis/conf/mapserver/uat_us.map
layers=foo_layer
spherical_mercator=true
srs=EPSG:3857
tms_type=google
metaTile=yes
metaBuffer=150
//then define your layer only changing required params:
[UAT_FL_SINKHOLE_GRIDDED]
layers=UAT_FL_SINKHOLE_GRIDDED
Cheers,
Ivan
On Thu, Nov 4, 2010 at 12:25 PM, Sebastian E. Ovide
<sebastian.ovide at gmail.com> wrote:
> Hi All,
> I keep adding layers to tilecache.cfg... and most of them share the same
> information. Example:
> [UAT_FL_SINKHOLE_GRIDDED]
> type=WMS
> url=http://mapserver/mapserver?map=/home/gis/conf/mapserver/uat_us.map
> layers=UAT_FL_SINKHOLE_GRIDDED
> spherical_mercator=true
> srs=EPSG:3857
> tms_type=google
> metaTile=yes
> metaBuffer=150
> there are three lines are unique to this layer and six are keep repeating in
> nearly all the layers...
> Is it possible to define defaults parameters globally for all the layers ?
> Thanks
> --
> Sebastian E. Ovide
>
>
>
>
> _______________________________________________
> Tilecache mailing list
> Tilecache at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/tilecache
>
>
--
Ivan Grcic
More information about the Tilecache
mailing list