Changeset 7e1bd8d in osmose-backend


Ignore:
Timestamp:
Sep 18, 2013 10:41:17 PM (6 years ago)
Author:
Jocelyn Jaubert <jocelyn.jaubert@…>
Branches:
master
Children:
2e1a8d4
Parents:
07da106
git-author:
Jocelyn Jaubert <jocelyn.jaubert@…> (24/08/2013 18:00:58)
git-committer:
Jocelyn Jaubert <jocelyn.jaubert@…> (18/09/2013 22:41:17)
Message:

Limit osmosis diff to half a day only on diffs coming from Geofabrik

File:
1 edited

Legend:

Unmodified
Added
Removed
  • osmose_run.py

    r334e7f9 r7e1bd8d  
    297297            sys.stdout.write("baseUrl=" + conf.download["diff"]) 
    298298        elif line.startswith("maxInterval"): 
    299             sys.stdout.write("maxInterval=" + str(60*60*24/2)) # 1/2 day at most 
     299            if "geofabrik" in conf.download["diff"]: 
     300                # on daily diffs provided by Geofabrik, we should apply only one diff at a time 
     301                sys.stdout.write("maxInterval=" + str(60*60*24/2)) # 1/2 day at most 
     302            else: 
     303                sys.stdout.write("maxInterval=" + str(7*60*60*24)) # 7 day at most 
    300304        else: 
    301305            sys.stdout.write(line) 
Note: See TracChangeset for help on using the changeset viewer.