Skip to content

Commit

Permalink
Add testing for the bounding box method for a raster
Browse files Browse the repository at this point in the history
  • Loading branch information
Doruk Ozturk committed Dec 28, 2017
1 parent ed97833 commit f835517
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -40,6 +40,7 @@ htmlcov/
.cache
nosetests.xml
coverage.xml
tests/data/output/

# Translations
*.mo
Expand Down
9 changes: 9 additions & 0 deletions tests/cases/test_processors.py
Expand Up @@ -261,6 +261,15 @@ def test_distance(self):
if process:
process.purge()

def test_raster_bbox(self):
raster_io = RasterFileIO(
uri=os.path.join(testfile_path,
'satellite_test_data',
'LC81070352015218LGN00_B5.TIF'))

bbox = raster_io.get_bbox()
self.assertEquals(bbox, [307485.0, 3870285.0, 540015.0, 4107015.0])

def test_subset_raster(self):
"""
Test SubsetProcess for vector & raster inputs
Expand Down

0 comments on commit f835517

Please sign in to comment.