Skip to content

document and test GeoJSON.read(path) #77

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

Merged
merged 2 commits into from
Oct 10, 2023
Merged

document and test GeoJSON.read(path) #77

merged 2 commits into from
Oct 10, 2023

Conversation

visr
Copy link
Member

@visr visr commented Aug 15, 2023

Fixes #49.

This needs a JSON3 release with quinnj/JSON3.jl#243, so I require that in the compat.

One thing I don't like so much about this is the error message if you try to read a file that doesn't exist, but that's really a JSON3 issue, and a consequence of tring to figure out if a string represents a path or JSON. This is the error you get:

ERROR: ArgumentError: invalid JSON at byte position 1 while parsing type GeoJSON.GeoJSONT{3, Float32}: ExpectedOpeningObjectChar
your.geojson

@visr visr merged commit 9bb34c6 into main Oct 10, 2023
@visr visr deleted the readfile branch October 10, 2023 18:55
@visr visr mentioned this pull request Nov 12, 2023
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.

Provide a high-level GeoJSON.Table(fname)
1 participant