-
-
Notifications
You must be signed in to change notification settings - Fork 117
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix handling of string typed null values (#987)
* Added unit test for handling of missing (e.g. null) values - When missing item is NOT typed, than it is properly handld as null, e.g. it is NOT included in the generated feature - When missing item is typed to 'string', it gets converted into "null" string value hence generated featire has attribute non_existent_typed=null * Fixed handling of missing or null values for attributes with type 'string' * clean-up: removed unused import
- Loading branch information
1 parent
b0118d9
commit d2efc1a
Showing
4 changed files
with
34 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
planetiler-custommap/src/test/resources/validSchema/tag_attribute_null.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
schema_name: Test Case Schema | ||
schema_description: Test case tile schema | ||
attribution: Test attribution | ||
sources: | ||
osm: | ||
type: osm | ||
url: geofabrik:rhode-island | ||
layers: | ||
- id: testLayer | ||
features: | ||
- source: | ||
- osm | ||
geometry: polygon | ||
include_when: | ||
natural: water | ||
attributes: | ||
- key: non_existent | ||
- key: non_existent_typed | ||
type: string |