[gdal] 09/16: Drop patches applied upstream. Refresh remaining patches.

Sebastiaan Couwenberg sebastic at moszumanska.debian.org
Sat Apr 2 16:11:18 UTC 2016


This is an automated email from the git hooks/post-receive script.

sebastic pushed a commit to branch experimental-2.1
in repository gdal.

commit 413f27ba5ee76cd23e3ff585813624ba6233e7d5
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date:   Sat Apr 2 12:10:35 2016 +0200

    Drop patches applied upstream. Refresh remaining patches.
---
 debian/changelog                                   |   1 +
 debian/patches/doc                                 |  65 --
 debian/patches/existence-typo.patch                | 537 -------------
 debian/patches/formatted-typo.patch                |  57 --
 debian/patches/gdalpaths                           |   8 +-
 debian/patches/hdf4                                |  10 +-
 debian/patches/instantiate-typo.patch              | 286 -------
 debian/patches/java.opt                            |   4 +-
 debian/patches/message-typo.patch                  |  37 -
 debian/patches/occurred-typo.patch                 | 848 ---------------------
 debian/patches/ogdi                                |   2 +-
 .../ogr-vrt-implement-CloseDependantDataset.patch  |  60 --
 debian/patches/outputting-typo.patch               | 174 -----
 debian/patches/perl-vendor                         |   2 +-
 debian/patches/position-typo.patch                 |  79 --
 debian/patches/remaining-typo.patch                |  15 -
 debian/patches/responsibility-typo.patch           |  68 --
 debian/patches/retrieve-typo.patch                 |  15 -
 debian/patches/series                              |  15 -
 debian/patches/spatialite                          |   6 +-
 debian/patches/sqlite-3.10.0                       |  87 ---
 debian/patches/supported-typo.patch                |  70 --
 debian/patches/transform-typo.patch                |  66 --
 23 files changed, 17 insertions(+), 2495 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index de9f70b..6e95c65 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -9,6 +9,7 @@ gdal (2.1.0~beta1+dfsg-1) UNRELEASED; urgency=medium
     - Add license & copyright for Qhull
   * Enable QHull support.
   * Enable cryptopp support.
+  * Drop patches applied upstream. Refresh remaining patches.
 
  -- Bas Couwenberg <sebastic at debian.org>  Sat, 02 Apr 2016 11:15:12 +0200
 
diff --git a/debian/patches/doc b/debian/patches/doc
deleted file mode 100644
index e17c904..0000000
--- a/debian/patches/doc
+++ /dev/null
@@ -1,65 +0,0 @@
-Description: Fix links to OGR documentation.
-Author: Francesco Paolo Lovergine <frankie at debian.org>, Bas Couwenberg <sebastic at debian.org>
-Last-Update: 2013-10-13
-Forwarded: https://trac.osgeo.org/gdal/ticket/5996
-
---- a/ogr/index.dox
-+++ b/ogr/index.dox
-@@ -6,7 +6,7 @@ tools) providing read (and sometimes wri
- formats including ESRI Shapefiles, S-57, SDTS, PostGIS, Oracle Spatial, 
- and Mapinfo mid/mif and TAB formats.<p>
- 
--OGR is a part of the <a href="http://www.gdal.org/">GDAL</a> library.<p>
-+OGR is a part of the <a href="index.html">GDAL</a> library.<p>
- 
- <h2>Resources</h2>
- 
-@@ -14,7 +14,7 @@ OGR is a part of the <a href="http://www
- 
- <li> <a href="ogr_formats.html">OGR Supported Formats</a> : ESRI Shapefile, ESRI ArcSDE, MapInfo (tab and mid/mif), GML, KML, PostGIS, Oracle Spatial, ...
- 
--<li> <a href="../ogr_utilities.html">OGR Utility Programs</a> : ogrinfo, ogr2ogr, ogrtindex
-+<li> <a href="ogr_utilities.html">OGR Utility Programs</a> : ogrinfo, ogr2ogr, ogrtindex
- 
- <li> <a href="hierarchy.html">OGR Class Documentation</a>
- 
---- a/doc/ru/index_ru.dox
-+++ b/doc/ru/index_ru.dox
-@@ -26,7 +26,7 @@ GDAL/OGR 1.5.1 (март 2008) можн�
- <a href="http://trac.osgeo.org/gdal/wiki/Release/1.5.1-News">новостей</a>.
- 
- Связанная с GDAL библиотека
--<a href="ogr">OGR</a> (исходные тексты которой поставляются вместе с GDAL)
-+<a href="index.html">OGR</a> (исходные тексты которой поставляются вместе с GDAL)
- предоставляет сходные возможности для работы с векторными данными. На странице
- <a href="NEWS.html">обновлений</a> вы сможете найти описание версии 1.3.1,
- выпущенной в октябре 2005 г.<p>
-@@ -67,7 +67,7 @@ GDAL/OGR 1.5.1 (март 2008) можн�
- <li> <a href="gdal_tutorial_ru.html">Руководство по использованию GDAL</a>
- <li> <a href="gdal_drivertut.html">Руководство по написанию драйверов GDAL</a>
- <li> <a href="warptut.html">Руководство по использованию интерфейса трансформации</a>
--<li> <a href="ogr/osr_tutorial.html">Руководство по OGRSpatialReference</a>
-+<li> <a href="osr_tutorial.html">Руководство по OGRSpatialReference</a>
- <li> <a href="gdal_8h.html">gdal.h</a> - интерфейс GDAL для языка C.
- <li> <a href="classGDALDataset.html">GDALDataset</a>
- <li> <a href="classGDALRasterBand.html">GDALRasterBand</a>
---- a/doc/br/index_br.dox
-+++ b/doc/br/index_br.dox
-@@ -29,7 +29,7 @@ A página
- <a href="http://trac.osgeo.org/gdal/wiki/Release/1.9.0-News">novidades</a> descreve o 
- lançamento em Abril de 2013 da release 1.10.0 da biblioteca GDAL/OGR.
- 
--A bilioteca <a href="ogr">OGR</a> (cujo código fonte esta incluído na GDAL) possue
-+A bilioteca <a href="index.html">OGR</a> (cujo código fonte esta incluído na GDAL) possue
- funcionalidades semelhantes às da GDAL para datos vetorias (Simple Features).
- 
- Página Principal: http://www.gdal.org<br>
-@@ -60,7 +60,7 @@ Download:
- <li> <a href="gdal_tutorial_br.html">Tutorial da API do GDAL</a> <b>(em português)</b>
- <li> <a href="gdal_drivertut.html">Tutorial de implementação de drivers</a>
- <li> <a href="warptut.html">Tutorial de transformação geométrica</a>
--<li> <a href="ogr/osr_tutorial.html">Tutorial de Referência Espacial</a>
-+<li> <a href="osr_tutorial.html">Tutorial de Referência Espacial</a>
- <li> <a href="gdal_8h.html">GDAL API para C</a>
- <li> <a href="classGDALDataset.html">GDALDataset</a>
- <li> <a href="classGDALRasterBand.html">GDALRasterBand</a>
diff --git a/debian/patches/existence-typo.patch b/debian/patches/existence-typo.patch
deleted file mode 100644
index 7cf01d3..0000000
--- a/debian/patches/existence-typo.patch
+++ /dev/null
@@ -1,537 +0,0 @@
-Description: Fix 'existance' typo, replace with 'existence'.
-Author: Bas Couwenberg <sebastic at debian.org>
-Forwarded: not-needed
-
---- a/frmts/vrt/vrtdataset.h
-+++ b/frmts/vrt/vrtdataset.h
-@@ -265,7 +265,7 @@ class CPL_DLL VRTRasterBand : public GDA
-     int            bIsMaskBand;
- 
-     int            bNoDataValueSet;
--    int            bHideNoDataValue; // If set to true, will not report the existance of nodata
-+    int            bHideNoDataValue; // If set to true, will not report the existence of nodata
-     double         dfNoDataValue;
- 
-     GDALColorTable *poColorTable;
---- a/m4/ax_lib_sqlite3.m4
-+++ b/m4/ax_lib_sqlite3.m4
-@@ -6,7 +6,7 @@ dnl Test for the SQLite 3 library of a p
- dnl
- dnl This macro takes only one optional argument, required version
- dnl of SQLite 3 library. If required version is not passed,
--dnl 3.0.0 is used in the test of existance of SQLite 3.
-+dnl 3.0.0 is used in the test of existence of SQLite 3.
- dnl
- dnl If no intallation prefix to the installed SQLite library is given
- dnl the macro searches under /usr, /usr/local, and /opt.
---- a/ogr/ogrfeaturedefn.cpp
-+++ b/ogr/ogrfeaturedefn.cpp
-@@ -364,7 +364,7 @@ OGRFieldDefnH OGR_FD_GetFieldDefn( OGRFe
-  * function directly, but use OGRLayer::CreateField() instead.
-  *
-  * This method should only be called while there are no OGRFeature
-- * objects in existance based on this OGRFeatureDefn.  The OGRFieldDefn
-+ * objects in existence based on this OGRFeatureDefn.  The OGRFieldDefn
-  * passed in is copied, and remains the responsibility of the caller.
-  *
-  * This method is the same as the C function OGR_FD_AddFieldDefn().
-@@ -394,7 +394,7 @@ void OGRFeatureDefn::AddFieldDefn( OGRFi
-  * function directly, but use OGR_L_CreateField() instead.
-  *
-  * This function  should only be called while there are no OGRFeature
-- * objects in existance based on this OGRFeatureDefn.  The OGRFieldDefn
-+ * objects in existence based on this OGRFeatureDefn.  The OGRFieldDefn
-  * passed in is copied, and remains the responsibility of the caller.
-  *
-  * This function is the same as the C++ method OGRFeatureDefn::AddFieldDefn().
-@@ -421,7 +421,7 @@ void OGR_FD_AddFieldDefn( OGRFeatureDefn
-  * function directly, but use OGRLayer::DeleteField() instead.
-  *
-  * This method should only be called while there are no OGRFeature
-- * objects in existance based on this OGRFeatureDefn.
-+ * objects in existence based on this OGRFeatureDefn.
-  *
-  * This method is the same as the C function OGR_FD_DeleteFieldDefn().
-  *
-@@ -462,7 +462,7 @@ OGRErr OGRFeatureDefn::DeleteFieldDefn(
-  * function directly, but use OGR_L_DeleteField() instead.
-  *
-  * This method should only be called while there are no OGRFeature
-- * objects in existance based on this OGRFeatureDefn.
-+ * objects in existence based on this OGRFeatureDefn.
-  *
-  * This method is the same as the C++ method OGRFeatureDefn::DeleteFieldDefn().
-  *
-@@ -489,7 +489,7 @@ OGRErr OGR_FD_DeleteFieldDefn( OGRFeatur
-  * function directly, but use OGR_L_ReorderFields() instead.
-  *
-  * This method should only be called while there are no OGRFeature
-- * objects in existance based on this OGRFeatureDefn.
-+ * objects in existence based on this OGRFeatureDefn.
-  *
-  * This method is the same as the C function OGR_FD_ReorderFieldDefns().
-  *
-@@ -536,7 +536,7 @@ OGRErr OGRFeatureDefn::ReorderFieldDefns
-  * function directly, but use OGR_L_ReorderFields() instead.
-  *
-  * This method should only be called while there are no OGRFeature
-- * objects in existance based on this OGRFeatureDefn.
-+ * objects in existence based on this OGRFeatureDefn.
-  *
-  * This method is the same as the C++ method OGRFeatureDefn::ReorderFieldDefns().
-  *
-@@ -679,7 +679,7 @@ OGRGeomFieldDefnH OGR_FD_GetGeomFieldDef
-  * field definition.
-  *
-  * This method should only be called while there are no OGRFeature
-- * objects in existance based on this OGRFeatureDefn.  The OGRGeomFieldDefn
-+ * objects in existence based on this OGRFeatureDefn.  The OGRGeomFieldDefn
-  * passed in is copied, and remains the responsibility of the caller.
-  *
-  * This method is the same as the C function OGR_FD_AddGeomFieldDefn().
-@@ -713,7 +713,7 @@ void OGRFeatureDefn::AddGeomFieldDefn( O
-  * function directly, but use OGR_L_CreateGeomField() instead.
-  *
-  * This function  should only be called while there are no OGRFeature
-- * objects in existance based on this OGRFeatureDefn.  The OGRGeomFieldDefn
-+ * objects in existence based on this OGRFeatureDefn.  The OGRGeomFieldDefn
-  * passed in is copied, and remains the responsibility of the caller.
-  *
-  * This function is the same as the C++ method OGRFeatureDefn::AddGeomFieldDefn().
-@@ -742,7 +742,7 @@ void OGR_FD_AddGeomFieldDefn( OGRFeature
-  * function directly, but use OGRLayer::DeleteGeomField() instead.
-  *
-  * This method should only be called while there are no OGRFeature
-- * objects in existance based on this OGRFeatureDefn.
-+ * objects in existence based on this OGRFeatureDefn.
-  *
-  * This method is the same as the C function OGR_FD_DeleteGeomFieldDefn().
-  *
-@@ -784,7 +784,7 @@ OGRErr OGRFeatureDefn::DeleteGeomFieldDe
-  * function directly, but use OGR_L_DeleteGeomField() instead (*not implemented yet*)
-  *
-  * This method should only be called while there are no OGRFeature
-- * objects in existance based on this OGRFeatureDefn.
-+ * objects in existence based on this OGRFeatureDefn.
-  *
-  * This method is the same as the C++ method OGRFeatureDefn::DeleteGeomFieldDefn().
-  *
---- a/ogr/ogrsf_frmts/ogrsf_frmts.dox
-+++ b/ogr/ogrsf_frmts/ogrsf_frmts.dox
-@@ -2009,7 +2009,7 @@ on a real layer. Internally the OGRFeatu
- to reflect the new field.  Applications should never modify the OGRFeatureDefn
- used by a layer directly.
- 
--This method should not be called while there are feature objects in existance that
-+This method should not be called while there are feature objects in existence that
- were obtained or created with the previous layer definition.
- 
- Not all drivers support this method. You can query a layer to check if it supports it
-@@ -2041,7 +2041,7 @@ on a real layer. Internally the OGRFeatu
- to reflect the new field.  Applications should never modify the OGRFeatureDefn
- used by a layer directly.
- 
--This function should not be called while there are feature objects in existance that
-+This function should not be called while there are feature objects in existence that
- were obtained or created with the previous layer definition.
- 
- Not all drivers support this function. You can query a layer to check if it supports it
-@@ -2073,7 +2073,7 @@ on a real layer. Internally the OGRFeatu
- to reflect the deleted field.  Applications should never modify the OGRFeatureDefn
- used by a layer directly.
- 
--This method should not be called while there are feature objects in existance that
-+This method should not be called while there are feature objects in existence that
- were obtained or created with the previous layer definition.
- 
- Not all drivers support this method. You can query a layer to check if it supports it
-@@ -2101,7 +2101,7 @@ on a real layer. Internally the OGRFeatu
- to reflect the deleted field.  Applications should never modify the OGRFeatureDefn
- used by a layer directly.
- 
--This function should not be called while there are feature objects in existance that
-+This function should not be called while there are feature objects in existence that
- were obtained or created with the previous layer definition.
- 
- Not all drivers support this function. You can query a layer to check if it supports it
-@@ -2129,7 +2129,7 @@ on a real layer. Internally the OGRFeatu
- to reflect the reordering of the fields.  Applications should never modify the OGRFeatureDefn
- used by a layer directly.
- 
--This method should not be called while there are feature objects in existance that
-+This method should not be called while there are feature objects in existence that
- were obtained or created with the previous layer definition.
- 
- panMap is such that,for each field definition at position i after reordering,
-@@ -2164,7 +2164,7 @@ on a real layer. Internally the OGRFeatu
- to reflect the reordering of the fields.  Applications should never modify the OGRFeatureDefn
- used by a layer directly.
- 
--This function should not be called while there are feature objects in existance that
-+This function should not be called while there are feature objects in existence that
- were obtained or created with the previous layer definition.
- 
- panMap is such that,for each field definition at position i after reordering,
-@@ -2202,7 +2202,7 @@ on a real layer. Internally the OGRFeatu
- to reflect the reordering of the fields.  Applications should never modify the OGRFeatureDefn
- used by a layer directly.
- 
--This method should not be called while there are feature objects in existance that
-+This method should not be called while there are feature objects in existence that
- were obtained or created with the previous layer definition.
- 
- The field definition that was at initial position iOldFieldPos will be moved at
-@@ -2239,7 +2239,7 @@ on a real layer. Internally the OGRFeatu
- to reflect the reordering of the fields.  Applications should never modify the OGRFeatureDefn
- used by a layer directly.
- 
--This function should not be called while there are feature objects in existance that
-+This function should not be called while there are feature objects in existence that
- were obtained or created with the previous layer definition.
- 
- The field definition that was at initial position iOldFieldPos will be moved at
-@@ -2274,7 +2274,7 @@ Internally the OGRFeatureDefn for the la
- to reflect the altered field.  Applications should never modify the OGRFeatureDefn
- used by a layer directly.
- 
--This method should not be called while there are feature objects in existance that
-+This method should not be called while there are feature objects in existence that
- were obtained or created with the previous layer definition.
- 
- Not all drivers support this method. You can query a layer to check if it supports it
-@@ -2307,7 +2307,7 @@ Internally the OGRFeatureDefn for the la
- to reflect the altered field.  Applications should never modify the OGRFeatureDefn
- used by a layer directly.
- 
--This function should not be called while there are feature objects in existance that
-+This function should not be called while there are feature objects in existence that
- were obtained or created with the previous layer definition.
- 
- Not all drivers support this function. You can query a layer to check if it supports it
-@@ -2343,7 +2343,7 @@ on a real layer. Internally the OGRFeatu
- to reflect the new field.  Applications should never modify the OGRFeatureDefn
- used by a layer directly.
- 
--This method should not be called while there are feature objects in existance that
-+This method should not be called while there are feature objects in existence that
- were obtained or created with the previous layer definition.
- 
- Not all drivers support this method. You can query a layer to check if it supports it
-@@ -2377,7 +2377,7 @@ on a real layer. Internally the OGRFeatu
- to reflect the new field.  Applications should never modify the OGRFeatureDefn
- used by a layer directly.
- 
--This function should not be called while there are feature objects in existance that
-+This function should not be called while there are feature objects in existence that
- were obtained or created with the previous layer definition.
- 
- Not all drivers support this function. You can query a layer to check if it supports it
---- a/ogr/ogrspatialreference.cpp
-+++ b/ogr/ogrspatialreference.cpp
-@@ -771,7 +771,7 @@ OGRErr OSRImportFromWkt( OGRSpatialRefer
-  * \brief Set attribute value in spatial reference.
-  *
-  * Missing intermediate nodes in the path will be created if not already
-- * in existance.  If the attribute has no children one will be created and
-+ * in existence.  If the attribute has no children one will be created and
-  * assigned the value otherwise the zeroth child will be assigned the value.
-  *
-  * This method does the same as the C function OSRSetAttrValue(). 
---- a/port/cpl_conv.cpp
-+++ b/port/cpl_conv.cpp
-@@ -2638,7 +2638,7 @@ void CPLCleanupSetlocaleMutex(void)
- /************************************************************************/
- 
- /**
-- * Check for file existance.
-+ * Check for file existence.
-  *
-  * The function checks if a named file exists in the filesystem, hopefully
-  * in an efficient fashion if a sibling file list is available.   It exists
-@@ -2651,7 +2651,7 @@ void CPLCleanupSetlocaleMutex(void)
-  * updated with the correct case and TRUE is returned. 
-  *
-  * If papszSiblingFiles is NULL, a VSIStatL() is used to test for the files
-- * existance, and no case insensitive testing is done. 
-+ * existence, and no case insensitive testing is done. 
-  *
-  * @param pszFilename name of file to check for - filename case updated in some cases.
-  * @param papszSiblingFiles a list of files in the same directory as 
---- a/port/cpl_vsi_mem.cpp
-+++ b/port/cpl_vsi_mem.cpp
-@@ -905,7 +905,7 @@ VSILFILE *VSIFileFromMemBuffer( const ch
-  * This function returns a pointer to the memory buffer underlying a 
-  * virtual "in memory" file.  If bUnlinkAndSeize is TRUE the filesystem
-  * object will be deleted, and ownership of the buffer will pass to the 
-- * caller otherwise the underlying file will remain in existance. 
-+ * caller otherwise the underlying file will remain in existence. 
-  *
-  * @param pszFilename the name of the file to grab the buffer of.
-  * @param pnDataLength (file) length returned in this variable.
---- a/swig/include/python/docs/ogr_featuredef_docs.i
-+++ b/swig/include/python/docs/ogr_featuredef_docs.i
-@@ -109,7 +109,7 @@ To add a new field definition to a layer
- function directly, but use OGR_L_CreateField() instead.
- 
- This function should only be called while there are no OGRFeature
--objects in existance based on this OGRFeatureDefn. The OGRFieldDefn
-+objects in existence based on this OGRFeatureDefn. The OGRFieldDefn
- passed in is copied, and remains the responsibility of the caller.
- 
- This function is the same as the C++ method
-@@ -132,7 +132,7 @@ To delete an existing field definition f
- use this function directly, but use OGR_L_DeleteField() instead.
- 
- This method should only be called while there are no OGRFeature
--objects in existance based on this OGRFeatureDefn.
-+objects in existence based on this OGRFeatureDefn.
- 
- This method is the same as the C++ method
- OGRFeatureDefn::DeleteFieldDefn().
-@@ -157,7 +157,7 @@ To reorder the field definitions in a la
- this function directly, but use OGR_L_ReorderFields() instead.
- 
- This method should only be called while there are no OGRFeature
--objects in existance based on this OGRFeatureDefn.
-+objects in existence based on this OGRFeatureDefn.
- 
- This method is the same as the C++ method
- OGRFeatureDefn::ReorderFieldDefns().
-@@ -349,4 +349,4 @@ on.
- 
- bIgnore:  ignore state ";
- 
--}
-\ No newline at end of file
-+}
---- a/swig/include/python/docs/ogr_layer_docs.i
-+++ b/swig/include/python/docs/ogr_layer_docs.i
-@@ -261,7 +261,7 @@ Applications should never modify the OGR
- directly.
- 
- This function should not be called while there are feature objects in
--existance that were obtained or created with the previous layer
-+existence that were obtained or created with the previous layer
- definition.
- 
- Not all drivers support this function. You can query a layer to check
-@@ -295,7 +295,7 @@ the deleted field. Applications should n
- used by a layer directly.
- 
- This function should not be called while there are feature objects in
--existance that were obtained or created with the previous layer
-+existence that were obtained or created with the previous layer
- definition.
- 
- Not all drivers support this function. You can query a layer to check
-@@ -328,7 +328,7 @@ the reordering of the fields. Applicatio
- OGRFeatureDefn used by a layer directly.
- 
- This function should not be called while there are feature objects in
--existance that were obtained or created with the previous layer
-+existence that were obtained or created with the previous layer
- definition.
- 
- panMap is such that,for each field definition at position i after
-@@ -373,7 +373,7 @@ the reordering of the fields. Applicatio
- OGRFeatureDefn used by a layer directly.
- 
- This function should not be called while there are feature objects in
--existance that were obtained or created with the previous layer
-+existence that were obtained or created with the previous layer
- definition.
- 
- The field definition that was at initial position iOldFieldPos will be
-@@ -419,7 +419,7 @@ updated to reflect the altered field. Ap
- the OGRFeatureDefn used by a layer directly.
- 
- This function should not be called while there are feature objects in
--existance that were obtained or created with the previous layer
-+existence that were obtained or created with the previous layer
- definition.
- 
- Not all drivers support this function. You can query a layer to check
-@@ -894,4 +894,4 @@ is passed, the ignored list is cleared.
- OGRERR_NONE if all field names have been resolved (even if the driver
- does not support this method) ";
- 
--}
-\ No newline at end of file
-+}
---- a/swig/java/javadoc.java
-+++ b/swig/java/javadoc.java
-@@ -6500,7 +6500,7 @@ on a real layer. Internally the FeatureD
- to reflect the new field.  Applications should never modify the FeatureDefn
- used by a layer directly.
- <p>
--This method should not be called while there are feature objects in existance that
-+This method should not be called while there are feature objects in existence that
- were obtained or created with the previous layer definition.
- <p>
- Not all drivers support this method. You can query a layer to check if it supports it
-@@ -6534,7 +6534,7 @@ on a real layer. Internally the FeatureD
- to reflect the deleted field.  Applications should never modify the FeatureDefn
- used by a layer directly.
- <p>
--This method should not be called while there are feature objects in existance that
-+This method should not be called while there are feature objects in existence that
- were obtained or created with the previous layer definition.
- <p>
- Not all drivers support this method. You can query a layer to check if it supports it
-@@ -6558,7 +6558,7 @@ on a real layer. Internally the FeatureD
- to reflect the reordering of the fields.  Applications should never modify the FeatureDefn
- used by a layer directly.
- <p>
--This method should not be called while there are feature objects in existance that
-+This method should not be called while there are feature objects in existence that
- were obtained or created with the previous layer definition.
- <p>
- panMap is such that,for each field definition at position i after reordering,
-@@ -6592,7 +6592,7 @@ on a real layer. Internally the FeatureD
- to reflect the reordering of the fields.  Applications should never modify the FeatureDefn
- used by a layer directly.
- <p>
--This method should not be called while there are feature objects in existance that
-+This method should not be called while there are feature objects in existence that
- were obtained or created with the previous layer definition.
- <p>
- The field definition that was at initial position iOldFieldPos will be moved at
-@@ -6623,7 +6623,7 @@ Internally the FeatureDefn for the layer
- to reflect the altered field.  Applications should never modify the FeatureDefn
- used by a layer directly.
- <p>
--This method should not be called while there are feature objects in existance that
-+This method should not be called while there are feature objects in existence that
- were obtained or created with the previous layer definition.
- <p>
- Not all drivers support this method. You can query a layer to check if it supports it
-@@ -9380,7 +9380,7 @@ public class FeatureDefn:public FeatureD
-  * function directly, but use Layer.<a href="Layer.html#CreateField(org.gdal.ogr.FieldDefn)">CreateField()</a> instead.
-  * <p>
-  * This method should only be called while there are no Feature
-- * objects in existance based on this FeatureDefn.  The FieldDefn
-+ * objects in existence based on this FeatureDefn.  The FieldDefn
-  * passed in is copied, and remains the responsibility of the caller.
-  *
-  * @param defn the definition of the new field.
-@@ -11223,7 +11223,7 @@ public class SpatialReference:public int
-  * Set attribute value in spatial reference.
-  * <p>
-  * Missing intermediate nodes in the path will be created if not already
-- * in existance.  If the attribute has no children one will be created and
-+ * in existence.  If the attribute has no children one will be created and
-  * assigned the value otherwise the zeroth child will be assigned the value.
-  *
-  * @param name full path to attribute to be set.  For instance
---- a/swig/python/extensions/ogr_wrap.cpp
-+++ b/swig/python/extensions/ogr_wrap.cpp
-@@ -24714,7 +24714,7 @@ static PyMethodDef SwigMethods[] = {
- 		"directly.\n"
- 		"\n"
- 		"This function should not be called while there are feature objects in\n"
--		"existance that were obtained or created with the previous layer\n"
-+		"existence that were obtained or created with the previous layer\n"
- 		"definition.\n"
- 		"\n"
- 		"Not all drivers support this function. You can query a layer to check\n"
-@@ -24751,7 +24751,7 @@ static PyMethodDef SwigMethods[] = {
- 		"used by a layer directly.\n"
- 		"\n"
- 		"This function should not be called while there are feature objects in\n"
--		"existance that were obtained or created with the previous layer\n"
-+		"existence that were obtained or created with the previous layer\n"
- 		"definition.\n"
- 		"\n"
- 		"Not all drivers support this function. You can query a layer to check\n"
-@@ -24791,7 +24791,7 @@ static PyMethodDef SwigMethods[] = {
- 		"OGRFeatureDefn used by a layer directly.\n"
- 		"\n"
- 		"This function should not be called while there are feature objects in\n"
--		"existance that were obtained or created with the previous layer\n"
-+		"existence that were obtained or created with the previous layer\n"
- 		"definition.\n"
- 		"\n"
- 		"The field definition that was at initial position iOldFieldPos will be\n"
-@@ -24839,7 +24839,7 @@ static PyMethodDef SwigMethods[] = {
- 		"OGRFeatureDefn used by a layer directly.\n"
- 		"\n"
- 		"This function should not be called while there are feature objects in\n"
--		"existance that were obtained or created with the previous layer\n"
-+		"existence that were obtained or created with the previous layer\n"
- 		"definition.\n"
- 		"\n"
- 		"panMap is such that,for each field definition at position i after\n"
-@@ -24884,7 +24884,7 @@ static PyMethodDef SwigMethods[] = {
- 		"the OGRFeatureDefn used by a layer directly.\n"
- 		"\n"
- 		"This function should not be called while there are feature objects in\n"
--		"existance that were obtained or created with the previous layer\n"
-+		"existence that were obtained or created with the previous layer\n"
- 		"definition.\n"
- 		"\n"
- 		"Not all drivers support this function. You can query a layer to check\n"
-@@ -25961,7 +25961,7 @@ static PyMethodDef SwigMethods[] = {
- 		"function directly, but use OGR_L_CreateField() instead.\n"
- 		"\n"
- 		"This function should only be called while there are no OGRFeature\n"
--		"objects in existance based on this OGRFeatureDefn. The OGRFieldDefn\n"
-+		"objects in existence based on this OGRFeatureDefn. The OGRFieldDefn\n"
- 		"passed in is copied, and remains the responsibility of the caller.\n"
- 		"\n"
- 		"This function is the same as the C++ method\n"
---- a/swig/python/osgeo/ogr.py
-+++ b/swig/python/osgeo/ogr.py
-@@ -1766,7 +1766,7 @@ class Layer(MajorObject):
-         directly.
- 
-         This function should not be called while there are feature objects in
--        existance that were obtained or created with the previous layer
-+        existence that were obtained or created with the previous layer
-         definition.
- 
-         Not all drivers support this function. You can query a layer to check
-@@ -1806,7 +1806,7 @@ class Layer(MajorObject):
-         used by a layer directly.
- 
-         This function should not be called while there are feature objects in
--        existance that were obtained or created with the previous layer
-+        existence that were obtained or created with the previous layer
-         definition.
- 
-         Not all drivers support this function. You can query a layer to check
-@@ -1849,7 +1849,7 @@ class Layer(MajorObject):
-         OGRFeatureDefn used by a layer directly.
- 
-         This function should not be called while there are feature objects in
--        existance that were obtained or created with the previous layer
-+        existence that were obtained or created with the previous layer
-         definition.
- 
-         The field definition that was at initial position iOldFieldPos will be
-@@ -1900,7 +1900,7 @@ class Layer(MajorObject):
-         OGRFeatureDefn used by a layer directly.
- 
-         This function should not be called while there are feature objects in
--        existance that were obtained or created with the previous layer
-+        existence that were obtained or created with the previous layer
-         definition.
- 
-         panMap is such that,for each field definition at position i after
-@@ -1948,7 +1948,7 @@ class Layer(MajorObject):
-         the OGRFeatureDefn used by a layer directly.
- 
-         This function should not be called while there are feature objects in
--        existance that were obtained or created with the previous layer
-+        existence that were obtained or created with the previous layer
-         definition.
- 
-         Not all drivers support this function. You can query a layer to check
-@@ -3553,7 +3553,7 @@ class FeatureDefn(_object):
-         function directly, but use OGR_L_CreateField() instead.
- 
-         This function should only be called while there are no OGRFeature
--        objects in existance based on this OGRFeatureDefn. The OGRFieldDefn
-+        objects in existence based on this OGRFeatureDefn. The OGRFieldDefn
-         passed in is copied, and remains the responsibility of the caller.
- 
-         This function is the same as the C++ method
diff --git a/debian/patches/formatted-typo.patch b/debian/patches/formatted-typo.patch
deleted file mode 100644
index 8c75147..0000000
--- a/debian/patches/formatted-typo.patch
+++ /dev/null
@@ -1,57 +0,0 @@
-Description: Fix 'formated' typo, replace with 'formatted'.
-Author: Bas Couwenberg <sebastic at debian.org>
-Forwarded: not-needed
-
---- a/frmts/grib/degrib18/degrib/clock.c
-+++ b/frmts/grib/degrib18/degrib/clock.c
-@@ -902,7 +902,7 @@ void Clock_PrintDate (double clock, sInt
-  * Arthur Taylor / MDL
-  *
-  * PURPOSE
-- *   To create formated output from a time structure that is stored as a
-+ *   To create formatted output from a time structure that is stored as a
-  * double.
-  *
-  * ARGUMENTS
-@@ -983,7 +983,7 @@ void Clock_Print (char *buffer, int n, d
-  * Arthur Taylor / MDL
-  *
-  * PURPOSE
-- *   To create formated output from a time structure that is stored as a
-+ *   To create formatted output from a time structure that is stored as a
-  * double.  This is similar to Clock_Print, except it bases the timezone
-  * shift on what the user supplies rather than the system timezone, and
-  * accepts a flag that indicates whether to inquire about daylight savings.
---- a/frmts/grib/degrib18/degrib/myutil.c
-+++ b/frmts/grib/degrib18/degrib/myutil.c
-@@ -1081,7 +1081,7 @@ int myParseTime3 (const char *is, time_t
-    memset (&time, 0, sizeof (struct tm));
-    myAssert (strlen (is) == 14);
-    if (strlen (is) != 14) {
--      printf ("%s is not formated correctly\n", is);
-+      printf ("%s is not formatted correctly\n", is);
-       return 1;
-    }
-    strncpy (buffer, is, 4);
---- a/gcore/gdalmajorobject.cpp
-+++ b/gcore/gdalmajorobject.cpp
-@@ -226,7 +226,7 @@ GDALGetMetadataDomainList( GDALMajorObje
-  * \brief Fetch metadata.
-  *
-  * The returned string list is owned by the object, and may change at
-- * any time.  It is formated as a "Name=value" list with the last pointer
-+ * any time.  It is formatted as a "Name=value" list with the last pointer
-  * value being NULL.  Use the the CPL StringList functions such as 
-  * CSLFetchNameValue() to manipulate it. 
-  *
---- a/swig/java/add_javadoc.c
-+++ b/swig/java/add_javadoc.c
-@@ -29,7 +29,7 @@
- *******************************************************************************/
- 
- /* NOTE : this is really a quick and very dirty hack to put the javadoc contained */
--/* in a special formated file, javadoc.java, into the SWIG generated java files */
-+/* in a special formatted file, javadoc.java, into the SWIG generated java files */
- /* This program leaks memory and would crash easily on unexpected inputs */
- 
- #include <stdio.h>
diff --git a/debian/patches/gdalpaths b/debian/patches/gdalpaths
index 91f3343..a65651b 100644
--- a/debian/patches/gdalpaths
+++ b/debian/patches/gdalpaths
@@ -5,23 +5,23 @@ Forwarded: not-needed
 
 --- a/gcore/gdaldrivermanager.cpp
 +++ b/gcore/gdaldrivermanager.cpp
-@@ -703,7 +703,7 @@ void GDALDriverManager::AutoLoadDrivers(
+@@ -701,7 +701,7 @@ void GDALDriverManager::AutoLoadDrivers(
      #ifdef MACOSX_FRAMEWORK
                                          GDAL_PREFIX "/PlugIns");
      #else
 -                                        GDAL_PREFIX "/lib/gdalplugins" );
-+                                        GDAL_PREFIX "/lib/gdalplugins/2.0" );
++                                        GDAL_PREFIX "/lib/gdalplugins/2.1" );
      #endif
  #else
          char szExecPath[1024];
 --- a/port/cpl_findfile.cpp
 +++ b/port/cpl_findfile.cpp
-@@ -105,7 +105,7 @@ static FindFileTLS* CPLFinderInit()
+@@ -113,7 +113,7 @@ static FindFileTLS* CPLFinderInit()
    #ifdef MACOSX_FRAMEWORK
              CPLPushFinderLocation( GDAL_PREFIX "/Resources/gdal" );
    #else
 -            CPLPushFinderLocation( GDAL_PREFIX "/share/gdal" );
-+            CPLPushFinderLocation( GDAL_PREFIX "/share/gdal/2.0" );
++            CPLPushFinderLocation( GDAL_PREFIX "/share/gdal/2.1" );
    #endif
  #else
              CPLPushFinderLocation( "/usr/local/share/gdal" );
diff --git a/debian/patches/hdf4 b/debian/patches/hdf4
index 6d37d27..11a326c 100644
--- a/debian/patches/hdf4
+++ b/debian/patches/hdf4
@@ -5,7 +5,7 @@ Forwarded: not-needed
 
 --- a/configure
 +++ b/configure
-@@ -21407,7 +21407,7 @@ fi
+@@ -22484,7 +22484,7 @@ fi
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mfhdf_SDreaddata" >&5
  $as_echo "$ac_cv_lib_mfhdf_SDreaddata" >&6; }
  if test "x$ac_cv_lib_mfhdf_SDreaddata" = xyes; then :
@@ -14,7 +14,7 @@ Forwarded: not-needed
  else
    HDF_LIB_NAME=missing
  fi
-@@ -21467,7 +21467,7 @@ if ${ac_cv_lib_mfhdf_SDreaddata+:} false
+@@ -22544,7 +22544,7 @@ if ${ac_cv_lib_mfhdf_SDreaddata+:} false
    $as_echo_n "(cached) " >&6
  else
    ac_check_lib_save_LIBS=$LIBS
@@ -23,7 +23,7 @@ Forwarded: not-needed
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  /* end confdefs.h.  */
  
-@@ -21498,7 +21498,7 @@ fi
+@@ -22575,7 +22575,7 @@ fi
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mfhdf_SDreaddata" >&5
  $as_echo "$ac_cv_lib_mfhdf_SDreaddata" >&6; }
  if test "x$ac_cv_lib_mfhdf_SDreaddata" = xyes; then :
@@ -32,7 +32,7 @@ Forwarded: not-needed
  else
    HDF_LIB_NAME=missing
  fi
-@@ -21513,7 +21513,7 @@ if ${ac_cv_lib_mfhdf_SDreaddata+:} false
+@@ -22590,7 +22590,7 @@ if ${ac_cv_lib_mfhdf_SDreaddata+:} false
    $as_echo_n "(cached) " >&6
  else
    ac_check_lib_save_LIBS=$LIBS
@@ -41,7 +41,7 @@ Forwarded: not-needed
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  /* end confdefs.h.  */
  
-@@ -21544,7 +21544,7 @@ fi
+@@ -22621,7 +22621,7 @@ fi
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mfhdf_SDreaddata" >&5
  $as_echo "$ac_cv_lib_mfhdf_SDreaddata" >&6; }
  if test "x$ac_cv_lib_mfhdf_SDreaddata" = xyes; then :
diff --git a/debian/patches/instantiate-typo.patch b/debian/patches/instantiate-typo.patch
deleted file mode 100644
index 6c68879..0000000
--- a/debian/patches/instantiate-typo.patch
+++ /dev/null
@@ -1,286 +0,0 @@
-Description: Fix 'instanciate' typo, replace with 'instantiate'.
-Author: Bas Couwenberg <sebastic at debian.org>
-Forwarded: not-needed
-
---- a/NEWS
-+++ b/NEWS
-@@ -4513,7 +4513,7 @@ PostgreSQL driver:
-  * If the PG_USE_BASE64 configuration option is set to YES, geometries will be
-    requested as BASE64 encoded EWKB instead of canonical HEX encoded EWKB.
-    (useful when bandwidth is the limiting factor)
-- * Don't instanciate layer defn at layer creation. This can speed up
-+ * Don't instantiate layer defn at layer creation. This can speed up
-    significantly database opening when they are many tables and the user just
-    needs to fetch one with GetLayerByName().
-  * Implement efficient OGRLayer::GetName() and OGRLayer::GetGeomType()
---- a/apps/ogr2ogr.cpp
-+++ b/apps/ogr2ogr.cpp
-@@ -2739,7 +2739,7 @@ static OGRLayer* GetLayerAndOverwriteIfN
-     if( pbErrorOccured )
-         *pbErrorOccured = FALSE;
- 
--    /* GetLayerByName() can instanciate layers that would have been */
-+    /* GetLayerByName() can instantiate layers that would have been */
-     /* 'hidden' otherwise, for example, non-spatial tables in a */
-     /* Postgis-enabled database, so this apparently useless command is */
-     /* not useless... (#4012) */
---- a/apps/ogrlineref.cpp
-+++ b/apps/ogrlineref.cpp
-@@ -171,7 +171,7 @@ static OGRLayer* SetupTargetLayer(OGRLay
-     /*      Find the layer.                                                 */
-     /* -------------------------------------------------------------------- */
- 
--    /* GetLayerByName() can instanciate layers that would have been */
-+    /* GetLayerByName() can instantiate layers that would have been */
-     /* 'hidden' otherwise, for example, non-spatial tables in a */
-     /* Postgis-enabled database, so this apparently useless command is */
-     /* not useless... (#4012) */
---- a/data/osmconf.ini
-+++ b/data/osmconf.ini
-@@ -66,7 +66,7 @@ z_order_sql="SELECT (CASE [highway] WHEN
- 
- [multipolygons]
- # common attributes
--# note: for multipolygons, osm_id=yes instanciates a osm_id field for the id of relations
-+# note: for multipolygons, osm_id=yes instantiates a osm_id field for the id of relations
- # and a osm_way_id field for the id of closed ways. Both fields are exclusively set.
- osm_id=yes
- osm_version=no
---- a/frmts/gtiff/geotiff.cpp
-+++ b/frmts/gtiff/geotiff.cpp
-@@ -12453,7 +12453,7 @@ GTiffDataset::CreateCopy( const char * p
-         if (poDS->nOverviewCount != nSrcOverviews)
-         {
-             CPLError(CE_Failure, CPLE_AppDefined,
--                     "Did only manage to instanciate %d overview levels, whereas source contains %d",
-+                     "Did only manage to instantiate %d overview levels, whereas source contains %d",
-                      poDS->nOverviewCount, nSrcOverviews);
-             eErr = CE_Failure;
-         }
---- a/frmts/gtiff/libtiff/tif_dirread.c
-+++ b/frmts/gtiff/libtiff/tif_dirread.c
-@@ -3767,7 +3767,7 @@ TIFFReadDirectory(TIFF* tif)
- 					uint32 countrequired;
- 					uint32 incrementpersample;
- 					uint16* value=NULL;
--                    /* It would be dangerous to instanciate those tag values */
-+                    /* It would be dangerous to instantiate those tag values */
-                     /* since if td_bitspersample has not yet been read (due to */
-                     /* unordered tags), it could be read afterwards with a */
-                     /* values greater than the default one (1), which may cause */
---- a/frmts/jpeg/jpgdataset.cpp
-+++ b/frmts/jpeg/jpgdataset.cpp
-@@ -1386,7 +1386,7 @@ void JPGDatasetCommon::InitInternalOverv
-     bHasInitInternalOverviews = TRUE;
- 
- /* -------------------------------------------------------------------- */
--/*      Instanciate on-the-fly overviews (if no external ones).         */
-+/*      Instantiate on-the-fly overviews (if no external ones).         */
- /* -------------------------------------------------------------------- */
-     if( nScaleFactor == 1 && GetRasterBand(1)->GetOverviewCount() == 0 )
-     {
---- a/frmts/postgisraster/postgisrasterdataset.cpp
-+++ b/frmts/postgisraster/postgisrasterdataset.cpp
-@@ -64,7 +64,7 @@ CPL_C_END
-             During a IRasterIO() query,
-             i) we will do a SQL query to retrieve the PKID of tiles that intersect the query window.
-             ii) If some tiles are not registered as sources, then do a SQL query to fetch their metadata
--            and instanciate them and register them.
-+            and instantiate them and register them.
-             iii) If some tiles are not cached, then determine if the query window is not too big (w.r.t. GDAL cache),
-             and if not, then do a SQL query to fetch their raster column.
- 
---- a/frmts/vrt/vrtdataset.cpp
-+++ b/frmts/vrt/vrtdataset.cpp
-@@ -1361,7 +1361,7 @@ CPLErr VRTDataset::IRasterIO( GDALRWFlag
-         void             *pProgressDataGlobal = psExtraArg->pProgressData;
- 
-         /* Use the last band, because when sources reference a GDALProxyDataset, they */
--        /* don't necessary instanciate all underlying rasterbands */
-+        /* don't necessary instantiate all underlying rasterbands */
-         VRTSourcedRasterBand* poBand = (VRTSourcedRasterBand* )papoBands[nBands - 1];
-         for(int iSource = 0; eErr == CE_None && iSource < poBand->nSources; iSource++)
-         {
---- a/ogr/ogrfeaturestyle.cpp
-+++ b/ogr/ogrfeaturestyle.cpp
-@@ -667,7 +667,7 @@ int OGR_SM_GetPartCount(OGRStyleMgrH hSM
-  *
-  * This method is the same as the C function OGR_SM_GetPart().
-  *
-- * This method instanciates a new object that should be freed with OGR_ST_Destroy().
-+ * This method instantiates a new object that should be freed with OGR_ST_Destroy().
-  *
-  * @param nPartId the part number (0-based index).
-  * @param pszStyleString (optional) the style string on which to operate.
-@@ -720,7 +720,7 @@ OGRStyleTool *OGRStyleMgr::GetPart(int n
-  *
-  * This function is the same as the C++ method OGRStyleMgr::GetPart().
-  *
-- * This function instanciates a new object that should be freed with OGR_ST_Destroy().
-+ * This function instantiates a new object that should be freed with OGR_ST_Destroy().
-  *
-  * @param hSM handle to the style manager.
-  * @param nPartId the part number (0-based index).
---- a/ogr/ogrsf_frmts/libkml/ogrlibkmlgeometry.cpp
-+++ b/ogr/ogrsf_frmts/libkml/ogrlibkmlgeometry.cpp
-@@ -571,7 +571,7 @@ OGRGeometry *kml2geom_rec (
-         poKmlMultiGeometry = AsMultiGeometry ( poKmlGeometry );
-         nGeom = poKmlMultiGeometry->get_geometry_array_size (  );
- 
--        /* Detect subgeometry type to instanciate appropriate Multi geometry type */
-+        /* Detect subgeometry type to instantiate appropriate Multi geometry type */
-         kmldom::KmlDomType type = kmldom::Type_Unknown;
-         for ( i = 0; i < nGeom; i++ ) {
-             poKmlTmpGeometry = poKmlMultiGeometry->get_geometry_array_at ( i );
---- a/ogr/ogrsf_frmts/mitab/mitab.h
-+++ b/ogr/ogrsf_frmts/mitab/mitab.h
-@@ -1017,7 +1017,7 @@ class ITABFeatureSymbol
-  *
-  * TABFeature will be used as a base class for all the feature classes.
-  *
-- * This class will also be used to instanciate objects with no Geometry
-+ * This class will also be used to instantiate objects with no Geometry
-  * (i.e. type TAB_GEOM_NONE) which is a valid case in MapInfo.
-  *
-  * The logic to read/write the object from/to the .DAT and .MAP files is also
---- a/ogr/ogrsf_frmts/pg/ogrpgdatasource.cpp
-+++ b/ogr/ogrsf_frmts/pg/ogrpgdatasource.cpp
-@@ -1473,7 +1473,7 @@ OGRPGDataSource::ICreateLayer( const cha
-         osSQLLayerName += pszTableName;
-     }
- 
--    /* GetLayerByName() can instanciate layers that would have been */
-+    /* GetLayerByName() can instantiate layers that would have been */
-     /* 'hidden' otherwise, for example, non-spatial tables in a */
-     /* Postgis-enabled database, so this apparently useless command is */
-     /* not useless... (#4012) */
---- a/ogr/ogrsf_frmts/vrt/ogrvrtdatasource.cpp
-+++ b/ogr/ogrsf_frmts/vrt/ogrvrtdatasource.cpp
-@@ -168,7 +168,7 @@ OGRLayer*  OGRVRTDataSource::Instanciate
-     if( poSrcLayer == NULL )
-     {
-         CPLError( CE_Failure, CPLE_AppDefined,
--                  "Cannot instanciate source layer" );
-+                  "Cannot instantiate source layer" );
-         return NULL;
-     }
- 
---- a/ogr/ogrsf_frmts/vrt/ogrvrtlayer.cpp
-+++ b/ogr/ogrsf_frmts/vrt/ogrvrtlayer.cpp
-@@ -804,7 +804,7 @@ try_again:
-         }
-         }
- 
--        /* Instanciate real geometry fields from VRT properties */
-+        /* Instantiate real geometry fields from VRT properties */
-         poFeatureDefn->SetGeomType(wkbNone);
-         for( size_t i = 0; i < apoGeomFieldProps.size(); i ++ )
-         {
---- a/port/cpl_multiproc.h
-+++ b/port/cpl_multiproc.h
-@@ -123,10 +123,10 @@ CPL_C_END
- 
- #ifdef __cplusplus
- 
--/* Instanciates the mutex if not already done. The parameter x should be a (void**)  */
-+/* Instantiates the mutex if not already done. The parameter x should be a (void**)  */
- #define CPLMutexHolderD(x)  CPLMutexHolder oHolder(x,1000.0,__FILE__,__LINE__);
- 
--/* Instanciates the mutex with options if not already done. */
-+/* Instantiates the mutex with options if not already done. */
- /* The parameter x should be a (void**)  */
- #define CPLMutexHolderExD(x, nOptions)  CPLMutexHolder oHolder(x,1000.0,__FILE__,__LINE__,nOptions);
- 
-@@ -143,7 +143,7 @@ class CPL_DLL CPLMutexHolder
- 
-   public:
- 
--    /* Instanciates the mutex if not already done */
-+    /* Instantiates the mutex if not already done */
-     CPLMutexHolder( CPLMutex **phMutex, double dfWaitInSeconds = 1000.0,
-                     const char *pszFile = __FILE__,
-                     int nLine = __LINE__,
-@@ -158,7 +158,7 @@ class CPL_DLL CPLMutexHolder
-     ~CPLMutexHolder();
- };
- 
--/* Instanciates the lock if not already done. The parameter x should be a (CPLLock**) */
-+/* Instantiates the lock if not already done. The parameter x should be a (CPLLock**) */
- #define CPLLockHolderD(x, eType)  CPLLockHolder oHolder(x,eType,__FILE__,__LINE__);
- 
- /* This variant assumes the the lock has already been created. If not, it will */
-@@ -174,7 +174,7 @@ class CPL_DLL CPLLockHolder
- 
-   public:
- 
--    /* Instanciates the lock if not already done */
-+    /* Instantiates the lock if not already done */
-     CPLLockHolder( CPLLock **phSpin, CPLLockType eType,
-                     const char *pszFile = __FILE__,
-                     int nLine = __LINE__);
---- a/swig/java/apps/ogr2ogr.java
-+++ b/swig/java/apps/ogr2ogr.java
-@@ -1194,7 +1194,7 @@ public class ogr2ogr
-     /*      Find the layer.                                                 */
-     /* -------------------------------------------------------------------- */
- 
--        /* GetLayerByName() can instanciate layers that would have been */
-+        /* GetLayerByName() can instantiate layers that would have been */
-         /* 'hidden' otherwise, for example, non-spatial tables in a */
-         /* Postgis-enabled database, so this apparently useless command is */
-         /* not useless... (#4012) */
---- a/swig/java/javadoc.java
-+++ b/swig/java/javadoc.java
-@@ -8179,7 +8179,7 @@ public class Geometry:public Geometry(in
- /** 
-  * Create a new geometry.
-  * <p>
-- * The geometry can be instanciated by 4 different and exclusive way :
-+ * The geometry can be instantiated by 4 different and exclusive way :
-  * <ul>
-  * <li> By specifying the geometry type (ogr.wkbPoint, etc..)</li>
-  * <li> By specifying the well known text representation (wkt)</li>
---- a/swig/python/samples/ogr2ogr.py
-+++ b/swig/python/samples/ogr2ogr.py
-@@ -1244,7 +1244,7 @@ def SetupTargetLayer( poSrcDS, poSrcLaye
- #/*      Find the layer.                                                 */
- #/* -------------------------------------------------------------------- */
- 
--    #/* GetLayerByName() can instanciate layers that would have been */
-+    #/* GetLayerByName() can instantiate layers that would have been */
-     #*/ 'hidden' otherwise, for example, non-spatial tables in a */
-     #*/ Postgis-enabled database, so this apparently useless command is */
-     #/* not useless... (#4012) */
---- a/gcore/gdaldllmain.cpp
-+++ b/gcore/gdaldllmain.cpp
-@@ -79,7 +79,7 @@ void GDALDestroy(void)
-     bInGDALGlobalDestructor = FALSE;
- 
-     /* See https://trac.osgeo.org/gdal/ticket/6139 */
--    /* Needed in case no driver manager has been instanciated */
-+    /* Needed in case no driver manager has been instantiated */
-     CPLFreeConfig();
-     CPLFinalizeTLS();
-     CPLCleanupMasterMutex();
---- a/ogr/ogr_arch.dox
-+++ b/ogr/ogr_arch.dox
-@@ -240,7 +240,7 @@ A GDALDriver object is instantiated for
- The GDALDriver objects are registered with the GDALDriverManager, a
- singleton class that is normally used to open new datasets.<p>
- 
--It is intended that a new GDALDriver object is instanciated and define function
-+It is intended that a new GDALDriver object is instantiated and define function
- pointers for operations like Identify(), Open() for each
- file format to be supported (along with a file format specific 
- GDALDataset, and OGRLayer classes).<p>
---- a/ogr/ogrsf_frmts/mitab/mitab_imapinfofile.cpp
-+++ b/ogr/ogrsf_frmts/mitab/mitab_imapinfofile.cpp
-@@ -318,7 +318,7 @@ OGRFeature *IMapInfoFile::GetNextFeature
- /**********************************************************************
-  *                   IMapInfoFile::CreateTABFeature()
-  *
-- * Instanciate a TABFeature* from a OGRFeature* (or NULL on error)
-+ * Instantiate a TABFeature* from a OGRFeature* (or NULL on error)
-  **********************************************************************/
- 
- TABFeature* IMapInfoFile::CreateTABFeature(OGRFeature *poFeature)
diff --git a/debian/patches/java.opt b/debian/patches/java.opt
index 16233c4..b0fd385 100644
--- a/debian/patches/java.opt
+++ b/debian/patches/java.opt
@@ -6,10 +6,10 @@ Forwarded: not-needed
 
 --- a/swig/java/java.opt
 +++ b/swig/java/java.opt
-@@ -2,6 +2,7 @@
- # Java Stuff
+@@ -3,6 +3,7 @@
  #JAVA_HOME = "C:\Program Files\Java\jdk1.6.0_16"
  #JAVA_HOME = /usr/lib/jvm/java-6-openjdk/
+ #JAVA_HOME = /usr/lib/jvm/java-7-openjdk-amd64/
 +JAVA_HOME = /usr/lib/jvm/default-java/
  JAVADOC=$(JAVA_HOME)/bin/javadoc
  JAVAC=$(JAVA_HOME)/bin/javac
diff --git a/debian/patches/message-typo.patch b/debian/patches/message-typo.patch
deleted file mode 100644
index cf00fe0..0000000
--- a/debian/patches/message-typo.patch
+++ /dev/null
@@ -1,37 +0,0 @@
-Description: Fix 'messge' typo, replace with 'message'.
-Author: Bas Couwenberg <sebastic at debian.org>
-Forwarded: not-needed
-
---- a/frmts/grib/degrib18/g2clib-1.0.4/g2_addfield.c
-+++ b/frmts/grib/degrib18/g2clib-1.0.4/g2_addfield.c
-@@ -139,7 +139,7 @@ g2int g2_addfield(unsigned char *cgrib,g
- //
-       if ( cgrib[0]!=G || cgrib[1]!=R || cgrib[2]!=I || cgrib[3]!=B ) {
-         printf("g2_addfield: GRIB not found in given message.\n");
--        printf("g2_addfield: Call to routine g2_create required to initialize GRIB messge.\n");
-+        printf("g2_addfield: Call to routine g2_create required to initialize GRIB message.\n");
-         ierr=-1;
-         return(ierr);
-       }
---- a/frmts/grib/degrib18/g2clib-1.0.4/g2_addgrid.c
-+++ b/frmts/grib/degrib18/g2clib-1.0.4/g2_addgrid.c
-@@ -89,7 +89,7 @@ g2int g2_addgrid(unsigned char *cgrib,g2
- //
-       if ( cgrib[0]!=G || cgrib[1]!=R || cgrib[2]!=I || cgrib[3]!=B ) {
-         printf("g2_addgrid: GRIB not found in given message.\n");
--        printf("g2_addgrid: Call to routine gribcreate required to initialize GRIB messge.\n");
-+        printf("g2_addgrid: Call to routine gribcreate required to initialize GRIB message.\n");
-         ierr=-1;
-         return(ierr);
-       }
---- a/frmts/grib/degrib18/g2clib-1.0.4/g2_addlocal.c
-+++ b/frmts/grib/degrib18/g2clib-1.0.4/g2_addlocal.c
-@@ -67,7 +67,7 @@ g2int g2_addlocal(unsigned char *cgrib,u
- //
-       if ( cgrib[0]!=G || cgrib[1]!=R || cgrib[2]!=I || cgrib[3]!=B ) {
-         printf("g2_addlocal: GRIB not found in given message.\n");
--        printf("g2_addlocal: Call to routine g2_create required to initialize GRIB messge.\n");
-+        printf("g2_addlocal: Call to routine g2_create required to initialize GRIB message.\n");
-         ierr=-1;
-         return(ierr);
-       }
diff --git a/debian/patches/occurred-typo.patch b/debian/patches/occurred-typo.patch
deleted file mode 100644
index 66d4349..0000000
--- a/debian/patches/occurred-typo.patch
+++ /dev/null
@@ -1,848 +0,0 @@
-Description: Fix 'occured' typo, replace with 'occurred'.
- Also fix 'occurance' typo, replace with 'occurrence'.
-Author: Bas Couwenberg <sebastic at debian.org>
-Forwarded: https://trac.osgeo.org/gdal/ticket/6324
-
---- a/NEWS
-+++ b/NEWS
-@@ -1665,7 +1665,7 @@ Core:
-  * introduce OGRLayer::FindFieldIndex() / OGR_L_FindFieldIndex() to lookup potentially laundered field names (RFC 42)
-  * OGR SQL: upgrade to support RFC 41 (multiple geometry fields)
-  * OGR SQL: more stricter checks
-- * OGR SQL: make parsing error report a useful hint where the syntax error occured
-+ * OGR SQL: make parsing error report a useful hint where the syntax error occurred
-  * OGR SQL: fix thread-safety of swq_op_registrar::GetOperator() (#5196)
-  * OGR SQL: support not explicitly specifying AS keyword for aliasing a column spec
-  * OGR SQL: don't call CONCAT(a_column ...) or SUBSTR(a_column ...) as a_column
-@@ -2906,7 +2906,7 @@ Core:
-  * Fix performance problem when serializing huge color tables, metadata, CategoryNames and GCPs to VRT/PAM (#3961)
-  * Be careful about Nan complex values getting histogram, avoid locale issues with statistics metadata
-  * GDALRasterBand::IRasterIO() default implementation : don't try to use full-res band if I/O failed on the appropriate overview band (for WMS errors)
-- * RasterIO: Return earlier when a write error occured while flushing dirty block
-+ * RasterIO: Return earlier when a write error occurred while flushing dirty block
-  * GDAL_DISABLE_READDIR_ON_OPEN can be set to EMPTY_DIR to avoid reading the dir, but it set an empty dir to avoid looking for auxiliary files
-  * Use sibling file list to look for .aux.xml, .aux, .ovr, world files, tab files
-  * Add GDALFindAssociatedFile() (#4008)
---- a/alg/gdalwarper.cpp
-+++ b/alg/gdalwarper.cpp
-@@ -1522,7 +1522,7 @@ GDALWarpOptions * CPL_STDCALL GDALDeseri
-     }
- 
- /* -------------------------------------------------------------------- */
--/*      If any error has occured, cleanup else return success.          */
-+/*      If any error has occurred, cleanup else return success.         */
- /* -------------------------------------------------------------------- */
-     if( CPLGetLastErrorNo() != CE_None )
-     {
---- a/apps/testepsg.cpp
-+++ b/apps/testepsg.cpp
-@@ -115,7 +115,7 @@ int main( int nArgc, char ** papszArgv )
-         {
-             if( oSRS.SetFromUserInput(papszArgv[i]) != OGRERR_NONE )
-                 CPLError( CE_Failure, CPLE_AppDefined, 
--                          "Error occured translating %s.\n", 
-+                          "Error occurred translating %s.\n", 
-                           papszArgv[i] );
-             else
-             {
---- a/frmts/bsb/bsb_read.c
-+++ b/frmts/bsb/bsb_read.c
-@@ -831,7 +831,7 @@ int BSBReadScanline( BSBInfo *psInfo, in
- /*      For reasons that are unclear, some scanlines are exactly one    */
- /*      pixel short (such as in the BSB 3.0 354704.KAP product from     */
- /*      NDI/CHS) but are otherwise OK.  Just add a zero if this         */
--/*      appear to have occured.                                         */
-+/*      appear to have occurred.                                        */
- /* -------------------------------------------------------------------- */
-         if( iPixel == psInfo->nXSize - 1 )
-             pabyScanlineBuf[iPixel++] = 0;
---- a/frmts/epsilon/epsilondataset.cpp
-+++ b/frmts/epsilon/epsilondataset.cpp
-@@ -903,7 +903,7 @@ EpsilonDatasetCreateCopy( const char * p
-                                            (char*) pszFilter, eMode))
-                 {
-                     CPLError(CE_Failure, CPLE_AppDefined,
--                             "Error occured when encoding block (%d, %d)",
-+                             "Error occurred when encoding block (%d, %d)",
-                              nBlockXOff, nBlockYOff);
-                     eErr = CE_Failure;
-                 }
-@@ -924,7 +924,7 @@ EpsilonDatasetCreateCopy( const char * p
-                                            (char*) pszFilter, eMode))
-                 {
-                     CPLError(CE_Failure, CPLE_AppDefined,
--                             "Error occured when encoding block (%d, %d)",
-+                             "Error occurred when encoding block (%d, %d)",
-                              nBlockXOff, nBlockYOff);
-                     eErr = CE_Failure;
-                 }
---- a/frmts/gtiff/libtiff/tif_ojpeg.c
-+++ b/frmts/gtiff/libtiff/tif_ojpeg.c
-@@ -1381,7 +1381,7 @@ OJPEGReadHeaderInfoSec(TIFF* tif)
- static int
- OJPEGReadHeaderInfoSecStreamDri(TIFF* tif)
- {
--	/* this could easilly cause trouble in some cases... but no such cases have occured sofar */
-+	/* this could easilly cause trouble in some cases... but no such cases have occurred sofar */
- 	static const char module[]="OJPEGReadHeaderInfoSecStreamDri";
- 	OJPEGState* sp=(OJPEGState*)tif->tif_data;
- 	uint16 m;
---- a/frmts/hdf4/hdf-eos/SWapi.c
-+++ b/frmts/hdf4/hdf-eos/SWapi.c
-@@ -10266,8 +10266,8 @@ SWdetach(int32 swathID)
- 
- 		if (abs(match[0]) == 1)
- 		{
--		    /* Two Dimensional Array (no merging has occured) */
--		    /* ---------------------------------------------- */
-+		    /* Two Dimensional Array (no merging has occurred) */
-+		    /* ----------------------------------------------- */
- 		    dims[0] = abs(match[1]);
- 		    dims[1] = abs(match[2]);
- 
---- a/frmts/iso8211/ddfrecord.cpp
-+++ b/frmts/iso8211/ddfrecord.cpp
-@@ -738,7 +738,7 @@ int DDFRecord::GetIntSubfield( const cha
- /* -------------------------------------------------------------------- */
- /*      Return the extracted value.                                     */
- /*                                                                      */
--/*      Assume an error has occured if no bytes are consumed.           */
-+/*      Assume an error has occurred if no bytes are consumed.          */
- /* -------------------------------------------------------------------- */
-     int nConsumedBytes = 0;
-     int nResult = poSFDefn->ExtractIntData( pachData, nBytesRemaining, 
---- a/frmts/raw/envidataset.cpp
-+++ b/frmts/raw/envidataset.cpp
-@@ -2299,7 +2299,7 @@ GDALDataset *ENVIDataset::Open( GDALOpen
-     {
-         delete poDS;
-         CPLError( CE_Failure, CPLE_AppDefined, 
--                  "Int overflow occured.");
-+                  "Int overflow occurred.");
-         return NULL;
-     }
-     
---- a/frmts/raw/genbindataset.cpp
-+++ b/frmts/raw/genbindataset.cpp
-@@ -808,7 +808,7 @@ GDALDataset *GenBinDataset::Open( GDALOp
-     {
-         delete poDS;
-         CPLError( CE_Failure, CPLE_AppDefined, 
--                  "Int overflow occured.");
-+                  "Int overflow occurred.");
-         return NULL;
-     }
- 
---- a/frmts/raw/lcpdataset.cpp
-+++ b/frmts/raw/lcpdataset.cpp
-@@ -297,7 +297,7 @@ GDALDataset *LCPDataset::Open( GDALOpenI
- 
-    if (nWidth > INT_MAX / iPixelSize)
-    {
--       CPLError( CE_Failure, CPLE_AppDefined,  "Int overflow occured");
-+       CPLError( CE_Failure, CPLE_AppDefined,  "Int overflow occurred");
-        delete poDS;
-        return NULL;
-    }
---- a/frmts/raw/mffdataset.cpp
-+++ b/frmts/raw/mffdataset.cpp
-@@ -961,7 +961,7 @@ GDALDataset *MFFDataset::Open( GDALOpenI
-         {
-             if (poDS->GetRasterXSize() > INT_MAX / nPixelOffset)
-             {
--                CPLError( CE_Warning, CPLE_AppDefined,  "Int overflow occured... skipping");
-+                CPLError( CE_Warning, CPLE_AppDefined,  "Int overflow occurred... skipping");
-                 nSkipped++;
-                 VSIFCloseL(fpRaw);
-                 continue;
---- a/frmts/raw/pnmdataset.cpp
-+++ b/frmts/raw/pnmdataset.cpp
-@@ -258,7 +258,7 @@ GDALDataset *PNMDataset::Open( GDALOpenI
-         if (nWidth > INT_MAX / iPixelSize)
-         {
-             CPLError( CE_Failure, CPLE_AppDefined, 
--                  "Int overflow occured.");
-+                  "Int overflow occurred.");
-             delete poDS;
-             return NULL;
-         }
-@@ -272,7 +272,7 @@ GDALDataset *PNMDataset::Open( GDALOpenI
-         if (nWidth > INT_MAX / (3 * iPixelSize))
-         {
-             CPLError( CE_Failure, CPLE_AppDefined, 
--                  "Int overflow occured.");
-+                  "Int overflow occurred.");
-             delete poDS;
-             return NULL;
-         }
---- a/frmts/rmf/rmflzw.cpp
-+++ b/frmts/rmf/rmflzw.cpp
-@@ -92,7 +92,7 @@ static void LZWUpdateTab(LZWStringTab *p
-         nNext = nLocal;
-     else
-     {
--        // If collision has occured
-+        // If collision has occurred
-         while ( (nNext = poCodeTab[nLocal].iNext) != 0 )
-             nLocal = nNext;
- 
---- a/frmts/sdts/sdtspolygonreader.cpp
-+++ b/frmts/sdts/sdtspolygonreader.cpp
-@@ -209,7 +209,7 @@ void SDTSRawPolygon::AddEdgeToRing( int
-  * direction of rings.
-  *
-  * @return TRUE if all rings assembled without problems or FALSE if a problem
-- * occured.  If a problem occurs rings are still formed from all lines, but
-+ * occurred.  If a problem occurs rings are still formed from all lines, but
-  * some of the rings will not be closed, and rings will have no particular
-  * order or direction.
-  */
---- a/gcore/gdal_misc.cpp
-+++ b/gcore/gdal_misc.cpp
-@@ -2845,7 +2845,7 @@ GDALDataset *GDALFindAssociatedAuxFile(
- /*      file.  Check that we are the dependent file of the aux          */
- /*      file, or if we aren't verify that the dependent file does       */
- /*      not exist, likely mean it is us but some sort of renaming       */
--/*      has occured.                                                    */
-+/*      has occurred.                                                   */
- /* -------------------------------------------------------------------- */
-     CPLString osJustFile = CPLGetFilename(pszBasename); // without dir
-     CPLString osAuxFilename = CPLResetExtension(pszBasename, pszAuxSuffixLC);
---- a/gcore/gdaldefaultasync.cpp
-+++ b/gcore/gdaldefaultasync.cpp
-@@ -89,7 +89,7 @@ GDALAsyncReader::~GDALAsyncReader()
-  * activity pending.
-  * - GARIO_ERROR: Something has gone wrong. The asynchronous request should 
-  * be ended.
-- * - GARIO_COMPLETE: An update has occured and there is no more pending work 
-+ * - GARIO_COMPLETE: An update has occurred and there is no more pending work 
-  * on this request. The request should be ended and the buffer used. 
-  *
-  * @param dfTimeout the number of seconds to wait for additional updates.  Use 
---- a/gcore/gdalrasterband.cpp
-+++ b/gcore/gdalrasterband.cpp
-@@ -224,7 +224,7 @@ CPLErr GDALRasterBand::RasterIO( GDALRWF
-     if( eRWFlag == GF_Write && eFlushBlockErr != CE_None )
-     {
-         ReportError(eFlushBlockErr, CPLE_AppDefined,
--                 "An error occured while writing a dirty block");
-+                 "An error occurred while writing a dirty block");
-         CPLErr eErr = eFlushBlockErr;
-         eFlushBlockErr = CE_None;
-         return eErr;
-@@ -579,7 +579,7 @@ CPLErr GDALRasterBand::WriteBlock( int n
-     if( eFlushBlockErr != CE_None )
-     {
-         ReportError(eFlushBlockErr, CPLE_AppDefined,
--                 "An error occured while writing a dirty block");
-+                 "An error occurred while writing a dirty block");
-         CPLErr eErr = eFlushBlockErr;
-         eFlushBlockErr = CE_None;
-         return eErr;
-@@ -918,7 +918,7 @@ CPLErr GDALRasterBand::FlushCache()
-     if (eFlushBlockErr != CE_None)
-     {
-         ReportError(eFlushBlockErr, CPLE_AppDefined,
--                 "An error occured while writing a dirty block");
-+                 "An error occurred while writing a dirty block");
-         eFlushBlockErr = CE_None;
-     }
- 
-@@ -5270,9 +5270,9 @@ unsigned char* GDALRasterBand::GetIndexC
- /************************************************************************/
- 
- /**
-- * \brief Store that an error occured while writing a dirty block.
-+ * \brief Store that an error occurred while writing a dirty block.
-  *
-- * This function stores the fact that an error occured while writing a dirty
-+ * This function stores the fact that an error occurred while writing a dirty
-  * block from GDALRasterBlock::FlushCacheBlock(). Indeed when dirty blocks are
-  * flushed when the block cache get full, it is not convenient/possible to
-  * report that a dirty block could not be written correctly. This function
---- a/gcore/overview.cpp
-+++ b/gcore/overview.cpp
-@@ -2259,7 +2259,7 @@ GDALRegenerateOverviews( GDALRasterBandH
- 
-     /* In case the mask made be computed from another band of the dataset, */
-     /* we can't use cascaded generation, as the computation of the overviews */
--    /* of the band used for the mask band may not have yet occured (#3033) */
-+    /* of the band used for the mask band may not have yet occurred (#3033) */
-     if( (EQUALN(pszResampling,"AVER",4) |
-          EQUALN(pszResampling,"GAUSS",5) ||
-          EQUAL(pszResampling,"CUBIC") ||
---- a/gcore/rasterio.cpp
-+++ b/gcore/rasterio.cpp
-@@ -79,7 +79,7 @@ CPLErr GDALRasterBand::IRasterIO( GDALRW
-     if( eRWFlag == GF_Write && eFlushBlockErr != CE_None )
-     {
-         CPLError(eFlushBlockErr, CPLE_AppDefined,
--                 "An error occured while writing a dirty block");
-+                 "An error occurred while writing a dirty block");
-         CPLErr eErr = eFlushBlockErr;
-         eFlushBlockErr = CE_None;
-         return eErr;
---- a/ogr/ogr_srsnode.cpp
-+++ b/ogr/ogr_srsnode.cpp
-@@ -770,7 +770,7 @@ void OGR_SRSNode::MakeValueSafe()
-  * argument.
-  * 
-  * @return returns OGRERR_NONE unless something bad happens.  There is no
-- * indication returned about whether any replacement occured.  
-+ * indication returned about whether any replacement occurred.  
-  */
- 
- OGRErr OGR_SRSNode::applyRemapper( const char *pszNode, 
---- a/ogr/ogrgeometry.cpp
-+++ b/ogr/ogrgeometry.cpp
-@@ -4125,7 +4125,7 @@ int OGR_G_Centroid( OGRGeometryH hGeom,
-  *
-  * @param hGeom the geometry to operate on. 
-  * @return a point guaranteed to lie on the surface or NULL if an error
-- *         occured.
-+ *         occurred.
-  *
-  * @since OGR 1.10
-  */
---- a/ogr/ogrsf_frmts/bna/ogrbnaparser.cpp
-+++ b/ogr/ogrsf_frmts/bna/ogrbnaparser.cpp
-@@ -121,7 +121,7 @@ and http://64.145.236.125/forum/topic.as
- /* We allow that couples of coordinates on the same line may be separated only by spaces */
- /* (instead of being separated by a comma) */
- 
--#define STRING_NOT_TERMINATED      "string not terminated when end of line occured"
-+#define STRING_NOT_TERMINATED      "string not terminated when end of line occurred"
- #define MISSING_FIELDS             "missing fields"
- #define BAD_INTEGER_NUMBER_FORMAT  "bad integer number format"
- #define BAD_FLOAT_NUMBER_FORMAT    "bad float number format"
---- a/ogr/ogrsf_frmts/ntf/ntfrecord.cpp
-+++ b/ogr/ogrsf_frmts/ntf/ntfrecord.cpp
-@@ -170,7 +170,7 @@ int NTFRecord::ReadPhysicalLine( FILE *f
-         else
-         {
-             CPLError( CE_Failure, CPLE_AppDefined, 
--                      "Low level read error occured while reading NTF file." );
-+                      "Low level read error occurred while reading NTF file." );
-             return -2;
-         }
-     }
---- a/ogr/ogrsf_frmts/openfilegdb/filegdbtable.cpp
-+++ b/ogr/ogrsf_frmts/openfilegdb/filegdbtable.cpp
-@@ -56,7 +56,7 @@ namespace OpenFileGDB
- 
- void FileGDBTablePrintError(const char* pszFile, int nLineNumber)
- {
--    CPLError(CE_Failure, CPLE_AppDefined, "Error occured in %s at line %d",
-+    CPLError(CE_Failure, CPLE_AppDefined, "Error occurred in %s at line %d",
-              pszFile, nLineNumber);
- }
- 
---- a/ogr/ogrsf_frmts/osm/gpb.h
-+++ b/ogr/ogrsf_frmts/osm/gpb.h
-@@ -41,7 +41,7 @@
- #ifdef DEBUG_GPB_ERRORS
- static void error_occured(int nLine)
- {
--    CPLError(CE_Failure, CPLE_AppDefined, "Parsing error occured at line %d", nLine);
-+    CPLError(CE_Failure, CPLE_AppDefined, "Parsing error occurred at line %d", nLine);
- }
- 
- #define GOTO_END_ERROR do { error_occured(__LINE__); goto end_error; } while(0)
---- a/ogr/ogrsf_frmts/osm/ogrosmdatasource.cpp
-+++ b/ogr/ogrsf_frmts/osm/ogrosmdatasource.cpp
-@@ -3729,7 +3729,7 @@ int OGROSMDataSource::ParseNextChunk(int
-             else
-             {
-                 CPLError(CE_Failure, CPLE_AppDefined,
--                         "An error occured during the parsing of data around byte " CPL_FRMT_GUIB,
-+                         "An error occurred during the parsing of data around byte " CPL_FRMT_GUIB,
-                          OSM_GetBytesRead(psParser));
- 
-                 bStopParsing = TRUE;
---- a/ogr/ogrsf_frmts/pg/ogrpgutility.cpp
-+++ b/ogr/ogrsf_frmts/pg/ogrpgutility.cpp
-@@ -81,7 +81,7 @@ PGresult *OGRPG_PQexec(PGconn *conn, con
- #endif
- 
- /* -------------------------------------------------------------------- */
--/*      Generate an error report if an error occured.                   */
-+/*      Generate an error report if an error occurred.                  */
- /* -------------------------------------------------------------------- */
-     if ( !hResult || (PQresultStatus(hResult) == PGRES_NONFATAL_ERROR ||
-                       PQresultStatus(hResult) == PGRES_FATAL_ERROR ) )
---- a/ogr/ogrsf_frmts/shape/shape2ogr.cpp
-+++ b/ogr/ogrsf_frmts/shape/shape2ogr.cpp
-@@ -1429,7 +1429,7 @@ OGRErr SHPWriteOGRFeature( SHPHandle hSH
-                 if( nCounter <= 10 )
-                 {
-                     CPLError(CE_Warning, CPLE_AppDefined,
--                             "Value %.18g of field %s with 0 decimal of feature " CPL_FRMT_GIB " is bigger than 2^53. Precision loss likely occured or going to happen.%s",
-+                             "Value %.18g of field %s with 0 decimal of feature " CPL_FRMT_GIB " is bigger than 2^53. Precision loss likely occurred or going to happen.%s",
-                              dfVal, poFieldDefn->GetNameRef(), poFeature->GetFID(),
-                              (nCounter == 10) ? " This warning will not be emitted anymore." : "");
-                     nCounter ++;
---- a/ogr/ogrsf_frmts/sqlite/ogrsqliteexecutesql.cpp
-+++ b/ogr/ogrsf_frmts/sqlite/ogrsqliteexecutesql.cpp
-@@ -635,7 +635,7 @@ int OGR2SQLITEDealWithSpatialColumn(OGRL
-     if( rc != SQLITE_OK )
-     {
-         CPLDebug("SQLITE",
--                    "Error occured during spatial index creation : %s",
-+                    "Error occurred during spatial index creation : %s",
-                     sqlite3_errmsg(hDB));
-     }
- #else //  ENABLE_VIRTUAL_OGR_SPATIAL_INDEX
-@@ -691,7 +691,7 @@ int OGR2SQLITEDealWithSpatialColumn(OGRL
-     else
-     {
-         CPLDebug("SQLITE",
--                    "Error occured during spatial index creation : %s",
-+                    "Error occurred during spatial index creation : %s",
-                     sqlite3_errmsg(hDB));
-         rc = sqlite3_exec( hDB, "ROLLBACK", NULL, NULL, NULL );
-     }
---- a/ogr/ogrsf_frmts/tiger/tigercompletechain.cpp
-+++ b/ogr/ogrsf_frmts/tiger/tigercompletechain.cpp
-@@ -489,7 +489,7 @@ int TigerCompleteChain::AddShapePoints(
- 
-     nShapeRecId = GetShapeRecordId( nRecordId, nTLID );
- 
--    // -2 means an error occured.
-+    // -2 means an error occurred.
-     if( nShapeRecId == -2 )
-         return FALSE;
- 
---- a/ogr/osr_cs_wkt.c
-+++ b/ogr/osr_cs_wkt.c
-@@ -47,7 +47,7 @@ void osr_cs_wkt_error( osr_cs_wkt_parse_
-     int i, n;
-     char* szPtr;
-     sprintf(context->szErrorMsg,
--            "Parsing error : %s. Error occured around:\n", msg );
-+            "Parsing error : %s. Error occurred around:\n", msg );
-     n = context->pszLastSuccess - context->pszInput;
- 
-     szPtr = context->szErrorMsg + strlen(context->szErrorMsg);
---- a/ogr/swq.cpp
-+++ b/ogr/swq.cpp
-@@ -36,7 +36,7 @@
- void swqerror( swq_parse_context *context, const char *msg )
- {
-     CPLString osMsg;
--    osMsg.Printf( "SQL Expression Parsing Error: %s. Occured around :\n", msg );
-+    osMsg.Printf( "SQL Expression Parsing Error: %s. Occurred around :\n", msg );
- 
-     int i;
-     int n = context->pszLastValid - context->pszInput;
---- a/port/cpl_error.cpp
-+++ b/port/cpl_error.cpp
-@@ -135,7 +135,7 @@ void* CPL_STDCALL CPLGetErrorHandlerUser
-  * The eErrClass argument can have the value CE_Warning indicating that the
-  * message is an informational warning, CE_Failure indicating that the
-  * action failed, but that normal recover mechanisms will be used or
-- * CE_Fatal meaning that a fatal error has occured, and that CPLError()
-+ * CE_Fatal meaning that a fatal error has occurred, and that CPLError()
-  * should not return.  
-  *
-  * The default behaviour of CPLError() is to report errors to stderr,
---- a/port/cpl_odbc.cpp
-+++ b/port/cpl_odbc.cpp
-@@ -802,7 +802,7 @@ const char *CPLODBCStatement::GetColColu
-  * be considered reliable on all drivers. 
-  *
-  * Currently it isn't clear how to determine whether an error or a normal
-- * out of data condition has occured if Fetch() fails. 
-+ * out of data condition has occurred if Fetch() fails. 
-  *
-  * @param nOrientation One of SQL_FETCH_NEXT, SQL_FETCH_LAST, SQL_FETCH_PRIOR,
-  * SQL_FETCH_ABSOLUTE, or SQL_FETCH_RELATIVE (default is SQL_FETCH_NEXT).
---- a/port/cpl_spawn.cpp
-+++ b/port/cpl_spawn.cpp
-@@ -119,7 +119,7 @@ int CPLSpawn(const char * const papszArg
-     GByte* pData = VSIGetMemFileBuffer(osName.c_str(), &nDataLength, TRUE);
-     if( nDataLength > 0 )
-         pData[nDataLength-1] = '\0';
--    if( pData && strstr((const char*)pData, "An error occured while forking process") != NULL )
-+    if( pData && strstr((const char*)pData, "An error occurred while forking process") != NULL )
-         bDisplayErr = TRUE;
-     if( pData && bDisplayErr )
-         CPLError(CE_Failure, CPLE_AppDefined, "[%s error] %s", papszArgv[0], pData);
---- a/port/cpl_string.cpp
-+++ b/port/cpl_string.cpp
-@@ -1588,7 +1588,7 @@ const char *CSLFetchNameValue(char **pap
-  * @param papszStrList the string list to search.
-  * @param pszName the key value to look for (case insensitive).
-  *
-- * @return -1 on failure or the list index of the first occurance 
-+ * @return -1 on failure or the list index of the first occurrence 
-  * matching the given key.
-  */
- 
-@@ -2559,7 +2559,7 @@ CPLValueType CPLGetValueType(const char*
- \verbatim
- char szDest[5];
- if (CPLStrlcpy(szDest, "abcde", sizeof(szDest)) >= sizeof(szDest))
--    fprintf(stderr, "truncation occured !\n");
-+    fprintf(stderr, "truncation occurred !\n");
- \endverbatim
- 
-  * @param pszDest   destination buffer
-@@ -2611,7 +2611,7 @@ size_t CPLStrlcpy(char* pszDest, const c
- char szDest[5];
- CPLStrlcpy(szDest, "ab", sizeof(szDest));
- if (CPLStrlcat(szDest, "cde", sizeof(szDest)) >= sizeof(szDest))
--    fprintf(stderr, "truncation occured !\n");
-+    fprintf(stderr, "truncation occurred !\n");
- \endverbatim
- 
-  * @param pszDest   destination buffer. Must be NUL terminated before running CPLStrlcat
---- a/port/cpl_virtualmem.cpp
-+++ b/port/cpl_virtualmem.cpp
-@@ -64,7 +64,7 @@
-    - mremap() with 5 args is Linux specific. It is used when the user callback is invited
-      to fill a page, we currently mmap() a writable page, let it filled it,
-      and afterwards mremap() that temporary page onto the location where the
--     fault occured.
-+     fault occurred.
-      If we have no mremap(), the workaround is to pause other threads that
-      consume the current view while we are updating the faulted page, otherwise
-      a non-paused thread could access a page that is in the middle of being
---- a/port/cpl_vsil.cpp
-+++ b/port/cpl_vsil.cpp
-@@ -754,7 +754,7 @@ size_t VSIFWriteL( const void *pBuffer,
- /**
-  * \brief Test for end of file.
-  *
-- * Returns TRUE (non-zero) if an end-of-file condition occured during the
-+ * Returns TRUE (non-zero) if an end-of-file condition occurred during the
-  * previous read operation. The end-of-file flag is cleared by a successful
-  * VSIFSeekL() call.
-  *
---- a/swig/csharp/gdal/gdal_wrap.cpp
-+++ b/swig/csharp/gdal/gdal_wrap.cpp
-@@ -717,7 +717,7 @@ void GDAL_GCP_set_Id( GDAL_GCP *gcp, con
- }
- 
- 
--/* Returned size is in bytes or 0 if an error occured */
-+/* Returned size is in bytes or 0 if an error occurred */
- static
- GIntBig ComputeDatasetRasterIOSize (int buf_xsize, int buf_ysize, int nPixelSize,
-                                 int nBands, int* bandMap, int nBandMapArrayLength,
-@@ -997,7 +997,7 @@ int GDALDatasetShadow_RasterCount_get( G
- }
- 
- 
--/* Returned size is in bytes or 0 if an error occured */
-+/* Returned size is in bytes or 0 if an error occurred */
- static
- GIntBig ComputeBandRasterIOSize (int buf_xsize, int buf_ysize, int nPixelSize,
-                                  GIntBig nPixelSpace, GIntBig nLineSpace,
---- a/swig/include/Band.i
-+++ b/swig/include/Band.i
-@@ -36,7 +36,7 @@
- 
- 
- %{
--/* Returned size is in bytes or 0 if an error occured */
-+/* Returned size is in bytes or 0 if an error occurred */
- static
- GIntBig ComputeBandRasterIOSize (int buf_xsize, int buf_ysize, int nPixelSize,
-                                  GIntBig nPixelSpace, GIntBig nLineSpace,
---- a/swig/include/Dataset.i
-+++ b/swig/include/Dataset.i
-@@ -29,7 +29,7 @@
-  *****************************************************************************/
- 
- %{
--/* Returned size is in bytes or 0 if an error occured */
-+/* Returned size is in bytes or 0 if an error occurred */
- static
- GIntBig ComputeDatasetRasterIOSize (int buf_xsize, int buf_ysize, int nPixelSize,
-                                 int nBands, int* bandMap, int nBandMapArrayLength,
---- a/swig/java/javadoc.java
-+++ b/swig/java/javadoc.java
-@@ -190,7 +190,7 @@ public class gdal:public static int SetE
-  * The msg_class argument can have the value gdalconst.CE_Warning indicating that the
-  * message is an informational warning, gdalconst.CE_Failure indicating that the
-  * action failed, but that normal recover mechanisms will be used or
-- * CE_Fatal meaning that a fatal error has occured, and that Error()
-+ * CE_Fatal meaning that a fatal error has occurred, and that Error()
-  * should not return.  
-  * <p>
-  * The default behaviour of Error() is to report errors to stderr,
---- a/swig/perl/gdal_wrap.cpp
-+++ b/swig/perl/gdal_wrap.cpp
-@@ -2214,7 +2214,7 @@ CreateArrayFromDoubleArray( double *firs
- }
- 
- 
--/* Returned size is in bytes or 0 if an error occured */
-+/* Returned size is in bytes or 0 if an error occurred */
- static
- GIntBig ComputeDatasetRasterIOSize (int buf_xsize, int buf_ysize, int nPixelSize,
-                                 int nBands, int* bandMap, int nBandMapArrayLength,
-@@ -2600,7 +2600,7 @@ int GDALDatasetShadow_RasterCount_get( G
- }
- 
- 
--/* Returned size is in bytes or 0 if an error occured */
-+/* Returned size is in bytes or 0 if an error occurred */
- static
- GIntBig ComputeBandRasterIOSize (int buf_xsize, int buf_ysize, int nPixelSize,
-                                  GIntBig nPixelSpace, GIntBig nLineSpace,
---- a/swig/php/gdal_wrap.cpp
-+++ b/swig/php/gdal_wrap.cpp
-@@ -1438,7 +1438,7 @@ t_output_helper( zval **target, zval *o)
- }
- 
- 
--/* Returned size is in bytes or 0 if an error occured */
-+/* Returned size is in bytes or 0 if an error occurred */
- static
- GIntBig ComputeDatasetRasterIOSize (int buf_xsize, int buf_ysize, int nPixelSize,
-                                 int nBands, int* bandMap, int nBandMapArrayLength,
-@@ -1784,7 +1784,7 @@ int GDALDatasetShadow_RasterCount_get( G
- }
- 
- 
--/* Returned size is in bytes or 0 if an error occured */
-+/* Returned size is in bytes or 0 if an error occurred */
- static
- GIntBig ComputeBandRasterIOSize (int buf_xsize, int buf_ysize, int nPixelSize,
-                              int nPixelSpace, int nLineSpace,
---- a/swig/python/extensions/gdal_wrap.cpp
-+++ b/swig/python/extensions/gdal_wrap.cpp
-@@ -3819,7 +3819,7 @@ SWIGINTERN void CPLVirtualMemShadow_Pin(
-         CPLVirtualMemPin(self->vmem, start_addr, nsize, bWriteOp);
-     }
- 
--/* Returned size is in bytes or 0 if an error occured */
-+/* Returned size is in bytes or 0 if an error occurred */
- static
- GIntBig ComputeDatasetRasterIOSize (int buf_xsize, int buf_ysize, int nPixelSize,
-                                 int nBands, int* bandMap, int nBandMapArrayLength,
-@@ -4450,7 +4450,7 @@ int GDALDatasetShadow_RasterCount_get( G
- }
- 
- 
--/* Returned size is in bytes or 0 if an error occured */
-+/* Returned size is in bytes or 0 if an error occurred */
- static
- GIntBig ComputeBandRasterIOSize (int buf_xsize, int buf_ysize, int nPixelSize,
-                                  GIntBig nPixelSpace, GIntBig nLineSpace,
---- a/swig/python/samples/ogr_layer_algebra.py
-+++ b/swig/python/samples/ogr_layer_algebra.py
-@@ -430,7 +430,7 @@ def main(argv = None):
-     output_ds = None
- 
-     if ret != 0:
--        print('An error occured during %s operation' % op_str)
-+        print('An error occurred during %s operation' % op_str)
-         return 1
- 
-     return 0
---- a/swig/python/samples/ogrupdate.py
-+++ b/swig/python/samples/ogrupdate.py
-@@ -433,7 +433,7 @@ def ogrupdate_process(src_layer, dst_lay
-         if ret != 0:
-             if not skip_failures:
-                 if gdal.GetLastErrorMsg() == '':
--                    print('An error occured during feature insertion/update. Interrupting processing.')
-+                    print('An error occurred during feature insertion/update. Interrupting processing.')
-                 ret = 1
-                 break
-             else:
---- a/frmts/grib/degrib18/degrib/grib1tab.cpp
-+++ b/frmts/grib/degrib18/degrib/grib1tab.cpp
-@@ -8114,14 +8114,14 @@ GRIB1ParmTable parm_table_afwa_010[256]
-    /* 147 */ {"MXABH", "Max Absolute Humidity", "g/m^3", UC_NONE},
-    /* 148 */ {"MNABH", "Min Absolute Humidity", "g/m^3", UC_NONE},
-    /* 149 */ {"MNPREC", "Min Precipitation", "mm", UC_NONE},
--   /* 150 */ {"NEWND", "NE Wind Direction Occurance", "%", UC_NONE},
--   /* 151 */ {"EWND", "E Wind Direction Occurance", "%", UC_NONE},
--   /* 152 */ {"SEWND", "SE Wind Direction Occurance", "%", UC_NONE},
--   /* 153 */ {"SWND", "S Wind Direction Occurance", "%", UC_NONE},
--   /* 154 */ {"SWWND", "SW Wind Direction Occurance", "%", UC_NONE},
--   /* 155 */ {"WWND", "W Wind Direction Occurance", "%", UC_NONE},
--   /* 156 */ {"NWWND", "NW Wind Direction Occurance", "%", UC_NONE},
--   /* 157 */ {"NWND", "N Wind Direction Occurance", "%", UC_NONE},
-+   /* 150 */ {"NEWND", "NE Wind Direction Occurrence", "%", UC_NONE},
-+   /* 151 */ {"EWND", "E Wind Direction Occurrence", "%", UC_NONE},
-+   /* 152 */ {"SEWND", "SE Wind Direction Occurrence", "%", UC_NONE},
-+   /* 153 */ {"SWND", "S Wind Direction Occurrence", "%", UC_NONE},
-+   /* 154 */ {"SWWND", "SW Wind Direction Occurrence", "%", UC_NONE},
-+   /* 155 */ {"WWND", "W Wind Direction Occurrence", "%", UC_NONE},
-+   /* 156 */ {"NWWND", "NW Wind Direction Occurrence", "%", UC_NONE},
-+   /* 157 */ {"NWND", "N Wind Direction Occurrence", "%", UC_NONE},
-    /* 158 */ {"NEWSP", "NE Wind Speed", "m/s", UC_NONE},
-    /* 159 */ {"EWSP", "E Wind Speed", "m/s", UC_NONE},
-    /* 160 */ {"SEWSP", "SE Wind Speed", "m/s", UC_NONE},
---- a/frmts/iso8211/ddffield.cpp
-+++ b/frmts/iso8211/ddffield.cpp
-@@ -208,7 +208,7 @@ int DDFField::GetRepeatCount()
-         return 1;
- 
- /* -------------------------------------------------------------------- */
--/*      The occurance count depends on how many copies of this          */
-+/*      The occurrence count depends on how many copies of this         */
- /*      field's list of subfields can fit into the data space.          */
- /* -------------------------------------------------------------------- */
-     if( poDefn->GetFixedWidth() )
---- a/frmts/iso8211/iso8211.h
-+++ b/frmts/iso8211/iso8211.h
-@@ -268,7 +268,7 @@ class CPL_ODLL DDFFieldDefn
- 
- /**
-  * Information from the DDR record describing one subfield of a DDFFieldDefn.
-- * All subfields of a field will occur in each occurance of that field
-+ * All subfields of a field will occur in each occurrence of that field
-  * (as a DDFField) in a DDFRecord.  Subfield's actually contain formatted
-  * data (as instances within a record).
-  */
---- a/frmts/nitf/frmt_nitf_advanced.html
-+++ b/frmts/nitf/frmt_nitf_advanced.html
-@@ -34,7 +34,7 @@ The SLOC_ROW and SLOC_COL values are the
- to the base (SALVL) image.  The CCS_ROW/COL values are relative to the common
- coordinate system.  The _SDLVL is the display level.  
- The DATA is the raw CGM data with "backslash quotable" escaping 
--applied.  All occurances of ASCII zero will be translated to '\0', and all 
-+applied.  All occurrences of ASCII zero will be translated to '\0', and all 
- backslashes and double quotes will be backslashed escaped.  The 
- CPLUnescapeString() function can be used to unescape the data into binary
- format using scheme CPLES_BackslashQuotable. <p>
---- a/frmts/raw/fastdataset.cpp
-+++ b/frmts/raw/fastdataset.cpp
-@@ -847,7 +847,7 @@ GDALDataset *FASTDataset::Open( GDALOpen
-         pszSecond = "GAIN%d";
-     }
- 
--    // Now search for the first number occurance after that string
-+    // Now search for the first number occurrence after that string
-     for ( i = 1; i <= poDS->nBands; i++ )
-     {
-         char    *pszValue = NULL;
---- a/ogr/ogrsf_frmts/csv/drv_csv.html
-+++ b/ogr/ogrsf_frmts/csv/drv_csv.html
-@@ -57,7 +57,7 @@ if there's no other potential separator
- Otherwise it will default to comma as separator.</p>
- 
- <p>Complex attribute values (such as those containing commas, quotes or newlines) 
--may be placed in double quotes. Any occurances of double quotes within 
-+may be placed in double quotes. Any occurrences of double quotes within 
- the quoted string should be doubled up to "escape" them.</p>
- 
- <p>The driver attempts to treat the first line of the file as a list of field 
---- a/vb6/README.TXT
-+++ b/vb6/README.TXT
-@@ -23,7 +23,7 @@ Quick Test Run
- 1) VB6 needs to be launched in such a way that it can find the gdal12vb.dll.
-    This could be accomplished by having VB6 run in the same directory as the
-    DLL, or by copying the DLL into windows\system32 or by editing GDALCore.bas
--   and changing all occurances of "gdal12vb.dll" to a full path to the DLL. 
-+   and changing all occurrences of "gdal12vb.dll" to a full path to the DLL. 
- 
-    But for the test app to run, you need to have the sample files in the
-    current directory, so you might as well just make a shortcut copy of your
---- a/frmts/ecw/ecwdataset.cpp
-+++ b/frmts/ecw/ecwdataset.cpp
-@@ -2389,7 +2389,7 @@ CNCSJP2FileView *ECWDataset::OpenFileVie
-     }
-     catch(...)
-     {
--        CPLError(CE_Failure, CPLE_AppDefined, "Unexpected exception occured in ECW SDK");
-+        CPLError(CE_Failure, CPLE_AppDefined, "Unexpected exception occurred in ECW SDK");
-         delete poFileView;
-         return NULL;
-     }
---- a/frmts/plmosaic/plmosaicdataset.cpp
-+++ b/frmts/plmosaic/plmosaicdataset.cpp
-@@ -670,7 +670,7 @@ static void ReplaceSubString(CPLString &
-                              CPLString osReplacement)
- 
- {
--    // assumes only one occurance of osPattern
-+    // assumes only one occurrence of osPattern
-     size_t pos = osTarget.find(osPattern);
-     if( pos == CPLString::npos )
-         return;
---- a/gcore/gdaljp2metadatagenerator.cpp
-+++ b/gcore/gdaljp2metadatagenerator.cpp
-@@ -772,7 +772,7 @@ static void GDALGMLJP2XPathErrorHandler(
-     }
-     else
-     {
--        CPLError(CE_Failure, CPLE_AppDefined, "An error occured in libxml2");
-+        CPLError(CE_Failure, CPLE_AppDefined, "An error occurred in libxml2");
-     }
- }
- 
---- a/ogr/ogrfeature.cpp
-+++ b/ogr/ogrfeature.cpp
-@@ -1324,7 +1324,7 @@ int OGRFeature::GetFieldAsInteger( int i
-             if( (GIntBig)nVal != nFID )
-             {
-                 CPLError(CE_Warning, CPLE_AppDefined,
--                 "Integer overflow occured when trying to return 64bit integer. "
-+                 "Integer overflow occurred when trying to return 64bit integer. "
-                  "Use GetFieldAsInteger64() instead");
-             }
-             return nVal;
-@@ -1358,7 +1358,7 @@ int OGRFeature::GetFieldAsInteger( int i
-         if( (GIntBig)nVal != nVal64 )
-         {
-             CPLError(CE_Warning, CPLE_AppDefined,
--                 "Integer overflow occured when trying to return 64bit integer. "
-+                 "Integer overflow occurred when trying to return 64bit integer. "
-                  "Use GetFieldAsInteger64() instead");
-         }
-         return nVal;
-@@ -2650,7 +2650,7 @@ void OGRFeature::SetField( int iField, G
-         if( (GIntBig)nVal32 != nValue )
-         {
-             CPLError(CE_Warning, CPLE_AppDefined,
--                 "Integer overflow occured when trying to set 32bit field.");
-+                 "Integer overflow occurred when trying to set 32bit field.");
-         }
-         SetField(iField, nVal32);
-     }
-@@ -2668,7 +2668,7 @@ void OGRFeature::SetField( int iField, G
-         if( (GIntBig)nVal32 != nValue )
-         {
-             CPLError(CE_Warning, CPLE_AppDefined,
--                 "Integer overflow occured when trying to set 32bit field.");
-+                 "Integer overflow occurred when trying to set 32bit field.");
-         }
-         SetField( iField, 1, &nVal32 );
-     }
-@@ -3172,7 +3172,7 @@ void OGRFeature::SetField( int iField, i
-             if( (GIntBig)nVal32 != nValue )
-             {
-                 CPLError(CE_Warning, CPLE_AppDefined,
--                     "Integer overflow occured when trying to set 32bit field.");
-+                     "Integer overflow occurred when trying to set 32bit field.");
-             }
-             anValues.push_back( nVal32 );
-         }
---- a/ogr/ogrsf_frmts/filegdb/FGdbDatasource.cpp
-+++ b/ogr/ogrsf_frmts/filegdb/FGdbDatasource.cpp
-@@ -507,7 +507,7 @@ OGRLayer * FGdbDataSource::ExecuteSQL( c
-     catch(...)
-     {
-         CPLError(CE_Failure, CPLE_AppDefined,
--                 "Exception occured at executing '%s'. Application may become unstable", pszSQLCommand);
-+                 "Exception occurred at executing '%s'. Application may become unstable", pszSQLCommand);
-         delete pEnumRows;
-         return NULL;
-     }
---- a/port/cpl_conv.cpp
-+++ b/port/cpl_conv.cpp
-@@ -978,7 +978,7 @@ int CPLAtoGIntBigExHasOverflow(const cha
-  * 
-  * @param pszString String containing 64 bit signed integer.
-  * @param bWarn Issue a warning if an overflow occurs during conversion
-- * @param pbOverflow Pointer to an integer to store if an overflow occured, or NULL
-+ * @param pbOverflow Pointer to an integer to store if an overflow occurred, or NULL
-  * @return 64 bit signed integer.
-  * @since GDAL 2.0
-  */
diff --git a/debian/patches/ogdi b/debian/patches/ogdi
index 9e65e41..989ac65 100644
--- a/debian/patches/ogdi
+++ b/debian/patches/ogdi
@@ -5,7 +5,7 @@ Forwarded: not-needed
 
 --- a/GDALmake.opt.in
 +++ b/GDALmake.opt.in
-@@ -386,7 +386,7 @@ endif
+@@ -430,7 +430,7 @@ endif
  # PCRaster support
  PCRASTER_SETTING	=	@PCRASTER_SETTING@
  
diff --git a/debian/patches/ogr-vrt-implement-CloseDependantDataset.patch b/debian/patches/ogr-vrt-implement-CloseDependantDataset.patch
deleted file mode 100644
index 4c24f85..0000000
--- a/debian/patches/ogr-vrt-implement-CloseDependantDataset.patch
+++ /dev/null
@@ -1,60 +0,0 @@
-Description: OGR_VRT: implement CloseDependantDataset?() so that exiting with proper closing of datasource doesn't crash.
-Author: Even Rouault <even dot rouault at spatialys dot com>
-Origin: https://trac.osgeo.org/gdal/changeset/33684
-Bug: https://trac.osgeo.org/gdal/ticket/6408
-Bug-Debian: https://bugs.debian.org/817146
-
---- a/ogr/ogrsf_frmts/vrt/ogr_vrt.h
-+++ b/ogr/ogrsf_frmts/vrt/ogr_vrt.h
-@@ -241,6 +241,8 @@ class OGRVRTDataSource : public OGRDataS
-                         OGRVRTDataSource(GDALDriver* poDriver);
-                         ~OGRVRTDataSource();
- 
-+    virtual int         CloseDependentDatasets();
-+
-     OGRLayer*           InstanciateLayer(CPLXMLNode *psLTree,
-                                     const char *pszVRTDirectory,
-                                     int bUpdate,
---- a/ogr/ogrsf_frmts/vrt/ogrvrtdatasource.cpp
-+++ b/ogr/ogrsf_frmts/vrt/ogrvrtdatasource.cpp
-@@ -120,14 +120,10 @@ OGRVRTDataSource::OGRVRTDataSource(GDALD
- OGRVRTDataSource::~OGRVRTDataSource()
- 
- {
--    int         i;
--
-     CPLFree( pszName );
- 
--    for( i = 0; i < nLayers; i++ )
--        delete papoLayers[i];
--    
--    CPLFree( papoLayers );
-+    CloseDependentDatasets();
-+
-     CPLFree( paeLayerType );
- 
-     if( psTree != NULL)
-@@ -137,6 +133,23 @@ OGRVRTDataSource::~OGRVRTDataSource()
- }
- 
- /************************************************************************/
-+/*                        CloseDependentDatasets()                      */
-+/************************************************************************/
-+
-+int OGRVRTDataSource::CloseDependentDatasets()
-+{
-+    int bHasClosedDependentDatasets = (nLayers > 0);
-+    for( int i = 0; i < nLayers; i++ )
-+    {
-+        delete papoLayers[i];
-+    }
-+    CPLFree( papoLayers );
-+    nLayers = 0;
-+    papoLayers = NULL;
-+    return bHasClosedDependentDatasets;
-+}
-+
-+/************************************************************************/
- /*                        InstanciateWarpedLayer()                      */
- /************************************************************************/
- 
diff --git a/debian/patches/outputting-typo.patch b/debian/patches/outputting-typo.patch
deleted file mode 100644
index 3c239dc..0000000
--- a/debian/patches/outputting-typo.patch
+++ /dev/null
@@ -1,174 +0,0 @@
-Description: Fix 'outputing' typo, replace with 'outputting'.
-Author: Bas Couwenberg <sebastic at debian.org>
-Forwarded: not-needed
-
---- a/NEWS
-+++ b/NEWS
-@@ -2930,7 +2930,7 @@ Utilities:
-  * gdalinfo: add '-sd num' option to report subdataset with the specified number.
-  * gdalinfo: add '-proj4' option to gdalinfo, to report a PROJ.4 string for the CRS
-  * gdal_translate: propagate INTERLEAVE metadata to intermediate VRT dataset
-- * gdal_translate: force quiet mode when outputing to /vsistdout/
-+ * gdal_translate: force quiet mode when outputting to /vsistdout/
-  * gdalwarp: Disable CENTER_LONG rewrapping for cutline (#3932)
-  * gdalwarp: add -refine_gcps option to discard outliers GCPs before warping (#4143)
-  * gdalwarp: add warning if user specifies several of -order, -tps, -rpc or -geoloc options
-@@ -2960,7 +2960,7 @@ Multi-driver topics:
-  * Port DOQ1, DOQ2, ELAS, Idrisi, L1B, NDF, NWT_GRD, NWT_GRC, USGSDEM to VSI virtual file API
-  * PAM-enable BT and BLX drivers
-  * Implement Identify() for AAIGrid, ACE2, DTED, NWT_GRD, NWT_GRC, WMS, WCS, JDEM and BSB drivers
-- * Make GIF, JPEG and PNG drivers return a non NULL dataset when outputing to /vsistdout/
-+ * Make GIF, JPEG and PNG drivers return a non NULL dataset when outputting to /vsistdout/
-  * HFA and GTiff: add explicit error message when trying to add external overviews when there are already internal overviews (#4044)
-  * Initialize overview manager to support external overviews for AAIGRID, DIPX, ELAS, GXF, FIT, FITS, GMT, GRIB, GSAG, GSBG, GS7BG, ILWIS, L1B, LCP, Leveller, NWT_GRD, NWT_GRC, RIK, SDTS and SAGA
- 
-@@ -3056,7 +3056,7 @@ GeoRaster driver:
-  * Fix loading of small images, FlushCache issue (#4363)
- 
- GIF driver:
-- * Make CreateCopy() more friendly with outputing in /vsistdout/
-+ * Make CreateCopy() more friendly with outputting in /vsistdout/
- 
- GRIB driver:
-  * Fix grid vs cell-center convention (#2637)
-@@ -4260,7 +4260,7 @@ Core:
-  * Make the GetStyleTable() SetStyleTable() SetStyleTableDirectly() methods on
-    datasources and layers virtual (#2978)
-  * Add OGRSFDriverRegistrar::DeregisterDriver() and OGRDeregisterDriver()
-- * Improve detection of rounding errors when outputing coordinates as text with
-+ * Improve detection of rounding errors when outputting coordinates as text with
-    OGRMakeWktCoordinate()
-  * OGR SQL: allow comparing datetime columns in WHERE clause
-  * OGR indexing: re-use .ind file in read-write mode when calling CreateIndex()
---- a/alg/gdalwarper.cpp
-+++ b/alg/gdalwarper.cpp
-@@ -904,7 +904,7 @@ GDALWarpDstAlphaMasker( void *pMaskFuncA
-  * polygon.
-  *
-  * - OPTIMIZE_SIZE: This defaults to FALSE, but may be set to TRUE when
-- * outputing typically to a compressed dataset (GeoTIFF with COMPRESSED creation
-+ * outputting typically to a compressed dataset (GeoTIFF with COMPRESSED creation
-  * option set for example) for achieving a smaller file size. This is achieved
-  * by writing at once data aligned on full blocks of the target dataset, which
-  * avoids partial writes of compressed blocks and lost space when they are rewritten
-@@ -916,8 +916,8 @@ GDALWarpDstAlphaMasker( void *pMaskFuncA
-  * warping. If not set, computation will be done in a single thread.
-  *
-  * - STREAMABLE_OUTPUT: (GDAL >= 2.0) This defaults to FALSE, but may be set to TRUE when
-- * outputing typically to a streamed file. The gdalwarp utility automatically
-- * sets this option when outputing to /vsistdout/ or a named pipe (on Unix).
-+ * outputting typically to a streamed file. The gdalwarp utility automatically
-+ * sets this option when outputting to /vsistdout/ or a named pipe (on Unix).
-  * This option has performance impacts for some reprojections.
-  * Note: band interleaved output is not currently supported by the warping algorithm in
-  * a streamable compabible way.
---- a/apps/gdalwarp.cpp
-+++ b/apps/gdalwarp.cpp
-@@ -238,7 +238,7 @@ use the -overwrite option.
- Polygon cutlines may be used as a mask to restrict the area of the destination file
- that may be updated, including blending.  If the OGR layer containing the cutline
- features has no explicit SRS, the cutline features must be in the SRS of the
--destination file. When outputing to a not yet existing target dataset,
-+destination file. When outputting to a not yet existing target dataset,
- its extent will be the one of the original raster unless -te or -crop_to_cutline are
- specified.
- 
---- a/frmts/aaigrid/aaigriddataset.cpp
-+++ b/frmts/aaigrid/aaigriddataset.cpp
-@@ -1232,7 +1232,7 @@ GDALDataset * AAIGDataset::CreateCopy(
- /*      Re-open dataset, and copy any auxiliary pam information.         */
- /* -------------------------------------------------------------------- */
- 
--    /* If outputing to stdout, we can't reopen it, so we'll return */
-+    /* If outputting to stdout, we can't reopen it, so we'll return */
-     /* a fake dataset to make the caller happy */
-     CPLPushErrorHandler(CPLQuietErrorHandler);
-     GDALPamDataset* poDS = (GDALPamDataset*) GDALOpen(pszFilename, GA_ReadOnly);
---- a/frmts/gif/gifdataset.cpp
-+++ b/frmts/gif/gifdataset.cpp
-@@ -635,7 +635,7 @@ GIFDataset::CreateCopy( const char * psz
- /*      Re-open dataset, and copy any auxiliary pam information.         */
- /* -------------------------------------------------------------------- */
- 
--    /* If outputing to stdout, we can't reopen it, so we'll return */
-+    /* If outputting to stdout, we can't reopen it, so we'll return */
-     /* a fake dataset to make the caller happy */
-     CPLPushErrorHandler(CPLQuietErrorHandler);
-     poDS = (GDALPamDataset*) GDALOpen(pszFilename, GA_ReadOnly);
---- a/frmts/jpeg/jpgdataset.cpp
-+++ b/frmts/jpeg/jpgdataset.cpp
-@@ -3580,7 +3580,7 @@ JPGDataset::CreateCopy( const char * psz
- /*      Re-open dataset, and copy any auxiliary pam information.         */
- /* -------------------------------------------------------------------- */
- 
--    /* If outputing to stdout, we can't reopen it, so we'll return */
-+    /* If outputting to stdout, we can't reopen it, so we'll return */
-     /* a fake dataset to make the caller happy */
-     if( CSLTestBoolean(CPLGetConfigOption("GDAL_OPEN_AFTER_COPY", "YES")) )
-     {
---- a/frmts/png/pngdataset.cpp
-+++ b/frmts/png/pngdataset.cpp
-@@ -1890,7 +1890,7 @@ PNGDataset::CreateCopy( const char * psz
- /*      Re-open dataset, and copy any auxiliary pam information.         */
- /* -------------------------------------------------------------------- */
- 
--    /* If outputing to stdout, we can't reopen it, so we'll return */
-+    /* If outputting to stdout, we can't reopen it, so we'll return */
-     /* a fake dataset to make the caller happy */
-     if( CSLTestBoolean(CPLGetConfigOption("GDAL_OPEN_AFTER_COPY", "YES")) )
-     {
---- a/frmts/vrt/vrtsources.cpp
-+++ b/frmts/vrt/vrtsources.cpp
-@@ -1924,7 +1924,7 @@ CPLErr VRTComplexSource::RasterIOInterna
-     if( eScalingType == VRT_SCALING_LINEAR && bNoDataSet == FALSE && dfScaleRatio == 0)
-     {
- /* -------------------------------------------------------------------- */
--/*      Optimization when outputing a constant value                    */
-+/*      Optimization when outputting a constant value                   */
- /*      (used by the -addalpha option of gdalbuildvrt)                  */
- /* -------------------------------------------------------------------- */
-         pafData = NULL;
---- a/frmts/webp/webpdataset.cpp
-+++ b/frmts/webp/webpdataset.cpp
-@@ -805,7 +805,7 @@ WEBPDataset::CreateCopy( const char * ps
- /* -------------------------------------------------------------------- */
-     GDALOpenInfo oOpenInfo(pszFilename, GA_ReadOnly);
- 
--    /* If outputing to stdout, we can't reopen it, so we'll return */
-+    /* If outputting to stdout, we can't reopen it, so we'll return */
-     /* a fake dataset to make the caller happy */
-     CPLPushErrorHandler(CPLQuietErrorHandler);
-     WEBPDataset *poDS = (WEBPDataset*) WEBPDataset::Open( &oOpenInfo );
---- a/frmts/xyz/xyzdataset.cpp
-+++ b/frmts/xyz/xyzdataset.cpp
-@@ -1156,7 +1156,7 @@ GDALDataset* XYZDataset::CreateCopy( con
-     poXYZ_DS->nRasterYSize = nYSize;
-     poXYZ_DS->nBands = 1;
-     poXYZ_DS->SetBand( 1, new XYZRasterBand( poXYZ_DS, 1, eReqDT ) );
--    /* If outputing to stdout, we can't reopen it --> silence warning */
-+    /* If outputting to stdout, we can't reopen it --> silence warning */
-     CPLPushErrorHandler(CPLQuietErrorHandler);
-     poXYZ_DS->fp = VSIFOpenL( pszFilename, "rb" );
-     CPLPopErrorHandler();
---- a/man/man1/gdalwarp.1
-+++ b/man/man1/gdalwarp.1
-@@ -140,7 +140,7 @@ The destination file name\&.
- .PP
- Mosaicing into an existing output file is supported if the output file already exists\&. The spatial extent of the existing file will not be modified to accommodate new data, so you may have to remove it in that case, or use the -overwrite option\&.
- .PP
--Polygon cutlines may be used as a mask to restrict the area of the destination file that may be updated, including blending\&. If the OGR layer containing the cutline features has no explicit SRS, the cutline features must be in the SRS of the destination file\&. When outputing to a not yet existing target dataset, its extent will be the one of the original raster unless -te or -crop_to_cutline are specified\&.
-+Polygon cutlines may be used as a mask to restrict the area of the destination file that may be updated, including blending\&. If the OGR layer containing the cutline features has no explicit SRS, the cutline features must be in the SRS of the destination file\&. When outputting to a not yet existing target dataset, its extent will be the one of the original raster unless -te or -crop_to_cutline are specified\&.
- .SH "EXAMPLE"
- .PP
- For instance, an eight bit spot scene stored in GeoTIFF with control points mapping the corners to lat/long could be warped to a UTM projection with a command like this:
---- a/swig/python/samples/build_jp2_from_xml.py
-+++ b/swig/python/samples/build_jp2_from_xml.py
-@@ -315,7 +315,7 @@ def parse_jp2_box(xml_tree, out_f, src_j
- 
-         vrt_ds = gdal.Open(serialized_xml_content)
-         if vrt_ds is None:
--            print('Cannot decode VRTDataset. Outputing empty content')
-+            print('Cannot decode VRTDataset. Outputting empty content')
-             binary_content = ''
-         else:
-             gdal.GetDriverByName('GTiff').CreateCopy('/vsimem/out.tif', vrt_ds)
diff --git a/debian/patches/perl-vendor b/debian/patches/perl-vendor
index a157472..51cd388 100644
--- a/debian/patches/perl-vendor
+++ b/debian/patches/perl-vendor
@@ -17,7 +17,7 @@ Last-Update: 2014-07-08
  	$(MAKE) -f Makefile_Geo__GDAL test
 --- a/swig/perl/GNUmakefile
 +++ b/swig/perl/GNUmakefile
-@@ -26,7 +26,7 @@ build: gdal_wrap.cc Makefile_Geo__GDAL
+@@ -28,7 +28,7 @@ build: gdal_wrap.cc Makefile_Geo__GDAL
  gdal_wrap.cc: generate
  
  Makefile_Geo__GDAL:
diff --git a/debian/patches/position-typo.patch b/debian/patches/position-typo.patch
deleted file mode 100644
index 0e7b440..0000000
--- a/debian/patches/position-typo.patch
+++ /dev/null
@@ -1,79 +0,0 @@
-Description: Fix 'postion' typo, replace with 'position'.
-Author: Bas Couwenberg <sebastic at debian.org>
-Forwarded: not-needed
-
---- a/apps/ogr_utilities.dox
-+++ b/apps/ogr_utilities.dox
-@@ -566,7 +566,7 @@ format. Also some information writed to
- <dt> <b>-of</b><em>field_name</em>:</dt><dd> The field name for storing the 
-     uniq values of input lines</dd>
- <dt> <b>-s</b><em>step</em>:</dt><dd> The part size in linear units</dd>
--<dt> <b>-get_pos</b>:</dt><dd> Return linear referenced postion for input X, Y</dd>
-+<dt> <b>-get_pos</b>:</dt><dd> Return linear referenced position for input X, Y</dd>
- <dt> <b>-x</b><em>long</em>:</dt><dd> Input X coordinate</dd>
- <dt> <b>-y</b><em>lat</em>:</dt><dd> Input Y coordinate</dd>
- <dt> <b>-get_coord</b>:</dt><dd> Return point on path for input linear distance</dd>
---- a/apps/ogrlineref.cpp
-+++ b/apps/ogrlineref.cpp
-@@ -114,7 +114,7 @@ static void Usage(const char* pszAdditio
-         " -lf field_name: Field name for uniq paths in layer (optional)\n"
-         " -p src_repers_datasource_name: Datasource of repers name\n"
-         " -pn layer_name: Layer name in datasource (optional)\n"
--        " -pm pos_field_name: Line postion field name\n"
-+        " -pm pos_field_name: Line position field name\n"
-         " -pf field_name: Field name for correspondence repers of separate paths in layer (optional)\n"
-         " -r src_parts_datasource_name: Parts datasource name\n"
-         " -rn layer_name: Layer name in datasource (optional)\n"
---- a/frmts/hdf4/hdf-eos/EHapi.c
-+++ b/frmts/hdf4/hdf-eos/EHapi.c
-@@ -1702,7 +1702,7 @@ EHinsertmeta(int32 sdInterfaceID, char *
-     char           *metaArr[2];	/* Array of metadata positions */
-     char           *colon;	/* Colon position */
-     char           *colon2;	/* 2nd colon position */
--    char           *slash;	/* Slash postion */
-+    char           *slash;	/* Slash position */
-     char           *utlstr;	/* Utility string */
-     char           *utlstr2;	/* Utility string 2 */
- 
-@@ -2301,8 +2301,8 @@ EHinsertmeta(int32 sdInterfaceID, char *
-     /* --------------------------------------- */
-     seglen = strlen(utlstr);
- 
--    /* Get offset of entry postion within existing metadata */
--    /* ---------------------------------------------------- */
-+    /* Get offset of entry position within existing metadata */
-+    /* ----------------------------------------------------- */
-     offset = metaptr - metabuf;
- 
- 
---- a/frmts/netcdf/netcdfdataset.cpp
-+++ b/frmts/netcdf/netcdfdataset.cpp
-@@ -4378,7 +4378,7 @@ GDALDataset *netCDFDataset::Open( GDALOp
-     int          nVarID=-1;
- 
-     int          nTmpFormat=NCDF_FORMAT_NONE;
--    int          *panBandDimPos=NULL;         // X, Y, Z postion in array
-+    int          *panBandDimPos=NULL;         // X, Y, Z position in array
-     int          *panBandZLev=NULL;
-     int          *paDimIds=NULL;
-     size_t       xdim, ydim;
-@@ -5325,7 +5325,7 @@ netCDFDataset::CreateCopy( const char *
-     int status = NC_NOERR;
- 
-     int nDim = 2;
--    int          *panBandDimPos=NULL;         // X, Y, Z postion in array
-+    int          *panBandDimPos=NULL;         // X, Y, Z position in array
-     int          *panBandZLev=NULL;
-     int          *panDimIds=NULL;
-     int          *panDimVarIds=NULL;
---- a/man/man1/ogrlineref.1
-+++ b/man/man1/ogrlineref.1
-@@ -75,7 +75,7 @@ The field name for storing the uniq valu
- .IP "\fB\fB-s\fP\fIstep\fP:\fP" 1c
- The part size in linear units 
- .IP "\fB\fB-get_pos\fP:\fP" 1c
--Return linear referenced postion for input X, Y 
-+Return linear referenced position for input X, Y 
- .IP "\fB\fB-x\fP\fIlong\fP:\fP" 1c
- Input X coordinate 
- .IP "\fB\fB-y\fP\fIlat\fP:\fP" 1c
diff --git a/debian/patches/remaining-typo.patch b/debian/patches/remaining-typo.patch
deleted file mode 100644
index 0196d4b..0000000
--- a/debian/patches/remaining-typo.patch
+++ /dev/null
@@ -1,15 +0,0 @@
-Description: Fix 'Remaing' typo, replace with 'Remaining'.
-Author: Bas Couwenberg <sebastic at debian.org>
-Forwarded: not-needed
-
---- a/frmts/pdf/pdfreadvectors.cpp
-+++ b/frmts/pdf/pdfreadvectors.cpp
-@@ -1166,7 +1166,7 @@ OGRGeometry* PDFDataset::ParseContent(co
-         {
-             nTokenStackSize--;
-             CPLDebug("PDF",
--                     "Remaing values in stack : %s",
-+                     "Remaining values in stack : %s",
-                      aszTokenStack[nTokenStackSize]);
-         }
-         return  NULL;
diff --git a/debian/patches/responsibility-typo.patch b/debian/patches/responsibility-typo.patch
deleted file mode 100644
index b4904e5..0000000
--- a/debian/patches/responsibility-typo.patch
+++ /dev/null
@@ -1,68 +0,0 @@
-Description: Fix 'responsiblity' typo, replace with 'responsibility'.
-Author: Bas Couwenberg <sebastic at debian.org>
-Forwarded: not-needed
-
---- a/ogr/ogr_srsnode.cpp
-+++ b/ogr/ogr_srsnode.cpp
-@@ -342,7 +342,7 @@ void OGR_SRSNode::SetValue( const char *
- /**
-  * Make a duplicate of this node, and it's children.
-  *
-- * @return a new node tree, which becomes the responsiblity of the caller.
-+ * @return a new node tree, which becomes the responsibility of the caller.
-  */
- 
- OGR_SRSNode *OGR_SRSNode::Clone() const
---- a/ogr/ogrsf_frmts/ogrsf_frmts.dox
-+++ b/ogr/ogrsf_frmts/ogrsf_frmts.dox
-@@ -703,7 +703,7 @@ by the OGRSFDriverManager.
-  \brief Fetch the next available feature from this layer.
- 
-  The returned feature
-- becomes the responsiblity of the caller to delete with OGRFeature::DestroyFeature(). It is critical that
-+ becomes the responsibility of the caller to delete with OGRFeature::DestroyFeature(). It is critical that
-  all features associated with an OGRLayer (more specifically an 
-  OGRFeatureDefn) be deleted before that layer/datasource is deleted.
- 
-@@ -735,7 +735,7 @@ by the OGRSFDriverManager.
-  \brief Fetch the next available feature from this layer.
- 
-  The returned feature
-- becomes the responsiblity of the caller to delete with OGR_F_Destroy().  It is critical that
-+ becomes the responsibility of the caller to delete with OGR_F_Destroy().  It is critical that
-  all features associated with an OGRLayer (more specifically an 
-  OGRFeatureDefn) be deleted before that layer/datasource is deleted.
- 
---- a/swig/include/python/docs/ogr_layer_docs.i
-+++ b/swig/include/python/docs/ogr_layer_docs.i
-@@ -181,7 +181,7 @@ OGR_L_GetNextFeature(OGRLayerH hLayer)
- 
- Fetch the next available feature from this layer.
- 
--The returned feature becomes the responsiblity of the caller to delete
-+The returned feature becomes the responsibility of the caller to delete
- with OGR_F_Destroy(). It is critical that all features associated with
- an OGRLayer (more specifically an OGRFeatureDefn) be deleted before
- that layer/datasource is deleted.
---- a/swig/python/extensions/ogr_wrap.cpp
-+++ b/swig/python/extensions/ogr_wrap.cpp
-@@ -24357,7 +24357,7 @@ static PyMethodDef SwigMethods[] = {
- 		"\n"
- 		"Fetch the next available feature from this layer.\n"
- 		"\n"
--		"The returned feature becomes the responsiblity of the caller to delete\n"
-+		"The returned feature becomes the responsibility of the caller to delete\n"
- 		"with OGR_F_Destroy(). It is critical that all features associated with\n"
- 		"an OGRLayer (more specifically an OGRFeatureDefn) be deleted before\n"
- 		"that layer/datasource is deleted.\n"
---- a/swig/python/osgeo/ogr.py
-+++ b/swig/python/osgeo/ogr.py
-@@ -1380,7 +1380,7 @@ class Layer(MajorObject):
- 
-         Fetch the next available feature from this layer.
- 
--        The returned feature becomes the responsiblity of the caller to delete
-+        The returned feature becomes the responsibility of the caller to delete
-         with OGR_F_Destroy(). It is critical that all features associated with
-         an OGRLayer (more specifically an OGRFeatureDefn) be deleted before
-         that layer/datasource is deleted.
diff --git a/debian/patches/retrieve-typo.patch b/debian/patches/retrieve-typo.patch
deleted file mode 100644
index fb71de0..0000000
--- a/debian/patches/retrieve-typo.patch
+++ /dev/null
@@ -1,15 +0,0 @@
-Description: Fix 'retrive' typo, replace with 'retrieve'.
-Author: Bas Couwenberg <sebastic at debian.org>
-Forwarded: not-needed
-
---- a/frmts/raw/ehdrdataset.cpp
-+++ b/frmts/raw/ehdrdataset.cpp
-@@ -1605,7 +1605,7 @@ GDALDataset *EHdrDataset::Open( GDALOpen
-             }
-             else
-             {
--                CPLError( CE_Warning, CPLE_NotSupported, "Cannot retrive projection from IMAGE.REP");
-+                CPLError( CE_Warning, CPLE_NotSupported, "Cannot retrieve projection from IMAGE.REP");
-             }
-         }
-     }
diff --git a/debian/patches/series b/debian/patches/series
index 9196c96..d0da594 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,4 +1,3 @@
-doc
 ogdi
 gdalpaths
 hdf4
@@ -8,17 +7,3 @@ mrsid-plugin
 spatialite
 java.opt
 perl-vendor
-occurred-typo.patch
-responsibility-typo.patch
-existence-typo.patch
-position-typo.patch
-outputting-typo.patch
-retrieve-typo.patch
-instantiate-typo.patch
-supported-typo.patch
-transform-typo.patch
-sqlite-3.10.0
-formatted-typo.patch
-remaining-typo.patch
-ogr-vrt-implement-CloseDependantDataset.patch
-message-typo.patch
diff --git a/debian/patches/spatialite b/debian/patches/spatialite
index a48c1f5..bbf4c86 100644
--- a/debian/patches/spatialite
+++ b/debian/patches/spatialite
@@ -5,7 +5,7 @@ Forwarded: not-needed
 
 --- a/configure
 +++ b/configure
-@@ -25886,7 +25886,7 @@ if ${ac_cv_lib_spatialite_spatialite_ini
+@@ -27158,7 +27158,7 @@ if ${ac_cv_lib_spatialite_spatialite_ini
    $as_echo_n "(cached) " >&6
  else
    ac_check_lib_save_LIBS=$LIBS
@@ -14,7 +14,7 @@ Forwarded: not-needed
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  /* end confdefs.h.  */
  
-@@ -25940,7 +25940,7 @@ if ${ac_cv_lib_spatialite_spatialite_ini
+@@ -27222,7 +27222,7 @@ if ${ac_cv_lib_spatialite_spatialite_ini
    $as_echo_n "(cached) " >&6
  else
    ac_check_lib_save_LIBS=$LIBS
@@ -23,7 +23,7 @@ Forwarded: not-needed
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  /* end confdefs.h.  */
  
-@@ -26032,7 +26032,7 @@ if ${ac_cv_lib_spatialite_spatialite_tar
+@@ -27612,7 +27612,7 @@ if ${ac_cv_lib_spatialite_spatialite_tar
    $as_echo_n "(cached) " >&6
  else
    ac_check_lib_save_LIBS=$LIBS
diff --git a/debian/patches/sqlite-3.10.0 b/debian/patches/sqlite-3.10.0
deleted file mode 100644
index 5aec39b..0000000
--- a/debian/patches/sqlite-3.10.0
+++ /dev/null
@@ -1,87 +0,0 @@
-Description: SQLite: fix crash on Unix systems with SQLite >= 3.10.0 when xCurrentTimeInt function is called
-Author: Even Rouault <even.rouault at mines-paris.org>
-Origin: https://trac.osgeo.org/gdal/changeset/33411
-Bug: https://trac.osgeo.org/gdal/ticket/6360
-
---- a/ogr/ogrsf_frmts/sqlite/ogrsqlitevfs.cpp
-+++ b/ogr/ogrsf_frmts/sqlite/ogrsqlitevfs.cpp
-@@ -380,11 +380,51 @@ static int OGRSQLiteVFSSleep (sqlite3_vf
-     return pUnderlyingVFS->xSleep(pUnderlyingVFS, microseconds);
- }
- 
--static int OGRSQLiteVFSCurrentTime (sqlite3_vfs* pVFS, double* p1)
-+// Derived for sqlite3.c implementation of unixCurrentTime64 and winCurrentTime64
-+#ifdef WIN32
-+#include <windows.h>
-+static int OGRSQLiteVFSCurrentTimeInt64 (sqlite3_vfs* /*pVFS*/, sqlite3_int64 *piNow)
- {
--    sqlite3_vfs* pUnderlyingVFS = GET_UNDERLYING_VFS(pVFS);
--    //CPLDebug("SQLITE", "OGRSQLiteVFSCurrentTime()");
--    return pUnderlyingVFS->xCurrentTime(pUnderlyingVFS, p1);
-+    FILETIME ft;
-+    static const sqlite3_int64 winFiletimeEpoch = 23058135*(sqlite3_int64)8640000;
-+    static const sqlite3_int64 max32BitValue =
-+      (sqlite3_int64)2000000000 + (sqlite3_int64)2000000000 +
-+      (sqlite3_int64)294967296;
-+
-+#if defined(_WIN32_WCE)
-+    SYSTEMTIME time;
-+    GetSystemTime(&time);
-+    /* if SystemTimeToFileTime() fails, it returns zero. */
-+    if (!SystemTimeToFileTime(&time,&ft)){
-+        return SQLITE_ERROR;
-+    }
-+#else
-+    GetSystemTimeAsFileTime( &ft );
-+#endif
-+    *piNow = winFiletimeEpoch +
-+            ((((sqlite3_int64)ft.dwHighDateTime)*max32BitValue) +
-+               (sqlite3_int64)ft.dwLowDateTime)/(sqlite3_int64)10000;
-+    return SQLITE_OK;
-+}
-+#else
-+#include <sys/time.h>
-+static int OGRSQLiteVFSCurrentTimeInt64 (sqlite3_vfs* /*pVFS*/, sqlite3_int64 *piNow)
-+{
-+    struct timeval sNow;
-+    static const sqlite3_int64 unixEpoch = 24405875*(sqlite3_int64)8640000;
-+    (void)gettimeofday(&sNow, NULL);  /* Cannot fail given valid arguments */
-+    *piNow = unixEpoch + 1000*(sqlite3_int64)sNow.tv_sec + sNow.tv_usec/1000;
-+
-+    return SQLITE_OK;
-+}
-+#endif
-+
-+static int OGRSQLiteVFSCurrentTime (sqlite3_vfs* /*pVFS*/, double* p1)
-+{
-+    sqlite3_int64 i = 0;
-+    int rc = OGRSQLiteVFSCurrentTimeInt64(NULL, &i);
-+    *p1 = i/86400000.0;
-+    return rc;
- }
- 
- static int OGRSQLiteVFSGetLastError (sqlite3_vfs* pVFS, int p1, char *p2)
-@@ -407,7 +447,11 @@ sqlite3_vfs* OGRSQLiteCreateVFS(pfnNotif
-     pVFSAppData->pfnUserData = pfnUserData;
-     pVFSAppData->nCounter = 0;
- 
-+#if SQLITE_VERSION_NUMBER >= 3008000L /* perhaps not the minimal version that defines xCurrentTimeInt64, but who cares */
-+    pMyVFS->iVersion = 2;
-+#else
-     pMyVFS->iVersion = 1;
-+#endif
-     pMyVFS->szOsFile = sizeof(OGRSQLiteFileStruct);
-     pMyVFS->mxPathname = pDefaultVFS->mxPathname;
-     pMyVFS->zName = pVFSAppData->szVFSName;
-@@ -424,6 +468,11 @@ sqlite3_vfs* OGRSQLiteCreateVFS(pfnNotif
-     pMyVFS->xSleep = OGRSQLiteVFSSleep;
-     pMyVFS->xCurrentTime = OGRSQLiteVFSCurrentTime;
-     pMyVFS->xGetLastError = OGRSQLiteVFSGetLastError;
-+#if SQLITE_VERSION_NUMBER >= 3008000L /* perhaps not the minimal version that defines xCurrentTimeInt64, but who cares */
-+    if( pMyVFS->iVersion >= 2 )
-+        pMyVFS->xCurrentTimeInt64 = OGRSQLiteVFSCurrentTimeInt64;
-+#endif
-+
-     return pMyVFS;
- }
- 
diff --git a/debian/patches/supported-typo.patch b/debian/patches/supported-typo.patch
deleted file mode 100644
index 181af2f..0000000
--- a/debian/patches/supported-typo.patch
+++ /dev/null
@@ -1,70 +0,0 @@
-Description: Fix 'suported' typo, replace with 'supported'.
-Author: Bas Couwenberg <sebastic at debian.org>
-Forwarded: not-needed
-
---- a/configure.in
-+++ b/configure.in
-@@ -120,7 +120,7 @@ AC_CHECK_TYPES([int8, int16, int32],,,
- 
- dnl We need the following lines for libtiff too.
- HAVE_IEEEFP=1
--AC_DEFINE_UNQUOTED(HAVE_IEEEFP, $HAVE_IEEEFP, [Define as 0 or 1 according to the floating point format suported by the machine])
-+AC_DEFINE_UNQUOTED(HAVE_IEEEFP, $HAVE_IEEEFP, [Define as 0 or 1 according to the floating point format supported by the machine])
- 
- dnl Check the native cpu bit order (also libtiff stuff).
- AC_MSG_CHECKING([native cpu bit order])
---- a/frmts/gtiff/libtiff/tif_config.h.wince
-+++ b/frmts/gtiff/libtiff/tif_config.h.wince
-@@ -12,7 +12,7 @@
- 
- /* Compatibility stuff. */
- 
--/* Define as 0 or 1 according to the floating point format suported by the
-+/* Define as 0 or 1 according to the floating point format supported by the
-    machine */
- #define HAVE_IEEEFP 1
- 
---- a/frmts/netcdf/netcdfdataset.cpp
-+++ b/frmts/netcdf/netcdfdataset.cpp
-@@ -6243,7 +6243,7 @@ void NCDFWriteProjAttribs( const OGR_SRS
-                             else {
-                                 CPLError( CE_Failure, CPLE_NotSupported, 
-                                           "NetCDF driver export of LCC-1SP with no standard_parallel1 "
--                                          "and no latitude_of_origin is not suported (bug #3324).");
-+                                          "and no latitude_of_origin is not supported (bug #3324).");
-                             }
-                         }                      
-                     }
---- a/ogr/ogrsf_frmts/wasp/ogrwasplayer.cpp
-+++ b/ogr/ogrsf_frmts/wasp/ogrwasplayer.cpp
-@@ -889,7 +889,7 @@ double OGRWAsPLayer::AvgZ( OGRGeometry *
-     case wkbMultiPolygon25D:
-         return AvgZ( static_cast< OGRGeometryCollection * >(poGeom) );
-     default: 
--        CPLError( CE_Warning, CPLE_NotSupported, "Unsuported geometry type in OGRWAsPLayer::AvgZ()");
-+        CPLError( CE_Warning, CPLE_NotSupported, "Unsupported geometry type in OGRWAsPLayer::AvgZ()");
-         break;
-     }
-     return 0; /* avoid warning */
---- a/port/cpl_config.h.in
-+++ b/port/cpl_config.h.in
-@@ -58,7 +58,7 @@
- /* Define if you have the iconv() function and it works. */
- #undef HAVE_ICONV
- 
--/* Define as 0 or 1 according to the floating point format suported by the
-+/* Define as 0 or 1 according to the floating point format supported by the
-    machine */
- #undef HAVE_IEEEFP
- 
---- a/port/cpl_config.h.vc
-+++ b/port/cpl_config.h.vc
-@@ -88,7 +88,7 @@
- /* Set the native cpu bit order */
- #define HOST_FILLORDER FILLORDER_LSB2MSB
- 
--/* Define as 0 or 1 according to the floating point format suported by the
-+/* Define as 0 or 1 according to the floating point format supported by the
-    machine */
- #define HAVE_IEEEFP 1
- 
diff --git a/debian/patches/transform-typo.patch b/debian/patches/transform-typo.patch
deleted file mode 100644
index c9e983b..0000000
--- a/debian/patches/transform-typo.patch
+++ /dev/null
@@ -1,66 +0,0 @@
-Description: Fix 'tranform' typo, replace with 'transform'.
-Author: Bas Couwenberg <sebastic at debian.org>
-Forwarded: not-needed
-
---- a/NEWS
-+++ b/NEWS
-@@ -466,7 +466,7 @@ Algorithms:
-  * Warper: fix integer overflow when reprojecting into an area with (part of) bounds completely outside of the source projection (#5789)
-  * Warper: add min,max,med,q1 and q3 resampling algorithms (#5868)
-  * Warper: add a SRC_COORD_PRECISION warping option to help getting more reproducable output when -wm parameter changes (#5925)
-- * Warper: fix failure in GDALSuggestedWarpOut2() when top-left and bottom-right corners tranform to the same point (#5980)
-+ * Warper: fix failure in GDALSuggestedWarpOut2() when top-left and bottom-right corners transform to the same point (#5980)
-  * GDALReprojectImage(): takes into account nodata values set on destination dataset
-  * Median cut and dithering: optimizations and enhancements to deal with 8-bit precision (only if using internal interface for now)
-  * rasterfill: add option to specify driver to use for temporary files
---- a/frmts/grib/degrib18/degrib/tdlpack.cpp
-+++ b/frmts/grib/degrib18/degrib/tdlpack.cpp
-@@ -48,9 +48,9 @@ TDLP_TableType TDLP_V_Table[4] = {
- };
- 
- TDLP_TableType TDLP_T_Table[3] = {
--   /* 0 */ {0, "No nolinear tranform"},
-+   /* 0 */ {0, "No nolinear transform"},
-    /* 1 */ {1, "Square transform"},
--   /* 2 */ {2, "Square root tranform"},
-+   /* 2 */ {2, "Square root transform"},
- };
- 
- TDLP_TableType TDLP_Oper_Table[9] = {
---- a/frmts/ingr/IngrTypes.cpp
-+++ b/frmts/ingr/IngrTypes.cpp
-@@ -301,9 +301,9 @@ void CPL_STDCALL INGR_GetTransMatrix( IN
-         return;
-     }
- 
--    // -------------------------------------------------------------
--    // Calculate Concatened Tranformation Matrix based on Orientation
--    // -------------------------------------------------------------
-+    // ---------------------------------------------------------------
-+    // Calculate Concatened Transformation Matrix based on Orientation
-+    // ---------------------------------------------------------------
- 
-     double adfConcat[16];
-    
---- a/frmts/netcdf/netcdfdataset.cpp
-+++ b/frmts/netcdf/netcdfdataset.cpp
-@@ -3553,7 +3553,7 @@ CPLErr netCDFDataset::AddProjectionVars(
-                          adfGeoTransform[i] );
-                 strcat( szGeoTransform, szTemp );
-             }
--            CPLDebug( "GDAL_netCDF", "szGeoTranform = %s", szGeoTransform );
-+            CPLDebug( "GDAL_netCDF", "szGeoTransform = %s", szGeoTransform );
-             
-             // if ( strlen(pszProj4Defn) > 0 ) {
-             //     nc_put_att_text( cdfid, NCDFVarID, "proj4",
---- a/frmts/png/libpng/png.h
-+++ b/frmts/png/libpng/png.h
-@@ -1399,7 +1399,7 @@ struct png_struct_def
- #endif
- 
- #if defined(PNG_READ_SHIFT_SUPPORTED) || defined(PNG_WRITE_SHIFT_SUPPORTED)
--   png_color_8 shift PNG_DEPSTRUCT;         /* shift for significant bit tranformation */
-+   png_color_8 shift PNG_DEPSTRUCT;         /* shift for significant bit transformation */
- #endif
- 
- #if defined(PNG_tRNS_SUPPORTED) || defined(PNG_READ_BACKGROUND_SUPPORTED) \

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/gdal.git



More information about the Pkg-grass-devel mailing list