Skip to content

Commit 825662d

Browse files
committed
Prepare for GDAL 2.4.2
1 parent 93496dd commit 825662d

File tree

10 files changed

+176
-12
lines changed

10 files changed

+176
-12
lines changed

gdal/GDALmake.opt.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ GDAL_INCLUDE = -I$(GDAL_ROOT)/port -I$(GDAL_ROOT)/gcore \
123123
# libtool targets and help variables
124124
LIBGDAL := libgdal.la
125125
LIBGDAL_CURRENT := 25
126-
LIBGDAL_REVISION := 1
126+
LIBGDAL_REVISION := 2
127127
LIBGDAL_AGE := 5
128128

129129
# native build targets and variables

gdal/NEWS

Lines changed: 164 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,167 @@
1+
= GDAL/OGR 2.4.2 Release Notes =
2+
3+
The 2.4.2 release is a bug fix release.
4+
5+
== Build ==
6+
7+
* Fix build --with-curl --without-threads (#1386)
8+
* Fix build on netBSD 8
9+
* Fix warnings with GCC 9
10+
* Add support for Poppler 0.75.0 (#1388), 0.76.0
11+
12+
== Port ==
13+
14+
* /vsitar/: handle .tar file header with space padding instead of 0 for file size (#1396)
15+
* /vsicurl/: allow 'Connection timed out' CURL errors as candidate for HTTP retry
16+
* /vsicurl/: GetFileSize(): when HEAD request does not return Content-Length header, retry with GET
17+
* /vsicurl/: automatically detect signed URLs where host ends with a port number; also detect signed URLs as created with the AWS4-HMAC-SHA256 method (#1456)
18+
* /vsis3/: for a long living file handle, refresh credentials coming from EC2/AIM (#1593)
19+
20+
== GDAL algorithms ==
21+
22+
* GDALCreateReprojectionTransformerEx(): do not emit error if reverse transformation fails, and fix crash when trying to use null reverse transformation
23+
* Warper: fix GDAL 2.3 regression in a situation with source nodata value, multiple bands and nearest resampling where the logic to detect which source pixels are nodata was inverted (#1656)
24+
* Contour generator: fix SegmentMerger list iterator skipping and out of bounds error. (#1670)
25+
* Rasterize: fix crash when working buffer is larger than 2GB (fix also gvBurnPoint) (#1338)
26+
27+
== GDAL core ==
28+
29+
* GDALInvGeoTransform(): make it work with scale and rotation/skew coefficients of small absolute value (#1615)
30+
* GDALCopyWholeRasterGetSwathSize(): fix potential int overflows for big values of GDAL_SWATH_SIZE or GDAL_CACHEMAX
31+
* PAM: preserve existing metadata when setting new one (#1430)
32+
33+
== GDAL utliities ==
34+
35+
* gdal_calc.py: Fixed NaN-streaking in output images when the --allBands option is given to tiled images, and removed redundant calculation of nXValid.
36+
* gdal_polygonize.py: fix outputing to geojson without explicit -f switch (#1533)
37+
* gdal_contour: remove explicit width/precision=12/3 of the elev field (#1487)
38+
39+
== GDAL drivers ==
40+
41+
AIGRID / AVCBin driver:
42+
* fix filename case adjustment that failed on /vsi filesystems (#1385)
43+
44+
BAG driver:
45+
* fix potential nullptr deref on corrupted file
46+
47+
ENVI driver:
48+
* add read support for reading GCPs (#1528), and fix off-by-one offset on line,pixel on reading GCP
49+
50+
GTiff driver:
51+
* make WEBP_LEVEL to be honored in Create() mode (#1594)
52+
* PushMetadataToPam(): early exit when PAM is disabled, to avoid error messages
53+
* do not generate a TIFFTAG_GDAL_METADATA with color interpretation information for JPEG YCbCr compression
54+
* Internal libtiff: TIFFWriteEncodedStrip/TIFFWriteEncodedTile: fix rewriting of LZW-compressed data (#1439)
55+
56+
GXF driver:
57+
* avoid closing the file pointer before being sure this is a GXF driver, otherwise this can prevent the opening of some raw format files (#1521)
58+
59+
HDF5 driver:
60+
* fix handling of attributes of type SCHAR, UCHAR, USHORT and UINT (https://github.com/mapbox/rasterio/issues/1663)
61+
* detect nodata from netCDF _FillValue; add more strict checks for accepting datasets for GCP, and handle nodata in GCP too (#1451)
62+
63+
ISIS3 driver:
64+
* fix parsing of lists in JSon metadata, and quote string items when writing lists when needed (#1510)
65+
66+
KEA driver:
67+
* return error when deleting metadata item rather than crashing (#1681)
68+
69+
MRF driver:
70+
* prevent integer overflow
71+
72+
MrSID driver:
73+
* fix potential crash when a zoom level cannot be opened
74+
75+
netCDF driver:
76+
* avoid inappropriate shift by -360 when attribute axis=X is set (#1440)
77+
78+
NITF driver:
79+
* fix parsing of SENSRB TRE (#1520)
80+
81+
PDF driver:
82+
* avoid possible assertion in PDFium backend on corrupted files
83+
84+
PDS3 driver:
85+
* add support for ENCODING_TYPE=DCT_DECOMPRESSED (#1457)
86+
87+
RS2 driver:
88+
* add half-pixel shift to reported GCP line and column numbers (#1666)
89+
90+
VRT driver:
91+
* Python pixel functions: also probe libpython3.Xm.so.1.0 (#1660)
92+
93+
WMS driver:
94+
* use proper JSon parsing for ESRI MapServer document (#1416)
95+
96+
XYZ driver:
97+
* fix regression regarding header lines that are not X,Y,Z (#1472)
98+
99+
== OGR core ==
100+
101+
* segmentize(): fix 2.4.1 regression when 2 points are really close compared to the segmentizatin distance (#1414). Also handle the M dimension
102+
* RawDataset: use generic RasterIO() implementation when non-nearest resampling is asked (#1301)
103+
104+
== OGR utilities ==
105+
106+
* ogrmerge.py: add shared='1' to speed-up -single mode with many layers
107+
108+
== OGR drivers ==
109+
110+
EEDA driver:
111+
* Switch to v1alpha API
112+
113+
ElasticSearch driver:
114+
* set 'application/json' in RunRequest() with POST (#1628)
115+
* GeoJSON type field should be mapped as text in ES>=5
116+
* Fix _mapping url
117+
118+
FileGDB/OpenFileGDB:
119+
* be robust when winding order of outer ring is incorrect (#1369)
120+
121+
GeoJSON driver:
122+
* fix recognizing some documents with members sorted alphabetically (#1537)
123+
* avoid SetFeature() to repeat first feature when looping over features (#1687)
124+
125+
GeoJSONSeq driver:
126+
* be more robust to invalid objects, and fixes performance issue on corrupted files. Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=13770.
127+
128+
GML driver:
129+
* GML/WFS: add minimum support for 'hexBinary' type (as string) (#1375)
130+
131+
GMLAS driver:
132+
* avoid null pointer dereference on some schemas
133+
* do not use space as separator for schema filename in XSD open option (#1452)
134+
135+
GMT:
136+
* use file extension based detection to accept files without header (#1461)
137+
138+
GPKG driver:
139+
* change default value of OGR_GPKG_FOREIGN_KEY_CHECK to NO, so as to avoid issues in downstream software
140+
* insert more accurate spatial extent in gpkg_contents
141+
* fix memory leak in case of corrupted database. Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=14683.
142+
* set sqlite3_busy_timeout, handle SQLITE_BUSY during tile read (#1370)
143+
144+
PDS driver:
145+
* fix heap-buffer-overflow in error code path. Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=14512.
146+
147+
PLScenes driver:
148+
* plscenesconf.json: add missing fields for PSOrthoTile
149+
150+
PostgreSQL driver:
151+
* do not attempt to create VARCHAR(n) columns with n >= 10485760 (#1508)
152+
153+
Shapefile driver:
154+
* better deal with empty .shp+.shx and SHAPE_RESTORE_SHX (#1525)
155+
* launder layer name to get Windows compatible filename
156+
* DeleteLayer(): make it delete .cpg, .sbn, .sbx, .qpj and other sidecar files (#1405)
157+
158+
WaSP driver:
159+
* on creation, make sure the layer geometry type set on the feature definition is wkbLineString25D
160+
161+
WFS3 driver:
162+
* handle paging wth missing type for rel:next, and better deal with user:pwd in URL
163+
* use 'id' attribute of collection items, if 'name' not available
164+
1165
= GDAL/OGR 2.4.1 Release Notes =
2166

3167
The 2.4.1 release is a bug fix release.

gdal/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.4.1
1+
2.4.2

gdal/frmts/hdf5/hdf5dataset.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1083,7 +1083,7 @@ static herr_t HDF5AttrIterate( hid_t hH5ObjID,
10831083
if( (bIsSCHAR || bIsUCHAR) &&
10841084
CPLTestBool(CPLGetConfigOption("GDAL_HDF5_CHAR_AS_STRING", "NO")) )
10851085
{
1086-
// Compatibily mode with ancient GDAL versions where we consider
1086+
// Compatibility mode with ancient GDAL versions where we consider
10871087
// array of SCHAR/UCHAR as strings. Likely inappropriate mode...
10881088
for( hsize_t i = 0; i < nAttrElmts; i++ )
10891089
{

gdal/frmts/raw/envidataset.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1804,7 +1804,7 @@ void ENVIDataset::ProcessGeoPoints( const char *pszGeoPoints )
18041804
}
18051805
for( int i = 0; i < static_cast<int>(m_asGCPs.size()); i++ )
18061806
{
1807-
// Substract 1 to pixel and line for ENVI convention
1807+
// Subtract 1 to pixel and line for ENVI convention
18081808
m_asGCPs[i].dfGCPPixel = CPLAtof( papszFields[i * 4 + 0] ) - 1;
18091809
m_asGCPs[i].dfGCPLine = CPLAtof( papszFields[i * 4 + 1] ) - 1;
18101810
m_asGCPs[i].dfGCPY = CPLAtof( papszFields[i * 4 + 2] );

gdal/gcore/gdal_version.h.in

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#ifndef GDAL_VERSION_MAJOR
88
# define GDAL_VERSION_MAJOR 2
99
# define GDAL_VERSION_MINOR 4
10-
# define GDAL_VERSION_REV 1
10+
# define GDAL_VERSION_REV 2
1111
# define GDAL_VERSION_BUILD 0
1212
#endif
1313

@@ -24,9 +24,9 @@
2424

2525
#if !defined(DO_NOT_DEFINE_GDAL_RELEASE_DATE_AND_GDAL_RELEASE_NAME)
2626
#ifndef GDAL_RELEASE_DATE
27-
# define GDAL_RELEASE_DATE 20190315
27+
# define GDAL_RELEASE_DATE 20190628
2828
#endif
2929
#ifndef GDAL_RELEASE_NAME
30-
# define GDAL_RELEASE_NAME "2.4.1"
30+
# define GDAL_RELEASE_NAME "2.4.2"
3131
#endif
3232
#endif

gdal/swig/include/perl/gdal_perl.i

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,8 @@ use Geo::GDAL::Const;
143143
# Note that the 1/100000 digits may be used to create more than one
144144
# CPAN release from one GDAL release.
145145

146-
our $VERSION = '2.0401';
147-
our $GDAL_VERSION = '2.4.1';
146+
our $VERSION = '2.0402';
147+
our $GDAL_VERSION = '2.4.2';
148148

149149
=pod
150150

gdal/swig/include/perl/ogr_perl.i

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ ALTERED_DESTROY(OGRGeometryShadow, OGRc, delete_Geometry)
126126
%perlcode %{
127127

128128
package Geo::OGR;
129-
our $VERSION = '2.0401'; # this needs to be the same as that in gdal_perl.i
129+
our $VERSION = '2.0402'; # this needs to be the same as that in gdal_perl.i
130130

131131
Geo::GDAL->import(qw(:INTERNAL));
132132

gdal/swig/python/README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ reference documentation, but the `GDAL API Tutorial`_ includes Python examples.
1616
Dependencies
1717
------------
1818

19-
* libgdal (2.4.1 or greater) and header files (gdal-devel)
19+
* libgdal (2.4.2 or greater) and header files (gdal-devel)
2020
* numpy (1.0.0 or greater) and header files (numpy-devel) (not explicitly
2121
required, but many examples and utilities will not work without it)
2222

gdal/swig/python/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
# Howard Butler hobu.inc@gmail.com
88

99

10-
gdal_version = '2.4.1'
10+
gdal_version = '2.4.2'
1111

1212
import sys
1313
import os

0 commit comments

Comments
 (0)