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

Could not parse JSON error: Empty FeatureCollection #13

Open
mazzma12 opened this issue Jun 18, 2018 · 0 comments
Open

Could not parse JSON error: Empty FeatureCollection #13

mazzma12 opened this issue Jun 18, 2018 · 0 comments

Comments

@mazzma12
Copy link

mazzma12 commented Jun 18, 2018

Thank you for your contribution, the tool is pretty cool and simple.

I tried to reproduce an example using geopandas as in the README but I got an error message once the browser opens: "Could not parse JSON" on the top left, and an empty FeatureCollection on the right.

import geopandas as gpd
import geojsonio

gdf = gpd.read_file(gpd.datasets.get_path('naturalearth_lowres')) 
geojsonio.display(gdf.to_json())
geojsonio.display(gdf.iloc[:2].to_json()) # Worked

After investigation, I found that in fact the problem depends on the size of the URL request, as the geojson loaded is big.

I manage to get it worked if I take the first 4 rows of the GeoDataFrame, but it can't make it above 7.
I bet it is a restriction on geojson.io side, but I wonder if you had a solution to bypass ?
Maybe login or run it local somehow, I am not sure.

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