Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Permit post-process merging in custommap schemas #626

Merged
merged 19 commits into from
Aug 7, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Rename "post_process" to "tile_post_process"
  • Loading branch information
zhibek committed Jul 19, 2023
commit 36cfe4d5444c1896783812123e36aa26361812ff
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
public record FeatureLayer(
String id,
Collection<FeatureItem> features,
@JsonProperty("post_process") PostProcess postProcess
@JsonProperty("tile_post_process") PostProcess postProcess
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The change looks good! Only thing left is to mention these features in planetiler.schema.json and planetiler-custommap/README.md

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change pushed.

) {}
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ layers:
- usage: main
exclude_when:
service: __any__
post_process:
tile_post_process:
merge_line_strings:
min_length: 1
tolerance: 5
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ void testFeaturePostProcessorMergeLineStrings() throws GeometryException {
features:
- source: osm
geometry: point
post_process:
tile_post_process:
merge_line_strings:
min_length: 1
tolerance: 5
Expand Down Expand Up @@ -231,7 +231,7 @@ void testFeaturePostProcessorMergePolygons() throws GeometryException {
features:
- source: osm
geometry: point
post_process:
tile_post_process:
merge_polygons:
min_area: 3
""";
Expand Down Expand Up @@ -1169,7 +1169,7 @@ void testSchemaPostProcessWithMergeLineStrings() {
features:
- source: osm
geometry: point
post_process:
tile_post_process:
merge_line_strings:
min_length: 1
tolerance: 5
Expand Down Expand Up @@ -1199,7 +1199,7 @@ void testSchemaPostProcessWithMergePolygons() {
features:
- source: osm
geometry: point
post_process:
tile_post_process:
merge_polygons:
min_area: 3
""";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ layers:
attributes:
- key: water
- value: wet
post_process:
tile_post_process:
merge_everything:
min_length: 1