We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
You should be able to cut out a bunch of the if statements this way.
Add before the function definitions:
polygon_keys = { 'building', 'landuse', 'amenity', 'harbour', 'historic', 'leisure', 'man_made', 'military', 'natural', 'office', 'place', 'power', 'public_transport', 'shop', 'sport', 'tourism', 'waterway', 'wetland', 'water', 'aeroway' }
then replace the if statements in filter_tags_way with:
for i,k in ipairs(polygon_keys) do if keyvalues[k] then poly=1 break end end
The text was updated successfully, but these errors were encountered:
Cleaned up lua script for tagtransform
75c9198
Replaced lists of if-statements with tables over which to iterate This was suggested in #53 by systemed
Thanks for the suggestion. I have cleaned up the style.lua which is in the repository a bit according to this.
I think this might have made processing slower though (~10%). I haven't really done many benchmarks though.
Sorry, something went wrong.
No branches or pull requests
You should be able to cut out a bunch of the if statements this way.
Add before the function definitions:
then replace the if statements in filter_tags_way with:
The text was updated successfully, but these errors were encountered: