-
-
Notifications
You must be signed in to change notification settings - Fork 113
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
Parquet/no-build-tool java profile usability improvements #914
Merged
Conversation
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
msbarry
changed the title
Parquet usability improvements
Parquet/no-build-tool java profile usability improvements
Jun 11, 2024
Full logs: https://github.com/onthegomap/planetiler/actions/runs/9465725196 |
Quality Gate passedIssues Measures |
bdon
added a commit
to protomaps/basemaps
that referenced
this pull request
Jun 13, 2024
Since onthegomap/planetiler#914 the registerSourceHandler is called implicitly
bdon
added a commit
to protomaps/basemaps
that referenced
this pull request
Jun 13, 2024
* Fix build Since onthegomap/planetiler#914 the registerSourceHandler is called implicitly * fix build: explicit source handling * rename processFeature -> processOsm
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Improvements and bug fixes found while using planetiler no-build-tool java profiles in https://github.com/onthegomap/planetiler-examples
improvements:
--tests spec.yaml
to run the profile against a set of example test case featuresfeatures.anyGeometry(layer)
to FeatureCollector API that creates a line, point, or polygon vector tile feature based on the geometry type of the source featureinheritAttrsFromSource
andinheritAttrsFromSourceWithMinzoom
to FeatureCollector APIForwardingProfile
handlers also return a boolean expression fromfilter()
method that limits the features they are called with (and skip entire parquet files that are not of interest)Expression.matchSource
andExpression.matchSourceLayer
boolean expressions that generate optimized indexes for matching features at runtimeExpression.matchField
andExpression.matchAny
handle structured attributes, for example:matchField("names.primary", "Massachusetts Turnpike")
ForwardingProfile
skip or include only certain layers automatically with--only-layers
and--exclude-layers
option.PlanetilerRunner#run
so that profiles don't need to handle themOSM_ATTRIBUTION
constant toProfile
with default recommended openstreetmap attributionname
implementation toProfile
so profiles only need to implementprocessFeature
method - and they can use lambda method syntaxDistributor
utility when reading parquet files to spread features from final row groups across other threads as they finishfixes:
setAttrWithMinSize
work correctly for partial-length line featuresStruct#rawValue
was including nested structs for maps and lists, changed to return raw objects