source: subversion/sites/other/trapi/trapi.pm @ 31161

Last change on this file since 31161 was 13790, checked in by blarson, 11 years ago

Fairly major rewrite and cleanup, with common tag comression.

File size: 1.7 KB
Line 
1# trapi configuration
2
3# largest request in tiles
4use constant MAXTILESPERREQ => 1000;   
5# how old database can get before refusing (seconds)
6use constant TOOLD => 1500;
7# bigest tiles we keep (1 - 14)
8use constant MINZOOM => 11;
9# max cached filehandles
10use constant MAXOPEN => 500;
11# drop down to this when MAXOPEN hit
12use constant KEEPOPEN => 400;
13# bytes in node file before splitting
14use constant SPLIT => 4096;
15# directory trapi data is in
16use constant TRAPIDIR => '/trapi';
17# directory where the indexes are kept (absolute or relitive to TRAPIDIR) end with / if not empty
18use constant DBDIR => '';
19# regular expression of tags to ignore.  undef disables.
20use constant IGNORETAGS => '^(?:created_by$|tiger:|gnis:|source$|attribution$|import_uuid$|time$|AND[_:]|massgis:|open[gG]eo[dD][bB]:|converted_by$|KSJ2:|uploaded_by$|source_ref$|gns:)';
21
22# directory to save osc files in
23use constant TMPDIR => "/tmp/";
24# site to fetch osc.gz files from
25use constant WEBSITE => "http://planet.openstreetmap.org/";
26# heanet keeps daily changes longer, so use them if using old planet.  They are not up to date on hour or minute files.
27# use constant WEBSITE => "http://ftp.heanet.ie/mirrors/openstreetmap.org/";
28# number of seconds osc.gz files run behind
29use constant OSCDELAY => 300;
30# seconds to wait if within OSCDELAY
31use constant WAITDELAY => 59;
32# seconds to wait if error fetching osc file
33use constant WAITFAIL => 62;
34# tiles to garbagecollect per osc file processed.  0 disables garbagecollection
35use constant GCCOUNT => 20;
36# Number of times a string is repeated to get common string handling
37use constant THRESH => 32;
38
39# which tags compression to use for new tiles.  0 is old uncompressed version.
40use constant TAGSVERSION => 1;
41
42use ptdb;
43
441;
45
Note: See TracBrowser for help on using the repository browser.