Skip to content

Instantly share code, notes, and snippets.

View micahcochran's full-sized avatar

Micah Cochran micahcochran

View GitHub Profile
@micahcochran
micahcochran / geosshim.py
Created December 31, 2015 17:16
geosshim.py Attempted Shapely support for Basemap
# Note: This code does NOT work!!!
# Attempt at a shim for Shapely to work with basemap.
# This is to try to use Shapely for the code that need libgeos.
# The code is minimal on purpose.
# add this file into the lib/mpl_toolkits/basemap folder
# in __init__.py change this line:
# import _geoslib
@micahcochran
micahcochran / geopandas_from_features_test.py
Created September 17, 2015 19:48
Geopandas from_feature Feature & FeatureCollection test
# This is a test for from_features function, which
# in geopandas reads the __geo_interface__ from other libraries.
# This test currently fails.
# 2015-09-17 I'm using a recent development version of geopandas
import geopandas as gpd
class geoEmptyClass:
pass