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

Why my geometry has nothing to plot #24

Open
xigrug opened this issue Mar 18, 2019 · 4 comments
Open

Why my geometry has nothing to plot #24

xigrug opened this issue Mar 18, 2019 · 4 comments

Comments

@xigrug
Copy link

xigrug commented Mar 18, 2019

I have download the scipy2018-geospatial-data-master/scipy2018-geospatial-data-master/08-clustering.ipynb

but thre is something wrong, POLYGON ((inf ...inf):
district = gpd.read_file('./data/berlin-districts.geojson').to_crs(epsg=3857)
district.head(10)

district	district_group	median_price	geometry
0	Blankenfelde/Niederschönhausen	Pankow	37.5	(POLYGON ((inf inf, inf inf, inf inf, inf inf,...
1	Helmholtzplatz	Pankow	58.0	(POLYGON ((inf inf, inf inf, inf inf, inf inf,...
2	Wiesbadener Straße	Charlottenburg-Wilm.	50.0	(POLYGON ((inf inf, inf inf, inf inf, inf inf,...
3	Schmöckwitz/Karolinenhof/Rauchfangswerder	Treptow - Köpenick	99.0	(POLYGON ((inf inf, inf inf, inf inf, inf inf,...
4	Müggelheim	Treptow - Köpenick	25.0	(POLYGON ((inf inf, inf inf, inf inf, inf inf,...
5	Biesdorf	Marzahn - Hellersdorf	35.0	(POLYGON ((inf inf, inf inf, inf inf, inf inf,...
6	Nord 1	Reinickendorf	31.0	(POLYGON ((inf inf, inf inf, inf inf, inf inf,...
7	West 5	Reinickendorf	50.0	(POLYGON ((inf inf, inf inf, inf inf, inf inf,...
8	Frankfurter Allee Nord	Friedrichshain-Kreuzberg	42.0	(POLYGON ((inf inf, inf inf, inf inf, inf inf,...
9	Buch	Pankow	57.5	(POLYGON ((inf inf, inf inf, inf inf, inf inf,...

and the plot is nothing

@jorisvandenbossche
Copy link
Member

What version of geopandas and fiona are you using?

@xigrug
Copy link
Author

xigrug commented Mar 18, 2019 via email

@jorisvandenbossche
Copy link
Member

Hmm, with exactly the same versions (on linux), I see:

In [4]: geopandas.read_file("scipy2018-geospatial-data/data/berlin-districts.geojson").to_crs(epsg=3857).head()                                                                                                     
Out[4]: 
                                    district        district_group  median_price                                           geometry
0             Blankenfelde/Niederschönhausen                Pankow          37.5  (POLYGON ((1493006.880445722 6912074.798336806...
1                             Helmholtzplatz                Pankow          58.0  (POLYGON ((1493245.549433984 6900059.69597819,...
2                         Wiesbadener Straße  Charlottenburg-Wilm.          50.0  (POLYGON ((1481381.45206371 6885170.697768607,...
3  Schmöckwitz/Karolinenhof/Rauchfangswerder    Treptow - Köpenick          99.0  (POLYGON ((1526159.828554794 6872101.043604896...
4                                 Müggelheim    Treptow - Köpenick          25.0  (POLYGON ((1529265.085750472 6874326.842288786...

What version of pyproj do you have? (I have 1.9.6)

@xigrug
Copy link
Author

xigrug commented Mar 19, 2019 via email

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