Skip to content
This repository has been archived by the owner on Jul 2, 2019. It is now read-only.

Commit

Permalink
Merge pull request #38 from dlindenbaum/importErrorCleanup
Browse files Browse the repository at this point in the history
updated evaluateScene.py
  • Loading branch information
dlindenbaum authored Jul 15, 2017
2 parents 42f2328 + f26d537 commit 38eda45
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions python/evaluateScene.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,12 +304,14 @@ def combineGeoJsonAndConvertToWGS84(baseName, rasterLocationList,
# [GeoWKT, PixWKT])
geomList = gT.pixelGeomToGeoGeom(geom, rasterName, targetSR='', geomTransform='', breakMultiPolygonPix=False)
#print geomList[0][0].ExportToWkt()
outFeature.SetGeometry(geomList[0][0])
if geomList:
outFeature.SetGeometry(geomList[0][0])

# Add new feature to output Layer
outLayer.CreateFeature(outFeature)
outFeature = None
inFeature = None
outLayer.CreateFeature(outFeature)
outFeature = None
inFeature = None




Expand Down

0 comments on commit 38eda45

Please sign in to comment.