Skip to content

Commit

Permalink
make sure index grid retrieval in correct directory
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan D. Snow committed Jun 2, 2017
1 parent 99393da commit b0f62a6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions gsshapy/orm/prj.py
Original file line number Diff line number Diff line change
Expand Up @@ -1190,9 +1190,10 @@ def getIndexGrid(self, name):
if gssha_pro_card is None:
raise ValueError("#PROJECTION_FILE card not found ...")

# return gssha grid
return GDALGrid(index_map.filename,
gssha_pro_card.value.strip('"').strip("'"))
with tmp_chdir(self.project_directory):
# return gssha grid
return GDALGrid(index_map.filename,
gssha_pro_card.value.strip('"').strip("'"))

def getWkt(self):
"""
Expand Down

0 comments on commit b0f62a6

Please sign in to comment.