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

Add option to truncate fields that are too long #24

Open
apple314159 opened this issue Sep 11, 2020 · 0 comments
Open

Add option to truncate fields that are too long #24

apple314159 opened this issue Sep 11, 2020 · 0 comments

Comments

@apple314159
Copy link

In processing panama.osm.pbf, I get the following error:

$ osm-export-tool -v panama.osm.pbf panama.gpkg
Warning 1: Value of field 'addr:street' has 86 characters, whereas maximum allowed is 80.
Warning 1: Value of field 'addr:housenumber' has 100 characters, whereas maximum allowed is 80.
Traceback (most recent call last):
  File "/usr/bin/osm-export-tool", line 6, in <module>
    main()
  File "/usr/lib/python3.8/site-packages/osm_export_tool/cmd.py", line 58, in main
    h.apply_file(parsed.osm_file, locations=True, idx='sparse_file_array')
  File "/usr/lib/python3.8/site-packages/osm_export_tool/tabular.py", line 290, in way
    wkb = fab.create_linestring(w)
osmium._osmium.InvalidLocationError: invalid location

There should be an option to truncate fields. The verbose option should also display the contents of the field.

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

1 participant