You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ Alternatively there's a standalone mode, where the MapCSS style is compiled into
10
10
11
11
Since version 0.10 you don't even need a local database import (a local database is needed nonetheless), as the new default data source is Overpass API. Alternatively, osm2pgsql and osmosis pgsnapshot are supported. See [doc/database.md](doc/database.md) for details.
12
12
13
-
Stable version: [0.10.4](https://github.com/plepe/pgmapcss) ([CHANGELOG](https://github.com/plepe/pgmapcss/blob/master/CHANGELOG.creole)), development versions: [0.11-dev](https://github.com/plepe/pgmapcss/tree/branch-0.11) ([open issues](https://github.com/plepe/pgmapcss/milestones/Version%200.11)) resp. [NG-dev](https://github.com/plepe/pgmapcss/tree/pgmapcss-NG)([open issues](https://github.com/plepe/pgmapcss/milestones/pgmapcss%20NG)).
13
+
Stable version: [0.10.5](https://github.com/plepe/pgmapcss) ([CHANGELOG](https://github.com/plepe/pgmapcss/blob/master/CHANGELOG.creole)), development versions: [0.11-dev](https://github.com/plepe/pgmapcss/tree/branch-0.11) ([open issues](https://github.com/plepe/pgmapcss/milestones/Version%200.11)) resp. [NG-dev](https://github.com/plepe/pgmapcss/tree/pgmapcss-NG)([open issues](https://github.com/plepe/pgmapcss/milestones/pgmapcss%20NG)).
Copy file name to clipboardExpand all lines: doc/config_options.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,3 +33,4 @@ Advances options:
33
33
| db.overpass-timeout | overpass only: specify timeout in seconds for queries to the Overpass API (make sure that the Overpass server accepts timeouts that long, e.g. by adding a "Timeout" parameter to Apache2). As a render job usually needs several queries, the total rendering time might be a multiple of this value. | 180
34
34
| db.overpass-memory | overpass only: Sets the 'maxsize' parameter for an overpass query, which indicates the maximum allowed memory for the query in bytes RAM on the server. | 536870912 (512 MB)
35
35
| db.overpass-profiler | overpass only: prints all queries, their duration (incl. parsing json) and the count of returned features. | true/**false**
36
+
| db.overpass-blocksize | overpass only: When reading from Overpass API read in blocks of specified size. Reduces memory impact. | 67108864 (64 MB)
Copy file name to clipboardExpand all lines: doc/database.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,6 +30,7 @@ Behaviour can be influenced with the following config options:
30
30
| db.overpass-timeout | specify timeout in seconds for queries to the Overpass API (make sure that the Overpass server accepts timeouts that long, e.g. by adding a "Timeout" parameter to Apache2). As a render job usually needs several queries, the total rendering time might be a multiple of this value. | 180
31
31
| db.overpass-memory | Sets the 'maxsize' parameter for an overpass query, which indicates the maximum allowed memory for the query in bytes RAM on the server. | 536870912 (512 MB)
32
32
| db.overpass-profiler | overpass only: prints all queries, their duration (incl. parsing json) and the count of returned features. | true/**false**
33
+
| db.overpass-blocksize | overpass only: When reading from Overpass API read in blocks of specified size. Reduces memory impact. | 67108864 (64 MB)
ifnotre.search("Query timed out in \"print\"", data['remark']):
38
116
raiseException('Error in Overpass API (after {} features): {}\nFailed query was:\n{}'.format(count, data['remark'], query))
39
117
118
+
f.close()
119
+
40
120
# START db.overpass-profiler
41
-
plpy.warning('%s\nquery took %.2fs for %d features'% (query, (datetime.datetime.now() -time_start).total_seconds(), len(data['elements'])))
121
+
plpy.warning('%s\nquery took %.2fs for %d features (%.1f MB, %d blocks)'% (query, time_duration.total_seconds(), count, download_size/1024.0/1024, count_blocks))
0 commit comments