Screen input shapes to prevent GDAL crashes.

Add support for Python geo interface, too.

Closes #146.