Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#4679 closed defect (duplicate)

rt_gdalwarp test fails with PROJ 7.0.1

Reported by: sebastic Owned by: pramsey
Priority: medium Milestone: PostGIS 3.0.2
Component: postgis Version: 3.0.x
Keywords: Cc:

Description

As reported by Lucas Nussbaum in Debian Bug #959563:

During a rebuild of all packages in sid, your package failed to build on amd64.

Relevant part (hopefully):

make[9]: Entering directory '/<<PKGBUILDDIR>>/doc'
/bin/mkdir -p '/<<PKGBUILDDIR>>/regress/00-regress-install/share/contrib/postgis'
/usr/bin/install -c -m 644  postgis_comments.sql raster_comments.sql topology_comments.sql sfcgal_comments.sql '/<<PKGBUILDDIR>>/regress/00-regress-install/share/contrib/postgis/'
make[9]: Leaving directory '/<<PKGBUILDDIR>>/doc'
make[8]: Leaving directory '/<<PKGBUILDDIR>>/doc'
make[7]: Leaving directory '/<<PKGBUILDDIR>>'
/usr/bin/perl -pi -e 's,\$libdir,/<<PKGBUILDDIR>>/regress/00-regress-install/lib,g' /<<PKGBUILDDIR>>/regress/00-regress-install/share/contrib/postgis/*.sql
#make -C ../loader REGRESS=1 DESTDIR=/<<PKGBUILDDIR>>/regress/00-regress-install install
make[6]: Leaving directory '/<<PKGBUILDDIR>>/regress'
/usr/bin/perl ../../../regress/run_test.pl --raster -v check_gdal load_outdb check_raster_columns check_raster_overviews rt_io rt_bytea rt_wkb box3d rt_addband rt_band rt_tile rt_dimensions rt_scale rt_pixelsize rt_upperleft rt_rotation rt_georeference rt_set_properties rt_isempty rt_hasnoband rt_metadata rt_rastertoworldcoord rt_worldtorastercoord rt_convexhull rt_envelope rt_band_properties rt_set_band_properties rt_pixelaspolygons rt_pixelaspoints rt_pixelascentroids rt_setvalues_array rt_summarystats rt_count rt_histogram rt_quantile rt_valuecount rt_valuepercent rt_bandmetadata rt_pixelvalue rt_neighborhood rt_nearestvalue rt_pixelofvalue rt_polygon rt_setbandpath rt_utility rt_fromgdalraster rt_asgdalraster rt_astiff rt_asjpeg rt_aspng rt_reclass rt_gdalwarp rt_asraster rt_dumpvalues rt_makeemptycoverage rt_createoverview rt_mapalgebraexpr rt_mapalgebrafct rt_mapalgebraexpr_2raster rt_mapalgebrafct_2raster rt_mapalgebrafctngb rt_mapalgebrafctngb_userfunc rt_intersection rt_clip rt_mapalgebra rt_mapalgebra_expr rt_mapalgebra_mask rt_union rt_invdistweight4ma rt_4ma rt_setvalues_geomval rt_elevation_functions rt_colormap rt_grayscale rt_gist_relationships rt_intersects rt_samealignment rt_geos_relationships rt_iscoveragetile bug_test_car5 permitted_gdal_drivers tickets loader/Basic loader/Projected loader/BasicCopy loader/BasicFilename loader/BasicOutDB loader/Tiled10x10 loader/Tiled10x10Copy loader/Tiled8x8 loader/TiledAuto loader/TiledAutoSkipNoData clean
PATH is /usr/lib/postgresql/12/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
Checking for shp2pgsql ... found
Checking for pgsql2shp ... found
Checking for raster2pgsql ... found
TMPDIR is /tmp/pgis_reg
Creating database 'postgis_reg' 
Loading unpackaged components from /<<PKGBUILDDIR>>/regress/00-regress-install/share/contrib/postgis
Loading PostGIS into 'postgis_reg' 
  /<<PKGBUILDDIR>>/regress/00-regress-install/share/contrib/postgis/postgis.sql
  /<<PKGBUILDDIR>>/regress/00-regress-install/share/contrib/postgis/postgis_comments.sql
  /<<PKGBUILDDIR>>/regress/00-regress-install/share/contrib/postgis/postgis_proc_set_search_path.sql
  /<<PKGBUILDDIR>>/regress/00-regress-install/share/contrib/postgis/spatial_ref_sys.sql
Loading Raster into 'postgis_reg'
  /<<PKGBUILDDIR>>/regress/00-regress-install/share/contrib/postgis/rtpostgis.sql
  /<<PKGBUILDDIR>>/regress/00-regress-install/share/contrib/postgis/raster_comments.sql
  /<<PKGBUILDDIR>>/regress/00-regress-install/share/contrib/postgis/rtpostgis_proc_set_search_path.sql
PostgreSQL 12.2 (Debian 12.2-4) on x86_64-pc-linux-gnu, compiled by gcc (Debian 9.3.0-8) 9.3.0, 64-bit
  Postgis 3.0.1 - rec2a9aa - 2020-04-17 19:21:56
  scripts 3.0.1 ec2a9aa
  raster scripts 3.0.1 ec2a9aa
  GEOS: 3.8.1-CAPI-1.13.3
  PROJ: 7.0.1
  GDAL: GDAL 3.0.4, released 2020/01/28

Running tests

 check_gdal .. ok 
 load_outdb ... ok 
 check_raster_columns .. ok 
 check_raster_overviews .. ok 
 rt_io .. ok 
 rt_bytea .. ok 
 rt_wkb .. ok 
 box3d .. ok 
 rt_addband .. ok 
 rt_band .. ok 
 rt_tile .. ok 
 rt_dimensions .. ok 
 rt_scale .. ok 
 rt_pixelsize .. ok 
 rt_upperleft .. ok 
 rt_rotation .. ok 
 rt_georeference .. ok 
 rt_set_properties .. ok 
 rt_isempty .. ok 
 rt_hasnoband .. ok 
 rt_metadata .. ok 
 rt_rastertoworldcoord .. ok 
 rt_worldtorastercoord .. ok 
 rt_convexhull .. ok 
 rt_envelope .. ok 
 rt_band_properties .. ok 
 rt_set_band_properties .. ok 
 rt_pixelaspolygons .. ok 
 rt_pixelaspoints .. ok 
 rt_pixelascentroids .. ok 
 rt_setvalues_array .. ok 
 rt_summarystats .. ok 
 rt_count .. ok 
 rt_histogram .. ok 
 rt_quantile .. ok 
 rt_valuecount .. ok 
 rt_valuepercent .. ok 
 rt_bandmetadata .. ok 
 rt_pixelvalue .. ok 
 rt_neighborhood .. ok 
 rt_nearestvalue .. ok 
 rt_pixelofvalue .. ok 
 rt_polygon .. ok 
 rt_setbandpath .. ok 
 rt_utility .. ok 
 rt_fromgdalraster .. ok 
 rt_asgdalraster .. ok 
 rt_astiff .. ok 
 rt_asjpeg .. ok 
 rt_aspng .. ok 
 rt_reclass .. ok 
 rt_gdalwarp .. failed (diff expected obtained: /tmp/pgis_reg/test_52_diff)
-----------------------------------------------------------------------------
--- rt_gdalwarp_expected	2020-02-22 18:58:19.000000000 +0000
+++ /tmp/pgis_reg/test_52_out	2020-05-03 04:04:54.949842372 +0000
@@ -8,28 +8,28 @@
 NOTICE:  Values must be provided for both X and Y when specifying the scale.  Returning original raster
 NOTICE:  Values must be provided for both X and Y when specifying the scale.  Returning original raster
 0.0|||||||||||||
-0.1|993310|12|12|1|1009.894|-1009.894|0.000|0.000|950732.188|1409281.783|t|t|t
+0.1|993310|12|12|1|1007.902|-1007.902|0.000|0.000|952292.007|1409727.921|t|t|t
 0.10|992163|10|10|1|1000.000|-1000.000|0.000|0.000|-500000.000|600000.000|t|t|t
 0.11|992163|11|10|1|1000.000|-1000.000|0.000|0.000|-500001.000|600000.000|t|t|t
 0.12|992163|10|11|1|1000.000|-1000.000|0.000|0.000|-500000.000|600009.000|t|t|t
 0.13|992163|11|11|1|1000.000|-1000.000|0.000|0.000|-500100.000|600950.000|t|t|t
 0.14|992163|201|201|1|50.000|50.000|0.000|0.000|-500040.000|589957.000|t|t|t
 0.15|992163|84|84|1|121.000|121.000|0.000|0.000|-500093.000|589875.000|t|t|t
-0.16|993310|243|243|1|50.000|50.000|0.000|0.000|950710.000|1397157.000|t|t|t
-0.17|993310|243|243|1|50.000|50.000|0.000|0.000|950710.000|1397157.000|t|t|t
+0.16|993310|243|243|1|50.000|50.000|0.000|0.000|952260.000|1397607.000|t|t|t
+0.17|993310|243|243|1|50.000|50.000|0.000|0.000|952260.000|1397607.000|t|t|t
 0.18|992163|10|10|1|1000.000|-1000.000|3.000|3.000|-500030.000|600000.000|t|t|t
-0.19|993310|12|12|1|1009.894|-1009.894|3.000|3.000|950691.792|1409281.783|t|t|t
-0.2|993310|12|12|1|1009.894|-1009.894|0.000|0.000|950732.188|1409281.783|t|t|t
-0.20|993310|12|12|1|1009.894|-1009.894|1.000|3.000|950711.990|1409281.783|t|t|t
-0.21|993310|24|24|1|500.000|500.000|3.000|3.000|950657.188|1397356.783|t|t|t
-0.22|993310|26|26|1|500.000|500.000|0.000|6.000|950452.000|1396632.000|t|t|t
-0.23|984269|12|8|1|0.012|-0.012|0.000|0.000|-107.029|50.206|t|t|t
-0.24|974269|12|8|1|0.012|-0.012|0.000|0.000|-107.029|50.206|t|t|t
+0.19|993310|12|12|1|1007.902|-1007.902|3.000|3.000|952251.690|1409727.921|t|t|t
+0.2|993310|12|12|1|1007.902|-1007.902|0.000|0.000|952292.007|1409727.921|t|t|t
+0.20|993310|12|12|1|1007.902|-1007.902|1.000|3.000|952271.849|1409727.921|t|t|t
+0.21|993310|24|24|1|500.000|500.000|3.000|3.000|952217.007|1397802.921|t|t|t
+0.22|993310|25|25|1|500.000|500.000|0.000|6.000|951952.000|1397614.000|t|t|t
+0.23|984269|12|8|1|0.012|-0.012|0.000|0.000|-107.007|50.208|t|t|t
+0.24|974269|12|8|1|0.012|-0.012|0.000|0.000|-107.007|50.208|t|t|t
 0.25|0|5|5|1|2.000|-2.000|0.000|0.000|0.000|0.000|t|t|t
 0.26|0|2|2|1|5.000|-5.000|0.000|0.000|0.000|0.000|t|t|t
 0.27|0|100|100|1|0.100|-0.100|0.000|0.000|0.000|0.000|t|t|t
-0.3|994269|12|8|1|0.012|-0.012|0.000|0.000|-107.029|50.206|t|t|t
-0.4|993310|24|24|1|500.000|500.000|0.000|0.000|950732.188|1397281.783|t|t|t
+0.3|994269|12|8|1|0.012|-0.012|0.000|0.000|-107.007|50.208|t|t|t
+0.4|993310|24|24|1|500.000|500.000|0.000|0.000|952292.007|1397727.921|t|t|t
 0.5|992163|10|10|1|1000.000|-1000.000|0.000|0.000|-500000.000|600000.000|t|t|t
 0.6|992163|10|10|1|1000.000|-1000.000|0.000|0.000|-500000.000|600000.000|t|t|t
 0.7|992163|20|20|1|500.000|500.000|0.000|0.000|-500000.000|590000.000|t|t|t
@@ -61,21 +61,21 @@
 1.7|992163|40|40|1|250.000|250.000|0.000|0.000|-500000.000|590000.000|t|t|t
 1.8|992163|10|10|1|1000.000|-1000.000|0.000|0.000|-500000.000|600000.000|t|t|t
 1.9|992163|11|10|1|1000.000|-1000.000|0.000|0.000|-500001.000|600000.000|t|t|t
-2.1|993310|12|12|1|1009.894|-1009.894|0.000|0.000|950732.188|1409281.783|t|t|t
-2.10|993310|24|24|1|500.000|500.000|0.000|0.000|950732.188|1397281.783|t|t|t
-2.11|993310|121|121|1|100.000|100.000|0.000|0.000|950732.188|1397181.783|t|t|t
-2.12|993310|6|6|1|2000.000|2000.000|0.000|0.000|950732.188|1397281.783|t|t|t
-2.13|993310|8|8|1|1500.000|1500.000|0.000|0.000|950732.188|1397281.783|t|t|t
-2.14|993310|24|24|1|500.000|500.000|0.000|0.000|950732.188|1397281.783|t|t|t
-2.15|993310|16|16|1|750.000|750.000|0.000|0.000|950732.188|1397281.783|t|t|t
-2.2|993310|12|12|1|1009.894|-1009.894|0.000|0.000|950732.188|1409281.783|t|t|t
-2.3|994269|12|8|1|0.012|-0.012|0.000|0.000|-107.029|50.206|t|t|t
+2.1|993310|12|12|1|1007.902|-1007.902|0.000|0.000|952292.007|1409727.921|t|t|t
+2.10|993310|24|24|1|500.000|500.000|0.000|0.000|952292.007|1397727.921|t|t|t
+2.11|993310|121|121|1|100.000|100.000|0.000|0.000|952292.007|1397627.921|t|t|t
+2.12|993310|6|6|1|2000.000|2000.000|0.000|0.000|952292.007|1397727.921|t|t|t
+2.13|993310|8|8|1|1500.000|1500.000|0.000|0.000|952292.007|1397727.921|t|t|t
+2.14|993310|24|24|1|500.000|500.000|0.000|0.000|952292.007|1397727.921|t|t|t
+2.15|993310|16|16|1|750.000|750.000|0.000|0.000|952292.007|1397727.921|t|t|t
+2.2|993310|12|12|1|1007.902|-1007.902|0.000|0.000|952292.007|1409727.921|t|t|t
+2.3|994269|12|8|1|0.012|-0.012|0.000|0.000|-107.007|50.208|t|t|t
 2.4|||||||||||||
-2.5|993310|12|12|1|1009.894|-1009.894|0.000|0.000|950732.188|1409281.783|t|t|t
+2.5|993310|12|12|1|1007.902|-1007.902|0.000|0.000|952292.007|1409727.921|t|t|t
 2.6|||||||||||||
-2.7|993310|12|12|1|1009.894|-1009.894|0.000|0.000|950732.188|1409281.783|t|t|t
-2.8|993310|12|12|1|1009.894|-1009.894|0.000|0.000|950732.188|1409281.783|t|t|t
-2.9|993310|12|12|1|1009.894|-1009.894|0.000|0.000|950732.188|1409281.783|t|t|t
+2.7|993310|12|12|1|1007.902|-1007.902|0.000|0.000|952292.007|1409727.921|t|t|t
+2.8|993310|12|12|1|1007.902|-1007.902|0.000|0.000|952292.007|1409727.921|t|t|t
+2.9|993310|12|12|1|1007.902|-1007.902|0.000|0.000|952292.007|1409727.921|t|t|t
 3.1|992163|100|100|1|100.000|100.000|0.000|0.000|-500000.000|590000.000|t|t|t
 3.2|992163|100|100|1|100.000|100.000|0.000|0.000|-500000.000|590000.000|t|t|t
 3.3|992163|10|10|1|1000.000|-1000.000|0.000|0.000|-500000.000|600000.000|t|t|t
-----------------------------------------------------------------------------
 rt_asraster .. ok 
 rt_dumpvalues .. ok 
 rt_makeemptycoverage .. ok 
 rt_createoverview .. ok 
 rt_mapalgebraexpr .. ok 
 rt_mapalgebrafct .. ok 
 rt_mapalgebraexpr_2raster .. ok 
 rt_mapalgebrafct_2raster .. ok 
 rt_mapalgebrafctngb .. ok 
 rt_mapalgebrafctngb_userfunc .. ok 
 rt_intersection .. ok 
 rt_clip .. ok 
 rt_mapalgebra .. ok 
 rt_mapalgebra_expr .. ok 
 rt_mapalgebra_mask .. ok 
 rt_union .. ok 
 rt_invdistweight4ma .. ok 
 rt_4ma .. ok 
 rt_setvalues_geomval .. ok 
 rt_elevation_functions .. ok 
 rt_colormap .. ok 
 rt_grayscale .. ok 
 rt_gist_relationships .. ok 
 rt_intersects .. ok 
 rt_samealignment .. ok 
 rt_geos_relationships .. ok 
 rt_iscoveragetile .. ok 
 bug_test_car5 .. ok 
 permitted_gdal_drivers .. ok 
 tickets .. ok 
 loader/Basic .... ok 
 loader/Projected ..... ok 
 loader/BasicCopy .... ok 
 loader/BasicFilename .... ok 
 loader/BasicOutDB .... ok 
 loader/Tiled10x10 .... ok 
 loader/Tiled10x10Copy .... ok 
 loader/Tiled8x8 .... ok 
 loader/TiledAuto .... ok 
 loader/TiledAutoSkipNoData .... ok 
 clean .. ok 
 uninstall .  /<<PKGBUILDDIR>>/regress/00-regress-install/share/contrib/postgis/uninstall_rtpostgis.sql
  /<<PKGBUILDDIR>>/regress/00-regress-install/share/contrib/postgis/uninstall_postgis.sql
. ok (4725)

Run tests: 94
Failed: 1
make[5]: *** [Makefile:184: check] Error 1

The full build log is available from:

http://qa-logs.debian.net/2020/05/01/postgis_3.0.1+dfsg-3_unstable.log

You can't expect the exact same coordinates between PROJ versions, an acceptable margin needs to be applied for these kind of tests.

Change History (2)

comment:1 by Algunenano, 5 years ago

Resolution: duplicate
Status: newclosed

comment:2 by sebastic, 5 years ago

Note that this issue is for 3.0.x, #4673 is for 3.1.x.

Note: See TracTickets for help on using tickets.