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

geo2dict replacement function #47

Open
NiharikaPatel opened this issue Sep 21, 2022 · 1 comment
Open

geo2dict replacement function #47

NiharikaPatel opened this issue Sep 21, 2022 · 1 comment

Comments

@NiharikaPatel
Copy link

Hello,

The older version of the package had a geo2dict function to convert the continents json into a dictionary.
What is the alternative way to doing that with the new updates to the package ?

GeoJSON.read(read(joinpath(@__DIR__,"..","data","continents","continents.json")))
 conts = geo2dict(continents)
 coords = conts["features"][id]["geometry"]["coordinates"]

Thanks

@rafaqz
Copy link
Member

rafaqz commented Sep 24, 2022

It's always better to include a link to the file you are using so we can demonstrate the fix on your own data (please post if you can)

But maybe you can just do conts[i].geometry.coordinates in your case.

Maybe also explain why you need this as a Dict? Just to make it easier to explore?

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