Skip to content

Commit

Permalink
Fixed gdal build errors against gdal 2.x.
Browse files Browse the repository at this point in the history
  • Loading branch information
David Burken committed May 29, 2016
1 parent c899adf commit 6eca964
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
12 changes: 2 additions & 10 deletions gdal/src/ossimGdalDataset.cpp
Expand Up @@ -7,10 +7,7 @@
// Description: A gdal data set from an ossim image handler.
//
//----------------------------------------------------------------------------
// $Id: ossimGdalDataset.cpp 23003 2014-11-24 17:13:40Z dburken $


#include <fstream>
// $Id$

#include <ossimGdalDataset.h>
#include <ossimGdalType.h>
Expand All @@ -19,6 +16,7 @@
#include <ossim/base/ossimTrace.h>
#include <ossim/imaging/ossimImageHandler.h>
#include <ossim/imaging/ossimImageHandlerRegistry.h>
#include <fstream>

static GDALDriver *poOssimGdalDriver = 0;

Expand Down Expand Up @@ -226,12 +224,6 @@ ossimGdalDatasetRasterBand::ossimGdalDatasetRasterBand(ossimGdalDataset* ds,
if (nRasterXSize % nBlockXSize) ++nBlocksPerRow;
if (nRasterYSize % nBlockYSize) ++nBlocksPerColumn;

nSubBlocksPerRow = 0;
nSubBlocksPerColumn = 0;

bSubBlockingActive = FALSE;
papoBlocks = 0;

nBlockReads = 0;
bForceCachedIO = false;
}
Expand Down
2 changes: 1 addition & 1 deletion png/src/ossimPngWriter.h
Expand Up @@ -36,7 +36,7 @@ class ossimPngWriter : public ossimImageFileWriter
/** @return "ossim png writer" */
virtual ossimString getLongName() const;

/** @return "ossimPngReader" */
/** @return "ossimPngWriter" */
virtual ossimString getClassName() const;

/**
Expand Down

1 comment on commit 6eca964

@epifanio
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice to know that this commit fixes the build of ossim_gdal_pluigin .. if using the last ossim SVN version :) Thanks!!!

Please sign in to comment.