Skip to content

Commit

Permalink
Merge branch 'trunk' into enhance-complex-datasets-with-pf
Browse files Browse the repository at this point in the history
  • Loading branch information
jmichel-otb committed Jul 13, 2016
2 parents acd8343 + 20b0f9d commit 6371674
Show file tree
Hide file tree
Showing 33 changed files with 412 additions and 296 deletions.
1 change: 0 additions & 1 deletion gdal/frmts/raw/ace2dataset.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/******************************************************************************
* $Id$
*
* Project: ACE2 Driver
* Purpose: Implementation of ACE2 elevation format read support.
Expand Down
1 change: 0 additions & 1 deletion gdal/frmts/raw/atlsci_spheroid.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/******************************************************************************
* $Id$
*
* Project: Spheroid classes
* Purpose: Provide spheroid lookup table base classes.
Expand Down
1 change: 0 additions & 1 deletion gdal/frmts/raw/btdataset.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/******************************************************************************
* $Id$
*
* Project: VTP .bt Driver
* Purpose: Implementation of VTP .bt elevation format read/write support.
Expand Down
1 change: 0 additions & 1 deletion gdal/frmts/raw/cpgdataset.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/******************************************************************************
* $Id$
*
* Project: Polarimetric Workstation
* Purpose: Convair PolGASP data (.img/.hdr format).
Expand Down
1 change: 0 additions & 1 deletion gdal/frmts/raw/ctable2dataset.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/******************************************************************************
* $Id$
*
* Project: Horizontal Datum Formats
* Purpose: Implementation of the CTable2 format, a PROJ.4 specific format
Expand Down
1 change: 0 additions & 1 deletion gdal/frmts/raw/dipxdataset.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/******************************************************************************
* $Id$
*
* Project: GDAL
* Purpose: Implementation for ELAS DIPEx format variant.
Expand Down
1 change: 0 additions & 1 deletion gdal/frmts/raw/doq1dataset.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/******************************************************************************
* $Id$
*
* Project: USGS DOQ Driver (First Generation Format)
* Purpose: Implementation of DOQ1Dataset
Expand Down
1 change: 0 additions & 1 deletion gdal/frmts/raw/doq2dataset.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/******************************************************************************
* $Id$
*
* Project: USGS DOQ Driver (Second Generation Format)
* Purpose: Implementation of DOQ2Dataset
Expand Down
1 change: 0 additions & 1 deletion gdal/frmts/raw/ehdrdataset.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/******************************************************************************
* $Id$
*
* Project: ESRI .hdr Driver
* Purpose: Implementation of EHdrDataset
Expand Down
1 change: 0 additions & 1 deletion gdal/frmts/raw/eirdataset.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/******************************************************************************
* $Id$
*
* Project: Erdas EIR Raw Driver
* Purpose: Implementation of EIRDataset
Expand Down
1 change: 0 additions & 1 deletion gdal/frmts/raw/envidataset.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/******************************************************************************
* $Id$
*
* Project: ENVI .hdr Driver
* Purpose: Implementation of ENVI .hdr labelled raw raster support.
Expand Down
1 change: 0 additions & 1 deletion gdal/frmts/raw/fastdataset.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/******************************************************************************
* $Id$
*
* Project: EOSAT FAST Format reader
* Purpose: Reads Landsat FAST-L7A, IRS 1C/1D
Expand Down
11 changes: 3 additions & 8 deletions gdal/frmts/raw/fujibasdataset.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/******************************************************************************
* $Id$
*
* Project: eCognition
* Purpose: Implementation of FUJI BAS Format
Expand Down Expand Up @@ -34,10 +33,6 @@

CPL_CVSID("$Id$");

CPL_C_START
void GDALRegister_FujiBAS();
CPL_C_END

/************************************************************************/
/* ==================================================================== */
/* FujiBASDataset */
Expand Down Expand Up @@ -193,11 +188,11 @@ GDALDataset *FujiBASDataset::Open( GDALOpenInfo * poOpenInfo )
/* -------------------------------------------------------------------- */
/* Create band information object. */
/* -------------------------------------------------------------------- */
const int bNativeOrder =
const bool bNativeOrder =
#ifdef CPL_MSB
TRUE
true
#else
FALSE
false
#endif
;
poDS->SetBand(
Expand Down
1 change: 0 additions & 1 deletion gdal/frmts/raw/genbindataset.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/******************************************************************************
* $Id$
*
* Project: GDAL
* Purpose: Generic Binary format driver (.hdr but not ESRI .hdr!)
Expand Down
1 change: 0 additions & 1 deletion gdal/frmts/raw/gscdataset.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/******************************************************************************
* $Id$
*
* Project: GSC Geogrid format driver.
* Purpose: Implements support for reading and writing GSC Geogrid format.
Expand Down
1 change: 0 additions & 1 deletion gdal/frmts/raw/gtxdataset.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/******************************************************************************
* $Id$
*
* Project: Vertical Datum Transformation
* Purpose: Implementation of NOAA .gtx vertical datum shift file format.
Expand Down
1 change: 0 additions & 1 deletion gdal/frmts/raw/hkvdataset.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/******************************************************************************
* $Id$
*
* Project: GView
* Purpose: Implementation of Atlantis HKV labelled blob support
Expand Down
1 change: 0 additions & 1 deletion gdal/frmts/raw/idadataset.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/******************************************************************************
* $Id$
*
* Project: IDA Raster Driver
* Purpose: Implemenents IDA driver/dataset/rasterband.
Expand Down
1 change: 0 additions & 1 deletion gdal/frmts/raw/iscedataset.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/******************************************************************************
* $Id$
*
* Project: ISCE Raster Reader
* Purpose: Implementation of the ISCE raster reader
Expand Down
1 change: 0 additions & 1 deletion gdal/frmts/raw/krodataset.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/******************************************************************************
* $Id$
*
* Project: KRO format reader/writer
* Purpose: Implementation of KOLOR Raw Format
Expand Down
1 change: 0 additions & 1 deletion gdal/frmts/raw/landataset.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/******************************************************************************
* $Id$
*
* Project: eCognition
* Purpose: Implementation of Erdas .LAN / .GIS format.
Expand Down
1 change: 0 additions & 1 deletion gdal/frmts/raw/lcpdataset.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/******************************************************************************
* $Id$
*
* Project: LCP Driver
* Purpose: FARSITE v.4 Landscape file (.lcp) reader for GDAL
Expand Down
1 change: 0 additions & 1 deletion gdal/frmts/raw/loslasdataset.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/******************************************************************************
* $Id$
*
* Project: Horizontal Datum Formats
* Purpose: Implementation of NOAA/NADCON los/las datum shift format.
Expand Down
1 change: 0 additions & 1 deletion gdal/frmts/raw/mffdataset.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/******************************************************************************
* $Id$
*
* Project: GView
* Purpose: Implementation of Atlantis MFF Support
Expand Down
1 change: 0 additions & 1 deletion gdal/frmts/raw/ndfdataset.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/******************************************************************************
* $Id$
*
* Project: NDF Driver
* Purpose: Implementation of NLAPS Data Format read support.
Expand Down
1 change: 0 additions & 1 deletion gdal/frmts/raw/ntv2dataset.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/******************************************************************************
* $Id$
*
* Project: Horizontal Datum Formats
* Purpose: Implementation of NTv2 datum shift format used in Canada, France,
Expand Down
1 change: 0 additions & 1 deletion gdal/frmts/raw/pauxdataset.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/******************************************************************************
* $Id$
*
* Project: PCI .aux Driver
* Purpose: Implementation of PAuxDataset
Expand Down
1 change: 0 additions & 1 deletion gdal/frmts/raw/pnmdataset.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/******************************************************************************
* $Id$
*
* Project: PNM Driver
* Purpose: Portable anymap file format imlementation
Expand Down
1 change: 0 additions & 1 deletion gdal/frmts/raw/rawdataset.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/******************************************************************************
* $Id$
*
* Project: Generic Raw Binary Driver
* Purpose: Implementation of RawDataset and RawRasterBand classes.
Expand Down
16 changes: 9 additions & 7 deletions gdal/frmts/raw/roipacdataset.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/******************************************************************************
* $Id$
*
* Project: ROI_PAC Raster Reader
* Purpose: Implementation of the ROI_PAC raster reader
Expand Down Expand Up @@ -359,17 +358,20 @@ GDALDataset *ROIPACDataset::Open( GDALOpenInfo *poOpenInfo )

if( nBands > 1 )
{
// GDAL 2.0.[0-3] and 2.1.0 had a value of nLineOffset that was
// equal to the theoretical nLineOffset multiplied by nBands...
// GDAL 2.0.[0-3] and 2.1.0 had a value of nLineOffset that was
// equal to the theoretical nLineOffset multiplied by nBands.
VSIFSeekL( poDS->fpImage, 0, SEEK_END );
const GUIntBig nWrongFileSize = GDALGetDataTypeSizeBytes(eDataType) *
nWidth * (static_cast<GUIntBig>(nFileLength - 1) * nBands * nBands + nBands);
const GUIntBig nWrongFileSize =
GDALGetDataTypeSizeBytes(eDataType) *
nWidth * (static_cast<GUIntBig>(nFileLength - 1) *
nBands * nBands + nBands);
if( VSIFTellL( poDS->fpImage ) == nWrongFileSize )
{
CPLError(CE_Warning, CPLE_AppDefined,
"This file has been incorrectly generated by an older "
"GDAL version whose line offset computation was erroneous. "
"Taking that into account, but the file should be re-encoded ideally");
"GDAL version whose line offset computation was "
"erroneous. Taking that into account, "
"but the file should be re-encoded ideally.");
nLineOffset = nLineOffset * nBands;
}
}
Expand Down
1 change: 0 additions & 1 deletion gdal/frmts/raw/rrasterdataset.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/******************************************************************************
* $Id$
*
* Project: GDAL
* Purpose: Implements R Raster Format.
Expand Down
1 change: 0 additions & 1 deletion gdal/frmts/raw/snodasdataset.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/******************************************************************************
* $Id$
*
* Project: SNODAS driver
* Purpose: Implementation of SNODASDataset
Expand Down
Loading

0 comments on commit 6371674

Please sign in to comment.