Skip to content

Commit

Permalink
Prepare for GDAL 3.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
rouault committed Jun 28, 2019
1 parent b94cde3 commit df36f28
Show file tree
Hide file tree
Showing 11 changed files with 142 additions and 13 deletions.
2 changes: 1 addition & 1 deletion autotest/cpp/bug1488.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ static void CPL_STDCALL myErrorHandler(CPLErr eErrClass, CPLErrorNum, const char
{
if( eErrClass != CPLE_UserInterrupt && strstr(msg, "User terminated") == nullptr )
{
fprintf(stderr, "An error occured: %s\n", msg);
fprintf(stderr, "An error occurred: %s\n", msg);
fprintf(stderr, "Likely a threading issue !\n");
exit(1);
}
Expand Down
2 changes: 1 addition & 1 deletion gdal/GDALmake.opt.in
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ GDAL_INCLUDE = -I$(GDAL_ROOT)/port -I$(GDAL_ROOT)/gcore \
# libtool targets and help variables
LIBGDAL := libgdal.la
LIBGDAL_CURRENT := 26
LIBGDAL_REVISION := 0
LIBGDAL_REVISION := 1
LIBGDAL_AGE := 0

# native build targets and variables
Expand Down
129 changes: 129 additions & 0 deletions gdal/NEWS
Original file line number Diff line number Diff line change
@@ -1,3 +1,132 @@
= GDAL/OGR 3.0.1 Release Notes =

The 3.0.1 release is a bug fix release.

== Build ==

* configure: fix detection of libpq in a non-standard place (3.0 regression) (#1542)
* Fix MSVC linking issue related to TransformWithOptionsCache class (#1639)

== Port ==

* /vsitar/: support >100 character file names (#1559)
* /vsicurl/: fix CPL_VSIL_CURL_ALLOWED_EXTENSIONS with query string (#1614)
* /vsicurl/: allow 'Connection timed out' CURL errors as candidate for HTTP retry
* /vsicurl/: GetFileSize(): when HEAD request does not return Content-Length header, retry with GET
* /vsis3/: for a long living file handle, refresh credentials coming from EC2/AIM (#1593)

== GDAL algorithms ==

* GDALReprojectImage(): properly take into account source/target alpha bands
* GDALCreateReprojectionTransformerEx(): do not emit error if reverse transformation fails, and fix crash when trying to use null reverse transformation
* 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)
* Contour generator: fix SegmentMerger list iterator skipping and out of bounds error. (#1670)

== GDAL core ==

* GDALInvGeoTransform(): make it work with scale and rotation/skew coefficients of small absolute value (#1615)
* GDALCopyWholeRasterGetSwathSize(): fix potential int overflows for big values of GDAL_SWATH_SIZE or GDAL_CACHEMAX

== GDAL utliities ==

* gdal_translate: Make 'gdal_translate foo.tif foo.tif.ovr -outsize 50% 50% -of GTiff' work
* gdalwarp: fix wrong axis order when using source/target CRS being a geographic3D CRS such as EPSG:4979, and with vertical shift grid application (#1561, 3.0 regression)
* gdal_calc.py: Fixed NaN-streaking in output images when the --allBands option is given to tiled images, and removed redundant calculation of nXValid.
* gdal_polygonize.py: fix outputing to geojson without explicit -f switch (#1533)
* gdallocationinfo: emit verbose error when dataset canot be opened (#1684)

== GDAL drivers ==

ENVI driver:
* fix potential use of invalid pointer on some unusual std::string implementations (#1527)
* add read support for reading GCPs (#1528), and fix off-by-one offset on line,pixel on reading GCP

GTiff driver:
* make WEBP_LEVEL to be honored in Create() mode (#1594)
* reset m_bGeoTIFFInfoChanged flag in FlushDirectory()
* PushMetadataToPam(): early exit when PAM is disabled, to avoid error messages

GXF driver:
* 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)

HDF5 driver:
* Make GH5_FetchAttribute(CPLString) more robust and able to cope with variable-length string

ISIS3 driver:
* fix parsing of lists in JSon metadata, and quote string items when writing lists when needed (#1510)

KEA driver:
* return error when deleting metadata item rather than crashing (#1681)

NITF driver:
* fix parsing of SENSRB TRE (#1520)

RS2 driver:
* add half-pixel shift to reported GCP line and column numbers (#1666)

TileDB driver:
* removed ambiguous use of size_t
* TILEDB_LIBS added for windows build

VRT driver:
* Python pixel functions: also probe libpython3.Xm.so.1.0 (#1660)

== OGRSpatialReference ==

* EPSG:4326 to EPSG:3857: fix invalid output with some input coordinates (3.0 regression)
* GetAxis(): make it work with a compound CRS (#1604)
* importFromWkt(): emit a CPLError() in case of import failure (refs #1623)

== OGR drivers ==

EEDA driver:
* fix startTime / endTime comparisons that were incomplete in #1506

GeoJSON driver:
* fix recognizing some documents with members sorted alphabetically (#1537)
* avoid SetFeature() to repeat first feature when looping over features (#1687)

ElasticSearch driver:
* set 'application/json' in RunRequest() with POST (#1628)
* GeoJSON type field should be mapped as text in ES>=5

GPKG driver:
* change default value of OGR_GPKG_FOREIGN_KEY_CHECK to NO, so as to avoid issues in downstream software
* insert more accurate spatial extent in gpkg_contents
* fix memory leak in case of corrupted database. Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=14683.

KML driver:
* set OAMS_TRADITIONAL_GIS_ORDER for SRS returned on returned layers

MapInfo driver:
* TAB: don't left truncate numeric values in the .dat when the field formatting is incompatible, but error out (#1636)

MSSQLSpatial driver:
* Fix handling empty geometries (#1674)
* Fix handling mixed geometries (#1678)

MVT driver:
* make CONF option accept a filename as well

PostgreSQL driver:
* do not attempt to create VARCHAR(n) columns with n >= 10485760 (#1508)

Shapefile driver:
* better deal with empty .shp+.shx and SHAPE_RESTORE_SHX (#1525)
* fix crash when creating a layer with a wkbNone geometry type but a SRS (3.0 regression)
* launder layer name to get Windows compatible filename

WaSP driver:
* on creation, make sure the layer geometry type set on the feature definition is wkbLineString25D

== SWIG bindings ==

* add osr.SetPROJSearchPath(path) that can be used since setting PROJ_LIB from C# does no work (#1647)

== Python bindings ==

* honour gdal.UseExceptions() in numpy related methods (gdalnumeric module) (#1515)

= GDAL/OGR 3.0.0 Release Notes =

== In a nutshell... ==
Expand Down
2 changes: 1 addition & 1 deletion gdal/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.0.0
3.0.1
2 changes: 1 addition & 1 deletion gdal/frmts/raw/envidataset.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1811,7 +1811,7 @@ void ENVIDataset::ProcessGeoPoints( const char *pszGeoPoints )
}
for( int i = 0; i < static_cast<int>(m_asGCPs.size()); i++ )
{
// Substract 1 to pixel and line for ENVI convention
// Subtract 1 to pixel and line for ENVI convention
m_asGCPs[i].dfGCPPixel = CPLAtof( papszFields[i * 4 + 0] ) - 1;
m_asGCPs[i].dfGCPLine = CPLAtof( papszFields[i * 4 + 1] ) - 1;
m_asGCPs[i].dfGCPY = CPLAtof( papszFields[i * 4 + 2] );
Expand Down
6 changes: 3 additions & 3 deletions gdal/gcore/gdal_version.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#ifndef GDAL_VERSION_MAJOR
# define GDAL_VERSION_MAJOR 3
# define GDAL_VERSION_MINOR 0
# define GDAL_VERSION_REV 0
# define GDAL_VERSION_REV 1
# define GDAL_VERSION_BUILD 0
#endif

Expand All @@ -24,9 +24,9 @@

#if !defined(DO_NOT_DEFINE_GDAL_RELEASE_DATE_AND_GDAL_RELEASE_NAME)
#ifndef GDAL_RELEASE_DATE
# define GDAL_RELEASE_DATE 20190505
# define GDAL_RELEASE_DATE 20190628
#endif
#ifndef GDAL_RELEASE_NAME
# define GDAL_RELEASE_NAME "3.0.0"
# define GDAL_RELEASE_NAME "3.0.1"
#endif
#endif
2 changes: 1 addition & 1 deletion gdal/scripts/gdal-bash-completion.sh
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,7 @@ _gdal_translate()
_get_comp_words_by_ref cur prev
case "$cur" in
-*)
key_list="--help-general --long-usage -ot -strict -of -b -mask -expand -outsize -tr -r -unscale -scale -exponent -srcwin -epo -eco -projwin -projwin_srs -a_srs -a_ullr -a_nodata -a_scale -a_offset -gcp -colorinterp{_bn} -colorinterp -mo -q -sds -co -stats -norat -oo --version --license --formats --format --optfile --config --debug --pause --locale "
key_list="--help-general --long-usage -ot -strict -of -b -mask -expand -outsize -tr -r -unscale -scale -exponent -srcwin -epo -eco -projwin -projwin_srs -a_srs -a_ullr -a_nodata -a_scale -a_offset -nogcp -gcp -colorinterp{_bn} -colorinterp -mo -q -sds -co -stats -norat -oo --version --license --formats --format --optfile --config --debug --pause --locale "
mapfile -t COMPREPLY < <(compgen -W "$key_list" -- "$cur")
return 0
;;
Expand Down
4 changes: 2 additions & 2 deletions gdal/swig/include/perl/gdal_perl.i
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,8 @@ use Geo::GDAL::Const;
# Note that the 1/100000 digits may be used to create more than one
# CPAN release from one GDAL release.

our $VERSION = '3.0000';
our $GDAL_VERSION = '3.0.0';
our $VERSION = '3.0001';
our $GDAL_VERSION = '3.0.1';

=pod

Expand Down
2 changes: 1 addition & 1 deletion gdal/swig/include/perl/ogr_perl.i
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ ALTERED_DESTROY(OGRGeometryShadow, OGRc, delete_Geometry)
%perlcode %{

package Geo::OGR;
our $VERSION = '3.0000'; # this needs to be the same as that in gdal_perl.i
our $VERSION = '3.0001'; # this needs to be the same as that in gdal_perl.i

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

Expand Down
2 changes: 1 addition & 1 deletion gdal/swig/python/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ reference documentation, but the `GDAL API Tutorial`_ includes Python examples.
Dependencies
------------

* libgdal (3.0.0 or greater) and header files (gdal-devel)
* libgdal (3.0.1 or greater) and header files (gdal-devel)
* numpy (1.0.0 or greater) and header files (numpy-devel) (not explicitly
required, but many examples and utilities will not work without it)

Expand Down
2 changes: 1 addition & 1 deletion gdal/swig/python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# Howard Butler hobu.inc@gmail.com


gdal_version = '3.0.0'
gdal_version = '3.0.1'

import sys
import os
Expand Down

0 comments on commit df36f28

Please sign in to comment.