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

read features and geometries #64

Closed
iwpnd opened this issue Jun 3, 2022 · 2 comments
Closed

read features and geometries #64

iwpnd opened this issue Jun 3, 2022 · 2 comments

Comments

@iwpnd
Copy link

iwpnd commented Jun 3, 2022

Hi again 👋

if i understand it correctly rgis requires input to be of type FeatureCollection. Given the use case #62 more often than not will I receive a single feature, that i have to put in the features array of a feature collection to be able to use rgis.

So this will fail if the request does not return a feature collection:

curl -s https://gist.githubusercontent.com/iwpnd/78c4c376addbf897453db23786bea38c/raw/6c1ce202cae8a16cb5f85367c3ba5ab328384a07/test-feature.geojson | rgis

Do you think it's possible to add a switch case on the type to let rgis do that for you?

@frewsxcv
Copy link
Owner

frewsxcv commented Jun 4, 2022

georust/geojson#195

@frewsxcv
Copy link
Owner

fixed in 7ad54d4

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