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

CSV error message handling #161

Merged
merged 14 commits into from
Mar 13, 2017
Merged

CSV error message handling #161

merged 14 commits into from
Mar 13, 2017

Conversation

who8mycakes
Copy link
Contributor

@who8mycakes who8mycakes commented Jan 30, 2017

In tandem with error message revisions made in Mapnik: mapnik/mapnik@7c6f335,

This PR's objectives are to:

  • Truncating error messages to 256 characters.
  • Make sure all datasource creation steps in mapnik-omnivore are wrapped in a try/catch statement.
  • Adding valid and invalid test fixtures + tests that assert error/no error based on those fixtures

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling de39b21 on shortererror into ** on master**.

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling d684f71 on shortererror into ** on master**.

@mapsam mapsam changed the base branch from master to 8.3.0 March 13, 2017 20:42
@mapsam mapsam merged commit a434068 into 8.3.0 Mar 13, 2017
@mapsam mapsam deleted the shortererror branch March 13, 2017 21:03
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.2%) to 95.085% when pulling d55951b on shortererror into 7cf3c91 on 8.3.0.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.2%) to 95.085% when pulling 77f5213 on shortererror into dadb45f on 8.3.0.

mapsam added a commit that referenced this pull request Mar 24, 2017
…ed deps (#165)

* update deps

* redefine fileinfo.type

* CSV error message handling (#161)

* add test for bad header csv

* add try catch around new mapnik.Datasource

* add fixture with empty header column

* add substr to shorten message

* add try/catch statement

* add slice to truncate error message

* add tests for empty and wrong headers

* add fixture with empty header column

* add fixture without detectable headers

* add valid csv fixture

* return nice error for csv column headers

* semicolon

* Feature-specific zoom calculations (#163)

* start calculating latitude and longitude deltas between source and vector tile

* start calculating more data-specific zoom levels

* set smallest max zoom for point files

* constants

* stick with z10 for now

* update expected zooms

* update sm version

* update appveyor node versions

* pin node versions

* update changelog [skip ci]

* no more error slicing
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

Successfully merging this pull request may close these issues.

None yet

3 participants