{{ message }}

Instantly share code, notes, and snippets.

# daveluo/opencitiesaichallenge-pystac-starter.ipynb Secret

Last active Nov 12, 2020
opencitiesaichallenge-pystac-starter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters

### crikeli commented Feb 22, 2020

Hey Dave, Thanks a lot for this gist -- it's super helpful! I am having issues with In [20] though... There seems to be a mismatch of the crs values(the win_box_gdf) seems to have a type attribute (+type=crs) which scene_labels_gdf does not seem to have. Any ideas on how to solve this? I used the "to_crs" method on both data frames to no avail.

### daveluo commented Feb 23, 2020

hi @crikeli, thanks for your interest and flagging this issue. I'm pretty sure it's because the new geopandas 0.7.0 release which just came out updated the crs type and broke using dicts for crs (i.e. {'init':'epsg:4326'}). Try to update the crs types used to be a pyproj.CRS object per the gpd release note.

I'll aim to fix the notebook to work with 0.7.0 on Monday but if you aren't able to fix the type and want to successfully run through everything in the meantime, pip install geopandas==0.6.3 should work.

### crikeli commented Feb 24, 2020

Fantastic, thanks for this - it worked. Yeah, I tried following the new geo-pandas docs to figure it out, but to no avail.
I imagine it has something to do with pyproj as you mentioned. Thanks again for your work!

### daveluo commented Feb 27, 2020 • edited

@crikeli, i've updated gist which should now work with the latest geopandas update. Mainly changed the crs from a dict to pyproj's CRS.from_epsg(4326) Let me know if that works or you run into any more issues.

### crikeli commented Feb 28, 2020

fantastic! Works great!! Thanks

### Akshaypatil7 commented May 11, 2020

@daveluo, I am getting JSON decode error while accessing train_tier_1/catalog.json file. Can someone help me on this

### Hsengiv2000 commented May 29, 2020

@daveluo, I am getting JSON decode error while accessing train_tier_1/catalog.json file. Can someone help me on this

did you manage to fix this? I have the same issue

### Hsengiv2000 commented May 29, 2020

@daveluo, I am getting JSON decode error while accessing train_tier_1/catalog.json file. Can someone help me on this

did you manage to fix this?