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

Doesn't handle spaces in arguments correctly #46

Open
stevage opened this issue Feb 13, 2020 · 2 comments
Open

Doesn't handle spaces in arguments correctly #46

stevage opened this issue Feb 13, 2020 · 2 comments

Comments

@stevage
Copy link

stevage commented Feb 13, 2020

I'm not certain if this is logbt's fault or my knowledge of Bash quoting is off, but, here's the command I'm trying to debug:

tippecanoe --output=mbtiles/parcels.mbtiles --force --read-parallel --minimum-zoom=13 --maximum-zoom=15 --generate-ids --simplification=10 --simplify-only-low-zooms --attribute-type='ATTOM ID:int' --include='ATTOM ID' --include=APN --include=CountyFIPS --coalesce-smallest-as-needed --base-zoom=14 --accumulate-attribute=APN:comma --accumulate-attribute='ATTOM ID:comma' --layer=parcels data/parcels.json

when I run with logbt:

~/logbt/logbt -- tippecanoe --output=mbtiles/parcels.mbtiles --force --read-parallel --minimum-zoom=13 --maximum-zoom=15 --generate-ids --simplification=10 --simplify-only-low-zooms --attribute-type='ATTOM ID:int' --include='ATTOM ID' --include=APN --include=CountyFIPS --coalesce-smallest-as-needed --base-zoom=14 --accumulate-attribute=APN:comma --accumulate-attribute='ATTOM ID:comma' --layer=parcels data/parcels.json
[logbt] using corefile location: /tmp/logbt-coredumps
[logbt] using core_pattern: core.%p.%E
-TATTOM option must be in the form -Tname:type
[logbt] saw 'tippecanoe' exit with code:1 (HUP)

That is, logbt seems to be failing to quote the arguments that contain spaces (ie, --include='ATTOM ID').

@stevage
Copy link
Author

stevage commented Feb 13, 2020

Hmm, this issue was apparently previously addressed in #28? I'm using v2.0.3 on Ubuntu 18.04.2.

@springmeyer
Copy link
Contributor

Yes, this must still be buggy in logbt. Not sure how #28 did not fully fix this. Thanks for ticketing. A workaround for this could be to put your entire tippecanoe command in a new bash script. Then call that with logbt. Something like:

logbt -- ./run_tippecanoe.sh

where ./run_tippecanoe.sh has all your correct options listed out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants