Porównaj commity

...

5 Commity

Autor SHA1 Wiadomość Data
dependabot[bot] 568092dc32
Bump org.xerial:sqlite-jdbc from 3.45.0.0 to 3.45.2.0 (#849) 2024-03-21 05:41:00 -04:00
zstadler 696f63671c
Remove quoting side-bars from planetiler-custommap/README.md (#844) 2024-03-20 08:45:30 -04:00
dependabot[bot] 2cb1a99025
Bump jackson.version from 2.16.1 to 2.17.0 (#847) 2024-03-20 07:59:09 -04:00
dependabot[bot] 4920b34447
Bump org.commonmark:commonmark from 0.21.0 to 0.22.0 (#845) 2024-03-19 06:05:49 -04:00
dependabot[bot] 3a8e7c4420
Bump org.apache.maven.plugins:maven-assembly-plugin (#846) 2024-03-19 06:05:30 -04:00
4 zmienionych plików z 44 dodań i 43 usunięć

Wyświetl plik

@ -67,7 +67,7 @@
<dependency>
<groupId>org.xerial</groupId>
<artifactId>sqlite-jdbc</artifactId>
<version>3.45.0.0</version>
<version>3.45.2.0</version>
</dependency>
<dependency>
<groupId>org.msgpack</groupId>

Wyświetl plik

@ -132,7 +132,7 @@ to `france.osm.pbf`. Planetiler searches for argument values in this order:
3. Environmental variables with "PLANETILER_" prefix: `PLANETILER_AREA=france java ...`
4. Default value from the config
Argument values are available from the [`args` variable](#root-context) in
Argument values are available from the [`args` variable](#1-root-context) in
an [inline script expression](#inline-script-expression) or the [`arg_value` expression](#argument-value-expression).
### Built-in arguments
@ -466,44 +466,45 @@ value: "${ 8 * 24 - 2 }"
#### Inline Script Contexts
Scripts are parsed and evaluated inside a "context" that defines the variables available to that script. Contexts are
nested, so each child context can also access the variables from its parent.
Scripts are parsed and evaluated inside a "context" that defines the variables available to that script.
> ##### root context
>
> Available variables:
> - `args` - a map from [argument](#arguments) name to value, see also [built-in arguments](#built-in-arguments) that
>
>> are always available.
>>
>> ##### process feature context
>>
>> Context available when processing an input feature, for example testing whether to include it from `include_when`.
>> Available variables:
>>
>> - `feature.tags` - map with key/value tags from the input feature
>> - `feature.id` - numeric ID of the input feature
>> - `feature.source` - string source ID this feature came from
>> - `feature.source_layer` - optional layer within the source the feature came from
>> - `feature.osm_changeset` - optional OSM changeset ID for this feature
>> - `feature.osm_version` - optional OSM element version for this feature
>> - `feature.osm_timestamp` - optional OSM last modified timestamp for this feature
>> - `feature.osm_user_id` - optional ID of the OSM user that last modified this feature
>> - `feature.osm_user_name` - optional name of the OSM user that last modified this feature
>>
>>> ##### post-match context
>>>
>>> Context available after a feature has matched, for example computing an attribute value. Adds variables:
>>>
>>> - `match_key` - string tag that triggered a match to include the feature in this layer
>>> - `match_value` - the tag value associated with that key
>>>
>>>> ##### configure attribute context
>>>>
>>>> Context available after the value of an attribute has been computed, for example: set min zoom to render an
>>>> attribute. Adds variables:
>>>>
>>>> - `value` the value that was computed for this key
**_Notice_**: Contexts are nested, so each child context can also access the variables from its parent.
##### 1. Root Context
Available variables:
- `args` - a map from [argument](#arguments) name to value, see also [built-in arguments](#built-in-arguments) that are always available.
##### 2. Process Feature Context
Context available when processing an input feature, for example testing whether to include it from `include_when`.
Additional variables, on top of the root context:
- `feature.tags` - map with key/value tags from the input feature
- `feature.id` - numeric ID of the input feature
- `feature.source` - string source ID this feature came from
- `feature.source_layer` - optional layer within the source the feature came from
- `feature.osm_changeset` - optional OSM changeset ID for this feature
- `feature.osm_version` - optional OSM element version for this feature
- `feature.osm_timestamp` - optional OSM last modified timestamp for this feature
- `feature.osm_user_id` - optional ID of the OSM user that last modified this feature
- `feature.osm_user_name` - optional name of the OSM user that last modified this feature
##### 3. Post-Match Context
Context available after a feature has matched, for example computing an attribute value.
Additional variables, on top of the process feature context:
- `match_key` - string tag that triggered a match to include the feature in this layer
- `match_value` - the tag value associated with that key
##### 4. Configure Attribute Context
Context available after the value of an attribute has been computed, for example: set min zoom to render an
attribute.
Additional variable, on top of the post-match context:
- `value` the value that was computed for this key
For example:
@ -600,7 +601,7 @@ include_when:
When a feature matches a boolean expression in the `include_when` field, the first key that triggered the match is
available to other expressions as `match_key` and its value is available as `match_value`
(See [Post-Match Context](#post-match-context)):
(See [Post-Match Context](#3-post-match-context)):
```yaml
include_when:

Wyświetl plik

@ -90,7 +90,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<version>3.7.0</version>
<version>3.7.1</version>
<dependencies>
<dependency>
<groupId>com.onthegomap.planetiler</groupId>

Wyświetl plik

@ -20,7 +20,7 @@
<maven.compiler.source>21</maven.compiler.source>
<maven.compiler.target>21</maven.compiler.target>
<maven.source.excludeResources>true</maven.source.excludeResources>
<jackson.version>2.16.1</jackson.version>
<jackson.version>2.17.0</jackson.version>
<junit.version>5.10.2</junit.version>
<sonar.host.url>https://sonarcloud.io</sonar.host.url>
<sonar.organization>onthegomap</sonar.organization>
@ -103,7 +103,7 @@
<dependency>
<groupId>org.commonmark</groupId>
<artifactId>commonmark</artifactId>
<version>0.21.0</version>
<version>0.22.0</version>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>