Skip to content

Commit

Permalink
Important changes (some may cause problems?)
Browse files Browse the repository at this point in the history
Eliminated from gdalconst import *
Added import of LineString
Allowed kwargs for plot function
  • Loading branch information
ozak committed Dec 21, 2016
1 parent 785ab5c commit 83152e4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions georasters/georasters.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@
from __future__ import division
import numpy as np
from osgeo import gdal, gdalnumeric, ogr, osr, gdal_array
from gdalconst import *
from gdalconst import GA_ReadOnly
from skimage.measure import block_reduce
from skimage.transform import resize
import skimage.graph as graph
import matplotlib.pyplot as plt
import pandas as pd
from fiona.crs import from_string
import geopandas as gp
from shapely.geometry import Polygon
from shapely.geometry import Polygon, LineString
from affine import Affine
from rasterstats import zonal_stats
import pysal
Expand Down Expand Up @@ -481,13 +481,13 @@ def to_geopandas(self):
df = to_geopandas(self)
return df

def plot(self):
def plot(self, **kwargs):
'''
geo.plot()
Returns plot of raster data
'''
plt.matshow(self.raster)
plt.matshow(self.raster, **kwargs)

def union(self, other):
'''
Expand Down

0 comments on commit 83152e4

Please sign in to comment.