This file contains hidden or 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
| # Add in _raster_attributes object | |
| cdef class DatasetReader: | |
| cdef public object _crs_wkt | |
| cdef public object _transform | |
| cdef public object _block_shapes | |
| cdef public object _raster_attributes |
This file contains hidden or 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
| import sys | |
| import pandas as pd | |
| from osgeo import gdal | |
| def rat_to_df(in_rat): | |
| """ | |
| Given a GDAL raster attribute table, convert to a pandas DataFrame | |
| Parameters |
NewerOlder