PostGIS : postgis-devel Archive

List Statistics

  • Total Threads: 2668
  • Total Posts: 4311

Phrases Used to Find This Thread

  #1  
23-08-2010 12:04 PM
PostGIS : postgis-devel member admin is online now
User
 

Hi,

I've noticed current revision of WKT Raster is broken.
Running the core tests for r5841 ends up with assertion and
load of warnings:

./testapi
1111 pixtype = 2
Raster starts with 0 bands
First point on convexhull ring is 0.5,0.5
Second point on convexhull ring is 256.5,1280.5
Third point on convexhull ring is 1280.5,1536.5
Fourth point on convexhull ring is 1024.5,256.5
Fifth point on convexhull ring is 0.5,0.5
Testing polygonize function
Testing 1BB band
WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated
from 2 to 0
WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated
from 3 to 1
WARNING: Pixel value for 1BB band got truncated from 2 to 0
WARNING: Pixel value for 1BB band got truncated from 3 to 1
Testing 2BB band
WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated
from 4 to 0
WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated
from 5 to 1
WARNING: Pixel value for 2BUI band got truncated from 4 to 0
WARNING: Pixel value for 2BUI band got truncated from 5 to 1
Testing 4BUI band
WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated
from 16 to 0
WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated
from 17 to 1
WARNING: Pixel value for 4BUI band got truncated from 35 to 3
Testing 8BUI band
WARNING: rt_band_set_nodata: NODATA value for 8BUI band got truncated
from 256 to 0
WARNING: Pixel value for 8BUI band got truncated from 256 to 0
Testing 8BSI band
WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated
from -129 to 127
WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated
from 129 to -127
WARNING: Pixel value for 8BSI band got truncated from -129 to 127
WARNING: Pixel value for 8BSI band got truncated from 129 to -127
Testing 16BSI band
WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated
from -32769 to 32767
WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated
from 32769 to -32767
WARNING: Pixel value for 16BSI band got truncated from -32769 to 32767
WARNING: Pixel value for 16BSI band got truncated from 32769 to -32767
ERROR: Coordinates ouf of range
Testing 16BUI band
WARNING: rt_band_set_nodata: NODATA value for 16BUI band got truncated
from 65536 to 0
WARNING: Pixel value for 16BUI band got truncated from 65536 to 0
ERROR: Coordinates ouf of range
Testing 32BUI band
WARNING: rt_band_set_nodata: NODATA value for 32BUI band got truncated
from 4.29497e+09 to 0
WARNING: Pixel value for 32BUI band got truncated from 4.29497e+09 to 0
ERROR: Coordinates ouf of range
Testing 32BSI band
WARNING: rt_band_set_nodata: NODATA value for 32BSI band got truncated
from 2.14748e+09 to -2.14748e+09
WARNING: Pixel value for 32BSI band got truncated from 2.14748e+09 to
-2.14748e+09
ERROR: Coordinates ouf of range
Testing 32BF band
Testing 64BF band
Testing band hasnodata flag
testapi: rt_api.c:545: rt_band_get_data: Assertion `((void *)0) != band'
failed.
make[2]: *** [check] Aborted
make[2]: Leaving directory
`/home/mloskot/dev/wktraster/_svn/trunk/test/core'
make[1]: *** [check] Error 2
make[1]: Leaving directory `/home/mloskot/dev/wktraster/_svn/trunk/test'
make: *** [check] Error 2

The assertion is serious and happens in crucial function.
I checked and the last healthy revision seems to be r5811.

Pierre, Jorge, could you re-validate your recent commits?
You do run "make check" before every commit, don't you?

Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe.

  #2  
23-08-2010 12:38 PM
PostGIS : postgis-devel member admin is online now
User
 

Hi,

I've noticed current revision of WKT Raster is broken.
Running the core tests for r5841 ends up with assertion and
load of warnings:

./testapi
1111 pixtype = 2
Raster starts with 0 bands
First point on convexhull ring is 0.5,0.5
Second point on convexhull ring is 256.5,1280.5
Third point on convexhull ring is 1280.5,1536.5
Fourth point on convexhull ring is 1024.5,256.5
Fifth point on convexhull ring is 0.5,0.5
Testing polygonize function
Testing 1BB band
WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated
from 2 to 0
WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated
from 3 to 1
WARNING: Pixel value for 1BB band got truncated from 2 to 0
WARNING: Pixel value for 1BB band got truncated from 3 to 1
Testing 2BB band
WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated
from 4 to 0
WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated
from 5 to 1
WARNING: Pixel value for 2BUI band got truncated from 4 to 0
WARNING: Pixel value for 2BUI band got truncated from 5 to 1
Testing 4BUI band
WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated
from 16 to 0
WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated
from 17 to 1
WARNING: Pixel value for 4BUI band got truncated from 35 to 3
Testing 8BUI band
WARNING: rt_band_set_nodata: NODATA value for 8BUI band got truncated
from 256 to 0
WARNING: Pixel value for 8BUI band got truncated from 256 to 0
Testing 8BSI band
WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated
from -129 to 127
WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated
from 129 to -127
WARNING: Pixel value for 8BSI band got truncated from -129 to 127
WARNING: Pixel value for 8BSI band got truncated from 129 to -127
Testing 16BSI band
WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated
from -32769 to 32767
WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated
from 32769 to -32767
WARNING: Pixel value for 16BSI band got truncated from -32769 to 32767
WARNING: Pixel value for 16BSI band got truncated from 32769 to -32767
ERROR: Coordinates ouf of range
Testing 16BUI band
WARNING: rt_band_set_nodata: NODATA value for 16BUI band got truncated
from 65536 to 0
WARNING: Pixel value for 16BUI band got truncated from 65536 to 0
ERROR: Coordinates ouf of range
Testing 32BUI band
WARNING: rt_band_set_nodata: NODATA value for 32BUI band got truncated
from 4.29497e+09 to 0
WARNING: Pixel value for 32BUI band got truncated from 4.29497e+09 to 0
ERROR: Coordinates ouf of range
Testing 32BSI band
WARNING: rt_band_set_nodata: NODATA value for 32BSI band got truncated
from 2.14748e+09 to -2.14748e+09
WARNING: Pixel value for 32BSI band got truncated from 2.14748e+09 to
-2.14748e+09
ERROR: Coordinates ouf of range
Testing 32BF band
Testing 64BF band
Testing band hasnodata flag
testapi: rt_api.c:545: rt_band_get_data: Assertion `((void *)0) != band'
failed.
make[2]: *** [check] Aborted
make[2]: Leaving directory
`/home/mloskot/dev/wktraster/_svn/trunk/test/core'
make[1]: *** [check] Error 2
make[1]: Leaving directory `/home/mloskot/dev/wktraster/_svn/trunk/test'
make: *** [check] Error 2

The assertion is serious and happens in crucial function.
I checked and the last healthy revision seems to be r5811.

Pierre, Jorge, could you re-validate your recent commits?
You do run "make check" before every commit, don't you?

Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. On Mon, Aug 23, 2010 at 1:04 PM, Mateusz Loskot <> wrote:
> Hi,
>
> I've noticed current revision of WKT Raster is broken.
> Running the core tests for r5841 ends up with assertion and
> load of warnings:
>
> ./testapi
> 1111 pixtype = 2
> Raster starts with 0 bands
> First point on convexhull ring is 0.5,0.5
> Second point on convexhull ring is 256.5,1280.5
> Third point on convexhull ring is 1280.5,1536.5
> Fourth point on convexhull ring is 1024.5,256.5
> Fifth point on convexhull ring is 0.5,0.5
> Testing polygonize function
> Testing 1BB band
> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 2
> to 0
> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 3
> to 1
> WARNING: Pixel value for 1BB band got truncated from 2 to 0
> WARNING: Pixel value for 1BB band got truncated from 3 to 1
> Testing 2BB band
> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 4
> to 0
> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 5
> to 1
> WARNING: Pixel value for 2BUI band got truncated from 4 to 0
> WARNING: Pixel value for 2BUI band got truncated from 5 to 1
> Testing 4BUI band
> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
> 16 to 0
> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
> 17 to 1
> WARNING: Pixel value for 4BUI band got truncated from 35 to 3
> Testing 8BUI band
> WARNING: rt_band_set_nodata: NODATA value for 8BUI band got truncated from
> 256 to 0
> WARNING: Pixel value for 8BUI band got truncated from 256 to 0
> Testing 8BSI band
> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
> -129 to 127
> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
> 129 to -127
> WARNING: Pixel value for 8BSI band got truncated from -129 to 127
> WARNING: Pixel value for 8BSI band got truncated from 129 to -127
> Testing 16BSI band
> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
> -32769 to 32767
> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
> 32769 to -32767
> WARNING: Pixel value for 16BSI band got truncated from -32769 to 32767
> WARNING: Pixel value for 16BSI band got truncated from 32769 to -32767
> ERROR: Coordinates ouf of range
> Testing 16BUI band
> WARNING: rt_band_set_nodata: NODATA value for 16BUI band got truncated from
> 65536 to 0
> WARNING: Pixel value for 16BUI band got truncated from 65536 to 0
> ERROR: Coordinates ouf of range
> Testing 32BUI band
> WARNING: rt_band_set_nodata: NODATA value for 32BUI band got truncated from
> 4.29497e+09 to 0
> WARNING: Pixel value for 32BUI band got truncated from 4.29497e+09 to 0
> ERROR: Coordinates ouf of range
> Testing 32BSI band
> WARNING: rt_band_set_nodata: NODATA value for 32BSI band got truncated from
> 2.14748e+09 to -2.14748e+09
> WARNING: Pixel value for 32BSI band got truncated from 2.14748e+09 to
> -2.14748e+09
> ERROR: Coordinates ouf of range
> Testing 32BF band
> Testing 64BF band
> Testing band hasnodata flag
> testapi: rt_api.c:545: rt_band_get_data: Assertion `((void *)0) != band'
> failed.
> make[2]: *** [check] Aborted
> make[2]: Leaving directory
> `/home/mloskot/dev/wktraster/_svn/trunk/test/core'
> make[1]: *** [check] Error 2
> make[1]: Leaving directory `/home/mloskot/dev/wktraster/_svn/trunk/test'
> make: *** [check] Error 2
>
> The assertion is serious and happens in crucial function.
> I checked and the last healthy revision seems to be r5811.
>
> Pierre, Jorge, could you re-validate your recent commits?
> You do run "make check" before every commit, don't you?
>
> Best regards,
> --
> Mateusz Loskot, http://mateusz.loskot.net
> _______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe.

  #3  
23-08-2010 02:23 PM
PostGIS : postgis-devel member admin is online now
User
 

Hi,

I've noticed current revision of WKT Raster is broken.
Running the core tests for r5841 ends up with assertion and
load of warnings:

./testapi
1111 pixtype = 2
Raster starts with 0 bands
First point on convexhull ring is 0.5,0.5
Second point on convexhull ring is 256.5,1280.5
Third point on convexhull ring is 1280.5,1536.5
Fourth point on convexhull ring is 1024.5,256.5
Fifth point on convexhull ring is 0.5,0.5
Testing polygonize function
Testing 1BB band
WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated
from 2 to 0
WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated
from 3 to 1
WARNING: Pixel value for 1BB band got truncated from 2 to 0
WARNING: Pixel value for 1BB band got truncated from 3 to 1
Testing 2BB band
WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated
from 4 to 0
WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated
from 5 to 1
WARNING: Pixel value for 2BUI band got truncated from 4 to 0
WARNING: Pixel value for 2BUI band got truncated from 5 to 1
Testing 4BUI band
WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated
from 16 to 0
WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated
from 17 to 1
WARNING: Pixel value for 4BUI band got truncated from 35 to 3
Testing 8BUI band
WARNING: rt_band_set_nodata: NODATA value for 8BUI band got truncated
from 256 to 0
WARNING: Pixel value for 8BUI band got truncated from 256 to 0
Testing 8BSI band
WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated
from -129 to 127
WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated
from 129 to -127
WARNING: Pixel value for 8BSI band got truncated from -129 to 127
WARNING: Pixel value for 8BSI band got truncated from 129 to -127
Testing 16BSI band
WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated
from -32769 to 32767
WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated
from 32769 to -32767
WARNING: Pixel value for 16BSI band got truncated from -32769 to 32767
WARNING: Pixel value for 16BSI band got truncated from 32769 to -32767
ERROR: Coordinates ouf of range
Testing 16BUI band
WARNING: rt_band_set_nodata: NODATA value for 16BUI band got truncated
from 65536 to 0
WARNING: Pixel value for 16BUI band got truncated from 65536 to 0
ERROR: Coordinates ouf of range
Testing 32BUI band
WARNING: rt_band_set_nodata: NODATA value for 32BUI band got truncated
from 4.29497e+09 to 0
WARNING: Pixel value for 32BUI band got truncated from 4.29497e+09 to 0
ERROR: Coordinates ouf of range
Testing 32BSI band
WARNING: rt_band_set_nodata: NODATA value for 32BSI band got truncated
from 2.14748e+09 to -2.14748e+09
WARNING: Pixel value for 32BSI band got truncated from 2.14748e+09 to
-2.14748e+09
ERROR: Coordinates ouf of range
Testing 32BF band
Testing 64BF band
Testing band hasnodata flag
testapi: rt_api.c:545: rt_band_get_data: Assertion `((void *)0) != band'
failed.
make[2]: *** [check] Aborted
make[2]: Leaving directory
`/home/mloskot/dev/wktraster/_svn/trunk/test/core'
make[1]: *** [check] Error 2
make[1]: Leaving directory `/home/mloskot/dev/wktraster/_svn/trunk/test'
make: *** [check] Error 2

The assertion is serious and happens in crucial function.
I checked and the last healthy revision seems to be r5811.

Pierre, Jorge, could you re-validate your recent commits?
You do run "make check" before every commit, don't you?

Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. On Mon, Aug 23, 2010 at 1:04 PM, Mateusz Loskot <> wrote:
> Hi,
>
> I've noticed current revision of WKT Raster is broken.
> Running the core tests for r5841 ends up with assertion and
> load of warnings:
>
> ./testapi
> 1111 pixtype = 2
> Raster starts with 0 bands
> First point on convexhull ring is 0.5,0.5
> Second point on convexhull ring is 256.5,1280.5
> Third point on convexhull ring is 1280.5,1536.5
> Fourth point on convexhull ring is 1024.5,256.5
> Fifth point on convexhull ring is 0.5,0.5
> Testing polygonize function
> Testing 1BB band
> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 2
> to 0
> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 3
> to 1
> WARNING: Pixel value for 1BB band got truncated from 2 to 0
> WARNING: Pixel value for 1BB band got truncated from 3 to 1
> Testing 2BB band
> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 4
> to 0
> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 5
> to 1
> WARNING: Pixel value for 2BUI band got truncated from 4 to 0
> WARNING: Pixel value for 2BUI band got truncated from 5 to 1
> Testing 4BUI band
> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
> 16 to 0
> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
> 17 to 1
> WARNING: Pixel value for 4BUI band got truncated from 35 to 3
> Testing 8BUI band
> WARNING: rt_band_set_nodata: NODATA value for 8BUI band got truncated from
> 256 to 0
> WARNING: Pixel value for 8BUI band got truncated from 256 to 0
> Testing 8BSI band
> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
> -129 to 127
> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
> 129 to -127
> WARNING: Pixel value for 8BSI band got truncated from -129 to 127
> WARNING: Pixel value for 8BSI band got truncated from 129 to -127
> Testing 16BSI band
> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
> -32769 to 32767
> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
> 32769 to -32767
> WARNING: Pixel value for 16BSI band got truncated from -32769 to 32767
> WARNING: Pixel value for 16BSI band got truncated from 32769 to -32767
> ERROR: Coordinates ouf of range
> Testing 16BUI band
> WARNING: rt_band_set_nodata: NODATA value for 16BUI band got truncated from
> 65536 to 0
> WARNING: Pixel value for 16BUI band got truncated from 65536 to 0
> ERROR: Coordinates ouf of range
> Testing 32BUI band
> WARNING: rt_band_set_nodata: NODATA value for 32BUI band got truncated from
> 4.29497e+09 to 0
> WARNING: Pixel value for 32BUI band got truncated from 4.29497e+09 to 0
> ERROR: Coordinates ouf of range
> Testing 32BSI band
> WARNING: rt_band_set_nodata: NODATA value for 32BSI band got truncated from
> 2.14748e+09 to -2.14748e+09
> WARNING: Pixel value for 32BSI band got truncated from 2.14748e+09 to
> -2.14748e+09
> ERROR: Coordinates ouf of range
> Testing 32BF band
> Testing 64BF band
> Testing band hasnodata flag
> testapi: rt_api.c:545: rt_band_get_data: Assertion `((void *)0) != band'
> failed.
> make[2]: *** [check] Aborted
> make[2]: Leaving directory
> `/home/mloskot/dev/wktraster/_svn/trunk/test/core'
> make[1]: *** [check] Error 2
> make[1]: Leaving directory `/home/mloskot/dev/wktraster/_svn/trunk/test'
> make: *** [check] Error 2
>
> The assertion is serious and happens in crucial function.
> I checked and the last healthy revision seems to be r5811.
>
> Pierre, Jorge, could you re-validate your recent commits?
> You do run "make check" before every commit, don't you?
>
> Best regards,
> --
> Mateusz Loskot, http://mateusz.loskot.net
> _______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. Probably my fault. Double check...

Pierre

>-----Original Message-----
>From: postgis-devel- [mailto:postgis-devel-
>] On Behalf Of Jorge Arévalo
>Sent: 23 août 2010 07:39
>To: PostGIS Development Discussion
>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>
>On Mon, Aug 23, 2010 at 1:04 PM, Mateusz Loskot <> wrote:
>> Hi,
>>
>> I've noticed current revision of WKT Raster is broken.
>> Running the core tests for r5841 ends up with assertion and
>> load of warnings:
>>
>> ./testapi
>> 1111 pixtype = 2
>> Raster starts with 0 bands
>> First point on convexhull ring is 0.5,0.5
>> Second point on convexhull ring is 256.5,1280.5
>> Third point on convexhull ring is 1280.5,1536.5
>> Fourth point on convexhull ring is 1024.5,256.5
>> Fifth point on convexhull ring is 0.5,0.5
>> Testing polygonize function
>> Testing 1BB band
>> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 2
>> to 0
>> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 3
>> to 1
>> WARNING: Pixel value for 1BB band got truncated from 2 to 0
>> WARNING: Pixel value for 1BB band got truncated from 3 to 1
>> Testing 2BB band
>> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 4
>> to 0
>> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 5
>> to 1
>> WARNING: Pixel value for 2BUI band got truncated from 4 to 0
>> WARNING: Pixel value for 2BUI band got truncated from 5 to 1
>> Testing 4BUI band
>> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
>> 16 to 0
>> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
>> 17 to 1
>> WARNING: Pixel value for 4BUI band got truncated from 35 to 3
>> Testing 8BUI band
>> WARNING: rt_band_set_nodata: NODATA value for 8BUI band got truncated from
>> 256 to 0
>> WARNING: Pixel value for 8BUI band got truncated from 256 to 0
>> Testing 8BSI band
>> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
>> -129 to 127
>> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
>> 129 to -127
>> WARNING: Pixel value for 8BSI band got truncated from -129 to 127
>> WARNING: Pixel value for 8BSI band got truncated from 129 to -127
>> Testing 16BSI band
>> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
>> -32769 to 32767
>> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
>> 32769 to -32767
>> WARNING: Pixel value for 16BSI band got truncated from -32769 to 32767
>> WARNING: Pixel value for 16BSI band got truncated from 32769 to -32767
>> ERROR: Coordinates ouf of range
>> Testing 16BUI band
>> WARNING: rt_band_set_nodata: NODATA value for 16BUI band got truncated from
>> 65536 to 0
>> WARNING: Pixel value for 16BUI band got truncated from 65536 to 0
>> ERROR: Coordinates ouf of range
>> Testing 32BUI band
>> WARNING: rt_band_set_nodata: NODATA value for 32BUI band got truncated from
>> 4.29497e+09 to 0
>> WARNING: Pixel value for 32BUI band got truncated from 4.29497e+09 to 0
>> ERROR: Coordinates ouf of range
>> Testing 32BSI band
>> WARNING: rt_band_set_nodata: NODATA value for 32BSI band got truncated from
>> 2.14748e+09 to -2.14748e+09
>> WARNING: Pixel value for 32BSI band got truncated from 2.14748e+09 to
>> -2.14748e+09
>> ERROR: Coordinates ouf of range
>> Testing 32BF band
>> Testing 64BF band
>> Testing band hasnodata flag
>> testapi: rt_api.c:545: rt_band_get_data: Assertion `((void *)0) != band'
>> failed.
>> make[2]: *** [check] Aborted
>> make[2]: Leaving directory
>> `/home/mloskot/dev/wktraster/_svn/trunk/test/core'
>> make[1]: *** [check] Error 2
>> make[1]: Leaving directory `/home/mloskot/dev/wktraster/_svn/trunk/test'
>> make: *** [check] Error 2
>>
>> The assertion is serious and happens in crucial function.
>> I checked and the last healthy revision seems to be r5811.
>>
>> Pierre, Jorge, could you re-validate your recent commits?
>> You do run "make check" before every commit, don't you?
>>
>> Best regards,
>> --
>> Mateusz Loskot, http://mateusz.loskot.net
>> _______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe.

  #4  
23-08-2010 03:53 PM
PostGIS : postgis-devel member admin is online now
User
 

Hi,

I've noticed current revision of WKT Raster is broken.
Running the core tests for r5841 ends up with assertion and
load of warnings:

./testapi
1111 pixtype = 2
Raster starts with 0 bands
First point on convexhull ring is 0.5,0.5
Second point on convexhull ring is 256.5,1280.5
Third point on convexhull ring is 1280.5,1536.5
Fourth point on convexhull ring is 1024.5,256.5
Fifth point on convexhull ring is 0.5,0.5
Testing polygonize function
Testing 1BB band
WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated
from 2 to 0
WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated
from 3 to 1
WARNING: Pixel value for 1BB band got truncated from 2 to 0
WARNING: Pixel value for 1BB band got truncated from 3 to 1
Testing 2BB band
WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated
from 4 to 0
WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated
from 5 to 1
WARNING: Pixel value for 2BUI band got truncated from 4 to 0
WARNING: Pixel value for 2BUI band got truncated from 5 to 1
Testing 4BUI band
WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated
from 16 to 0
WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated
from 17 to 1
WARNING: Pixel value for 4BUI band got truncated from 35 to 3
Testing 8BUI band
WARNING: rt_band_set_nodata: NODATA value for 8BUI band got truncated
from 256 to 0
WARNING: Pixel value for 8BUI band got truncated from 256 to 0
Testing 8BSI band
WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated
from -129 to 127
WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated
from 129 to -127
WARNING: Pixel value for 8BSI band got truncated from -129 to 127
WARNING: Pixel value for 8BSI band got truncated from 129 to -127
Testing 16BSI band
WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated
from -32769 to 32767
WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated
from 32769 to -32767
WARNING: Pixel value for 16BSI band got truncated from -32769 to 32767
WARNING: Pixel value for 16BSI band got truncated from 32769 to -32767
ERROR: Coordinates ouf of range
Testing 16BUI band
WARNING: rt_band_set_nodata: NODATA value for 16BUI band got truncated
from 65536 to 0
WARNING: Pixel value for 16BUI band got truncated from 65536 to 0
ERROR: Coordinates ouf of range
Testing 32BUI band
WARNING: rt_band_set_nodata: NODATA value for 32BUI band got truncated
from 4.29497e+09 to 0
WARNING: Pixel value for 32BUI band got truncated from 4.29497e+09 to 0
ERROR: Coordinates ouf of range
Testing 32BSI band
WARNING: rt_band_set_nodata: NODATA value for 32BSI band got truncated
from 2.14748e+09 to -2.14748e+09
WARNING: Pixel value for 32BSI band got truncated from 2.14748e+09 to
-2.14748e+09
ERROR: Coordinates ouf of range
Testing 32BF band
Testing 64BF band
Testing band hasnodata flag
testapi: rt_api.c:545: rt_band_get_data: Assertion `((void *)0) != band'
failed.
make[2]: *** [check] Aborted
make[2]: Leaving directory
`/home/mloskot/dev/wktraster/_svn/trunk/test/core'
make[1]: *** [check] Error 2
make[1]: Leaving directory `/home/mloskot/dev/wktraster/_svn/trunk/test'
make: *** [check] Error 2

The assertion is serious and happens in crucial function.
I checked and the last healthy revision seems to be r5811.

Pierre, Jorge, could you re-validate your recent commits?
You do run "make check" before every commit, don't you?

Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. On Mon, Aug 23, 2010 at 1:04 PM, Mateusz Loskot <> wrote:
> Hi,
>
> I've noticed current revision of WKT Raster is broken.
> Running the core tests for r5841 ends up with assertion and
> load of warnings:
>
> ./testapi
> 1111 pixtype = 2
> Raster starts with 0 bands
> First point on convexhull ring is 0.5,0.5
> Second point on convexhull ring is 256.5,1280.5
> Third point on convexhull ring is 1280.5,1536.5
> Fourth point on convexhull ring is 1024.5,256.5
> Fifth point on convexhull ring is 0.5,0.5
> Testing polygonize function
> Testing 1BB band
> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 2
> to 0
> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 3
> to 1
> WARNING: Pixel value for 1BB band got truncated from 2 to 0
> WARNING: Pixel value for 1BB band got truncated from 3 to 1
> Testing 2BB band
> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 4
> to 0
> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 5
> to 1
> WARNING: Pixel value for 2BUI band got truncated from 4 to 0
> WARNING: Pixel value for 2BUI band got truncated from 5 to 1
> Testing 4BUI band
> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
> 16 to 0
> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
> 17 to 1
> WARNING: Pixel value for 4BUI band got truncated from 35 to 3
> Testing 8BUI band
> WARNING: rt_band_set_nodata: NODATA value for 8BUI band got truncated from
> 256 to 0
> WARNING: Pixel value for 8BUI band got truncated from 256 to 0
> Testing 8BSI band
> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
> -129 to 127
> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
> 129 to -127
> WARNING: Pixel value for 8BSI band got truncated from -129 to 127
> WARNING: Pixel value for 8BSI band got truncated from 129 to -127
> Testing 16BSI band
> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
> -32769 to 32767
> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
> 32769 to -32767
> WARNING: Pixel value for 16BSI band got truncated from -32769 to 32767
> WARNING: Pixel value for 16BSI band got truncated from 32769 to -32767
> ERROR: Coordinates ouf of range
> Testing 16BUI band
> WARNING: rt_band_set_nodata: NODATA value for 16BUI band got truncated from
> 65536 to 0
> WARNING: Pixel value for 16BUI band got truncated from 65536 to 0
> ERROR: Coordinates ouf of range
> Testing 32BUI band
> WARNING: rt_band_set_nodata: NODATA value for 32BUI band got truncated from
> 4.29497e+09 to 0
> WARNING: Pixel value for 32BUI band got truncated from 4.29497e+09 to 0
> ERROR: Coordinates ouf of range
> Testing 32BSI band
> WARNING: rt_band_set_nodata: NODATA value for 32BSI band got truncated from
> 2.14748e+09 to -2.14748e+09
> WARNING: Pixel value for 32BSI band got truncated from 2.14748e+09 to
> -2.14748e+09
> ERROR: Coordinates ouf of range
> Testing 32BF band
> Testing 64BF band
> Testing band hasnodata flag
> testapi: rt_api.c:545: rt_band_get_data: Assertion `((void *)0) != band'
> failed.
> make[2]: *** [check] Aborted
> make[2]: Leaving directory
> `/home/mloskot/dev/wktraster/_svn/trunk/test/core'
> make[1]: *** [check] Error 2
> make[1]: Leaving directory `/home/mloskot/dev/wktraster/_svn/trunk/test'
> make: *** [check] Error 2
>
> The assertion is serious and happens in crucial function.
> I checked and the last healthy revision seems to be r5811.
>
> Pierre, Jorge, could you re-validate your recent commits?
> You do run "make check" before every commit, don't you?
>
> Best regards,
> --
> Mateusz Loskot, http://mateusz.loskot.net
> _______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. Probably my fault. Double check...

Pierre

>-----Original Message-----
>From: postgis-devel- [mailto:postgis-devel-
>] On Behalf Of Jorge Arévalo
>Sent: 23 août 2010 07:39
>To: PostGIS Development Discussion
>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>
>On Mon, Aug 23, 2010 at 1:04 PM, Mateusz Loskot <> wrote:
>> Hi,
>>
>> I've noticed current revision of WKT Raster is broken.
>> Running the core tests for r5841 ends up with assertion and
>> load of warnings:
>>
>> ./testapi
>> 1111 pixtype = 2
>> Raster starts with 0 bands
>> First point on convexhull ring is 0.5,0.5
>> Second point on convexhull ring is 256.5,1280.5
>> Third point on convexhull ring is 1280.5,1536.5
>> Fourth point on convexhull ring is 1024.5,256.5
>> Fifth point on convexhull ring is 0.5,0.5
>> Testing polygonize function
>> Testing 1BB band
>> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 2
>> to 0
>> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 3
>> to 1
>> WARNING: Pixel value for 1BB band got truncated from 2 to 0
>> WARNING: Pixel value for 1BB band got truncated from 3 to 1
>> Testing 2BB band
>> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 4
>> to 0
>> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 5
>> to 1
>> WARNING: Pixel value for 2BUI band got truncated from 4 to 0
>> WARNING: Pixel value for 2BUI band got truncated from 5 to 1
>> Testing 4BUI band
>> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
>> 16 to 0
>> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
>> 17 to 1
>> WARNING: Pixel value for 4BUI band got truncated from 35 to 3
>> Testing 8BUI band
>> WARNING: rt_band_set_nodata: NODATA value for 8BUI band got truncated from
>> 256 to 0
>> WARNING: Pixel value for 8BUI band got truncated from 256 to 0
>> Testing 8BSI band
>> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
>> -129 to 127
>> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
>> 129 to -127
>> WARNING: Pixel value for 8BSI band got truncated from -129 to 127
>> WARNING: Pixel value for 8BSI band got truncated from 129 to -127
>> Testing 16BSI band
>> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
>> -32769 to 32767
>> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
>> 32769 to -32767
>> WARNING: Pixel value for 16BSI band got truncated from -32769 to 32767
>> WARNING: Pixel value for 16BSI band got truncated from 32769 to -32767
>> ERROR: Coordinates ouf of range
>> Testing 16BUI band
>> WARNING: rt_band_set_nodata: NODATA value for 16BUI band got truncated from
>> 65536 to 0
>> WARNING: Pixel value for 16BUI band got truncated from 65536 to 0
>> ERROR: Coordinates ouf of range
>> Testing 32BUI band
>> WARNING: rt_band_set_nodata: NODATA value for 32BUI band got truncated from
>> 4.29497e+09 to 0
>> WARNING: Pixel value for 32BUI band got truncated from 4.29497e+09 to 0
>> ERROR: Coordinates ouf of range
>> Testing 32BSI band
>> WARNING: rt_band_set_nodata: NODATA value for 32BSI band got truncated from
>> 2.14748e+09 to -2.14748e+09
>> WARNING: Pixel value for 32BSI band got truncated from 2.14748e+09 to
>> -2.14748e+09
>> ERROR: Coordinates ouf of range
>> Testing 32BF band
>> Testing 64BF band
>> Testing band hasnodata flag
>> testapi: rt_api.c:545: rt_band_get_data: Assertion `((void *)0) != band'
>> failed.
>> make[2]: *** [check] Aborted
>> make[2]: Leaving directory
>> `/home/mloskot/dev/wktraster/_svn/trunk/test/core'
>> make[1]: *** [check] Error 2
>> make[1]: Leaving directory `/home/mloskot/dev/wktraster/_svn/trunk/test'
>> make: *** [check] Error 2
>>
>> The assertion is serious and happens in crucial function.
>> I checked and the last healthy revision seems to be r5811.
>>
>> Pierre, Jorge, could you re-validate your recent commits?
>> You do run "make check" before every commit, don't you?
>>
>> Best regards,
>> --
>> Mateusz Loskot, http://mateusz.loskot.net
>> _______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. fixed in r5864

Sorry for that. Probably forgot to make check.

Pierre

>-----Original Message-----
>From: postgis-devel- [mailto:postgis-devel-
>] On Behalf Of Pierre Racine
>Sent: 23 août 2010 09:24
>To: PostGIS Development Discussion
>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>
>Probably my fault. Double check...
>
>Pierre
>
>>-----Original Message-----
>>From: postgis-devel- [mailto:postgis-devel-
>>] On Behalf Of Jorge Arévalo
>>Sent: 23 août 2010 07:39
>>To: PostGIS Development Discussion
>>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>>
>>On Mon, Aug 23, 2010 at 1:04 PM, Mateusz Loskot <> wrote:
>>> Hi,
>>>
>>> I've noticed current revision of WKT Raster is broken.
>>> Running the core tests for r5841 ends up with assertion and
>>> load of warnings:
>>>
>>> ./testapi
>>> 1111 pixtype = 2
>>> Raster starts with 0 bands
>>> First point on convexhull ring is 0.5,0.5
>>> Second point on convexhull ring is 256.5,1280.5
>>> Third point on convexhull ring is 1280.5,1536.5
>>> Fourth point on convexhull ring is 1024.5,256.5
>>> Fifth point on convexhull ring is 0.5,0.5
>>> Testing polygonize function
>>> Testing 1BB band
>>> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 2
>>> to 0
>>> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 3
>>> to 1
>>> WARNING: Pixel value for 1BB band got truncated from 2 to 0
>>> WARNING: Pixel value for 1BB band got truncated from 3 to 1
>>> Testing 2BB band
>>> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 4
>>> to 0
>>> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 5
>>> to 1
>>> WARNING: Pixel value for 2BUI band got truncated from 4 to 0
>>> WARNING: Pixel value for 2BUI band got truncated from 5 to 1
>>> Testing 4BUI band
>>> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
>>> 16 to 0
>>> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
>>> 17 to 1
>>> WARNING: Pixel value for 4BUI band got truncated from 35 to 3
>>> Testing 8BUI band
>>> WARNING: rt_band_set_nodata: NODATA value for 8BUI band got truncated from
>>> 256 to 0
>>> WARNING: Pixel value for 8BUI band got truncated from 256 to 0
>>> Testing 8BSI band
>>> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
>>> -129 to 127
>>> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
>>> 129 to -127
>>> WARNING: Pixel value for 8BSI band got truncated from -129 to 127
>>> WARNING: Pixel value for 8BSI band got truncated from 129 to -127
>>> Testing 16BSI band
>>> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
>>> -32769 to 32767
>>> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
>>> 32769 to -32767
>>> WARNING: Pixel value for 16BSI band got truncated from -32769 to 32767
>>> WARNING: Pixel value for 16BSI band got truncated from 32769 to -32767
>>> ERROR: Coordinates ouf of range
>>> Testing 16BUI band
>>> WARNING: rt_band_set_nodata: NODATA value for 16BUI band got truncated from
>>> 65536 to 0
>>> WARNING: Pixel value for 16BUI band got truncated from 65536 to 0
>>> ERROR: Coordinates ouf of range
>>> Testing 32BUI band
>>> WARNING: rt_band_set_nodata: NODATA value for 32BUI band got truncated from
>>> 4.29497e+09 to 0
>>> WARNING: Pixel value for 32BUI band got truncated from 4.29497e+09 to 0
>>> ERROR: Coordinates ouf of range
>>> Testing 32BSI band
>>> WARNING: rt_band_set_nodata: NODATA value for 32BSI band got truncated from
>>> 2.14748e+09 to -2.14748e+09
>>> WARNING: Pixel value for 32BSI band got truncated from 2.14748e+09 to
>>> -2.14748e+09
>>> ERROR: Coordinates ouf of range
>>> Testing 32BF band
>>> Testing 64BF band
>>> Testing band hasnodata flag
>>> testapi: rt_api.c:545: rt_band_get_data: Assertion `((void *)0) != band'
>>> failed.
>>> make[2]: *** [check] Aborted
>>> make[2]: Leaving directory
>>> `/home/mloskot/dev/wktraster/_svn/trunk/test/core'
>>> make[1]: *** [check] Error 2
>>> make[1]: Leaving directory `/home/mloskot/dev/wktraster/_svn/trunk/test'
>>> make: *** [check] Error 2
>>>
>>> The assertion is serious and happens in crucial function.
>>> I checked and the last healthy revision seems to be r5811.
>>>
>>> Pierre, Jorge, could you re-validate your recent commits?
>>> You do run "make check" before every commit, don't you?
>>>
>>> Best regards,
>>> --
>>> Mateusz Loskot, http://mateusz.loskot.net
>>> _______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe.

  #5  
23-08-2010 05:23 PM
PostGIS : postgis-devel member admin is online now
User
 

Hi,

I've noticed current revision of WKT Raster is broken.
Running the core tests for r5841 ends up with assertion and
load of warnings:

./testapi
1111 pixtype = 2
Raster starts with 0 bands
First point on convexhull ring is 0.5,0.5
Second point on convexhull ring is 256.5,1280.5
Third point on convexhull ring is 1280.5,1536.5
Fourth point on convexhull ring is 1024.5,256.5
Fifth point on convexhull ring is 0.5,0.5
Testing polygonize function
Testing 1BB band
WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated
from 2 to 0
WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated
from 3 to 1
WARNING: Pixel value for 1BB band got truncated from 2 to 0
WARNING: Pixel value for 1BB band got truncated from 3 to 1
Testing 2BB band
WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated
from 4 to 0
WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated
from 5 to 1
WARNING: Pixel value for 2BUI band got truncated from 4 to 0
WARNING: Pixel value for 2BUI band got truncated from 5 to 1
Testing 4BUI band
WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated
from 16 to 0
WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated
from 17 to 1
WARNING: Pixel value for 4BUI band got truncated from 35 to 3
Testing 8BUI band
WARNING: rt_band_set_nodata: NODATA value for 8BUI band got truncated
from 256 to 0
WARNING: Pixel value for 8BUI band got truncated from 256 to 0
Testing 8BSI band
WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated
from -129 to 127
WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated
from 129 to -127
WARNING: Pixel value for 8BSI band got truncated from -129 to 127
WARNING: Pixel value for 8BSI band got truncated from 129 to -127
Testing 16BSI band
WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated
from -32769 to 32767
WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated
from 32769 to -32767
WARNING: Pixel value for 16BSI band got truncated from -32769 to 32767
WARNING: Pixel value for 16BSI band got truncated from 32769 to -32767
ERROR: Coordinates ouf of range
Testing 16BUI band
WARNING: rt_band_set_nodata: NODATA value for 16BUI band got truncated
from 65536 to 0
WARNING: Pixel value for 16BUI band got truncated from 65536 to 0
ERROR: Coordinates ouf of range
Testing 32BUI band
WARNING: rt_band_set_nodata: NODATA value for 32BUI band got truncated
from 4.29497e+09 to 0
WARNING: Pixel value for 32BUI band got truncated from 4.29497e+09 to 0
ERROR: Coordinates ouf of range
Testing 32BSI band
WARNING: rt_band_set_nodata: NODATA value for 32BSI band got truncated
from 2.14748e+09 to -2.14748e+09
WARNING: Pixel value for 32BSI band got truncated from 2.14748e+09 to
-2.14748e+09
ERROR: Coordinates ouf of range
Testing 32BF band
Testing 64BF band
Testing band hasnodata flag
testapi: rt_api.c:545: rt_band_get_data: Assertion `((void *)0) != band'
failed.
make[2]: *** [check] Aborted
make[2]: Leaving directory
`/home/mloskot/dev/wktraster/_svn/trunk/test/core'
make[1]: *** [check] Error 2
make[1]: Leaving directory `/home/mloskot/dev/wktraster/_svn/trunk/test'
make: *** [check] Error 2

The assertion is serious and happens in crucial function.
I checked and the last healthy revision seems to be r5811.

Pierre, Jorge, could you re-validate your recent commits?
You do run "make check" before every commit, don't you?

Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. On Mon, Aug 23, 2010 at 1:04 PM, Mateusz Loskot <> wrote:
> Hi,
>
> I've noticed current revision of WKT Raster is broken.
> Running the core tests for r5841 ends up with assertion and
> load of warnings:
>
> ./testapi
> 1111 pixtype = 2
> Raster starts with 0 bands
> First point on convexhull ring is 0.5,0.5
> Second point on convexhull ring is 256.5,1280.5
> Third point on convexhull ring is 1280.5,1536.5
> Fourth point on convexhull ring is 1024.5,256.5
> Fifth point on convexhull ring is 0.5,0.5
> Testing polygonize function
> Testing 1BB band
> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 2
> to 0
> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 3
> to 1
> WARNING: Pixel value for 1BB band got truncated from 2 to 0
> WARNING: Pixel value for 1BB band got truncated from 3 to 1
> Testing 2BB band
> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 4
> to 0
> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 5
> to 1
> WARNING: Pixel value for 2BUI band got truncated from 4 to 0
> WARNING: Pixel value for 2BUI band got truncated from 5 to 1
> Testing 4BUI band
> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
> 16 to 0
> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
> 17 to 1
> WARNING: Pixel value for 4BUI band got truncated from 35 to 3
> Testing 8BUI band
> WARNING: rt_band_set_nodata: NODATA value for 8BUI band got truncated from
> 256 to 0
> WARNING: Pixel value for 8BUI band got truncated from 256 to 0
> Testing 8BSI band
> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
> -129 to 127
> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
> 129 to -127
> WARNING: Pixel value for 8BSI band got truncated from -129 to 127
> WARNING: Pixel value for 8BSI band got truncated from 129 to -127
> Testing 16BSI band
> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
> -32769 to 32767
> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
> 32769 to -32767
> WARNING: Pixel value for 16BSI band got truncated from -32769 to 32767
> WARNING: Pixel value for 16BSI band got truncated from 32769 to -32767
> ERROR: Coordinates ouf of range
> Testing 16BUI band
> WARNING: rt_band_set_nodata: NODATA value for 16BUI band got truncated from
> 65536 to 0
> WARNING: Pixel value for 16BUI band got truncated from 65536 to 0
> ERROR: Coordinates ouf of range
> Testing 32BUI band
> WARNING: rt_band_set_nodata: NODATA value for 32BUI band got truncated from
> 4.29497e+09 to 0
> WARNING: Pixel value for 32BUI band got truncated from 4.29497e+09 to 0
> ERROR: Coordinates ouf of range
> Testing 32BSI band
> WARNING: rt_band_set_nodata: NODATA value for 32BSI band got truncated from
> 2.14748e+09 to -2.14748e+09
> WARNING: Pixel value for 32BSI band got truncated from 2.14748e+09 to
> -2.14748e+09
> ERROR: Coordinates ouf of range
> Testing 32BF band
> Testing 64BF band
> Testing band hasnodata flag
> testapi: rt_api.c:545: rt_band_get_data: Assertion `((void *)0) != band'
> failed.
> make[2]: *** [check] Aborted
> make[2]: Leaving directory
> `/home/mloskot/dev/wktraster/_svn/trunk/test/core'
> make[1]: *** [check] Error 2
> make[1]: Leaving directory `/home/mloskot/dev/wktraster/_svn/trunk/test'
> make: *** [check] Error 2
>
> The assertion is serious and happens in crucial function.
> I checked and the last healthy revision seems to be r5811.
>
> Pierre, Jorge, could you re-validate your recent commits?
> You do run "make check" before every commit, don't you?
>
> Best regards,
> --
> Mateusz Loskot, http://mateusz.loskot.net
> _______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. Probably my fault. Double check...

Pierre

>-----Original Message-----
>From: postgis-devel- [mailto:postgis-devel-
>] On Behalf Of Jorge Arévalo
>Sent: 23 août 2010 07:39
>To: PostGIS Development Discussion
>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>
>On Mon, Aug 23, 2010 at 1:04 PM, Mateusz Loskot <> wrote:
>> Hi,
>>
>> I've noticed current revision of WKT Raster is broken.
>> Running the core tests for r5841 ends up with assertion and
>> load of warnings:
>>
>> ./testapi
>> 1111 pixtype = 2
>> Raster starts with 0 bands
>> First point on convexhull ring is 0.5,0.5
>> Second point on convexhull ring is 256.5,1280.5
>> Third point on convexhull ring is 1280.5,1536.5
>> Fourth point on convexhull ring is 1024.5,256.5
>> Fifth point on convexhull ring is 0.5,0.5
>> Testing polygonize function
>> Testing 1BB band
>> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 2
>> to 0
>> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 3
>> to 1
>> WARNING: Pixel value for 1BB band got truncated from 2 to 0
>> WARNING: Pixel value for 1BB band got truncated from 3 to 1
>> Testing 2BB band
>> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 4
>> to 0
>> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 5
>> to 1
>> WARNING: Pixel value for 2BUI band got truncated from 4 to 0
>> WARNING: Pixel value for 2BUI band got truncated from 5 to 1
>> Testing 4BUI band
>> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
>> 16 to 0
>> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
>> 17 to 1
>> WARNING: Pixel value for 4BUI band got truncated from 35 to 3
>> Testing 8BUI band
>> WARNING: rt_band_set_nodata: NODATA value for 8BUI band got truncated from
>> 256 to 0
>> WARNING: Pixel value for 8BUI band got truncated from 256 to 0
>> Testing 8BSI band
>> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
>> -129 to 127
>> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
>> 129 to -127
>> WARNING: Pixel value for 8BSI band got truncated from -129 to 127
>> WARNING: Pixel value for 8BSI band got truncated from 129 to -127
>> Testing 16BSI band
>> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
>> -32769 to 32767
>> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
>> 32769 to -32767
>> WARNING: Pixel value for 16BSI band got truncated from -32769 to 32767
>> WARNING: Pixel value for 16BSI band got truncated from 32769 to -32767
>> ERROR: Coordinates ouf of range
>> Testing 16BUI band
>> WARNING: rt_band_set_nodata: NODATA value for 16BUI band got truncated from
>> 65536 to 0
>> WARNING: Pixel value for 16BUI band got truncated from 65536 to 0
>> ERROR: Coordinates ouf of range
>> Testing 32BUI band
>> WARNING: rt_band_set_nodata: NODATA value for 32BUI band got truncated from
>> 4.29497e+09 to 0
>> WARNING: Pixel value for 32BUI band got truncated from 4.29497e+09 to 0
>> ERROR: Coordinates ouf of range
>> Testing 32BSI band
>> WARNING: rt_band_set_nodata: NODATA value for 32BSI band got truncated from
>> 2.14748e+09 to -2.14748e+09
>> WARNING: Pixel value for 32BSI band got truncated from 2.14748e+09 to
>> -2.14748e+09
>> ERROR: Coordinates ouf of range
>> Testing 32BF band
>> Testing 64BF band
>> Testing band hasnodata flag
>> testapi: rt_api.c:545: rt_band_get_data: Assertion `((void *)0) != band'
>> failed.
>> make[2]: *** [check] Aborted
>> make[2]: Leaving directory
>> `/home/mloskot/dev/wktraster/_svn/trunk/test/core'
>> make[1]: *** [check] Error 2
>> make[1]: Leaving directory `/home/mloskot/dev/wktraster/_svn/trunk/test'
>> make: *** [check] Error 2
>>
>> The assertion is serious and happens in crucial function.
>> I checked and the last healthy revision seems to be r5811.
>>
>> Pierre, Jorge, could you re-validate your recent commits?
>> You do run "make check" before every commit, don't you?
>>
>> Best regards,
>> --
>> Mateusz Loskot, http://mateusz.loskot.net
>> _______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. fixed in r5864

Sorry for that. Probably forgot to make check.

Pierre

>-----Original Message-----
>From: postgis-devel- [mailto:postgis-devel-
>] On Behalf Of Pierre Racine
>Sent: 23 août 2010 09:24
>To: PostGIS Development Discussion
>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>
>Probably my fault. Double check...
>
>Pierre
>
>>-----Original Message-----
>>From: postgis-devel- [mailto:postgis-devel-
>>] On Behalf Of Jorge Arévalo
>>Sent: 23 août 2010 07:39
>>To: PostGIS Development Discussion
>>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>>
>>On Mon, Aug 23, 2010 at 1:04 PM, Mateusz Loskot <> wrote:
>>> Hi,
>>>
>>> I've noticed current revision of WKT Raster is broken.
>>> Running the core tests for r5841 ends up with assertion and
>>> load of warnings:
>>>
>>> ./testapi
>>> 1111 pixtype = 2
>>> Raster starts with 0 bands
>>> First point on convexhull ring is 0.5,0.5
>>> Second point on convexhull ring is 256.5,1280.5
>>> Third point on convexhull ring is 1280.5,1536.5
>>> Fourth point on convexhull ring is 1024.5,256.5
>>> Fifth point on convexhull ring is 0.5,0.5
>>> Testing polygonize function
>>> Testing 1BB band
>>> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 2
>>> to 0
>>> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 3
>>> to 1
>>> WARNING: Pixel value for 1BB band got truncated from 2 to 0
>>> WARNING: Pixel value for 1BB band got truncated from 3 to 1
>>> Testing 2BB band
>>> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 4
>>> to 0
>>> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 5
>>> to 1
>>> WARNING: Pixel value for 2BUI band got truncated from 4 to 0
>>> WARNING: Pixel value for 2BUI band got truncated from 5 to 1
>>> Testing 4BUI band
>>> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
>>> 16 to 0
>>> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
>>> 17 to 1
>>> WARNING: Pixel value for 4BUI band got truncated from 35 to 3
>>> Testing 8BUI band
>>> WARNING: rt_band_set_nodata: NODATA value for 8BUI band got truncated from
>>> 256 to 0
>>> WARNING: Pixel value for 8BUI band got truncated from 256 to 0
>>> Testing 8BSI band
>>> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
>>> -129 to 127
>>> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
>>> 129 to -127
>>> WARNING: Pixel value for 8BSI band got truncated from -129 to 127
>>> WARNING: Pixel value for 8BSI band got truncated from 129 to -127
>>> Testing 16BSI band
>>> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
>>> -32769 to 32767
>>> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
>>> 32769 to -32767
>>> WARNING: Pixel value for 16BSI band got truncated from -32769 to 32767
>>> WARNING: Pixel value for 16BSI band got truncated from 32769 to -32767
>>> ERROR: Coordinates ouf of range
>>> Testing 16BUI band
>>> WARNING: rt_band_set_nodata: NODATA value for 16BUI band got truncated from
>>> 65536 to 0
>>> WARNING: Pixel value for 16BUI band got truncated from 65536 to 0
>>> ERROR: Coordinates ouf of range
>>> Testing 32BUI band
>>> WARNING: rt_band_set_nodata: NODATA value for 32BUI band got truncated from
>>> 4.29497e+09 to 0
>>> WARNING: Pixel value for 32BUI band got truncated from 4.29497e+09 to 0
>>> ERROR: Coordinates ouf of range
>>> Testing 32BSI band
>>> WARNING: rt_band_set_nodata: NODATA value for 32BSI band got truncated from
>>> 2.14748e+09 to -2.14748e+09
>>> WARNING: Pixel value for 32BSI band got truncated from 2.14748e+09 to
>>> -2.14748e+09
>>> ERROR: Coordinates ouf of range
>>> Testing 32BF band
>>> Testing 64BF band
>>> Testing band hasnodata flag
>>> testapi: rt_api.c:545: rt_band_get_data: Assertion `((void *)0) != band'
>>> failed.
>>> make[2]: *** [check] Aborted
>>> make[2]: Leaving directory
>>> `/home/mloskot/dev/wktraster/_svn/trunk/test/core'
>>> make[1]: *** [check] Error 2
>>> make[1]: Leaving directory `/home/mloskot/dev/wktraster/_svn/trunk/test'
>>> make: *** [check] Error 2
>>>
>>> The assertion is serious and happens in crucial function.
>>> I checked and the last healthy revision seems to be r5811.
>>>
>>> Pierre, Jorge, could you re-validate your recent commits?
>>> You do run "make check" before every commit, don't you?
>>>
>>> Best regards,
>>> --
>>> Mateusz Loskot, http://mateusz.loskot.net
>>> _______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. Thanks for the fix, Pierre. But I'm getting a Segmentation Fault. caused by

memcpy(raster->bands[i], oldbands[oldi++], sizeof(rt_band));

(rt_core/rt_api.c, line 1351)

in Ubuntu Linux. Anyone else?

On Mon, Aug 23, 2010 at 4:53 PM, Pierre Racine
<> wrote:
> fixed in r5864
>
> Sorry for that. Probably forgot to make check.
>
> Pierre
>
>>-----Original Message-----
>>From: postgis-devel- [mailto:postgis-devel-
>>] On Behalf Of Pierre Racine
>>Sent: 23 août 2010 09:24
>>To: PostGIS Development Discussion
>>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>>
>>Probably my fault. Double check...
>>
>>Pierre
>>
>>>-----Original Message-----
>>>From: postgis-devel- [mailto:postgis-devel-
>>>] On Behalf Of Jorge Arévalo
>>>Sent: 23 août 2010 07:39
>>>To: PostGIS Development Discussion
>>>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>>>
>>>On Mon, Aug 23, 2010 at 1:04 PM, Mateusz Loskot <> wrote:
>>>> Hi,
>>>>
>>>> I've noticed current revision of WKT Raster is broken.
>>>> Running the core tests for r5841 ends up with assertion and
>>>> load of warnings:
>>>>
>>>> ./testapi
>>>> 1111 pixtype = 2
>>>> Raster starts with 0 bands
>>>> First point on convexhull ring is 0.5,0.5
>>>> Second point on convexhull ring is 256.5,1280.5
>>>> Third point on convexhull ring is 1280.5,1536.5
>>>> Fourth point on convexhull ring is 1024.5,256.5
>>>> Fifth point on convexhull ring is 0.5,0.5
>>>> Testing polygonize function
>>>> Testing 1BB band
>>>> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 2
>>>> to 0
>>>> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 3
>>>> to 1
>>>> WARNING: Pixel value for 1BB band got truncated from 2 to 0
>>>> WARNING: Pixel value for 1BB band got truncated from 3 to 1
>>>> Testing 2BB band
>>>> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 4
>>>> to 0
>>>> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 5
>>>> to 1
>>>> WARNING: Pixel value for 2BUI band got truncated from 4 to 0
>>>> WARNING: Pixel value for 2BUI band got truncated from 5 to 1
>>>> Testing 4BUI band
>>>> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
>>>> 16 to 0
>>>> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
>>>> 17 to 1
>>>> WARNING: Pixel value for 4BUI band got truncated from 35 to 3
>>>> Testing 8BUI band
>>>> WARNING: rt_band_set_nodata: NODATA value for 8BUI band got truncated from
>>>> 256 to 0
>>>> WARNING: Pixel value for 8BUI band got truncated from 256 to 0
>>>> Testing 8BSI band
>>>> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
>>>> -129 to 127
>>>> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
>>>> 129 to -127
>>>> WARNING: Pixel value for 8BSI band got truncated from -129 to 127
>>>> WARNING: Pixel value for 8BSI band got truncated from 129 to -127
>>>> Testing 16BSI band
>>>> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
>>>> -32769 to 32767
>>>> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
>>>> 32769 to -32767
>>>> WARNING: Pixel value for 16BSI band got truncated from -32769 to 32767
>>>> WARNING: Pixel value for 16BSI band got truncated from 32769 to -32767
>>>> ERROR: Coordinates ouf of range
>>>> Testing 16BUI band
>>>> WARNING: rt_band_set_nodata: NODATA value for 16BUI band got truncated from
>>>> 65536 to 0
>>>> WARNING: Pixel value for 16BUI band got truncated from 65536 to 0
>>>> ERROR: Coordinates ouf of range
>>>> Testing 32BUI band
>>>> WARNING: rt_band_set_nodata: NODATA value for 32BUI band got truncated from
>>>> 4.29497e+09 to 0
>>>> WARNING: Pixel value for 32BUI band got truncated from 4.29497e+09 to 0
>>>> ERROR: Coordinates ouf of range
>>>> Testing 32BSI band
>>>> WARNING: rt_band_set_nodata: NODATA value for 32BSI band got truncated from
>>>> 2.14748e+09 to -2.14748e+09
>>>> WARNING: Pixel value for 32BSI band got truncated from 2.14748e+09 to
>>>> -2.14748e+09
>>>> ERROR: Coordinates ouf of range
>>>> Testing 32BF band
>>>> Testing 64BF band
>>>> Testing band hasnodata flag
>>>> testapi: rt_api.c:545: rt_band_get_data: Assertion `((void *)0) != band'
>>>> failed.
>>>> make[2]: *** [check] Aborted
>>>> make[2]: Leaving directory
>>>> `/home/mloskot/dev/wktraster/_svn/trunk/test/core'
>>>> make[1]: *** [check] Error 2
>>>> make[1]: Leaving directory `/home/mloskot/dev/wktraster/_svn/trunk/test'
>>>> make: *** [check] Error 2
>>>>
>>>> The assertion is serious and happens in crucial function.
>>>> I checked and the last healthy revision seems to be r5811.
>>>>
>>>> Pierre, Jorge, could you re-validate your recent commits?
>>>> You do run "make check" before every commit, don't you?
>>>>
>>>> Best regards,
>>>> --
>>>> Mateusz Loskot, http://mateusz.loskot.net
>>>> _______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe.

  #6  
23-08-2010 05:49 PM
PostGIS : postgis-devel member admin is online now
User
 

Hi,

I've noticed current revision of WKT Raster is broken.
Running the core tests for r5841 ends up with assertion and
load of warnings:

./testapi
1111 pixtype = 2
Raster starts with 0 bands
First point on convexhull ring is 0.5,0.5
Second point on convexhull ring is 256.5,1280.5
Third point on convexhull ring is 1280.5,1536.5
Fourth point on convexhull ring is 1024.5,256.5
Fifth point on convexhull ring is 0.5,0.5
Testing polygonize function
Testing 1BB band
WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated
from 2 to 0
WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated
from 3 to 1
WARNING: Pixel value for 1BB band got truncated from 2 to 0
WARNING: Pixel value for 1BB band got truncated from 3 to 1
Testing 2BB band
WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated
from 4 to 0
WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated
from 5 to 1
WARNING: Pixel value for 2BUI band got truncated from 4 to 0
WARNING: Pixel value for 2BUI band got truncated from 5 to 1
Testing 4BUI band
WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated
from 16 to 0
WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated
from 17 to 1
WARNING: Pixel value for 4BUI band got truncated from 35 to 3
Testing 8BUI band
WARNING: rt_band_set_nodata: NODATA value for 8BUI band got truncated
from 256 to 0
WARNING: Pixel value for 8BUI band got truncated from 256 to 0
Testing 8BSI band
WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated
from -129 to 127
WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated
from 129 to -127
WARNING: Pixel value for 8BSI band got truncated from -129 to 127
WARNING: Pixel value for 8BSI band got truncated from 129 to -127
Testing 16BSI band
WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated
from -32769 to 32767
WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated
from 32769 to -32767
WARNING: Pixel value for 16BSI band got truncated from -32769 to 32767
WARNING: Pixel value for 16BSI band got truncated from 32769 to -32767
ERROR: Coordinates ouf of range
Testing 16BUI band
WARNING: rt_band_set_nodata: NODATA value for 16BUI band got truncated
from 65536 to 0
WARNING: Pixel value for 16BUI band got truncated from 65536 to 0
ERROR: Coordinates ouf of range
Testing 32BUI band
WARNING: rt_band_set_nodata: NODATA value for 32BUI band got truncated
from 4.29497e+09 to 0
WARNING: Pixel value for 32BUI band got truncated from 4.29497e+09 to 0
ERROR: Coordinates ouf of range
Testing 32BSI band
WARNING: rt_band_set_nodata: NODATA value for 32BSI band got truncated
from 2.14748e+09 to -2.14748e+09
WARNING: Pixel value for 32BSI band got truncated from 2.14748e+09 to
-2.14748e+09
ERROR: Coordinates ouf of range
Testing 32BF band
Testing 64BF band
Testing band hasnodata flag
testapi: rt_api.c:545: rt_band_get_data: Assertion `((void *)0) != band'
failed.
make[2]: *** [check] Aborted
make[2]: Leaving directory
`/home/mloskot/dev/wktraster/_svn/trunk/test/core'
make[1]: *** [check] Error 2
make[1]: Leaving directory `/home/mloskot/dev/wktraster/_svn/trunk/test'
make: *** [check] Error 2

The assertion is serious and happens in crucial function.
I checked and the last healthy revision seems to be r5811.

Pierre, Jorge, could you re-validate your recent commits?
You do run "make check" before every commit, don't you?

Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. On Mon, Aug 23, 2010 at 1:04 PM, Mateusz Loskot <> wrote:
> Hi,
>
> I've noticed current revision of WKT Raster is broken.
> Running the core tests for r5841 ends up with assertion and
> load of warnings:
>
> ./testapi
> 1111 pixtype = 2
> Raster starts with 0 bands
> First point on convexhull ring is 0.5,0.5
> Second point on convexhull ring is 256.5,1280.5
> Third point on convexhull ring is 1280.5,1536.5
> Fourth point on convexhull ring is 1024.5,256.5
> Fifth point on convexhull ring is 0.5,0.5
> Testing polygonize function
> Testing 1BB band
> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 2
> to 0
> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 3
> to 1
> WARNING: Pixel value for 1BB band got truncated from 2 to 0
> WARNING: Pixel value for 1BB band got truncated from 3 to 1
> Testing 2BB band
> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 4
> to 0
> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 5
> to 1
> WARNING: Pixel value for 2BUI band got truncated from 4 to 0
> WARNING: Pixel value for 2BUI band got truncated from 5 to 1
> Testing 4BUI band
> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
> 16 to 0
> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
> 17 to 1
> WARNING: Pixel value for 4BUI band got truncated from 35 to 3
> Testing 8BUI band
> WARNING: rt_band_set_nodata: NODATA value for 8BUI band got truncated from
> 256 to 0
> WARNING: Pixel value for 8BUI band got truncated from 256 to 0
> Testing 8BSI band
> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
> -129 to 127
> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
> 129 to -127
> WARNING: Pixel value for 8BSI band got truncated from -129 to 127
> WARNING: Pixel value for 8BSI band got truncated from 129 to -127
> Testing 16BSI band
> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
> -32769 to 32767
> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
> 32769 to -32767
> WARNING: Pixel value for 16BSI band got truncated from -32769 to 32767
> WARNING: Pixel value for 16BSI band got truncated from 32769 to -32767
> ERROR: Coordinates ouf of range
> Testing 16BUI band
> WARNING: rt_band_set_nodata: NODATA value for 16BUI band got truncated from
> 65536 to 0
> WARNING: Pixel value for 16BUI band got truncated from 65536 to 0
> ERROR: Coordinates ouf of range
> Testing 32BUI band
> WARNING: rt_band_set_nodata: NODATA value for 32BUI band got truncated from
> 4.29497e+09 to 0
> WARNING: Pixel value for 32BUI band got truncated from 4.29497e+09 to 0
> ERROR: Coordinates ouf of range
> Testing 32BSI band
> WARNING: rt_band_set_nodata: NODATA value for 32BSI band got truncated from
> 2.14748e+09 to -2.14748e+09
> WARNING: Pixel value for 32BSI band got truncated from 2.14748e+09 to
> -2.14748e+09
> ERROR: Coordinates ouf of range
> Testing 32BF band
> Testing 64BF band
> Testing band hasnodata flag
> testapi: rt_api.c:545: rt_band_get_data: Assertion `((void *)0) != band'
> failed.
> make[2]: *** [check] Aborted
> make[2]: Leaving directory
> `/home/mloskot/dev/wktraster/_svn/trunk/test/core'
> make[1]: *** [check] Error 2
> make[1]: Leaving directory `/home/mloskot/dev/wktraster/_svn/trunk/test'
> make: *** [check] Error 2
>
> The assertion is serious and happens in crucial function.
> I checked and the last healthy revision seems to be r5811.
>
> Pierre, Jorge, could you re-validate your recent commits?
> You do run "make check" before every commit, don't you?
>
> Best regards,
> --
> Mateusz Loskot, http://mateusz.loskot.net
> _______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. Probably my fault. Double check...

Pierre

>-----Original Message-----
>From: postgis-devel- [mailto:postgis-devel-
>] On Behalf Of Jorge Arévalo
>Sent: 23 août 2010 07:39
>To: PostGIS Development Discussion
>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>
>On Mon, Aug 23, 2010 at 1:04 PM, Mateusz Loskot <> wrote:
>> Hi,
>>
>> I've noticed current revision of WKT Raster is broken.
>> Running the core tests for r5841 ends up with assertion and
>> load of warnings:
>>
>> ./testapi
>> 1111 pixtype = 2
>> Raster starts with 0 bands
>> First point on convexhull ring is 0.5,0.5
>> Second point on convexhull ring is 256.5,1280.5
>> Third point on convexhull ring is 1280.5,1536.5
>> Fourth point on convexhull ring is 1024.5,256.5
>> Fifth point on convexhull ring is 0.5,0.5
>> Testing polygonize function
>> Testing 1BB band
>> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 2
>> to 0
>> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 3
>> to 1
>> WARNING: Pixel value for 1BB band got truncated from 2 to 0
>> WARNING: Pixel value for 1BB band got truncated from 3 to 1
>> Testing 2BB band
>> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 4
>> to 0
>> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 5
>> to 1
>> WARNING: Pixel value for 2BUI band got truncated from 4 to 0
>> WARNING: Pixel value for 2BUI band got truncated from 5 to 1
>> Testing 4BUI band
>> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
>> 16 to 0
>> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
>> 17 to 1
>> WARNING: Pixel value for 4BUI band got truncated from 35 to 3
>> Testing 8BUI band
>> WARNING: rt_band_set_nodata: NODATA value for 8BUI band got truncated from
>> 256 to 0
>> WARNING: Pixel value for 8BUI band got truncated from 256 to 0
>> Testing 8BSI band
>> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
>> -129 to 127
>> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
>> 129 to -127
>> WARNING: Pixel value for 8BSI band got truncated from -129 to 127
>> WARNING: Pixel value for 8BSI band got truncated from 129 to -127
>> Testing 16BSI band
>> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
>> -32769 to 32767
>> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
>> 32769 to -32767
>> WARNING: Pixel value for 16BSI band got truncated from -32769 to 32767
>> WARNING: Pixel value for 16BSI band got truncated from 32769 to -32767
>> ERROR: Coordinates ouf of range
>> Testing 16BUI band
>> WARNING: rt_band_set_nodata: NODATA value for 16BUI band got truncated from
>> 65536 to 0
>> WARNING: Pixel value for 16BUI band got truncated from 65536 to 0
>> ERROR: Coordinates ouf of range
>> Testing 32BUI band
>> WARNING: rt_band_set_nodata: NODATA value for 32BUI band got truncated from
>> 4.29497e+09 to 0
>> WARNING: Pixel value for 32BUI band got truncated from 4.29497e+09 to 0
>> ERROR: Coordinates ouf of range
>> Testing 32BSI band
>> WARNING: rt_band_set_nodata: NODATA value for 32BSI band got truncated from
>> 2.14748e+09 to -2.14748e+09
>> WARNING: Pixel value for 32BSI band got truncated from 2.14748e+09 to
>> -2.14748e+09
>> ERROR: Coordinates ouf of range
>> Testing 32BF band
>> Testing 64BF band
>> Testing band hasnodata flag
>> testapi: rt_api.c:545: rt_band_get_data: Assertion `((void *)0) != band'
>> failed.
>> make[2]: *** [check] Aborted
>> make[2]: Leaving directory
>> `/home/mloskot/dev/wktraster/_svn/trunk/test/core'
>> make[1]: *** [check] Error 2
>> make[1]: Leaving directory `/home/mloskot/dev/wktraster/_svn/trunk/test'
>> make: *** [check] Error 2
>>
>> The assertion is serious and happens in crucial function.
>> I checked and the last healthy revision seems to be r5811.
>>
>> Pierre, Jorge, could you re-validate your recent commits?
>> You do run "make check" before every commit, don't you?
>>
>> Best regards,
>> --
>> Mateusz Loskot, http://mateusz.loskot.net
>> _______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. fixed in r5864

Sorry for that. Probably forgot to make check.

Pierre

>-----Original Message-----
>From: postgis-devel- [mailto:postgis-devel-
>] On Behalf Of Pierre Racine
>Sent: 23 août 2010 09:24
>To: PostGIS Development Discussion
>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>
>Probably my fault. Double check...
>
>Pierre
>
>>-----Original Message-----
>>From: postgis-devel- [mailto:postgis-devel-
>>] On Behalf Of Jorge Arévalo
>>Sent: 23 août 2010 07:39
>>To: PostGIS Development Discussion
>>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>>
>>On Mon, Aug 23, 2010 at 1:04 PM, Mateusz Loskot <> wrote:
>>> Hi,
>>>
>>> I've noticed current revision of WKT Raster is broken.
>>> Running the core tests for r5841 ends up with assertion and
>>> load of warnings:
>>>
>>> ./testapi
>>> 1111 pixtype = 2
>>> Raster starts with 0 bands
>>> First point on convexhull ring is 0.5,0.5
>>> Second point on convexhull ring is 256.5,1280.5
>>> Third point on convexhull ring is 1280.5,1536.5
>>> Fourth point on convexhull ring is 1024.5,256.5
>>> Fifth point on convexhull ring is 0.5,0.5
>>> Testing polygonize function
>>> Testing 1BB band
>>> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 2
>>> to 0
>>> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 3
>>> to 1
>>> WARNING: Pixel value for 1BB band got truncated from 2 to 0
>>> WARNING: Pixel value for 1BB band got truncated from 3 to 1
>>> Testing 2BB band
>>> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 4
>>> to 0
>>> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 5
>>> to 1
>>> WARNING: Pixel value for 2BUI band got truncated from 4 to 0
>>> WARNING: Pixel value for 2BUI band got truncated from 5 to 1
>>> Testing 4BUI band
>>> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
>>> 16 to 0
>>> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
>>> 17 to 1
>>> WARNING: Pixel value for 4BUI band got truncated from 35 to 3
>>> Testing 8BUI band
>>> WARNING: rt_band_set_nodata: NODATA value for 8BUI band got truncated from
>>> 256 to 0
>>> WARNING: Pixel value for 8BUI band got truncated from 256 to 0
>>> Testing 8BSI band
>>> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
>>> -129 to 127
>>> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
>>> 129 to -127
>>> WARNING: Pixel value for 8BSI band got truncated from -129 to 127
>>> WARNING: Pixel value for 8BSI band got truncated from 129 to -127
>>> Testing 16BSI band
>>> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
>>> -32769 to 32767
>>> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
>>> 32769 to -32767
>>> WARNING: Pixel value for 16BSI band got truncated from -32769 to 32767
>>> WARNING: Pixel value for 16BSI band got truncated from 32769 to -32767
>>> ERROR: Coordinates ouf of range
>>> Testing 16BUI band
>>> WARNING: rt_band_set_nodata: NODATA value for 16BUI band got truncated from
>>> 65536 to 0
>>> WARNING: Pixel value for 16BUI band got truncated from 65536 to 0
>>> ERROR: Coordinates ouf of range
>>> Testing 32BUI band
>>> WARNING: rt_band_set_nodata: NODATA value for 32BUI band got truncated from
>>> 4.29497e+09 to 0
>>> WARNING: Pixel value for 32BUI band got truncated from 4.29497e+09 to 0
>>> ERROR: Coordinates ouf of range
>>> Testing 32BSI band
>>> WARNING: rt_band_set_nodata: NODATA value for 32BSI band got truncated from
>>> 2.14748e+09 to -2.14748e+09
>>> WARNING: Pixel value for 32BSI band got truncated from 2.14748e+09 to
>>> -2.14748e+09
>>> ERROR: Coordinates ouf of range
>>> Testing 32BF band
>>> Testing 64BF band
>>> Testing band hasnodata flag
>>> testapi: rt_api.c:545: rt_band_get_data: Assertion `((void *)0) != band'
>>> failed.
>>> make[2]: *** [check] Aborted
>>> make[2]: Leaving directory
>>> `/home/mloskot/dev/wktraster/_svn/trunk/test/core'
>>> make[1]: *** [check] Error 2
>>> make[1]: Leaving directory `/home/mloskot/dev/wktraster/_svn/trunk/test'
>>> make: *** [check] Error 2
>>>
>>> The assertion is serious and happens in crucial function.
>>> I checked and the last healthy revision seems to be r5811.
>>>
>>> Pierre, Jorge, could you re-validate your recent commits?
>>> You do run "make check" before every commit, don't you?
>>>
>>> Best regards,
>>> --
>>> Mateusz Loskot, http://mateusz.loskot.net
>>> _______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. Thanks for the fix, Pierre. But I'm getting a Segmentation Fault. caused by

memcpy(raster->bands[i], oldbands[oldi++], sizeof(rt_band));

(rt_core/rt_api.c, line 1351)

in Ubuntu Linux. Anyone else?

On Mon, Aug 23, 2010 at 4:53 PM, Pierre Racine
<> wrote:
> fixed in r5864
>
> Sorry for that. Probably forgot to make check.
>
> Pierre
>
>>-----Original Message-----
>>From: postgis-devel- [mailto:postgis-devel-
>>] On Behalf Of Pierre Racine
>>Sent: 23 août 2010 09:24
>>To: PostGIS Development Discussion
>>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>>
>>Probably my fault. Double check...
>>
>>Pierre
>>
>>>-----Original Message-----
>>>From: postgis-devel- [mailto:postgis-devel-
>>>] On Behalf Of Jorge Arévalo
>>>Sent: 23 août 2010 07:39
>>>To: PostGIS Development Discussion
>>>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>>>
>>>On Mon, Aug 23, 2010 at 1:04 PM, Mateusz Loskot <> wrote:
>>>> Hi,
>>>>
>>>> I've noticed current revision of WKT Raster is broken.
>>>> Running the core tests for r5841 ends up with assertion and
>>>> load of warnings:
>>>>
>>>> ./testapi
>>>> 1111 pixtype = 2
>>>> Raster starts with 0 bands
>>>> First point on convexhull ring is 0.5,0.5
>>>> Second point on convexhull ring is 256.5,1280.5
>>>> Third point on convexhull ring is 1280.5,1536.5
>>>> Fourth point on convexhull ring is 1024.5,256.5
>>>> Fifth point on convexhull ring is 0.5,0.5
>>>> Testing polygonize function
>>>> Testing 1BB band
>>>> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 2
>>>> to 0
>>>> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 3
>>>> to 1
>>>> WARNING: Pixel value for 1BB band got truncated from 2 to 0
>>>> WARNING: Pixel value for 1BB band got truncated from 3 to 1
>>>> Testing 2BB band
>>>> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 4
>>>> to 0
>>>> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 5
>>>> to 1
>>>> WARNING: Pixel value for 2BUI band got truncated from 4 to 0
>>>> WARNING: Pixel value for 2BUI band got truncated from 5 to 1
>>>> Testing 4BUI band
>>>> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
>>>> 16 to 0
>>>> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
>>>> 17 to 1
>>>> WARNING: Pixel value for 4BUI band got truncated from 35 to 3
>>>> Testing 8BUI band
>>>> WARNING: rt_band_set_nodata: NODATA value for 8BUI band got truncated from
>>>> 256 to 0
>>>> WARNING: Pixel value for 8BUI band got truncated from 256 to 0
>>>> Testing 8BSI band
>>>> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
>>>> -129 to 127
>>>> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
>>>> 129 to -127
>>>> WARNING: Pixel value for 8BSI band got truncated from -129 to 127
>>>> WARNING: Pixel value for 8BSI band got truncated from 129 to -127
>>>> Testing 16BSI band
>>>> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
>>>> -32769 to 32767
>>>> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
>>>> 32769 to -32767
>>>> WARNING: Pixel value for 16BSI band got truncated from -32769 to 32767
>>>> WARNING: Pixel value for 16BSI band got truncated from 32769 to -32767
>>>> ERROR: Coordinates ouf of range
>>>> Testing 16BUI band
>>>> WARNING: rt_band_set_nodata: NODATA value for 16BUI band got truncated from
>>>> 65536 to 0
>>>> WARNING: Pixel value for 16BUI band got truncated from 65536 to 0
>>>> ERROR: Coordinates ouf of range
>>>> Testing 32BUI band
>>>> WARNING: rt_band_set_nodata: NODATA value for 32BUI band got truncated from
>>>> 4.29497e+09 to 0
>>>> WARNING: Pixel value for 32BUI band got truncated from 4.29497e+09 to 0
>>>> ERROR: Coordinates ouf of range
>>>> Testing 32BSI band
>>>> WARNING: rt_band_set_nodata: NODATA value for 32BSI band got truncated from
>>>> 2.14748e+09 to -2.14748e+09
>>>> WARNING: Pixel value for 32BSI band got truncated from 2.14748e+09 to
>>>> -2.14748e+09
>>>> ERROR: Coordinates ouf of range
>>>> Testing 32BF band
>>>> Testing 64BF band
>>>> Testing band hasnodata flag
>>>> testapi: rt_api.c:545: rt_band_get_data: Assertion `((void *)0) != band'
>>>> failed.
>>>> make[2]: *** [check] Aborted
>>>> make[2]: Leaving directory
>>>> `/home/mloskot/dev/wktraster/_svn/trunk/test/core'
>>>> make[1]: *** [check] Error 2
>>>> make[1]: Leaving directory `/home/mloskot/dev/wktraster/_svn/trunk/test'
>>>> make: *** [check] Error 2
>>>>
>>>> The assertion is serious and happens in crucial function.
>>>> I checked and the last healthy revision seems to be r5811.
>>>>
>>>> Pierre, Jorge, could you re-validate your recent commits?
>>>> You do run "make check" before every commit, don't you?
>>>>
>>>> Best regards,
>>>> --
>>>> Mateusz Loskot, http://mateusz.loskot.net
>>>> _______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. On 23/08/10 17:23, Jorge Arévalo wrote:
> Thanks for the fix, Pierre. But I'm getting a Segmentation Fault. caused by
>
> memcpy(raster->bands[i], oldbands[oldi++], sizeof(rt_band));
>
> (rt_core/rt_api.c, line 1351)
>
> in Ubuntu Linux. Anyone else?

I've quickly checked running make check and I confirm this issue.
Getting segmentation fault too.

Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe.

  #7  
24-08-2010 10:39 AM
PostGIS : postgis-devel member admin is online now
User
 

Hi,

I've noticed current revision of WKT Raster is broken.
Running the core tests for r5841 ends up with assertion and
load of warnings:

./testapi
1111 pixtype = 2
Raster starts with 0 bands
First point on convexhull ring is 0.5,0.5
Second point on convexhull ring is 256.5,1280.5
Third point on convexhull ring is 1280.5,1536.5
Fourth point on convexhull ring is 1024.5,256.5
Fifth point on convexhull ring is 0.5,0.5
Testing polygonize function
Testing 1BB band
WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated
from 2 to 0
WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated
from 3 to 1
WARNING: Pixel value for 1BB band got truncated from 2 to 0
WARNING: Pixel value for 1BB band got truncated from 3 to 1
Testing 2BB band
WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated
from 4 to 0
WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated
from 5 to 1
WARNING: Pixel value for 2BUI band got truncated from 4 to 0
WARNING: Pixel value for 2BUI band got truncated from 5 to 1
Testing 4BUI band
WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated
from 16 to 0
WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated
from 17 to 1
WARNING: Pixel value for 4BUI band got truncated from 35 to 3
Testing 8BUI band
WARNING: rt_band_set_nodata: NODATA value for 8BUI band got truncated
from 256 to 0
WARNING: Pixel value for 8BUI band got truncated from 256 to 0
Testing 8BSI band
WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated
from -129 to 127
WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated
from 129 to -127
WARNING: Pixel value for 8BSI band got truncated from -129 to 127
WARNING: Pixel value for 8BSI band got truncated from 129 to -127
Testing 16BSI band
WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated
from -32769 to 32767
WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated
from 32769 to -32767
WARNING: Pixel value for 16BSI band got truncated from -32769 to 32767
WARNING: Pixel value for 16BSI band got truncated from 32769 to -32767
ERROR: Coordinates ouf of range
Testing 16BUI band
WARNING: rt_band_set_nodata: NODATA value for 16BUI band got truncated
from 65536 to 0
WARNING: Pixel value for 16BUI band got truncated from 65536 to 0
ERROR: Coordinates ouf of range
Testing 32BUI band
WARNING: rt_band_set_nodata: NODATA value for 32BUI band got truncated
from 4.29497e+09 to 0
WARNING: Pixel value for 32BUI band got truncated from 4.29497e+09 to 0
ERROR: Coordinates ouf of range
Testing 32BSI band
WARNING: rt_band_set_nodata: NODATA value for 32BSI band got truncated
from 2.14748e+09 to -2.14748e+09
WARNING: Pixel value for 32BSI band got truncated from 2.14748e+09 to
-2.14748e+09
ERROR: Coordinates ouf of range
Testing 32BF band
Testing 64BF band
Testing band hasnodata flag
testapi: rt_api.c:545: rt_band_get_data: Assertion `((void *)0) != band'
failed.
make[2]: *** [check] Aborted
make[2]: Leaving directory
`/home/mloskot/dev/wktraster/_svn/trunk/test/core'
make[1]: *** [check] Error 2
make[1]: Leaving directory `/home/mloskot/dev/wktraster/_svn/trunk/test'
make: *** [check] Error 2

The assertion is serious and happens in crucial function.
I checked and the last healthy revision seems to be r5811.

Pierre, Jorge, could you re-validate your recent commits?
You do run "make check" before every commit, don't you?

Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. On Mon, Aug 23, 2010 at 1:04 PM, Mateusz Loskot <> wrote:
> Hi,
>
> I've noticed current revision of WKT Raster is broken.
> Running the core tests for r5841 ends up with assertion and
> load of warnings:
>
> ./testapi
> 1111 pixtype = 2
> Raster starts with 0 bands
> First point on convexhull ring is 0.5,0.5
> Second point on convexhull ring is 256.5,1280.5
> Third point on convexhull ring is 1280.5,1536.5
> Fourth point on convexhull ring is 1024.5,256.5
> Fifth point on convexhull ring is 0.5,0.5
> Testing polygonize function
> Testing 1BB band
> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 2
> to 0
> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 3
> to 1
> WARNING: Pixel value for 1BB band got truncated from 2 to 0
> WARNING: Pixel value for 1BB band got truncated from 3 to 1
> Testing 2BB band
> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 4
> to 0
> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 5
> to 1
> WARNING: Pixel value for 2BUI band got truncated from 4 to 0
> WARNING: Pixel value for 2BUI band got truncated from 5 to 1
> Testing 4BUI band
> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
> 16 to 0
> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
> 17 to 1
> WARNING: Pixel value for 4BUI band got truncated from 35 to 3
> Testing 8BUI band
> WARNING: rt_band_set_nodata: NODATA value for 8BUI band got truncated from
> 256 to 0
> WARNING: Pixel value for 8BUI band got truncated from 256 to 0
> Testing 8BSI band
> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
> -129 to 127
> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
> 129 to -127
> WARNING: Pixel value for 8BSI band got truncated from -129 to 127
> WARNING: Pixel value for 8BSI band got truncated from 129 to -127
> Testing 16BSI band
> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
> -32769 to 32767
> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
> 32769 to -32767
> WARNING: Pixel value for 16BSI band got truncated from -32769 to 32767
> WARNING: Pixel value for 16BSI band got truncated from 32769 to -32767
> ERROR: Coordinates ouf of range
> Testing 16BUI band
> WARNING: rt_band_set_nodata: NODATA value for 16BUI band got truncated from
> 65536 to 0
> WARNING: Pixel value for 16BUI band got truncated from 65536 to 0
> ERROR: Coordinates ouf of range
> Testing 32BUI band
> WARNING: rt_band_set_nodata: NODATA value for 32BUI band got truncated from
> 4.29497e+09 to 0
> WARNING: Pixel value for 32BUI band got truncated from 4.29497e+09 to 0
> ERROR: Coordinates ouf of range
> Testing 32BSI band
> WARNING: rt_band_set_nodata: NODATA value for 32BSI band got truncated from
> 2.14748e+09 to -2.14748e+09
> WARNING: Pixel value for 32BSI band got truncated from 2.14748e+09 to
> -2.14748e+09
> ERROR: Coordinates ouf of range
> Testing 32BF band
> Testing 64BF band
> Testing band hasnodata flag
> testapi: rt_api.c:545: rt_band_get_data: Assertion `((void *)0) != band'
> failed.
> make[2]: *** [check] Aborted
> make[2]: Leaving directory
> `/home/mloskot/dev/wktraster/_svn/trunk/test/core'
> make[1]: *** [check] Error 2
> make[1]: Leaving directory `/home/mloskot/dev/wktraster/_svn/trunk/test'
> make: *** [check] Error 2
>
> The assertion is serious and happens in crucial function.
> I checked and the last healthy revision seems to be r5811.
>
> Pierre, Jorge, could you re-validate your recent commits?
> You do run "make check" before every commit, don't you?
>
> Best regards,
> --
> Mateusz Loskot, http://mateusz.loskot.net
> _______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. Probably my fault. Double check...

Pierre

>-----Original Message-----
>From: postgis-devel- [mailto:postgis-devel-
>] On Behalf Of Jorge Arévalo
>Sent: 23 août 2010 07:39
>To: PostGIS Development Discussion
>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>
>On Mon, Aug 23, 2010 at 1:04 PM, Mateusz Loskot <> wrote:
>> Hi,
>>
>> I've noticed current revision of WKT Raster is broken.
>> Running the core tests for r5841 ends up with assertion and
>> load of warnings:
>>
>> ./testapi
>> 1111 pixtype = 2
>> Raster starts with 0 bands
>> First point on convexhull ring is 0.5,0.5
>> Second point on convexhull ring is 256.5,1280.5
>> Third point on convexhull ring is 1280.5,1536.5
>> Fourth point on convexhull ring is 1024.5,256.5
>> Fifth point on convexhull ring is 0.5,0.5
>> Testing polygonize function
>> Testing 1BB band
>> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 2
>> to 0
>> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 3
>> to 1
>> WARNING: Pixel value for 1BB band got truncated from 2 to 0
>> WARNING: Pixel value for 1BB band got truncated from 3 to 1
>> Testing 2BB band
>> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 4
>> to 0
>> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 5
>> to 1
>> WARNING: Pixel value for 2BUI band got truncated from 4 to 0
>> WARNING: Pixel value for 2BUI band got truncated from 5 to 1
>> Testing 4BUI band
>> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
>> 16 to 0
>> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
>> 17 to 1
>> WARNING: Pixel value for 4BUI band got truncated from 35 to 3
>> Testing 8BUI band
>> WARNING: rt_band_set_nodata: NODATA value for 8BUI band got truncated from
>> 256 to 0
>> WARNING: Pixel value for 8BUI band got truncated from 256 to 0
>> Testing 8BSI band
>> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
>> -129 to 127
>> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
>> 129 to -127
>> WARNING: Pixel value for 8BSI band got truncated from -129 to 127
>> WARNING: Pixel value for 8BSI band got truncated from 129 to -127
>> Testing 16BSI band
>> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
>> -32769 to 32767
>> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
>> 32769 to -32767
>> WARNING: Pixel value for 16BSI band got truncated from -32769 to 32767
>> WARNING: Pixel value for 16BSI band got truncated from 32769 to -32767
>> ERROR: Coordinates ouf of range
>> Testing 16BUI band
>> WARNING: rt_band_set_nodata: NODATA value for 16BUI band got truncated from
>> 65536 to 0
>> WARNING: Pixel value for 16BUI band got truncated from 65536 to 0
>> ERROR: Coordinates ouf of range
>> Testing 32BUI band
>> WARNING: rt_band_set_nodata: NODATA value for 32BUI band got truncated from
>> 4.29497e+09 to 0
>> WARNING: Pixel value for 32BUI band got truncated from 4.29497e+09 to 0
>> ERROR: Coordinates ouf of range
>> Testing 32BSI band
>> WARNING: rt_band_set_nodata: NODATA value for 32BSI band got truncated from
>> 2.14748e+09 to -2.14748e+09
>> WARNING: Pixel value for 32BSI band got truncated from 2.14748e+09 to
>> -2.14748e+09
>> ERROR: Coordinates ouf of range
>> Testing 32BF band
>> Testing 64BF band
>> Testing band hasnodata flag
>> testapi: rt_api.c:545: rt_band_get_data: Assertion `((void *)0) != band'
>> failed.
>> make[2]: *** [check] Aborted
>> make[2]: Leaving directory
>> `/home/mloskot/dev/wktraster/_svn/trunk/test/core'
>> make[1]: *** [check] Error 2
>> make[1]: Leaving directory `/home/mloskot/dev/wktraster/_svn/trunk/test'
>> make: *** [check] Error 2
>>
>> The assertion is serious and happens in crucial function.
>> I checked and the last healthy revision seems to be r5811.
>>
>> Pierre, Jorge, could you re-validate your recent commits?
>> You do run "make check" before every commit, don't you?
>>
>> Best regards,
>> --
>> Mateusz Loskot, http://mateusz.loskot.net
>> _______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. fixed in r5864

Sorry for that. Probably forgot to make check.

Pierre

>-----Original Message-----
>From: postgis-devel- [mailto:postgis-devel-
>] On Behalf Of Pierre Racine
>Sent: 23 août 2010 09:24
>To: PostGIS Development Discussion
>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>
>Probably my fault. Double check...
>
>Pierre
>
>>-----Original Message-----
>>From: postgis-devel- [mailto:postgis-devel-
>>] On Behalf Of Jorge Arévalo
>>Sent: 23 août 2010 07:39
>>To: PostGIS Development Discussion
>>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>>
>>On Mon, Aug 23, 2010 at 1:04 PM, Mateusz Loskot <> wrote:
>>> Hi,
>>>
>>> I've noticed current revision of WKT Raster is broken.
>>> Running the core tests for r5841 ends up with assertion and
>>> load of warnings:
>>>
>>> ./testapi
>>> 1111 pixtype = 2
>>> Raster starts with 0 bands
>>> First point on convexhull ring is 0.5,0.5
>>> Second point on convexhull ring is 256.5,1280.5
>>> Third point on convexhull ring is 1280.5,1536.5
>>> Fourth point on convexhull ring is 1024.5,256.5
>>> Fifth point on convexhull ring is 0.5,0.5
>>> Testing polygonize function
>>> Testing 1BB band
>>> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 2
>>> to 0
>>> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 3
>>> to 1
>>> WARNING: Pixel value for 1BB band got truncated from 2 to 0
>>> WARNING: Pixel value for 1BB band got truncated from 3 to 1
>>> Testing 2BB band
>>> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 4
>>> to 0
>>> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 5
>>> to 1
>>> WARNING: Pixel value for 2BUI band got truncated from 4 to 0
>>> WARNING: Pixel value for 2BUI band got truncated from 5 to 1
>>> Testing 4BUI band
>>> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
>>> 16 to 0
>>> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
>>> 17 to 1
>>> WARNING: Pixel value for 4BUI band got truncated from 35 to 3
>>> Testing 8BUI band
>>> WARNING: rt_band_set_nodata: NODATA value for 8BUI band got truncated from
>>> 256 to 0
>>> WARNING: Pixel value for 8BUI band got truncated from 256 to 0
>>> Testing 8BSI band
>>> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
>>> -129 to 127
>>> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
>>> 129 to -127
>>> WARNING: Pixel value for 8BSI band got truncated from -129 to 127
>>> WARNING: Pixel value for 8BSI band got truncated from 129 to -127
>>> Testing 16BSI band
>>> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
>>> -32769 to 32767
>>> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
>>> 32769 to -32767
>>> WARNING: Pixel value for 16BSI band got truncated from -32769 to 32767
>>> WARNING: Pixel value for 16BSI band got truncated from 32769 to -32767
>>> ERROR: Coordinates ouf of range
>>> Testing 16BUI band
>>> WARNING: rt_band_set_nodata: NODATA value for 16BUI band got truncated from
>>> 65536 to 0
>>> WARNING: Pixel value for 16BUI band got truncated from 65536 to 0
>>> ERROR: Coordinates ouf of range
>>> Testing 32BUI band
>>> WARNING: rt_band_set_nodata: NODATA value for 32BUI band got truncated from
>>> 4.29497e+09 to 0
>>> WARNING: Pixel value for 32BUI band got truncated from 4.29497e+09 to 0
>>> ERROR: Coordinates ouf of range
>>> Testing 32BSI band
>>> WARNING: rt_band_set_nodata: NODATA value for 32BSI band got truncated from
>>> 2.14748e+09 to -2.14748e+09
>>> WARNING: Pixel value for 32BSI band got truncated from 2.14748e+09 to
>>> -2.14748e+09
>>> ERROR: Coordinates ouf of range
>>> Testing 32BF band
>>> Testing 64BF band
>>> Testing band hasnodata flag
>>> testapi: rt_api.c:545: rt_band_get_data: Assertion `((void *)0) != band'
>>> failed.
>>> make[2]: *** [check] Aborted
>>> make[2]: Leaving directory
>>> `/home/mloskot/dev/wktraster/_svn/trunk/test/core'
>>> make[1]: *** [check] Error 2
>>> make[1]: Leaving directory `/home/mloskot/dev/wktraster/_svn/trunk/test'
>>> make: *** [check] Error 2
>>>
>>> The assertion is serious and happens in crucial function.
>>> I checked and the last healthy revision seems to be r5811.
>>>
>>> Pierre, Jorge, could you re-validate your recent commits?
>>> You do run "make check" before every commit, don't you?
>>>
>>> Best regards,
>>> --
>>> Mateusz Loskot, http://mateusz.loskot.net
>>> _______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. Thanks for the fix, Pierre. But I'm getting a Segmentation Fault. caused by

memcpy(raster->bands[i], oldbands[oldi++], sizeof(rt_band));

(rt_core/rt_api.c, line 1351)

in Ubuntu Linux. Anyone else?

On Mon, Aug 23, 2010 at 4:53 PM, Pierre Racine
<> wrote:
> fixed in r5864
>
> Sorry for that. Probably forgot to make check.
>
> Pierre
>
>>-----Original Message-----
>>From: postgis-devel- [mailto:postgis-devel-
>>] On Behalf Of Pierre Racine
>>Sent: 23 août 2010 09:24
>>To: PostGIS Development Discussion
>>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>>
>>Probably my fault. Double check...
>>
>>Pierre
>>
>>>-----Original Message-----
>>>From: postgis-devel- [mailto:postgis-devel-
>>>] On Behalf Of Jorge Arévalo
>>>Sent: 23 août 2010 07:39
>>>To: PostGIS Development Discussion
>>>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>>>
>>>On Mon, Aug 23, 2010 at 1:04 PM, Mateusz Loskot <> wrote:
>>>> Hi,
>>>>
>>>> I've noticed current revision of WKT Raster is broken.
>>>> Running the core tests for r5841 ends up with assertion and
>>>> load of warnings:
>>>>
>>>> ./testapi
>>>> 1111 pixtype = 2
>>>> Raster starts with 0 bands
>>>> First point on convexhull ring is 0.5,0.5
>>>> Second point on convexhull ring is 256.5,1280.5
>>>> Third point on convexhull ring is 1280.5,1536.5
>>>> Fourth point on convexhull ring is 1024.5,256.5
>>>> Fifth point on convexhull ring is 0.5,0.5
>>>> Testing polygonize function
>>>> Testing 1BB band
>>>> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 2
>>>> to 0
>>>> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 3
>>>> to 1
>>>> WARNING: Pixel value for 1BB band got truncated from 2 to 0
>>>> WARNING: Pixel value for 1BB band got truncated from 3 to 1
>>>> Testing 2BB band
>>>> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 4
>>>> to 0
>>>> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 5
>>>> to 1
>>>> WARNING: Pixel value for 2BUI band got truncated from 4 to 0
>>>> WARNING: Pixel value for 2BUI band got truncated from 5 to 1
>>>> Testing 4BUI band
>>>> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
>>>> 16 to 0
>>>> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
>>>> 17 to 1
>>>> WARNING: Pixel value for 4BUI band got truncated from 35 to 3
>>>> Testing 8BUI band
>>>> WARNING: rt_band_set_nodata: NODATA value for 8BUI band got truncated from
>>>> 256 to 0
>>>> WARNING: Pixel value for 8BUI band got truncated from 256 to 0
>>>> Testing 8BSI band
>>>> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
>>>> -129 to 127
>>>> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
>>>> 129 to -127
>>>> WARNING: Pixel value for 8BSI band got truncated from -129 to 127
>>>> WARNING: Pixel value for 8BSI band got truncated from 129 to -127
>>>> Testing 16BSI band
>>>> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
>>>> -32769 to 32767
>>>> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
>>>> 32769 to -32767
>>>> WARNING: Pixel value for 16BSI band got truncated from -32769 to 32767
>>>> WARNING: Pixel value for 16BSI band got truncated from 32769 to -32767
>>>> ERROR: Coordinates ouf of range
>>>> Testing 16BUI band
>>>> WARNING: rt_band_set_nodata: NODATA value for 16BUI band got truncated from
>>>> 65536 to 0
>>>> WARNING: Pixel value for 16BUI band got truncated from 65536 to 0
>>>> ERROR: Coordinates ouf of range
>>>> Testing 32BUI band
>>>> WARNING: rt_band_set_nodata: NODATA value for 32BUI band got truncated from
>>>> 4.29497e+09 to 0
>>>> WARNING: Pixel value for 32BUI band got truncated from 4.29497e+09 to 0
>>>> ERROR: Coordinates ouf of range
>>>> Testing 32BSI band
>>>> WARNING: rt_band_set_nodata: NODATA value for 32BSI band got truncated from
>>>> 2.14748e+09 to -2.14748e+09
>>>> WARNING: Pixel value for 32BSI band got truncated from 2.14748e+09 to
>>>> -2.14748e+09
>>>> ERROR: Coordinates ouf of range
>>>> Testing 32BF band
>>>> Testing 64BF band
>>>> Testing band hasnodata flag
>>>> testapi: rt_api.c:545: rt_band_get_data: Assertion `((void *)0) != band'
>>>> failed.
>>>> make[2]: *** [check] Aborted
>>>> make[2]: Leaving directory
>>>> `/home/mloskot/dev/wktraster/_svn/trunk/test/core'
>>>> make[1]: *** [check] Error 2
>>>> make[1]: Leaving directory `/home/mloskot/dev/wktraster/_svn/trunk/test'
>>>> make: *** [check] Error 2
>>>>
>>>> The assertion is serious and happens in crucial function.
>>>> I checked and the last healthy revision seems to be r5811.
>>>>
>>>> Pierre, Jorge, could you re-validate your recent commits?
>>>> You do run "make check" before every commit, don't you?
>>>>
>>>> Best regards,
>>>> --
>>>> Mateusz Loskot, http://mateusz.loskot.net
>>>> _______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. On 23/08/10 17:23, Jorge Arévalo wrote:
> Thanks for the fix, Pierre. But I'm getting a Segmentation Fault. caused by
>
> memcpy(raster->bands[i], oldbands[oldi++], sizeof(rt_band));
>
> (rt_core/rt_api.c, line 1351)
>
> in Ubuntu Linux. Anyone else?

I've quickly checked running make check and I confirm this issue.
Getting segmentation fault too.

Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. On Mon, Aug 23, 2010 at 11:11 PM, Pierre Racine
<> wrote:
> Could you test the last one. Thanks. Sorry for that my C is a bit rusty.
>
> Pierre
>

OK. make check is working fine for me now.

Jorge

>>-----Original Message-----
>>From: postgis-devel- [mailto:postgis-devel-
>>] On Behalf Of Mateusz Loskot
>>Sent: 23 août 2010 12:50
>>To: postgis-
>>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>>
>>On 23/08/10 17:23, Jorge Arévalo wrote:
>>> Thanks for the fix, Pierre. But I'm getting a Segmentation Fault. caused by
>>>
>>> memcpy(raster->bands[i], oldbands[oldi++], sizeof(rt_band));
>>>
>>> (rt_core/rt_api.c, line 1351)
>>>
>>> in Ubuntu Linux. Anyone else?
>>
>>I've quickly checked running make check and I confirm this issue.
>>Getting segmentation fault too.
>>
>>Best regards,
>>--
>>Mateusz Loskot, http://mateusz.loskot.net
>>_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe.

  #8  
24-08-2010 10:47 AM
PostGIS : postgis-devel member admin is online now
User
 

Hi,

I've noticed current revision of WKT Raster is broken.
Running the core tests for r5841 ends up with assertion and
load of warnings:

./testapi
1111 pixtype = 2
Raster starts with 0 bands
First point on convexhull ring is 0.5,0.5
Second point on convexhull ring is 256.5,1280.5
Third point on convexhull ring is 1280.5,1536.5
Fourth point on convexhull ring is 1024.5,256.5
Fifth point on convexhull ring is 0.5,0.5
Testing polygonize function
Testing 1BB band
WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated
from 2 to 0
WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated
from 3 to 1
WARNING: Pixel value for 1BB band got truncated from 2 to 0
WARNING: Pixel value for 1BB band got truncated from 3 to 1
Testing 2BB band
WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated
from 4 to 0
WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated
from 5 to 1
WARNING: Pixel value for 2BUI band got truncated from 4 to 0
WARNING: Pixel value for 2BUI band got truncated from 5 to 1
Testing 4BUI band
WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated
from 16 to 0
WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated
from 17 to 1
WARNING: Pixel value for 4BUI band got truncated from 35 to 3
Testing 8BUI band
WARNING: rt_band_set_nodata: NODATA value for 8BUI band got truncated
from 256 to 0
WARNING: Pixel value for 8BUI band got truncated from 256 to 0
Testing 8BSI band
WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated
from -129 to 127
WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated
from 129 to -127
WARNING: Pixel value for 8BSI band got truncated from -129 to 127
WARNING: Pixel value for 8BSI band got truncated from 129 to -127
Testing 16BSI band
WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated
from -32769 to 32767
WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated
from 32769 to -32767
WARNING: Pixel value for 16BSI band got truncated from -32769 to 32767
WARNING: Pixel value for 16BSI band got truncated from 32769 to -32767
ERROR: Coordinates ouf of range
Testing 16BUI band
WARNING: rt_band_set_nodata: NODATA value for 16BUI band got truncated
from 65536 to 0
WARNING: Pixel value for 16BUI band got truncated from 65536 to 0
ERROR: Coordinates ouf of range
Testing 32BUI band
WARNING: rt_band_set_nodata: NODATA value for 32BUI band got truncated
from 4.29497e+09 to 0
WARNING: Pixel value for 32BUI band got truncated from 4.29497e+09 to 0
ERROR: Coordinates ouf of range
Testing 32BSI band
WARNING: rt_band_set_nodata: NODATA value for 32BSI band got truncated
from 2.14748e+09 to -2.14748e+09
WARNING: Pixel value for 32BSI band got truncated from 2.14748e+09 to
-2.14748e+09
ERROR: Coordinates ouf of range
Testing 32BF band
Testing 64BF band
Testing band hasnodata flag
testapi: rt_api.c:545: rt_band_get_data: Assertion `((void *)0) != band'
failed.
make[2]: *** [check] Aborted
make[2]: Leaving directory
`/home/mloskot/dev/wktraster/_svn/trunk/test/core'
make[1]: *** [check] Error 2
make[1]: Leaving directory `/home/mloskot/dev/wktraster/_svn/trunk/test'
make: *** [check] Error 2

The assertion is serious and happens in crucial function.
I checked and the last healthy revision seems to be r5811.

Pierre, Jorge, could you re-validate your recent commits?
You do run "make check" before every commit, don't you?

Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. On Mon, Aug 23, 2010 at 1:04 PM, Mateusz Loskot <> wrote:
> Hi,
>
> I've noticed current revision of WKT Raster is broken.
> Running the core tests for r5841 ends up with assertion and
> load of warnings:
>
> ./testapi
> 1111 pixtype = 2
> Raster starts with 0 bands
> First point on convexhull ring is 0.5,0.5
> Second point on convexhull ring is 256.5,1280.5
> Third point on convexhull ring is 1280.5,1536.5
> Fourth point on convexhull ring is 1024.5,256.5
> Fifth point on convexhull ring is 0.5,0.5
> Testing polygonize function
> Testing 1BB band
> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 2
> to 0
> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 3
> to 1
> WARNING: Pixel value for 1BB band got truncated from 2 to 0
> WARNING: Pixel value for 1BB band got truncated from 3 to 1
> Testing 2BB band
> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 4
> to 0
> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 5
> to 1
> WARNING: Pixel value for 2BUI band got truncated from 4 to 0
> WARNING: Pixel value for 2BUI band got truncated from 5 to 1
> Testing 4BUI band
> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
> 16 to 0
> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
> 17 to 1
> WARNING: Pixel value for 4BUI band got truncated from 35 to 3
> Testing 8BUI band
> WARNING: rt_band_set_nodata: NODATA value for 8BUI band got truncated from
> 256 to 0
> WARNING: Pixel value for 8BUI band got truncated from 256 to 0
> Testing 8BSI band
> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
> -129 to 127
> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
> 129 to -127
> WARNING: Pixel value for 8BSI band got truncated from -129 to 127
> WARNING: Pixel value for 8BSI band got truncated from 129 to -127
> Testing 16BSI band
> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
> -32769 to 32767
> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
> 32769 to -32767
> WARNING: Pixel value for 16BSI band got truncated from -32769 to 32767
> WARNING: Pixel value for 16BSI band got truncated from 32769 to -32767
> ERROR: Coordinates ouf of range
> Testing 16BUI band
> WARNING: rt_band_set_nodata: NODATA value for 16BUI band got truncated from
> 65536 to 0
> WARNING: Pixel value for 16BUI band got truncated from 65536 to 0
> ERROR: Coordinates ouf of range
> Testing 32BUI band
> WARNING: rt_band_set_nodata: NODATA value for 32BUI band got truncated from
> 4.29497e+09 to 0
> WARNING: Pixel value for 32BUI band got truncated from 4.29497e+09 to 0
> ERROR: Coordinates ouf of range
> Testing 32BSI band
> WARNING: rt_band_set_nodata: NODATA value for 32BSI band got truncated from
> 2.14748e+09 to -2.14748e+09
> WARNING: Pixel value for 32BSI band got truncated from 2.14748e+09 to
> -2.14748e+09
> ERROR: Coordinates ouf of range
> Testing 32BF band
> Testing 64BF band
> Testing band hasnodata flag
> testapi: rt_api.c:545: rt_band_get_data: Assertion `((void *)0) != band'
> failed.
> make[2]: *** [check] Aborted
> make[2]: Leaving directory
> `/home/mloskot/dev/wktraster/_svn/trunk/test/core'
> make[1]: *** [check] Error 2
> make[1]: Leaving directory `/home/mloskot/dev/wktraster/_svn/trunk/test'
> make: *** [check] Error 2
>
> The assertion is serious and happens in crucial function.
> I checked and the last healthy revision seems to be r5811.
>
> Pierre, Jorge, could you re-validate your recent commits?
> You do run "make check" before every commit, don't you?
>
> Best regards,
> --
> Mateusz Loskot, http://mateusz.loskot.net
> _______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. Probably my fault. Double check...

Pierre

>-----Original Message-----
>From: postgis-devel- [mailto:postgis-devel-
>] On Behalf Of Jorge Arévalo
>Sent: 23 août 2010 07:39
>To: PostGIS Development Discussion
>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>
>On Mon, Aug 23, 2010 at 1:04 PM, Mateusz Loskot <> wrote:
>> Hi,
>>
>> I've noticed current revision of WKT Raster is broken.
>> Running the core tests for r5841 ends up with assertion and
>> load of warnings:
>>
>> ./testapi
>> 1111 pixtype = 2
>> Raster starts with 0 bands
>> First point on convexhull ring is 0.5,0.5
>> Second point on convexhull ring is 256.5,1280.5
>> Third point on convexhull ring is 1280.5,1536.5
>> Fourth point on convexhull ring is 1024.5,256.5
>> Fifth point on convexhull ring is 0.5,0.5
>> Testing polygonize function
>> Testing 1BB band
>> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 2
>> to 0
>> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 3
>> to 1
>> WARNING: Pixel value for 1BB band got truncated from 2 to 0
>> WARNING: Pixel value for 1BB band got truncated from 3 to 1
>> Testing 2BB band
>> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 4
>> to 0
>> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 5
>> to 1
>> WARNING: Pixel value for 2BUI band got truncated from 4 to 0
>> WARNING: Pixel value for 2BUI band got truncated from 5 to 1
>> Testing 4BUI band
>> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
>> 16 to 0
>> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
>> 17 to 1
>> WARNING: Pixel value for 4BUI band got truncated from 35 to 3
>> Testing 8BUI band
>> WARNING: rt_band_set_nodata: NODATA value for 8BUI band got truncated from
>> 256 to 0
>> WARNING: Pixel value for 8BUI band got truncated from 256 to 0
>> Testing 8BSI band
>> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
>> -129 to 127
>> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
>> 129 to -127
>> WARNING: Pixel value for 8BSI band got truncated from -129 to 127
>> WARNING: Pixel value for 8BSI band got truncated from 129 to -127
>> Testing 16BSI band
>> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
>> -32769 to 32767
>> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
>> 32769 to -32767
>> WARNING: Pixel value for 16BSI band got truncated from -32769 to 32767
>> WARNING: Pixel value for 16BSI band got truncated from 32769 to -32767
>> ERROR: Coordinates ouf of range
>> Testing 16BUI band
>> WARNING: rt_band_set_nodata: NODATA value for 16BUI band got truncated from
>> 65536 to 0
>> WARNING: Pixel value for 16BUI band got truncated from 65536 to 0
>> ERROR: Coordinates ouf of range
>> Testing 32BUI band
>> WARNING: rt_band_set_nodata: NODATA value for 32BUI band got truncated from
>> 4.29497e+09 to 0
>> WARNING: Pixel value for 32BUI band got truncated from 4.29497e+09 to 0
>> ERROR: Coordinates ouf of range
>> Testing 32BSI band
>> WARNING: rt_band_set_nodata: NODATA value for 32BSI band got truncated from
>> 2.14748e+09 to -2.14748e+09
>> WARNING: Pixel value for 32BSI band got truncated from 2.14748e+09 to
>> -2.14748e+09
>> ERROR: Coordinates ouf of range
>> Testing 32BF band
>> Testing 64BF band
>> Testing band hasnodata flag
>> testapi: rt_api.c:545: rt_band_get_data: Assertion `((void *)0) != band'
>> failed.
>> make[2]: *** [check] Aborted
>> make[2]: Leaving directory
>> `/home/mloskot/dev/wktraster/_svn/trunk/test/core'
>> make[1]: *** [check] Error 2
>> make[1]: Leaving directory `/home/mloskot/dev/wktraster/_svn/trunk/test'
>> make: *** [check] Error 2
>>
>> The assertion is serious and happens in crucial function.
>> I checked and the last healthy revision seems to be r5811.
>>
>> Pierre, Jorge, could you re-validate your recent commits?
>> You do run "make check" before every commit, don't you?
>>
>> Best regards,
>> --
>> Mateusz Loskot, http://mateusz.loskot.net
>> _______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. fixed in r5864

Sorry for that. Probably forgot to make check.

Pierre

>-----Original Message-----
>From: postgis-devel- [mailto:postgis-devel-
>] On Behalf Of Pierre Racine
>Sent: 23 août 2010 09:24
>To: PostGIS Development Discussion
>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>
>Probably my fault. Double check...
>
>Pierre
>
>>-----Original Message-----
>>From: postgis-devel- [mailto:postgis-devel-
>>] On Behalf Of Jorge Arévalo
>>Sent: 23 août 2010 07:39
>>To: PostGIS Development Discussion
>>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>>
>>On Mon, Aug 23, 2010 at 1:04 PM, Mateusz Loskot <> wrote:
>>> Hi,
>>>
>>> I've noticed current revision of WKT Raster is broken.
>>> Running the core tests for r5841 ends up with assertion and
>>> load of warnings:
>>>
>>> ./testapi
>>> 1111 pixtype = 2
>>> Raster starts with 0 bands
>>> First point on convexhull ring is 0.5,0.5
>>> Second point on convexhull ring is 256.5,1280.5
>>> Third point on convexhull ring is 1280.5,1536.5
>>> Fourth point on convexhull ring is 1024.5,256.5
>>> Fifth point on convexhull ring is 0.5,0.5
>>> Testing polygonize function
>>> Testing 1BB band
>>> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 2
>>> to 0
>>> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 3
>>> to 1
>>> WARNING: Pixel value for 1BB band got truncated from 2 to 0
>>> WARNING: Pixel value for 1BB band got truncated from 3 to 1
>>> Testing 2BB band
>>> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 4
>>> to 0
>>> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 5
>>> to 1
>>> WARNING: Pixel value for 2BUI band got truncated from 4 to 0
>>> WARNING: Pixel value for 2BUI band got truncated from 5 to 1
>>> Testing 4BUI band
>>> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
>>> 16 to 0
>>> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
>>> 17 to 1
>>> WARNING: Pixel value for 4BUI band got truncated from 35 to 3
>>> Testing 8BUI band
>>> WARNING: rt_band_set_nodata: NODATA value for 8BUI band got truncated from
>>> 256 to 0
>>> WARNING: Pixel value for 8BUI band got truncated from 256 to 0
>>> Testing 8BSI band
>>> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
>>> -129 to 127
>>> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
>>> 129 to -127
>>> WARNING: Pixel value for 8BSI band got truncated from -129 to 127
>>> WARNING: Pixel value for 8BSI band got truncated from 129 to -127
>>> Testing 16BSI band
>>> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
>>> -32769 to 32767
>>> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
>>> 32769 to -32767
>>> WARNING: Pixel value for 16BSI band got truncated from -32769 to 32767
>>> WARNING: Pixel value for 16BSI band got truncated from 32769 to -32767
>>> ERROR: Coordinates ouf of range
>>> Testing 16BUI band
>>> WARNING: rt_band_set_nodata: NODATA value for 16BUI band got truncated from
>>> 65536 to 0
>>> WARNING: Pixel value for 16BUI band got truncated from 65536 to 0
>>> ERROR: Coordinates ouf of range
>>> Testing 32BUI band
>>> WARNING: rt_band_set_nodata: NODATA value for 32BUI band got truncated from
>>> 4.29497e+09 to 0
>>> WARNING: Pixel value for 32BUI band got truncated from 4.29497e+09 to 0
>>> ERROR: Coordinates ouf of range
>>> Testing 32BSI band
>>> WARNING: rt_band_set_nodata: NODATA value for 32BSI band got truncated from
>>> 2.14748e+09 to -2.14748e+09
>>> WARNING: Pixel value for 32BSI band got truncated from 2.14748e+09 to
>>> -2.14748e+09
>>> ERROR: Coordinates ouf of range
>>> Testing 32BF band
>>> Testing 64BF band
>>> Testing band hasnodata flag
>>> testapi: rt_api.c:545: rt_band_get_data: Assertion `((void *)0) != band'
>>> failed.
>>> make[2]: *** [check] Aborted
>>> make[2]: Leaving directory
>>> `/home/mloskot/dev/wktraster/_svn/trunk/test/core'
>>> make[1]: *** [check] Error 2
>>> make[1]: Leaving directory `/home/mloskot/dev/wktraster/_svn/trunk/test'
>>> make: *** [check] Error 2
>>>
>>> The assertion is serious and happens in crucial function.
>>> I checked and the last healthy revision seems to be r5811.
>>>
>>> Pierre, Jorge, could you re-validate your recent commits?
>>> You do run "make check" before every commit, don't you?
>>>
>>> Best regards,
>>> --
>>> Mateusz Loskot, http://mateusz.loskot.net
>>> _______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. Thanks for the fix, Pierre. But I'm getting a Segmentation Fault. caused by

memcpy(raster->bands[i], oldbands[oldi++], sizeof(rt_band));

(rt_core/rt_api.c, line 1351)

in Ubuntu Linux. Anyone else?

On Mon, Aug 23, 2010 at 4:53 PM, Pierre Racine
<> wrote:
> fixed in r5864
>
> Sorry for that. Probably forgot to make check.
>
> Pierre
>
>>-----Original Message-----
>>From: postgis-devel- [mailto:postgis-devel-
>>] On Behalf Of Pierre Racine
>>Sent: 23 août 2010 09:24
>>To: PostGIS Development Discussion
>>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>>
>>Probably my fault. Double check...
>>
>>Pierre
>>
>>>-----Original Message-----
>>>From: postgis-devel- [mailto:postgis-devel-
>>>] On Behalf Of Jorge Arévalo
>>>Sent: 23 août 2010 07:39
>>>To: PostGIS Development Discussion
>>>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>>>
>>>On Mon, Aug 23, 2010 at 1:04 PM, Mateusz Loskot <> wrote:
>>>> Hi,
>>>>
>>>> I've noticed current revision of WKT Raster is broken.
>>>> Running the core tests for r5841 ends up with assertion and
>>>> load of warnings:
>>>>
>>>> ./testapi
>>>> 1111 pixtype = 2
>>>> Raster starts with 0 bands
>>>> First point on convexhull ring is 0.5,0.5
>>>> Second point on convexhull ring is 256.5,1280.5
>>>> Third point on convexhull ring is 1280.5,1536.5
>>>> Fourth point on convexhull ring is 1024.5,256.5
>>>> Fifth point on convexhull ring is 0.5,0.5
>>>> Testing polygonize function
>>>> Testing 1BB band
>>>> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 2
>>>> to 0
>>>> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 3
>>>> to 1
>>>> WARNING: Pixel value for 1BB band got truncated from 2 to 0
>>>> WARNING: Pixel value for 1BB band got truncated from 3 to 1
>>>> Testing 2BB band
>>>> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 4
>>>> to 0
>>>> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 5
>>>> to 1
>>>> WARNING: Pixel value for 2BUI band got truncated from 4 to 0
>>>> WARNING: Pixel value for 2BUI band got truncated from 5 to 1
>>>> Testing 4BUI band
>>>> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
>>>> 16 to 0
>>>> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
>>>> 17 to 1
>>>> WARNING: Pixel value for 4BUI band got truncated from 35 to 3
>>>> Testing 8BUI band
>>>> WARNING: rt_band_set_nodata: NODATA value for 8BUI band got truncated from
>>>> 256 to 0
>>>> WARNING: Pixel value for 8BUI band got truncated from 256 to 0
>>>> Testing 8BSI band
>>>> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
>>>> -129 to 127
>>>> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
>>>> 129 to -127
>>>> WARNING: Pixel value for 8BSI band got truncated from -129 to 127
>>>> WARNING: Pixel value for 8BSI band got truncated from 129 to -127
>>>> Testing 16BSI band
>>>> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
>>>> -32769 to 32767
>>>> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
>>>> 32769 to -32767
>>>> WARNING: Pixel value for 16BSI band got truncated from -32769 to 32767
>>>> WARNING: Pixel value for 16BSI band got truncated from 32769 to -32767
>>>> ERROR: Coordinates ouf of range
>>>> Testing 16BUI band
>>>> WARNING: rt_band_set_nodata: NODATA value for 16BUI band got truncated from
>>>> 65536 to 0
>>>> WARNING: Pixel value for 16BUI band got truncated from 65536 to 0
>>>> ERROR: Coordinates ouf of range
>>>> Testing 32BUI band
>>>> WARNING: rt_band_set_nodata: NODATA value for 32BUI band got truncated from
>>>> 4.29497e+09 to 0
>>>> WARNING: Pixel value for 32BUI band got truncated from 4.29497e+09 to 0
>>>> ERROR: Coordinates ouf of range
>>>> Testing 32BSI band
>>>> WARNING: rt_band_set_nodata: NODATA value for 32BSI band got truncated from
>>>> 2.14748e+09 to -2.14748e+09
>>>> WARNING: Pixel value for 32BSI band got truncated from 2.14748e+09 to
>>>> -2.14748e+09
>>>> ERROR: Coordinates ouf of range
>>>> Testing 32BF band
>>>> Testing 64BF band
>>>> Testing band hasnodata flag
>>>> testapi: rt_api.c:545: rt_band_get_data: Assertion `((void *)0) != band'
>>>> failed.
>>>> make[2]: *** [check] Aborted
>>>> make[2]: Leaving directory
>>>> `/home/mloskot/dev/wktraster/_svn/trunk/test/core'
>>>> make[1]: *** [check] Error 2
>>>> make[1]: Leaving directory `/home/mloskot/dev/wktraster/_svn/trunk/test'
>>>> make: *** [check] Error 2
>>>>
>>>> The assertion is serious and happens in crucial function.
>>>> I checked and the last healthy revision seems to be r5811.
>>>>
>>>> Pierre, Jorge, could you re-validate your recent commits?
>>>> You do run "make check" before every commit, don't you?
>>>>
>>>> Best regards,
>>>> --
>>>> Mateusz Loskot, http://mateusz.loskot.net
>>>> _______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. On 23/08/10 17:23, Jorge Arévalo wrote:
> Thanks for the fix, Pierre. But I'm getting a Segmentation Fault. caused by
>
> memcpy(raster->bands[i], oldbands[oldi++], sizeof(rt_band));
>
> (rt_core/rt_api.c, line 1351)
>
> in Ubuntu Linux. Anyone else?

I've quickly checked running make check and I confirm this issue.
Getting segmentation fault too.

Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. On Mon, Aug 23, 2010 at 11:11 PM, Pierre Racine
<> wrote:
> Could you test the last one. Thanks. Sorry for that my C is a bit rusty.
>
> Pierre
>

OK. make check is working fine for me now.

Jorge

>>-----Original Message-----
>>From: postgis-devel- [mailto:postgis-devel-
>>] On Behalf Of Mateusz Loskot
>>Sent: 23 août 2010 12:50
>>To: postgis-
>>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>>
>>On 23/08/10 17:23, Jorge Arévalo wrote:
>>> Thanks for the fix, Pierre. But I'm getting a Segmentation Fault. caused by
>>>
>>> memcpy(raster->bands[i], oldbands[oldi++], sizeof(rt_band));
>>>
>>> (rt_core/rt_api.c, line 1351)
>>>
>>> in Ubuntu Linux. Anyone else?
>>
>>I've quickly checked running make check and I confirm this issue.
>>Getting segmentation fault too.
>>
>>Best regards,
>>--
>>Mateusz Loskot, http://mateusz.loskot.net
>>_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. On 24/08/10 10:39, Jorge Arévalo wrote:
> On Mon, Aug 23, 2010 at 11:11 PM, Pierre Racine
> <> wrote:
>> Could you test the last one. Thanks. Sorry for that my C is a bit rusty.
>
> OK. make check is working fine for me now.

Works for me too, however regression test is failing:L


mloskot@vb-ubuntu910-x64:~/dev/wktraster/_svn/trunk$ make post-install-check

...
Creating spatial db rtpostgis_reg
TMPDIR is /tmp/rtpgis_reg_4435

PostgreSQL 8.4.4 on x86_64-pc-linux-gnu, compiled by GCC gcc-4.4.real
(Ubuntu 4.4.3-4ubuntu5) 4.4.3, 64-bit
Postgis 2.0.0SVN - 2010-08-04 11:37:17
GEOS: 3.3.0-CAPI-1.7.0
PROJ: Rel. 4.7.1, 23 September 2009
WKTRaster 0.1.6d - 2010-08-24 09:14:21

Running tests

check_raster_columns. ok
check_raster_overviews. ok
rt_io. ok
create_rt_bytea_test. ok
rt_bytea. ok
create_rt_box2d_test. ok
rt_box2d. ok
rt_addband. failed (diff expected obtained:
/tmp/rtpgis_reg_4435/test_8_diff)
create_rt_properties_test. ok
rt_dimensions. ok
rt_pixelsize. ok
rt_upperleft. ok
rt_rotation. ok
rt_georeference. ok
rt_set_properties. ok
create_rt_band_properties_test. ok
rt_band_properties. ok
rt_set_band_properties. ok
rt_pixelvalue. ok
create_rt_utility_test. ok
rt_utility. ok
create_rt_gist_test. ok
rt_above. ok
rt_below. ok
rt_contained. ok
rt_contain. ok
rt_left. ok
rt_overabove. ok
rt_overbelow. ok
rt_overlap. ok
rt_overleft. ok
rt_overright. ok
rt_right. ok
rt_same. ok
rt_spatial_relationship. ok
bug_test_car5. ok

Run tests: 36
Failed: 1
make[2]: Leaving directory
`/home/mloskot/dev/wktraster/_svn/trunk/test/regress'
make[1]: Leaving directory `/home/mloskot/dev/wktraster/_svn/trunk/test'
mloskot@vb-ubuntu910-x64:~/dev/wktraster/_svn/trunk$ cat
/tmp/rtpgis_reg_4435/test_8_diff
*** rt_addband_expected 2010-08-23 16:51:59.000000000 +0100
--- /tmp/rtpgis_reg_4435/test_8_out 2010-08-24 10:15:19.000000000 +0100
***************
*** 45,52 ****
154
WARNING: Initial pixel value for 8BUI band got truncated from
256.000000 to 255
255
! WARNING: Initial pixel value for 16BSI band got truncated from
-32769.000000 to -32768
! -32768
-32768
0
32767
--- 45,52 ----
154
WARNING: Initial pixel value for 8BUI band got truncated from
256.000000 to 255
255
! WARNING: Initial pixel value for 16BSI band got truncated from
-32769.000000 to 32767
! 32767
-32768
0
32767
***************
*** 54,61 ****
-32768
WARNING: Initial pixel value for 16BSI band got truncated from
21.460000 to 21
21
! WARNING: Initial pixel value for 16BSI band got truncated from
210000.460000 to -32768
! -32768
WARNING: Initial pixel value for 16BUI band got truncated from
-1.000000 to 65535
65535
0
--- 54,61 ----
-32768
WARNING: Initial pixel value for 16BSI band got truncated from
21.460000 to 21
21
! WARNING: Initial pixel value for 16BSI band got truncated from
210000.460000 to 13392
! 13392
WARNING: Initial pixel value for 16BUI band got truncated from
-1.000000 to 65535
65535
0
mloskot@vb-ubuntu910-x64:~/dev/wktraster/_svn/trunk$


Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe.

  #9  
24-08-2010 11:08 AM
PostGIS : postgis-devel member admin is online now
User
 

Hi,

I've noticed current revision of WKT Raster is broken.
Running the core tests for r5841 ends up with assertion and
load of warnings:

./testapi
1111 pixtype = 2
Raster starts with 0 bands
First point on convexhull ring is 0.5,0.5
Second point on convexhull ring is 256.5,1280.5
Third point on convexhull ring is 1280.5,1536.5
Fourth point on convexhull ring is 1024.5,256.5
Fifth point on convexhull ring is 0.5,0.5
Testing polygonize function
Testing 1BB band
WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated
from 2 to 0
WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated
from 3 to 1
WARNING: Pixel value for 1BB band got truncated from 2 to 0
WARNING: Pixel value for 1BB band got truncated from 3 to 1
Testing 2BB band
WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated
from 4 to 0
WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated
from 5 to 1
WARNING: Pixel value for 2BUI band got truncated from 4 to 0
WARNING: Pixel value for 2BUI band got truncated from 5 to 1
Testing 4BUI band
WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated
from 16 to 0
WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated
from 17 to 1
WARNING: Pixel value for 4BUI band got truncated from 35 to 3
Testing 8BUI band
WARNING: rt_band_set_nodata: NODATA value for 8BUI band got truncated
from 256 to 0
WARNING: Pixel value for 8BUI band got truncated from 256 to 0
Testing 8BSI band
WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated
from -129 to 127
WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated
from 129 to -127
WARNING: Pixel value for 8BSI band got truncated from -129 to 127
WARNING: Pixel value for 8BSI band got truncated from 129 to -127
Testing 16BSI band
WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated
from -32769 to 32767
WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated
from 32769 to -32767
WARNING: Pixel value for 16BSI band got truncated from -32769 to 32767
WARNING: Pixel value for 16BSI band got truncated from 32769 to -32767
ERROR: Coordinates ouf of range
Testing 16BUI band
WARNING: rt_band_set_nodata: NODATA value for 16BUI band got truncated
from 65536 to 0
WARNING: Pixel value for 16BUI band got truncated from 65536 to 0
ERROR: Coordinates ouf of range
Testing 32BUI band
WARNING: rt_band_set_nodata: NODATA value for 32BUI band got truncated
from 4.29497e+09 to 0
WARNING: Pixel value for 32BUI band got truncated from 4.29497e+09 to 0
ERROR: Coordinates ouf of range
Testing 32BSI band
WARNING: rt_band_set_nodata: NODATA value for 32BSI band got truncated
from 2.14748e+09 to -2.14748e+09
WARNING: Pixel value for 32BSI band got truncated from 2.14748e+09 to
-2.14748e+09
ERROR: Coordinates ouf of range
Testing 32BF band
Testing 64BF band
Testing band hasnodata flag
testapi: rt_api.c:545: rt_band_get_data: Assertion `((void *)0) != band'
failed.
make[2]: *** [check] Aborted
make[2]: Leaving directory
`/home/mloskot/dev/wktraster/_svn/trunk/test/core'
make[1]: *** [check] Error 2
make[1]: Leaving directory `/home/mloskot/dev/wktraster/_svn/trunk/test'
make: *** [check] Error 2

The assertion is serious and happens in crucial function.
I checked and the last healthy revision seems to be r5811.

Pierre, Jorge, could you re-validate your recent commits?
You do run "make check" before every commit, don't you?

Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. On Mon, Aug 23, 2010 at 1:04 PM, Mateusz Loskot <> wrote:
> Hi,
>
> I've noticed current revision of WKT Raster is broken.
> Running the core tests for r5841 ends up with assertion and
> load of warnings:
>
> ./testapi
> 1111 pixtype = 2
> Raster starts with 0 bands
> First point on convexhull ring is 0.5,0.5
> Second point on convexhull ring is 256.5,1280.5
> Third point on convexhull ring is 1280.5,1536.5
> Fourth point on convexhull ring is 1024.5,256.5
> Fifth point on convexhull ring is 0.5,0.5
> Testing polygonize function
> Testing 1BB band
> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 2
> to 0
> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 3
> to 1
> WARNING: Pixel value for 1BB band got truncated from 2 to 0
> WARNING: Pixel value for 1BB band got truncated from 3 to 1
> Testing 2BB band
> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 4
> to 0
> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 5
> to 1
> WARNING: Pixel value for 2BUI band got truncated from 4 to 0
> WARNING: Pixel value for 2BUI band got truncated from 5 to 1
> Testing 4BUI band
> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
> 16 to 0
> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
> 17 to 1
> WARNING: Pixel value for 4BUI band got truncated from 35 to 3
> Testing 8BUI band
> WARNING: rt_band_set_nodata: NODATA value for 8BUI band got truncated from
> 256 to 0
> WARNING: Pixel value for 8BUI band got truncated from 256 to 0
> Testing 8BSI band
> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
> -129 to 127
> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
> 129 to -127
> WARNING: Pixel value for 8BSI band got truncated from -129 to 127
> WARNING: Pixel value for 8BSI band got truncated from 129 to -127
> Testing 16BSI band
> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
> -32769 to 32767
> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
> 32769 to -32767
> WARNING: Pixel value for 16BSI band got truncated from -32769 to 32767
> WARNING: Pixel value for 16BSI band got truncated from 32769 to -32767
> ERROR: Coordinates ouf of range
> Testing 16BUI band
> WARNING: rt_band_set_nodata: NODATA value for 16BUI band got truncated from
> 65536 to 0
> WARNING: Pixel value for 16BUI band got truncated from 65536 to 0
> ERROR: Coordinates ouf of range
> Testing 32BUI band
> WARNING: rt_band_set_nodata: NODATA value for 32BUI band got truncated from
> 4.29497e+09 to 0
> WARNING: Pixel value for 32BUI band got truncated from 4.29497e+09 to 0
> ERROR: Coordinates ouf of range
> Testing 32BSI band
> WARNING: rt_band_set_nodata: NODATA value for 32BSI band got truncated from
> 2.14748e+09 to -2.14748e+09
> WARNING: Pixel value for 32BSI band got truncated from 2.14748e+09 to
> -2.14748e+09
> ERROR: Coordinates ouf of range
> Testing 32BF band
> Testing 64BF band
> Testing band hasnodata flag
> testapi: rt_api.c:545: rt_band_get_data: Assertion `((void *)0) != band'
> failed.
> make[2]: *** [check] Aborted
> make[2]: Leaving directory
> `/home/mloskot/dev/wktraster/_svn/trunk/test/core'
> make[1]: *** [check] Error 2
> make[1]: Leaving directory `/home/mloskot/dev/wktraster/_svn/trunk/test'
> make: *** [check] Error 2
>
> The assertion is serious and happens in crucial function.
> I checked and the last healthy revision seems to be r5811.
>
> Pierre, Jorge, could you re-validate your recent commits?
> You do run "make check" before every commit, don't you?
>
> Best regards,
> --
> Mateusz Loskot, http://mateusz.loskot.net
> _______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. Probably my fault. Double check...

Pierre

>-----Original Message-----
>From: postgis-devel- [mailto:postgis-devel-
>] On Behalf Of Jorge Arévalo
>Sent: 23 août 2010 07:39
>To: PostGIS Development Discussion
>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>
>On Mon, Aug 23, 2010 at 1:04 PM, Mateusz Loskot <> wrote:
>> Hi,
>>
>> I've noticed current revision of WKT Raster is broken.
>> Running the core tests for r5841 ends up with assertion and
>> load of warnings:
>>
>> ./testapi
>> 1111 pixtype = 2
>> Raster starts with 0 bands
>> First point on convexhull ring is 0.5,0.5
>> Second point on convexhull ring is 256.5,1280.5
>> Third point on convexhull ring is 1280.5,1536.5
>> Fourth point on convexhull ring is 1024.5,256.5
>> Fifth point on convexhull ring is 0.5,0.5
>> Testing polygonize function
>> Testing 1BB band
>> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 2
>> to 0
>> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 3
>> to 1
>> WARNING: Pixel value for 1BB band got truncated from 2 to 0
>> WARNING: Pixel value for 1BB band got truncated from 3 to 1
>> Testing 2BB band
>> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 4
>> to 0
>> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 5
>> to 1
>> WARNING: Pixel value for 2BUI band got truncated from 4 to 0
>> WARNING: Pixel value for 2BUI band got truncated from 5 to 1
>> Testing 4BUI band
>> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
>> 16 to 0
>> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
>> 17 to 1
>> WARNING: Pixel value for 4BUI band got truncated from 35 to 3
>> Testing 8BUI band
>> WARNING: rt_band_set_nodata: NODATA value for 8BUI band got truncated from
>> 256 to 0
>> WARNING: Pixel value for 8BUI band got truncated from 256 to 0
>> Testing 8BSI band
>> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
>> -129 to 127
>> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
>> 129 to -127
>> WARNING: Pixel value for 8BSI band got truncated from -129 to 127
>> WARNING: Pixel value for 8BSI band got truncated from 129 to -127
>> Testing 16BSI band
>> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
>> -32769 to 32767
>> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
>> 32769 to -32767
>> WARNING: Pixel value for 16BSI band got truncated from -32769 to 32767
>> WARNING: Pixel value for 16BSI band got truncated from 32769 to -32767
>> ERROR: Coordinates ouf of range
>> Testing 16BUI band
>> WARNING: rt_band_set_nodata: NODATA value for 16BUI band got truncated from
>> 65536 to 0
>> WARNING: Pixel value for 16BUI band got truncated from 65536 to 0
>> ERROR: Coordinates ouf of range
>> Testing 32BUI band
>> WARNING: rt_band_set_nodata: NODATA value for 32BUI band got truncated from
>> 4.29497e+09 to 0
>> WARNING: Pixel value for 32BUI band got truncated from 4.29497e+09 to 0
>> ERROR: Coordinates ouf of range
>> Testing 32BSI band
>> WARNING: rt_band_set_nodata: NODATA value for 32BSI band got truncated from
>> 2.14748e+09 to -2.14748e+09
>> WARNING: Pixel value for 32BSI band got truncated from 2.14748e+09 to
>> -2.14748e+09
>> ERROR: Coordinates ouf of range
>> Testing 32BF band
>> Testing 64BF band
>> Testing band hasnodata flag
>> testapi: rt_api.c:545: rt_band_get_data: Assertion `((void *)0) != band'
>> failed.
>> make[2]: *** [check] Aborted
>> make[2]: Leaving directory
>> `/home/mloskot/dev/wktraster/_svn/trunk/test/core'
>> make[1]: *** [check] Error 2
>> make[1]: Leaving directory `/home/mloskot/dev/wktraster/_svn/trunk/test'
>> make: *** [check] Error 2
>>
>> The assertion is serious and happens in crucial function.
>> I checked and the last healthy revision seems to be r5811.
>>
>> Pierre, Jorge, could you re-validate your recent commits?
>> You do run "make check" before every commit, don't you?
>>
>> Best regards,
>> --
>> Mateusz Loskot, http://mateusz.loskot.net
>> _______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. fixed in r5864

Sorry for that. Probably forgot to make check.

Pierre

>-----Original Message-----
>From: postgis-devel- [mailto:postgis-devel-
>] On Behalf Of Pierre Racine
>Sent: 23 août 2010 09:24
>To: PostGIS Development Discussion
>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>
>Probably my fault. Double check...
>
>Pierre
>
>>-----Original Message-----
>>From: postgis-devel- [mailto:postgis-devel-
>>] On Behalf Of Jorge Arévalo
>>Sent: 23 août 2010 07:39
>>To: PostGIS Development Discussion
>>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>>
>>On Mon, Aug 23, 2010 at 1:04 PM, Mateusz Loskot <> wrote:
>>> Hi,
>>>
>>> I've noticed current revision of WKT Raster is broken.
>>> Running the core tests for r5841 ends up with assertion and
>>> load of warnings:
>>>
>>> ./testapi
>>> 1111 pixtype = 2
>>> Raster starts with 0 bands
>>> First point on convexhull ring is 0.5,0.5
>>> Second point on convexhull ring is 256.5,1280.5
>>> Third point on convexhull ring is 1280.5,1536.5
>>> Fourth point on convexhull ring is 1024.5,256.5
>>> Fifth point on convexhull ring is 0.5,0.5
>>> Testing polygonize function
>>> Testing 1BB band
>>> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 2
>>> to 0
>>> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 3
>>> to 1
>>> WARNING: Pixel value for 1BB band got truncated from 2 to 0
>>> WARNING: Pixel value for 1BB band got truncated from 3 to 1
>>> Testing 2BB band
>>> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 4
>>> to 0
>>> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 5
>>> to 1
>>> WARNING: Pixel value for 2BUI band got truncated from 4 to 0
>>> WARNING: Pixel value for 2BUI band got truncated from 5 to 1
>>> Testing 4BUI band
>>> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
>>> 16 to 0
>>> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
>>> 17 to 1
>>> WARNING: Pixel value for 4BUI band got truncated from 35 to 3
>>> Testing 8BUI band
>>> WARNING: rt_band_set_nodata: NODATA value for 8BUI band got truncated from
>>> 256 to 0
>>> WARNING: Pixel value for 8BUI band got truncated from 256 to 0
>>> Testing 8BSI band
>>> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
>>> -129 to 127
>>> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
>>> 129 to -127
>>> WARNING: Pixel value for 8BSI band got truncated from -129 to 127
>>> WARNING: Pixel value for 8BSI band got truncated from 129 to -127
>>> Testing 16BSI band
>>> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
>>> -32769 to 32767
>>> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
>>> 32769 to -32767
>>> WARNING: Pixel value for 16BSI band got truncated from -32769 to 32767
>>> WARNING: Pixel value for 16BSI band got truncated from 32769 to -32767
>>> ERROR: Coordinates ouf of range
>>> Testing 16BUI band
>>> WARNING: rt_band_set_nodata: NODATA value for 16BUI band got truncated from
>>> 65536 to 0
>>> WARNING: Pixel value for 16BUI band got truncated from 65536 to 0
>>> ERROR: Coordinates ouf of range
>>> Testing 32BUI band
>>> WARNING: rt_band_set_nodata: NODATA value for 32BUI band got truncated from
>>> 4.29497e+09 to 0
>>> WARNING: Pixel value for 32BUI band got truncated from 4.29497e+09 to 0
>>> ERROR: Coordinates ouf of range
>>> Testing 32BSI band
>>> WARNING: rt_band_set_nodata: NODATA value for 32BSI band got truncated from
>>> 2.14748e+09 to -2.14748e+09
>>> WARNING: Pixel value for 32BSI band got truncated from 2.14748e+09 to
>>> -2.14748e+09
>>> ERROR: Coordinates ouf of range
>>> Testing 32BF band
>>> Testing 64BF band
>>> Testing band hasnodata flag
>>> testapi: rt_api.c:545: rt_band_get_data: Assertion `((void *)0) != band'
>>> failed.
>>> make[2]: *** [check] Aborted
>>> make[2]: Leaving directory
>>> `/home/mloskot/dev/wktraster/_svn/trunk/test/core'
>>> make[1]: *** [check] Error 2
>>> make[1]: Leaving directory `/home/mloskot/dev/wktraster/_svn/trunk/test'
>>> make: *** [check] Error 2
>>>
>>> The assertion is serious and happens in crucial function.
>>> I checked and the last healthy revision seems to be r5811.
>>>
>>> Pierre, Jorge, could you re-validate your recent commits?
>>> You do run "make check" before every commit, don't you?
>>>
>>> Best regards,
>>> --
>>> Mateusz Loskot, http://mateusz.loskot.net
>>> _______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. Thanks for the fix, Pierre. But I'm getting a Segmentation Fault. caused by

memcpy(raster->bands[i], oldbands[oldi++], sizeof(rt_band));

(rt_core/rt_api.c, line 1351)

in Ubuntu Linux. Anyone else?

On Mon, Aug 23, 2010 at 4:53 PM, Pierre Racine
<> wrote:
> fixed in r5864
>
> Sorry for that. Probably forgot to make check.
>
> Pierre
>
>>-----Original Message-----
>>From: postgis-devel- [mailto:postgis-devel-
>>] On Behalf Of Pierre Racine
>>Sent: 23 août 2010 09:24
>>To: PostGIS Development Discussion
>>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>>
>>Probably my fault. Double check...
>>
>>Pierre
>>
>>>-----Original Message-----
>>>From: postgis-devel- [mailto:postgis-devel-
>>>] On Behalf Of Jorge Arévalo
>>>Sent: 23 août 2010 07:39
>>>To: PostGIS Development Discussion
>>>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>>>
>>>On Mon, Aug 23, 2010 at 1:04 PM, Mateusz Loskot <> wrote:
>>>> Hi,
>>>>
>>>> I've noticed current revision of WKT Raster is broken.
>>>> Running the core tests for r5841 ends up with assertion and
>>>> load of warnings:
>>>>
>>>> ./testapi
>>>> 1111 pixtype = 2
>>>> Raster starts with 0 bands
>>>> First point on convexhull ring is 0.5,0.5
>>>> Second point on convexhull ring is 256.5,1280.5
>>>> Third point on convexhull ring is 1280.5,1536.5
>>>> Fourth point on convexhull ring is 1024.5,256.5
>>>> Fifth point on convexhull ring is 0.5,0.5
>>>> Testing polygonize function
>>>> Testing 1BB band
>>>> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 2
>>>> to 0
>>>> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 3
>>>> to 1
>>>> WARNING: Pixel value for 1BB band got truncated from 2 to 0
>>>> WARNING: Pixel value for 1BB band got truncated from 3 to 1
>>>> Testing 2BB band
>>>> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 4
>>>> to 0
>>>> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 5
>>>> to 1
>>>> WARNING: Pixel value for 2BUI band got truncated from 4 to 0
>>>> WARNING: Pixel value for 2BUI band got truncated from 5 to 1
>>>> Testing 4BUI band
>>>> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
>>>> 16 to 0
>>>> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
>>>> 17 to 1
>>>> WARNING: Pixel value for 4BUI band got truncated from 35 to 3
>>>> Testing 8BUI band
>>>> WARNING: rt_band_set_nodata: NODATA value for 8BUI band got truncated from
>>>> 256 to 0
>>>> WARNING: Pixel value for 8BUI band got truncated from 256 to 0
>>>> Testing 8BSI band
>>>> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
>>>> -129 to 127
>>>> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
>>>> 129 to -127
>>>> WARNING: Pixel value for 8BSI band got truncated from -129 to 127
>>>> WARNING: Pixel value for 8BSI band got truncated from 129 to -127
>>>> Testing 16BSI band
>>>> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
>>>> -32769 to 32767
>>>> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
>>>> 32769 to -32767
>>>> WARNING: Pixel value for 16BSI band got truncated from -32769 to 32767
>>>> WARNING: Pixel value for 16BSI band got truncated from 32769 to -32767
>>>> ERROR: Coordinates ouf of range
>>>> Testing 16BUI band
>>>> WARNING: rt_band_set_nodata: NODATA value for 16BUI band got truncated from
>>>> 65536 to 0
>>>> WARNING: Pixel value for 16BUI band got truncated from 65536 to 0
>>>> ERROR: Coordinates ouf of range
>>>> Testing 32BUI band
>>>> WARNING: rt_band_set_nodata: NODATA value for 32BUI band got truncated from
>>>> 4.29497e+09 to 0
>>>> WARNING: Pixel value for 32BUI band got truncated from 4.29497e+09 to 0
>>>> ERROR: Coordinates ouf of range
>>>> Testing 32BSI band
>>>> WARNING: rt_band_set_nodata: NODATA value for 32BSI band got truncated from
>>>> 2.14748e+09 to -2.14748e+09
>>>> WARNING: Pixel value for 32BSI band got truncated from 2.14748e+09 to
>>>> -2.14748e+09
>>>> ERROR: Coordinates ouf of range
>>>> Testing 32BF band
>>>> Testing 64BF band
>>>> Testing band hasnodata flag
>>>> testapi: rt_api.c:545: rt_band_get_data: Assertion `((void *)0) != band'
>>>> failed.
>>>> make[2]: *** [check] Aborted
>>>> make[2]: Leaving directory
>>>> `/home/mloskot/dev/wktraster/_svn/trunk/test/core'
>>>> make[1]: *** [check] Error 2
>>>> make[1]: Leaving directory `/home/mloskot/dev/wktraster/_svn/trunk/test'
>>>> make: *** [check] Error 2
>>>>
>>>> The assertion is serious and happens in crucial function.
>>>> I checked and the last healthy revision seems to be r5811.
>>>>
>>>> Pierre, Jorge, could you re-validate your recent commits?
>>>> You do run "make check" before every commit, don't you?
>>>>
>>>> Best regards,
>>>> --
>>>> Mateusz Loskot, http://mateusz.loskot.net
>>>> _______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. On 23/08/10 17:23, Jorge Arévalo wrote:
> Thanks for the fix, Pierre. But I'm getting a Segmentation Fault. caused by
>
> memcpy(raster->bands[i], oldbands[oldi++], sizeof(rt_band));
>
> (rt_core/rt_api.c, line 1351)
>
> in Ubuntu Linux. Anyone else?

I've quickly checked running make check and I confirm this issue.
Getting segmentation fault too.

Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. On Mon, Aug 23, 2010 at 11:11 PM, Pierre Racine
<> wrote:
> Could you test the last one. Thanks. Sorry for that my C is a bit rusty.
>
> Pierre
>

OK. make check is working fine for me now.

Jorge

>>-----Original Message-----
>>From: postgis-devel- [mailto:postgis-devel-
>>] On Behalf Of Mateusz Loskot
>>Sent: 23 août 2010 12:50
>>To: postgis-
>>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>>
>>On 23/08/10 17:23, Jorge Arévalo wrote:
>>> Thanks for the fix, Pierre. But I'm getting a Segmentation Fault. caused by
>>>
>>> memcpy(raster->bands[i], oldbands[oldi++], sizeof(rt_band));
>>>
>>> (rt_core/rt_api.c, line 1351)
>>>
>>> in Ubuntu Linux. Anyone else?
>>
>>I've quickly checked running make check and I confirm this issue.
>>Getting segmentation fault too.
>>
>>Best regards,
>>--
>>Mateusz Loskot, http://mateusz.loskot.net
>>_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. On 24/08/10 10:39, Jorge Arévalo wrote:
> On Mon, Aug 23, 2010 at 11:11 PM, Pierre Racine
> <> wrote:
>> Could you test the last one. Thanks. Sorry for that my C is a bit rusty.
>
> OK. make check is working fine for me now.

Works for me too, however regression test is failing:L


mloskot@vb-ubuntu910-x64:~/dev/wktraster/_svn/trunk$ make post-install-check

...
Creating spatial db rtpostgis_reg
TMPDIR is /tmp/rtpgis_reg_4435

PostgreSQL 8.4.4 on x86_64-pc-linux-gnu, compiled by GCC gcc-4.4.real
(Ubuntu 4.4.3-4ubuntu5) 4.4.3, 64-bit
Postgis 2.0.0SVN - 2010-08-04 11:37:17
GEOS: 3.3.0-CAPI-1.7.0
PROJ: Rel. 4.7.1, 23 September 2009
WKTRaster 0.1.6d - 2010-08-24 09:14:21

Running tests

check_raster_columns. ok
check_raster_overviews. ok
rt_io. ok
create_rt_bytea_test. ok
rt_bytea. ok
create_rt_box2d_test. ok
rt_box2d. ok
rt_addband. failed (diff expected obtained:
/tmp/rtpgis_reg_4435/test_8_diff)
create_rt_properties_test. ok
rt_dimensions. ok
rt_pixelsize. ok
rt_upperleft. ok
rt_rotation. ok
rt_georeference. ok
rt_set_properties. ok
create_rt_band_properties_test. ok
rt_band_properties. ok
rt_set_band_properties. ok
rt_pixelvalue. ok
create_rt_utility_test. ok
rt_utility. ok
create_rt_gist_test. ok
rt_above. ok
rt_below. ok
rt_contained. ok
rt_contain. ok
rt_left. ok
rt_overabove. ok
rt_overbelow. ok
rt_overlap. ok
rt_overleft. ok
rt_overright. ok
rt_right. ok
rt_same. ok
rt_spatial_relationship. ok
bug_test_car5. ok

Run tests: 36
Failed: 1
make[2]: Leaving directory
`/home/mloskot/dev/wktraster/_svn/trunk/test/regress'
make[1]: Leaving directory `/home/mloskot/dev/wktraster/_svn/trunk/test'
mloskot@vb-ubuntu910-x64:~/dev/wktraster/_svn/trunk$ cat
/tmp/rtpgis_reg_4435/test_8_diff
*** rt_addband_expected 2010-08-23 16:51:59.000000000 +0100
--- /tmp/rtpgis_reg_4435/test_8_out 2010-08-24 10:15:19.000000000 +0100
***************
*** 45,52 ****
154
WARNING: Initial pixel value for 8BUI band got truncated from
256.000000 to 255
255
! WARNING: Initial pixel value for 16BSI band got truncated from
-32769.000000 to -32768
! -32768
-32768
0
32767
--- 45,52 ----
154
WARNING: Initial pixel value for 8BUI band got truncated from
256.000000 to 255
255
! WARNING: Initial pixel value for 16BSI band got truncated from
-32769.000000 to 32767
! 32767
-32768
0
32767
***************
*** 54,61 ****
-32768
WARNING: Initial pixel value for 16BSI band got truncated from
21.460000 to 21
21
! WARNING: Initial pixel value for 16BSI band got truncated from
210000.460000 to -32768
! -32768
WARNING: Initial pixel value for 16BUI band got truncated from
-1.000000 to 65535
65535
0
--- 54,61 ----
-32768
WARNING: Initial pixel value for 16BSI band got truncated from
21.460000 to 21
21
! WARNING: Initial pixel value for 16BSI band got truncated from
210000.460000 to 13392
! 13392
WARNING: Initial pixel value for 16BUI band got truncated from
-1.000000 to 65535
65535
0
mloskot@vb-ubuntu910-x64:~/dev/wktraster/_svn/trunk$


Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. make post-install-check works for me too... Maybe is a problem with
PostGIS/GEOS/PROJ versions... here my versions

PostgreSQL 8.4.4 on i486-pc-linux-gnu, compiled by GCC gcc-4.4.real
(Ubuntu 4.4.1-4ubuntu8) 4.4.1, 32-bit
Postgis 1.4.2 - 2010-08-05 17:36:12
GEOS: 3.3.0-CAPI-1.6.1
PROJ: Rel. 4.7.1, 23 September 2009
WKTRaster 0.1.6d - 2010-08-18 13:49:03

I'll do the test with a newer version of postgis (2.0.0SVN, like you,
for example).

A minor issue: the rtpostgis_reg database created for postinstall
check is not deleted by default. Mateusz, did you change it for any
reason? (r5822 was the previous version)

2010/8/24 Mateusz Loskot <>:
> On 24/08/10 10:39, Jorge Arévalo wrote:
>>
>> On Mon, Aug 23, 2010 at 11:11 PM, Pierre Racine
>> <>  wrote:
>>>
>>> Could you test the last one. Thanks. Sorry for that my C is a bit rusty.
>>
>> OK. make check is working fine for me now.
>
> Works for me too, however regression test is failing:L
>
>
> mloskot@vb-ubuntu910-x64:~/dev/wktraster/_svn/trunk$ make post-install-check
>
> ...
> Creating spatial db rtpostgis_reg
> TMPDIR is /tmp/rtpgis_reg_4435
>
>  PostgreSQL 8.4.4 on x86_64-pc-linux-gnu, compiled by GCC gcc-4.4.real
> (Ubuntu 4.4.3-4ubuntu5) 4.4.3, 64-bit
>  Postgis 2.0.0SVN - 2010-08-04 11:37:17
>   GEOS: 3.3.0-CAPI-1.7.0
>   PROJ: Rel. 4.7.1, 23 September 2009
>  WKTRaster 0.1.6d - 2010-08-24 09:14:21
>
> Running tests
>
>  check_raster_columns. ok
>  check_raster_overviews. ok
>  rt_io. ok
>  create_rt_bytea_test. ok
>  rt_bytea. ok
>  create_rt_box2d_test. ok
>  rt_box2d. ok
>  rt_addband. failed (diff expected obtained:
> /tmp/rtpgis_reg_4435/test_8_diff)
>  create_rt_properties_test. ok
>  rt_dimensions. ok
>  rt_pixelsize. ok
>  rt_upperleft. ok
>  rt_rotation. ok
>  rt_georeference. ok
>  rt_set_properties. ok
>  create_rt_band_properties_test. ok
>  rt_band_properties. ok
>  rt_set_band_properties. ok
>  rt_pixelvalue. ok
>  create_rt_utility_test. ok
>  rt_utility. ok
>  create_rt_gist_test. ok
>  rt_above. ok
>  rt_below. ok
>  rt_contained. ok
>  rt_contain. ok
>  rt_left. ok
>  rt_overabove. ok
>  rt_overbelow. ok
>  rt_overlap. ok
>  rt_overleft. ok
>  rt_overright. ok
>  rt_right. ok
>  rt_same. ok
>  rt_spatial_relationship. ok
>  bug_test_car5. ok
>
> Run tests: 36
> Failed: 1
> make[2]: Leaving directory
> `/home/mloskot/dev/wktraster/_svn/trunk/test/regress'
> make[1]: Leaving directory `/home/mloskot/dev/wktraster/_svn/trunk/test'
> mloskot@vb-ubuntu910-x64:~/dev/wktraster/_svn/trunk$ cat
> /tmp/rtpgis_reg_4435/test_8_diff
> *** rt_addband_expected 2010-08-23 16:51:59.000000000 +0100
> --- /tmp/rtpgis_reg_4435/test_8_out     2010-08-24 10:15:19.000000000 +0100
> ***************
> *** 45,52 ****
>  154
>  WARNING:  Initial pixel value for 8BUI band got truncated from 256.000000
> to 255
>  255
> ! WARNING:  Initial pixel value for 16BSI band got truncated from
> -32769.000000 to -32768
> ! -32768
>  -32768
>  0
>  32767
> --- 45,52 ----
>  154
>  WARNING:  Initial pixel value for 8BUI band got truncated from 256.000000
> to 255
>  255
> ! WARNING:  Initial pixel value for 16BSI band got truncated from
> -32769.000000 to 32767
> ! 32767
>  -32768
>  0
>  32767
> ***************
> *** 54,61 ****
>  -32768
>  WARNING:  Initial pixel value for 16BSI band got truncated from 21.460000
> to 21
>  21
> ! WARNING:  Initial pixel value for 16BSI band got truncated from
> 210000.460000 to -32768
> ! -32768
>  WARNING:  Initial pixel value for 16BUI band got truncated from -1.000000
> to 65535
>  65535
>  0
> --- 54,61 ----
>  -32768
>  WARNING:  Initial pixel value for 16BSI band got truncated from 21.460000
> to 21
>  21
> ! WARNING:  Initial pixel value for 16BSI band got truncated from
> 210000.460000 to 13392
> ! 13392
>  WARNING:  Initial pixel value for 16BUI band got truncated from -1.000000
> to 65535
>  65535
>  0
> mloskot@vb-ubuntu910-x64:~/dev/wktraster/_svn/trunk$
>
>
> Best regards,
> --
> Mateusz Loskot, http://mateusz.loskot.net
>



--
Jorge Arévalo
DEIMOS Space
Internet & Mobilty Division
Ronda de Poniente 19. Edificio Fiteni VI, portal 2, 2º
28760 Tres Cantos (Madrid)


http://gis4free.wordpress.com
_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe.

  #10  
24-08-2010 11:21 AM
PostGIS : postgis-devel member admin is online now
User
 

Hi,

I've noticed current revision of WKT Raster is broken.
Running the core tests for r5841 ends up with assertion and
load of warnings:

./testapi
1111 pixtype = 2
Raster starts with 0 bands
First point on convexhull ring is 0.5,0.5
Second point on convexhull ring is 256.5,1280.5
Third point on convexhull ring is 1280.5,1536.5
Fourth point on convexhull ring is 1024.5,256.5
Fifth point on convexhull ring is 0.5,0.5
Testing polygonize function
Testing 1BB band
WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated
from 2 to 0
WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated
from 3 to 1
WARNING: Pixel value for 1BB band got truncated from 2 to 0
WARNING: Pixel value for 1BB band got truncated from 3 to 1
Testing 2BB band
WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated
from 4 to 0
WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated
from 5 to 1
WARNING: Pixel value for 2BUI band got truncated from 4 to 0
WARNING: Pixel value for 2BUI band got truncated from 5 to 1
Testing 4BUI band
WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated
from 16 to 0
WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated
from 17 to 1
WARNING: Pixel value for 4BUI band got truncated from 35 to 3
Testing 8BUI band
WARNING: rt_band_set_nodata: NODATA value for 8BUI band got truncated
from 256 to 0
WARNING: Pixel value for 8BUI band got truncated from 256 to 0
Testing 8BSI band
WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated
from -129 to 127
WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated
from 129 to -127
WARNING: Pixel value for 8BSI band got truncated from -129 to 127
WARNING: Pixel value for 8BSI band got truncated from 129 to -127
Testing 16BSI band
WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated
from -32769 to 32767
WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated
from 32769 to -32767
WARNING: Pixel value for 16BSI band got truncated from -32769 to 32767
WARNING: Pixel value for 16BSI band got truncated from 32769 to -32767
ERROR: Coordinates ouf of range
Testing 16BUI band
WARNING: rt_band_set_nodata: NODATA value for 16BUI band got truncated
from 65536 to 0
WARNING: Pixel value for 16BUI band got truncated from 65536 to 0
ERROR: Coordinates ouf of range
Testing 32BUI band
WARNING: rt_band_set_nodata: NODATA value for 32BUI band got truncated
from 4.29497e+09 to 0
WARNING: Pixel value for 32BUI band got truncated from 4.29497e+09 to 0
ERROR: Coordinates ouf of range
Testing 32BSI band
WARNING: rt_band_set_nodata: NODATA value for 32BSI band got truncated
from 2.14748e+09 to -2.14748e+09
WARNING: Pixel value for 32BSI band got truncated from 2.14748e+09 to
-2.14748e+09
ERROR: Coordinates ouf of range
Testing 32BF band
Testing 64BF band
Testing band hasnodata flag
testapi: rt_api.c:545: rt_band_get_data: Assertion `((void *)0) != band'
failed.
make[2]: *** [check] Aborted
make[2]: Leaving directory
`/home/mloskot/dev/wktraster/_svn/trunk/test/core'
make[1]: *** [check] Error 2
make[1]: Leaving directory `/home/mloskot/dev/wktraster/_svn/trunk/test'
make: *** [check] Error 2

The assertion is serious and happens in crucial function.
I checked and the last healthy revision seems to be r5811.

Pierre, Jorge, could you re-validate your recent commits?
You do run "make check" before every commit, don't you?

Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. On Mon, Aug 23, 2010 at 1:04 PM, Mateusz Loskot <> wrote:
> Hi,
>
> I've noticed current revision of WKT Raster is broken.
> Running the core tests for r5841 ends up with assertion and
> load of warnings:
>
> ./testapi
> 1111 pixtype = 2
> Raster starts with 0 bands
> First point on convexhull ring is 0.5,0.5
> Second point on convexhull ring is 256.5,1280.5
> Third point on convexhull ring is 1280.5,1536.5
> Fourth point on convexhull ring is 1024.5,256.5
> Fifth point on convexhull ring is 0.5,0.5
> Testing polygonize function
> Testing 1BB band
> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 2
> to 0
> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 3
> to 1
> WARNING: Pixel value for 1BB band got truncated from 2 to 0
> WARNING: Pixel value for 1BB band got truncated from 3 to 1
> Testing 2BB band
> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 4
> to 0
> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 5
> to 1
> WARNING: Pixel value for 2BUI band got truncated from 4 to 0
> WARNING: Pixel value for 2BUI band got truncated from 5 to 1
> Testing 4BUI band
> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
> 16 to 0
> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
> 17 to 1
> WARNING: Pixel value for 4BUI band got truncated from 35 to 3
> Testing 8BUI band
> WARNING: rt_band_set_nodata: NODATA value for 8BUI band got truncated from
> 256 to 0
> WARNING: Pixel value for 8BUI band got truncated from 256 to 0
> Testing 8BSI band
> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
> -129 to 127
> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
> 129 to -127
> WARNING: Pixel value for 8BSI band got truncated from -129 to 127
> WARNING: Pixel value for 8BSI band got truncated from 129 to -127
> Testing 16BSI band
> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
> -32769 to 32767
> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
> 32769 to -32767
> WARNING: Pixel value for 16BSI band got truncated from -32769 to 32767
> WARNING: Pixel value for 16BSI band got truncated from 32769 to -32767
> ERROR: Coordinates ouf of range
> Testing 16BUI band
> WARNING: rt_band_set_nodata: NODATA value for 16BUI band got truncated from
> 65536 to 0
> WARNING: Pixel value for 16BUI band got truncated from 65536 to 0
> ERROR: Coordinates ouf of range
> Testing 32BUI band
> WARNING: rt_band_set_nodata: NODATA value for 32BUI band got truncated from
> 4.29497e+09 to 0
> WARNING: Pixel value for 32BUI band got truncated from 4.29497e+09 to 0
> ERROR: Coordinates ouf of range
> Testing 32BSI band
> WARNING: rt_band_set_nodata: NODATA value for 32BSI band got truncated from
> 2.14748e+09 to -2.14748e+09
> WARNING: Pixel value for 32BSI band got truncated from 2.14748e+09 to
> -2.14748e+09
> ERROR: Coordinates ouf of range
> Testing 32BF band
> Testing 64BF band
> Testing band hasnodata flag
> testapi: rt_api.c:545: rt_band_get_data: Assertion `((void *)0) != band'
> failed.
> make[2]: *** [check] Aborted
> make[2]: Leaving directory
> `/home/mloskot/dev/wktraster/_svn/trunk/test/core'
> make[1]: *** [check] Error 2
> make[1]: Leaving directory `/home/mloskot/dev/wktraster/_svn/trunk/test'
> make: *** [check] Error 2
>
> The assertion is serious and happens in crucial function.
> I checked and the last healthy revision seems to be r5811.
>
> Pierre, Jorge, could you re-validate your recent commits?
> You do run "make check" before every commit, don't you?
>
> Best regards,
> --
> Mateusz Loskot, http://mateusz.loskot.net
> _______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. Probably my fault. Double check...

Pierre

>-----Original Message-----
>From: postgis-devel- [mailto:postgis-devel-
>] On Behalf Of Jorge Arévalo
>Sent: 23 août 2010 07:39
>To: PostGIS Development Discussion
>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>
>On Mon, Aug 23, 2010 at 1:04 PM, Mateusz Loskot <> wrote:
>> Hi,
>>
>> I've noticed current revision of WKT Raster is broken.
>> Running the core tests for r5841 ends up with assertion and
>> load of warnings:
>>
>> ./testapi
>> 1111 pixtype = 2
>> Raster starts with 0 bands
>> First point on convexhull ring is 0.5,0.5
>> Second point on convexhull ring is 256.5,1280.5
>> Third point on convexhull ring is 1280.5,1536.5
>> Fourth point on convexhull ring is 1024.5,256.5
>> Fifth point on convexhull ring is 0.5,0.5
>> Testing polygonize function
>> Testing 1BB band
>> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 2
>> to 0
>> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 3
>> to 1
>> WARNING: Pixel value for 1BB band got truncated from 2 to 0
>> WARNING: Pixel value for 1BB band got truncated from 3 to 1
>> Testing 2BB band
>> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 4
>> to 0
>> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 5
>> to 1
>> WARNING: Pixel value for 2BUI band got truncated from 4 to 0
>> WARNING: Pixel value for 2BUI band got truncated from 5 to 1
>> Testing 4BUI band
>> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
>> 16 to 0
>> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
>> 17 to 1
>> WARNING: Pixel value for 4BUI band got truncated from 35 to 3
>> Testing 8BUI band
>> WARNING: rt_band_set_nodata: NODATA value for 8BUI band got truncated from
>> 256 to 0
>> WARNING: Pixel value for 8BUI band got truncated from 256 to 0
>> Testing 8BSI band
>> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
>> -129 to 127
>> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
>> 129 to -127
>> WARNING: Pixel value for 8BSI band got truncated from -129 to 127
>> WARNING: Pixel value for 8BSI band got truncated from 129 to -127
>> Testing 16BSI band
>> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
>> -32769 to 32767
>> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
>> 32769 to -32767
>> WARNING: Pixel value for 16BSI band got truncated from -32769 to 32767
>> WARNING: Pixel value for 16BSI band got truncated from 32769 to -32767
>> ERROR: Coordinates ouf of range
>> Testing 16BUI band
>> WARNING: rt_band_set_nodata: NODATA value for 16BUI band got truncated from
>> 65536 to 0
>> WARNING: Pixel value for 16BUI band got truncated from 65536 to 0
>> ERROR: Coordinates ouf of range
>> Testing 32BUI band
>> WARNING: rt_band_set_nodata: NODATA value for 32BUI band got truncated from
>> 4.29497e+09 to 0
>> WARNING: Pixel value for 32BUI band got truncated from 4.29497e+09 to 0
>> ERROR: Coordinates ouf of range
>> Testing 32BSI band
>> WARNING: rt_band_set_nodata: NODATA value for 32BSI band got truncated from
>> 2.14748e+09 to -2.14748e+09
>> WARNING: Pixel value for 32BSI band got truncated from 2.14748e+09 to
>> -2.14748e+09
>> ERROR: Coordinates ouf of range
>> Testing 32BF band
>> Testing 64BF band
>> Testing band hasnodata flag
>> testapi: rt_api.c:545: rt_band_get_data: Assertion `((void *)0) != band'
>> failed.
>> make[2]: *** [check] Aborted
>> make[2]: Leaving directory
>> `/home/mloskot/dev/wktraster/_svn/trunk/test/core'
>> make[1]: *** [check] Error 2
>> make[1]: Leaving directory `/home/mloskot/dev/wktraster/_svn/trunk/test'
>> make: *** [check] Error 2
>>
>> The assertion is serious and happens in crucial function.
>> I checked and the last healthy revision seems to be r5811.
>>
>> Pierre, Jorge, could you re-validate your recent commits?
>> You do run "make check" before every commit, don't you?
>>
>> Best regards,
>> --
>> Mateusz Loskot, http://mateusz.loskot.net
>> _______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. fixed in r5864

Sorry for that. Probably forgot to make check.

Pierre

>-----Original Message-----
>From: postgis-devel- [mailto:postgis-devel-
>] On Behalf Of Pierre Racine
>Sent: 23 août 2010 09:24
>To: PostGIS Development Discussion
>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>
>Probably my fault. Double check...
>
>Pierre
>
>>-----Original Message-----
>>From: postgis-devel- [mailto:postgis-devel-
>>] On Behalf Of Jorge Arévalo
>>Sent: 23 août 2010 07:39
>>To: PostGIS Development Discussion
>>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>>
>>On Mon, Aug 23, 2010 at 1:04 PM, Mateusz Loskot <> wrote:
>>> Hi,
>>>
>>> I've noticed current revision of WKT Raster is broken.
>>> Running the core tests for r5841 ends up with assertion and
>>> load of warnings:
>>>
>>> ./testapi
>>> 1111 pixtype = 2
>>> Raster starts with 0 bands
>>> First point on convexhull ring is 0.5,0.5
>>> Second point on convexhull ring is 256.5,1280.5
>>> Third point on convexhull ring is 1280.5,1536.5
>>> Fourth point on convexhull ring is 1024.5,256.5
>>> Fifth point on convexhull ring is 0.5,0.5
>>> Testing polygonize function
>>> Testing 1BB band
>>> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 2
>>> to 0
>>> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 3
>>> to 1
>>> WARNING: Pixel value for 1BB band got truncated from 2 to 0
>>> WARNING: Pixel value for 1BB band got truncated from 3 to 1
>>> Testing 2BB band
>>> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 4
>>> to 0
>>> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 5
>>> to 1
>>> WARNING: Pixel value for 2BUI band got truncated from 4 to 0
>>> WARNING: Pixel value for 2BUI band got truncated from 5 to 1
>>> Testing 4BUI band
>>> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
>>> 16 to 0
>>> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
>>> 17 to 1
>>> WARNING: Pixel value for 4BUI band got truncated from 35 to 3
>>> Testing 8BUI band
>>> WARNING: rt_band_set_nodata: NODATA value for 8BUI band got truncated from
>>> 256 to 0
>>> WARNING: Pixel value for 8BUI band got truncated from 256 to 0
>>> Testing 8BSI band
>>> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
>>> -129 to 127
>>> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
>>> 129 to -127
>>> WARNING: Pixel value for 8BSI band got truncated from -129 to 127
>>> WARNING: Pixel value for 8BSI band got truncated from 129 to -127
>>> Testing 16BSI band
>>> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
>>> -32769 to 32767
>>> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
>>> 32769 to -32767
>>> WARNING: Pixel value for 16BSI band got truncated from -32769 to 32767
>>> WARNING: Pixel value for 16BSI band got truncated from 32769 to -32767
>>> ERROR: Coordinates ouf of range
>>> Testing 16BUI band
>>> WARNING: rt_band_set_nodata: NODATA value for 16BUI band got truncated from
>>> 65536 to 0
>>> WARNING: Pixel value for 16BUI band got truncated from 65536 to 0
>>> ERROR: Coordinates ouf of range
>>> Testing 32BUI band
>>> WARNING: rt_band_set_nodata: NODATA value for 32BUI band got truncated from
>>> 4.29497e+09 to 0
>>> WARNING: Pixel value for 32BUI band got truncated from 4.29497e+09 to 0
>>> ERROR: Coordinates ouf of range
>>> Testing 32BSI band
>>> WARNING: rt_band_set_nodata: NODATA value for 32BSI band got truncated from
>>> 2.14748e+09 to -2.14748e+09
>>> WARNING: Pixel value for 32BSI band got truncated from 2.14748e+09 to
>>> -2.14748e+09
>>> ERROR: Coordinates ouf of range
>>> Testing 32BF band
>>> Testing 64BF band
>>> Testing band hasnodata flag
>>> testapi: rt_api.c:545: rt_band_get_data: Assertion `((void *)0) != band'
>>> failed.
>>> make[2]: *** [check] Aborted
>>> make[2]: Leaving directory
>>> `/home/mloskot/dev/wktraster/_svn/trunk/test/core'
>>> make[1]: *** [check] Error 2
>>> make[1]: Leaving directory `/home/mloskot/dev/wktraster/_svn/trunk/test'
>>> make: *** [check] Error 2
>>>
>>> The assertion is serious and happens in crucial function.
>>> I checked and the last healthy revision seems to be r5811.
>>>
>>> Pierre, Jorge, could you re-validate your recent commits?
>>> You do run "make check" before every commit, don't you?
>>>
>>> Best regards,
>>> --
>>> Mateusz Loskot, http://mateusz.loskot.net
>>> _______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. Thanks for the fix, Pierre. But I'm getting a Segmentation Fault. caused by

memcpy(raster->bands[i], oldbands[oldi++], sizeof(rt_band));

(rt_core/rt_api.c, line 1351)

in Ubuntu Linux. Anyone else?

On Mon, Aug 23, 2010 at 4:53 PM, Pierre Racine
<> wrote:
> fixed in r5864
>
> Sorry for that. Probably forgot to make check.
>
> Pierre
>
>>-----Original Message-----
>>From: postgis-devel- [mailto:postgis-devel-
>>] On Behalf Of Pierre Racine
>>Sent: 23 août 2010 09:24
>>To: PostGIS Development Discussion
>>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>>
>>Probably my fault. Double check...
>>
>>Pierre
>>
>>>-----Original Message-----
>>>From: postgis-devel- [mailto:postgis-devel-
>>>] On Behalf Of Jorge Arévalo
>>>Sent: 23 août 2010 07:39
>>>To: PostGIS Development Discussion
>>>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>>>
>>>On Mon, Aug 23, 2010 at 1:04 PM, Mateusz Loskot <> wrote:
>>>> Hi,
>>>>
>>>> I've noticed current revision of WKT Raster is broken.
>>>> Running the core tests for r5841 ends up with assertion and
>>>> load of warnings:
>>>>
>>>> ./testapi
>>>> 1111 pixtype = 2
>>>> Raster starts with 0 bands
>>>> First point on convexhull ring is 0.5,0.5
>>>> Second point on convexhull ring is 256.5,1280.5
>>>> Third point on convexhull ring is 1280.5,1536.5
>>>> Fourth point on convexhull ring is 1024.5,256.5
>>>> Fifth point on convexhull ring is 0.5,0.5
>>>> Testing polygonize function
>>>> Testing 1BB band
>>>> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 2
>>>> to 0
>>>> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 3
>>>> to 1
>>>> WARNING: Pixel value for 1BB band got truncated from 2 to 0
>>>> WARNING: Pixel value for 1BB band got truncated from 3 to 1
>>>> Testing 2BB band
>>>> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 4
>>>> to 0
>>>> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 5
>>>> to 1
>>>> WARNING: Pixel value for 2BUI band got truncated from 4 to 0
>>>> WARNING: Pixel value for 2BUI band got truncated from 5 to 1
>>>> Testing 4BUI band
>>>> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
>>>> 16 to 0
>>>> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
>>>> 17 to 1
>>>> WARNING: Pixel value for 4BUI band got truncated from 35 to 3
>>>> Testing 8BUI band
>>>> WARNING: rt_band_set_nodata: NODATA value for 8BUI band got truncated from
>>>> 256 to 0
>>>> WARNING: Pixel value for 8BUI band got truncated from 256 to 0
>>>> Testing 8BSI band
>>>> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
>>>> -129 to 127
>>>> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
>>>> 129 to -127
>>>> WARNING: Pixel value for 8BSI band got truncated from -129 to 127
>>>> WARNING: Pixel value for 8BSI band got truncated from 129 to -127
>>>> Testing 16BSI band
>>>> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
>>>> -32769 to 32767
>>>> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
>>>> 32769 to -32767
>>>> WARNING: Pixel value for 16BSI band got truncated from -32769 to 32767
>>>> WARNING: Pixel value for 16BSI band got truncated from 32769 to -32767
>>>> ERROR: Coordinates ouf of range
>>>> Testing 16BUI band
>>>> WARNING: rt_band_set_nodata: NODATA value for 16BUI band got truncated from
>>>> 65536 to 0
>>>> WARNING: Pixel value for 16BUI band got truncated from 65536 to 0
>>>> ERROR: Coordinates ouf of range
>>>> Testing 32BUI band
>>>> WARNING: rt_band_set_nodata: NODATA value for 32BUI band got truncated from
>>>> 4.29497e+09 to 0
>>>> WARNING: Pixel value for 32BUI band got truncated from 4.29497e+09 to 0
>>>> ERROR: Coordinates ouf of range
>>>> Testing 32BSI band
>>>> WARNING: rt_band_set_nodata: NODATA value for 32BSI band got truncated from
>>>> 2.14748e+09 to -2.14748e+09
>>>> WARNING: Pixel value for 32BSI band got truncated from 2.14748e+09 to
>>>> -2.14748e+09
>>>> ERROR: Coordinates ouf of range
>>>> Testing 32BF band
>>>> Testing 64BF band
>>>> Testing band hasnodata flag
>>>> testapi: rt_api.c:545: rt_band_get_data: Assertion `((void *)0) != band'
>>>> failed.
>>>> make[2]: *** [check] Aborted
>>>> make[2]: Leaving directory
>>>> `/home/mloskot/dev/wktraster/_svn/trunk/test/core'
>>>> make[1]: *** [check] Error 2
>>>> make[1]: Leaving directory `/home/mloskot/dev/wktraster/_svn/trunk/test'
>>>> make: *** [check] Error 2
>>>>
>>>> The assertion is serious and happens in crucial function.
>>>> I checked and the last healthy revision seems to be r5811.
>>>>
>>>> Pierre, Jorge, could you re-validate your recent commits?
>>>> You do run "make check" before every commit, don't you?
>>>>
>>>> Best regards,
>>>> --
>>>> Mateusz Loskot, http://mateusz.loskot.net
>>>> _______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. On 23/08/10 17:23, Jorge Arévalo wrote:
> Thanks for the fix, Pierre. But I'm getting a Segmentation Fault. caused by
>
> memcpy(raster->bands[i], oldbands[oldi++], sizeof(rt_band));
>
> (rt_core/rt_api.c, line 1351)
>
> in Ubuntu Linux. Anyone else?

I've quickly checked running make check and I confirm this issue.
Getting segmentation fault too.

Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. On Mon, Aug 23, 2010 at 11:11 PM, Pierre Racine
<> wrote:
> Could you test the last one. Thanks. Sorry for that my C is a bit rusty.
>
> Pierre
>

OK. make check is working fine for me now.

Jorge

>>-----Original Message-----
>>From: postgis-devel- [mailto:postgis-devel-
>>] On Behalf Of Mateusz Loskot
>>Sent: 23 août 2010 12:50
>>To: postgis-
>>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>>
>>On 23/08/10 17:23, Jorge Arévalo wrote:
>>> Thanks for the fix, Pierre. But I'm getting a Segmentation Fault. caused by
>>>
>>> memcpy(raster->bands[i], oldbands[oldi++], sizeof(rt_band));
>>>
>>> (rt_core/rt_api.c, line 1351)
>>>
>>> in Ubuntu Linux. Anyone else?
>>
>>I've quickly checked running make check and I confirm this issue.
>>Getting segmentation fault too.
>>
>>Best regards,
>>--
>>Mateusz Loskot, http://mateusz.loskot.net
>>_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. On 24/08/10 10:39, Jorge Arévalo wrote:
> On Mon, Aug 23, 2010 at 11:11 PM, Pierre Racine
> <> wrote:
>> Could you test the last one. Thanks. Sorry for that my C is a bit rusty.
>
> OK. make check is working fine for me now.

Works for me too, however regression test is failing:L


mloskot@vb-ubuntu910-x64:~/dev/wktraster/_svn/trunk$ make post-install-check

...
Creating spatial db rtpostgis_reg
TMPDIR is /tmp/rtpgis_reg_4435

PostgreSQL 8.4.4 on x86_64-pc-linux-gnu, compiled by GCC gcc-4.4.real
(Ubuntu 4.4.3-4ubuntu5) 4.4.3, 64-bit
Postgis 2.0.0SVN - 2010-08-04 11:37:17
GEOS: 3.3.0-CAPI-1.7.0
PROJ: Rel. 4.7.1, 23 September 2009
WKTRaster 0.1.6d - 2010-08-24 09:14:21

Running tests

check_raster_columns. ok
check_raster_overviews. ok
rt_io. ok
create_rt_bytea_test. ok
rt_bytea. ok
create_rt_box2d_test. ok
rt_box2d. ok
rt_addband. failed (diff expected obtained:
/tmp/rtpgis_reg_4435/test_8_diff)
create_rt_properties_test. ok
rt_dimensions. ok
rt_pixelsize. ok
rt_upperleft. ok
rt_rotation. ok
rt_georeference. ok
rt_set_properties. ok
create_rt_band_properties_test. ok
rt_band_properties. ok
rt_set_band_properties. ok
rt_pixelvalue. ok
create_rt_utility_test. ok
rt_utility. ok
create_rt_gist_test. ok
rt_above. ok
rt_below. ok
rt_contained. ok
rt_contain. ok
rt_left. ok
rt_overabove. ok
rt_overbelow. ok
rt_overlap. ok
rt_overleft. ok
rt_overright. ok
rt_right. ok
rt_same. ok
rt_spatial_relationship. ok
bug_test_car5. ok

Run tests: 36
Failed: 1
make[2]: Leaving directory
`/home/mloskot/dev/wktraster/_svn/trunk/test/regress'
make[1]: Leaving directory `/home/mloskot/dev/wktraster/_svn/trunk/test'
mloskot@vb-ubuntu910-x64:~/dev/wktraster/_svn/trunk$ cat
/tmp/rtpgis_reg_4435/test_8_diff
*** rt_addband_expected 2010-08-23 16:51:59.000000000 +0100
--- /tmp/rtpgis_reg_4435/test_8_out 2010-08-24 10:15:19.000000000 +0100
***************
*** 45,52 ****
154
WARNING: Initial pixel value for 8BUI band got truncated from
256.000000 to 255
255
! WARNING: Initial pixel value for 16BSI band got truncated from
-32769.000000 to -32768
! -32768
-32768
0
32767
--- 45,52 ----
154
WARNING: Initial pixel value for 8BUI band got truncated from
256.000000 to 255
255
! WARNING: Initial pixel value for 16BSI band got truncated from
-32769.000000 to 32767
! 32767
-32768
0
32767
***************
*** 54,61 ****
-32768
WARNING: Initial pixel value for 16BSI band got truncated from
21.460000 to 21
21
! WARNING: Initial pixel value for 16BSI band got truncated from
210000.460000 to -32768
! -32768
WARNING: Initial pixel value for 16BUI band got truncated from
-1.000000 to 65535
65535
0
--- 54,61 ----
-32768
WARNING: Initial pixel value for 16BSI band got truncated from
21.460000 to 21
21
! WARNING: Initial pixel value for 16BSI band got truncated from
210000.460000 to 13392
! 13392
WARNING: Initial pixel value for 16BUI band got truncated from
-1.000000 to 65535
65535
0
mloskot@vb-ubuntu910-x64:~/dev/wktraster/_svn/trunk$


Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. make post-install-check works for me too... Maybe is a problem with
PostGIS/GEOS/PROJ versions... here my versions

PostgreSQL 8.4.4 on i486-pc-linux-gnu, compiled by GCC gcc-4.4.real
(Ubuntu 4.4.1-4ubuntu8) 4.4.1, 32-bit
Postgis 1.4.2 - 2010-08-05 17:36:12
GEOS: 3.3.0-CAPI-1.6.1
PROJ: Rel. 4.7.1, 23 September 2009
WKTRaster 0.1.6d - 2010-08-18 13:49:03

I'll do the test with a newer version of postgis (2.0.0SVN, like you,
for example).

A minor issue: the rtpostgis_reg database created for postinstall
check is not deleted by default. Mateusz, did you change it for any
reason? (r5822 was the previous version)

2010/8/24 Mateusz Loskot <>:
> On 24/08/10 10:39, Jorge Arévalo wrote:
>>
>> On Mon, Aug 23, 2010 at 11:11 PM, Pierre Racine
>> <>  wrote:
>>>
>>> Could you test the last one. Thanks. Sorry for that my C is a bit rusty.
>>
>> OK. make check is working fine for me now.
>
> Works for me too, however regression test is failing:L
>
>
> mloskot@vb-ubuntu910-x64:~/dev/wktraster/_svn/trunk$ make post-install-check
>
> ...
> Creating spatial db rtpostgis_reg
> TMPDIR is /tmp/rtpgis_reg_4435
>
>  PostgreSQL 8.4.4 on x86_64-pc-linux-gnu, compiled by GCC gcc-4.4.real
> (Ubuntu 4.4.3-4ubuntu5) 4.4.3, 64-bit
>  Postgis 2.0.0SVN - 2010-08-04 11:37:17
>   GEOS: 3.3.0-CAPI-1.7.0
>   PROJ: Rel. 4.7.1, 23 September 2009
>  WKTRaster 0.1.6d - 2010-08-24 09:14:21
>
> Running tests
>
>  check_raster_columns. ok
>  check_raster_overviews. ok
>  rt_io. ok
>  create_rt_bytea_test. ok
>  rt_bytea. ok
>  create_rt_box2d_test. ok
>  rt_box2d. ok
>  rt_addband. failed (diff expected obtained:
> /tmp/rtpgis_reg_4435/test_8_diff)
>  create_rt_properties_test. ok
>  rt_dimensions. ok
>  rt_pixelsize. ok
>  rt_upperleft. ok
>  rt_rotation. ok
>  rt_georeference. ok
>  rt_set_properties. ok
>  create_rt_band_properties_test. ok
>  rt_band_properties. ok
>  rt_set_band_properties. ok
>  rt_pixelvalue. ok
>  create_rt_utility_test. ok
>  rt_utility. ok
>  create_rt_gist_test. ok
>  rt_above. ok
>  rt_below. ok
>  rt_contained. ok
>  rt_contain. ok
>  rt_left. ok
>  rt_overabove. ok
>  rt_overbelow. ok
>  rt_overlap. ok
>  rt_overleft. ok
>  rt_overright. ok
>  rt_right. ok
>  rt_same. ok
>  rt_spatial_relationship. ok
>  bug_test_car5. ok
>
> Run tests: 36
> Failed: 1
> make[2]: Leaving directory
> `/home/mloskot/dev/wktraster/_svn/trunk/test/regress'
> make[1]: Leaving directory `/home/mloskot/dev/wktraster/_svn/trunk/test'
> mloskot@vb-ubuntu910-x64:~/dev/wktraster/_svn/trunk$ cat
> /tmp/rtpgis_reg_4435/test_8_diff
> *** rt_addband_expected 2010-08-23 16:51:59.000000000 +0100
> --- /tmp/rtpgis_reg_4435/test_8_out     2010-08-24 10:15:19.000000000 +0100
> ***************
> *** 45,52 ****
>  154
>  WARNING:  Initial pixel value for 8BUI band got truncated from 256.000000
> to 255
>  255
> ! WARNING:  Initial pixel value for 16BSI band got truncated from
> -32769.000000 to -32768
> ! -32768
>  -32768
>  0
>  32767
> --- 45,52 ----
>  154
>  WARNING:  Initial pixel value for 8BUI band got truncated from 256.000000
> to 255
>  255
> ! WARNING:  Initial pixel value for 16BSI band got truncated from
> -32769.000000 to 32767
> ! 32767
>  -32768
>  0
>  32767
> ***************
> *** 54,61 ****
>  -32768
>  WARNING:  Initial pixel value for 16BSI band got truncated from 21.460000
> to 21
>  21
> ! WARNING:  Initial pixel value for 16BSI band got truncated from
> 210000.460000 to -32768
> ! -32768
>  WARNING:  Initial pixel value for 16BUI band got truncated from -1.000000
> to 65535
>  65535
>  0
> --- 54,61 ----
>  -32768
>  WARNING:  Initial pixel value for 16BSI band got truncated from 21.460000
> to 21
>  21
> ! WARNING:  Initial pixel value for 16BSI band got truncated from
> 210000.460000 to 13392
> ! 13392
>  WARNING:  Initial pixel value for 16BUI band got truncated from -1.000000
> to 65535
>  65535
>  0
> mloskot@vb-ubuntu910-x64:~/dev/wktraster/_svn/trunk$
>
>
> Best regards,
> --
> Mateusz Loskot, http://mateusz.loskot.net
>



--
Jorge Arévalo
DEIMOS Space
Internet & Mobilty Division
Ronda de Poniente 19. Edificio Fiteni VI, portal 2, 2º
28760 Tres Cantos (Madrid)


http://gis4free.wordpress.com
_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. On 24/08/10 11:08, Jorge Arévalo wrote:
> make post-install-check works for me too... Maybe is a problem with
> PostGIS/GEOS/PROJ versions... here my versions
>
> PostgreSQL 8.4.4 on i486-pc-linux-gnu, compiled by GCC gcc-4.4.real
> (Ubuntu 4.4.1-4ubuntu8) 4.4.1, 32-bit
> Postgis 1.4.2 - 2010-08-05 17:36:12
> GEOS: 3.3.0-CAPI-1.6.1
> PROJ: Rel. 4.7.1, 23 September 2009
> WKTRaster 0.1.6d - 2010-08-18 13:49:03
>
> I'll do the test with a newer version of postgis (2.0.0SVN, like you,
> for example).

OK, thanks.

> A minor issue: the rtpostgis_reg database created for postinstall
> check is not deleted by default. Mateusz, did you change it for any
> reason? (r5822 was the previous version)

Which changeset you mean exactly. The following is r5823
and some changes in test/regress/run_test.in happened.

Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe.

  #11  
24-08-2010 11:32 AM
PostGIS : postgis-devel member admin is online now
User
 

Hi,

I've noticed current revision of WKT Raster is broken.
Running the core tests for r5841 ends up with assertion and
load of warnings:

./testapi
1111 pixtype = 2
Raster starts with 0 bands
First point on convexhull ring is 0.5,0.5
Second point on convexhull ring is 256.5,1280.5
Third point on convexhull ring is 1280.5,1536.5
Fourth point on convexhull ring is 1024.5,256.5
Fifth point on convexhull ring is 0.5,0.5
Testing polygonize function
Testing 1BB band
WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated
from 2 to 0
WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated
from 3 to 1
WARNING: Pixel value for 1BB band got truncated from 2 to 0
WARNING: Pixel value for 1BB band got truncated from 3 to 1
Testing 2BB band
WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated
from 4 to 0
WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated
from 5 to 1
WARNING: Pixel value for 2BUI band got truncated from 4 to 0
WARNING: Pixel value for 2BUI band got truncated from 5 to 1
Testing 4BUI band
WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated
from 16 to 0
WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated
from 17 to 1
WARNING: Pixel value for 4BUI band got truncated from 35 to 3
Testing 8BUI band
WARNING: rt_band_set_nodata: NODATA value for 8BUI band got truncated
from 256 to 0
WARNING: Pixel value for 8BUI band got truncated from 256 to 0
Testing 8BSI band
WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated
from -129 to 127
WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated
from 129 to -127
WARNING: Pixel value for 8BSI band got truncated from -129 to 127
WARNING: Pixel value for 8BSI band got truncated from 129 to -127
Testing 16BSI band
WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated
from -32769 to 32767
WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated
from 32769 to -32767
WARNING: Pixel value for 16BSI band got truncated from -32769 to 32767
WARNING: Pixel value for 16BSI band got truncated from 32769 to -32767
ERROR: Coordinates ouf of range
Testing 16BUI band
WARNING: rt_band_set_nodata: NODATA value for 16BUI band got truncated
from 65536 to 0
WARNING: Pixel value for 16BUI band got truncated from 65536 to 0
ERROR: Coordinates ouf of range
Testing 32BUI band
WARNING: rt_band_set_nodata: NODATA value for 32BUI band got truncated
from 4.29497e+09 to 0
WARNING: Pixel value for 32BUI band got truncated from 4.29497e+09 to 0
ERROR: Coordinates ouf of range
Testing 32BSI band
WARNING: rt_band_set_nodata: NODATA value for 32BSI band got truncated
from 2.14748e+09 to -2.14748e+09
WARNING: Pixel value for 32BSI band got truncated from 2.14748e+09 to
-2.14748e+09
ERROR: Coordinates ouf of range
Testing 32BF band
Testing 64BF band
Testing band hasnodata flag
testapi: rt_api.c:545: rt_band_get_data: Assertion `((void *)0) != band'
failed.
make[2]: *** [check] Aborted
make[2]: Leaving directory
`/home/mloskot/dev/wktraster/_svn/trunk/test/core'
make[1]: *** [check] Error 2
make[1]: Leaving directory `/home/mloskot/dev/wktraster/_svn/trunk/test'
make: *** [check] Error 2

The assertion is serious and happens in crucial function.
I checked and the last healthy revision seems to be r5811.

Pierre, Jorge, could you re-validate your recent commits?
You do run "make check" before every commit, don't you?

Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. On Mon, Aug 23, 2010 at 1:04 PM, Mateusz Loskot <> wrote:
> Hi,
>
> I've noticed current revision of WKT Raster is broken.
> Running the core tests for r5841 ends up with assertion and
> load of warnings:
>
> ./testapi
> 1111 pixtype = 2
> Raster starts with 0 bands
> First point on convexhull ring is 0.5,0.5
> Second point on convexhull ring is 256.5,1280.5
> Third point on convexhull ring is 1280.5,1536.5
> Fourth point on convexhull ring is 1024.5,256.5
> Fifth point on convexhull ring is 0.5,0.5
> Testing polygonize function
> Testing 1BB band
> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 2
> to 0
> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 3
> to 1
> WARNING: Pixel value for 1BB band got truncated from 2 to 0
> WARNING: Pixel value for 1BB band got truncated from 3 to 1
> Testing 2BB band
> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 4
> to 0
> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 5
> to 1
> WARNING: Pixel value for 2BUI band got truncated from 4 to 0
> WARNING: Pixel value for 2BUI band got truncated from 5 to 1
> Testing 4BUI band
> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
> 16 to 0
> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
> 17 to 1
> WARNING: Pixel value for 4BUI band got truncated from 35 to 3
> Testing 8BUI band
> WARNING: rt_band_set_nodata: NODATA value for 8BUI band got truncated from
> 256 to 0
> WARNING: Pixel value for 8BUI band got truncated from 256 to 0
> Testing 8BSI band
> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
> -129 to 127
> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
> 129 to -127
> WARNING: Pixel value for 8BSI band got truncated from -129 to 127
> WARNING: Pixel value for 8BSI band got truncated from 129 to -127
> Testing 16BSI band
> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
> -32769 to 32767
> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
> 32769 to -32767
> WARNING: Pixel value for 16BSI band got truncated from -32769 to 32767
> WARNING: Pixel value for 16BSI band got truncated from 32769 to -32767
> ERROR: Coordinates ouf of range
> Testing 16BUI band
> WARNING: rt_band_set_nodata: NODATA value for 16BUI band got truncated from
> 65536 to 0
> WARNING: Pixel value for 16BUI band got truncated from 65536 to 0
> ERROR: Coordinates ouf of range
> Testing 32BUI band
> WARNING: rt_band_set_nodata: NODATA value for 32BUI band got truncated from
> 4.29497e+09 to 0
> WARNING: Pixel value for 32BUI band got truncated from 4.29497e+09 to 0
> ERROR: Coordinates ouf of range
> Testing 32BSI band
> WARNING: rt_band_set_nodata: NODATA value for 32BSI band got truncated from
> 2.14748e+09 to -2.14748e+09
> WARNING: Pixel value for 32BSI band got truncated from 2.14748e+09 to
> -2.14748e+09
> ERROR: Coordinates ouf of range
> Testing 32BF band
> Testing 64BF band
> Testing band hasnodata flag
> testapi: rt_api.c:545: rt_band_get_data: Assertion `((void *)0) != band'
> failed.
> make[2]: *** [check] Aborted
> make[2]: Leaving directory
> `/home/mloskot/dev/wktraster/_svn/trunk/test/core'
> make[1]: *** [check] Error 2
> make[1]: Leaving directory `/home/mloskot/dev/wktraster/_svn/trunk/test'
> make: *** [check] Error 2
>
> The assertion is serious and happens in crucial function.
> I checked and the last healthy revision seems to be r5811.
>
> Pierre, Jorge, could you re-validate your recent commits?
> You do run "make check" before every commit, don't you?
>
> Best regards,
> --
> Mateusz Loskot, http://mateusz.loskot.net
> _______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. Probably my fault. Double check...

Pierre

>-----Original Message-----
>From: postgis-devel- [mailto:postgis-devel-
>] On Behalf Of Jorge Arévalo
>Sent: 23 août 2010 07:39
>To: PostGIS Development Discussion
>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>
>On Mon, Aug 23, 2010 at 1:04 PM, Mateusz Loskot <> wrote:
>> Hi,
>>
>> I've noticed current revision of WKT Raster is broken.
>> Running the core tests for r5841 ends up with assertion and
>> load of warnings:
>>
>> ./testapi
>> 1111 pixtype = 2
>> Raster starts with 0 bands
>> First point on convexhull ring is 0.5,0.5
>> Second point on convexhull ring is 256.5,1280.5
>> Third point on convexhull ring is 1280.5,1536.5
>> Fourth point on convexhull ring is 1024.5,256.5
>> Fifth point on convexhull ring is 0.5,0.5
>> Testing polygonize function
>> Testing 1BB band
>> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 2
>> to 0
>> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 3
>> to 1
>> WARNING: Pixel value for 1BB band got truncated from 2 to 0
>> WARNING: Pixel value for 1BB band got truncated from 3 to 1
>> Testing 2BB band
>> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 4
>> to 0
>> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 5
>> to 1
>> WARNING: Pixel value for 2BUI band got truncated from 4 to 0
>> WARNING: Pixel value for 2BUI band got truncated from 5 to 1
>> Testing 4BUI band
>> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
>> 16 to 0
>> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
>> 17 to 1
>> WARNING: Pixel value for 4BUI band got truncated from 35 to 3
>> Testing 8BUI band
>> WARNING: rt_band_set_nodata: NODATA value for 8BUI band got truncated from
>> 256 to 0
>> WARNING: Pixel value for 8BUI band got truncated from 256 to 0
>> Testing 8BSI band
>> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
>> -129 to 127
>> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
>> 129 to -127
>> WARNING: Pixel value for 8BSI band got truncated from -129 to 127
>> WARNING: Pixel value for 8BSI band got truncated from 129 to -127
>> Testing 16BSI band
>> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
>> -32769 to 32767
>> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
>> 32769 to -32767
>> WARNING: Pixel value for 16BSI band got truncated from -32769 to 32767
>> WARNING: Pixel value for 16BSI band got truncated from 32769 to -32767
>> ERROR: Coordinates ouf of range
>> Testing 16BUI band
>> WARNING: rt_band_set_nodata: NODATA value for 16BUI band got truncated from
>> 65536 to 0
>> WARNING: Pixel value for 16BUI band got truncated from 65536 to 0
>> ERROR: Coordinates ouf of range
>> Testing 32BUI band
>> WARNING: rt_band_set_nodata: NODATA value for 32BUI band got truncated from
>> 4.29497e+09 to 0
>> WARNING: Pixel value for 32BUI band got truncated from 4.29497e+09 to 0
>> ERROR: Coordinates ouf of range
>> Testing 32BSI band
>> WARNING: rt_band_set_nodata: NODATA value for 32BSI band got truncated from
>> 2.14748e+09 to -2.14748e+09
>> WARNING: Pixel value for 32BSI band got truncated from 2.14748e+09 to
>> -2.14748e+09
>> ERROR: Coordinates ouf of range
>> Testing 32BF band
>> Testing 64BF band
>> Testing band hasnodata flag
>> testapi: rt_api.c:545: rt_band_get_data: Assertion `((void *)0) != band'
>> failed.
>> make[2]: *** [check] Aborted
>> make[2]: Leaving directory
>> `/home/mloskot/dev/wktraster/_svn/trunk/test/core'
>> make[1]: *** [check] Error 2
>> make[1]: Leaving directory `/home/mloskot/dev/wktraster/_svn/trunk/test'
>> make: *** [check] Error 2
>>
>> The assertion is serious and happens in crucial function.
>> I checked and the last healthy revision seems to be r5811.
>>
>> Pierre, Jorge, could you re-validate your recent commits?
>> You do run "make check" before every commit, don't you?
>>
>> Best regards,
>> --
>> Mateusz Loskot, http://mateusz.loskot.net
>> _______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. fixed in r5864

Sorry for that. Probably forgot to make check.

Pierre

>-----Original Message-----
>From: postgis-devel- [mailto:postgis-devel-
>] On Behalf Of Pierre Racine
>Sent: 23 août 2010 09:24
>To: PostGIS Development Discussion
>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>
>Probably my fault. Double check...
>
>Pierre
>
>>-----Original Message-----
>>From: postgis-devel- [mailto:postgis-devel-
>>] On Behalf Of Jorge Arévalo
>>Sent: 23 août 2010 07:39
>>To: PostGIS Development Discussion
>>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>>
>>On Mon, Aug 23, 2010 at 1:04 PM, Mateusz Loskot <> wrote:
>>> Hi,
>>>
>>> I've noticed current revision of WKT Raster is broken.
>>> Running the core tests for r5841 ends up with assertion and
>>> load of warnings:
>>>
>>> ./testapi
>>> 1111 pixtype = 2
>>> Raster starts with 0 bands
>>> First point on convexhull ring is 0.5,0.5
>>> Second point on convexhull ring is 256.5,1280.5
>>> Third point on convexhull ring is 1280.5,1536.5
>>> Fourth point on convexhull ring is 1024.5,256.5
>>> Fifth point on convexhull ring is 0.5,0.5
>>> Testing polygonize function
>>> Testing 1BB band
>>> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 2
>>> to 0
>>> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 3
>>> to 1
>>> WARNING: Pixel value for 1BB band got truncated from 2 to 0
>>> WARNING: Pixel value for 1BB band got truncated from 3 to 1
>>> Testing 2BB band
>>> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 4
>>> to 0
>>> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 5
>>> to 1
>>> WARNING: Pixel value for 2BUI band got truncated from 4 to 0
>>> WARNING: Pixel value for 2BUI band got truncated from 5 to 1
>>> Testing 4BUI band
>>> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
>>> 16 to 0
>>> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
>>> 17 to 1
>>> WARNING: Pixel value for 4BUI band got truncated from 35 to 3
>>> Testing 8BUI band
>>> WARNING: rt_band_set_nodata: NODATA value for 8BUI band got truncated from
>>> 256 to 0
>>> WARNING: Pixel value for 8BUI band got truncated from 256 to 0
>>> Testing 8BSI band
>>> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
>>> -129 to 127
>>> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
>>> 129 to -127
>>> WARNING: Pixel value for 8BSI band got truncated from -129 to 127
>>> WARNING: Pixel value for 8BSI band got truncated from 129 to -127
>>> Testing 16BSI band
>>> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
>>> -32769 to 32767
>>> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
>>> 32769 to -32767
>>> WARNING: Pixel value for 16BSI band got truncated from -32769 to 32767
>>> WARNING: Pixel value for 16BSI band got truncated from 32769 to -32767
>>> ERROR: Coordinates ouf of range
>>> Testing 16BUI band
>>> WARNING: rt_band_set_nodata: NODATA value for 16BUI band got truncated from
>>> 65536 to 0
>>> WARNING: Pixel value for 16BUI band got truncated from 65536 to 0
>>> ERROR: Coordinates ouf of range
>>> Testing 32BUI band
>>> WARNING: rt_band_set_nodata: NODATA value for 32BUI band got truncated from
>>> 4.29497e+09 to 0
>>> WARNING: Pixel value for 32BUI band got truncated from 4.29497e+09 to 0
>>> ERROR: Coordinates ouf of range
>>> Testing 32BSI band
>>> WARNING: rt_band_set_nodata: NODATA value for 32BSI band got truncated from
>>> 2.14748e+09 to -2.14748e+09
>>> WARNING: Pixel value for 32BSI band got truncated from 2.14748e+09 to
>>> -2.14748e+09
>>> ERROR: Coordinates ouf of range
>>> Testing 32BF band
>>> Testing 64BF band
>>> Testing band hasnodata flag
>>> testapi: rt_api.c:545: rt_band_get_data: Assertion `((void *)0) != band'
>>> failed.
>>> make[2]: *** [check] Aborted
>>> make[2]: Leaving directory
>>> `/home/mloskot/dev/wktraster/_svn/trunk/test/core'
>>> make[1]: *** [check] Error 2
>>> make[1]: Leaving directory `/home/mloskot/dev/wktraster/_svn/trunk/test'
>>> make: *** [check] Error 2
>>>
>>> The assertion is serious and happens in crucial function.
>>> I checked and the last healthy revision seems to be r5811.
>>>
>>> Pierre, Jorge, could you re-validate your recent commits?
>>> You do run "make check" before every commit, don't you?
>>>
>>> Best regards,
>>> --
>>> Mateusz Loskot, http://mateusz.loskot.net
>>> _______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. Thanks for the fix, Pierre. But I'm getting a Segmentation Fault. caused by

memcpy(raster->bands[i], oldbands[oldi++], sizeof(rt_band));

(rt_core/rt_api.c, line 1351)

in Ubuntu Linux. Anyone else?

On Mon, Aug 23, 2010 at 4:53 PM, Pierre Racine
<> wrote:
> fixed in r5864
>
> Sorry for that. Probably forgot to make check.
>
> Pierre
>
>>-----Original Message-----
>>From: postgis-devel- [mailto:postgis-devel-
>>] On Behalf Of Pierre Racine
>>Sent: 23 août 2010 09:24
>>To: PostGIS Development Discussion
>>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>>
>>Probably my fault. Double check...
>>
>>Pierre
>>
>>>-----Original Message-----
>>>From: postgis-devel- [mailto:postgis-devel-
>>>] On Behalf Of Jorge Arévalo
>>>Sent: 23 août 2010 07:39
>>>To: PostGIS Development Discussion
>>>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>>>
>>>On Mon, Aug 23, 2010 at 1:04 PM, Mateusz Loskot <> wrote:
>>>> Hi,
>>>>
>>>> I've noticed current revision of WKT Raster is broken.
>>>> Running the core tests for r5841 ends up with assertion and
>>>> load of warnings:
>>>>
>>>> ./testapi
>>>> 1111 pixtype = 2
>>>> Raster starts with 0 bands
>>>> First point on convexhull ring is 0.5,0.5
>>>> Second point on convexhull ring is 256.5,1280.5
>>>> Third point on convexhull ring is 1280.5,1536.5
>>>> Fourth point on convexhull ring is 1024.5,256.5
>>>> Fifth point on convexhull ring is 0.5,0.5
>>>> Testing polygonize function
>>>> Testing 1BB band
>>>> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 2
>>>> to 0
>>>> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 3
>>>> to 1
>>>> WARNING: Pixel value for 1BB band got truncated from 2 to 0
>>>> WARNING: Pixel value for 1BB band got truncated from 3 to 1
>>>> Testing 2BB band
>>>> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 4
>>>> to 0
>>>> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 5
>>>> to 1
>>>> WARNING: Pixel value for 2BUI band got truncated from 4 to 0
>>>> WARNING: Pixel value for 2BUI band got truncated from 5 to 1
>>>> Testing 4BUI band
>>>> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
>>>> 16 to 0
>>>> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
>>>> 17 to 1
>>>> WARNING: Pixel value for 4BUI band got truncated from 35 to 3
>>>> Testing 8BUI band
>>>> WARNING: rt_band_set_nodata: NODATA value for 8BUI band got truncated from
>>>> 256 to 0
>>>> WARNING: Pixel value for 8BUI band got truncated from 256 to 0
>>>> Testing 8BSI band
>>>> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
>>>> -129 to 127
>>>> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
>>>> 129 to -127
>>>> WARNING: Pixel value for 8BSI band got truncated from -129 to 127
>>>> WARNING: Pixel value for 8BSI band got truncated from 129 to -127
>>>> Testing 16BSI band
>>>> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
>>>> -32769 to 32767
>>>> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
>>>> 32769 to -32767
>>>> WARNING: Pixel value for 16BSI band got truncated from -32769 to 32767
>>>> WARNING: Pixel value for 16BSI band got truncated from 32769 to -32767
>>>> ERROR: Coordinates ouf of range
>>>> Testing 16BUI band
>>>> WARNING: rt_band_set_nodata: NODATA value for 16BUI band got truncated from
>>>> 65536 to 0
>>>> WARNING: Pixel value for 16BUI band got truncated from 65536 to 0
>>>> ERROR: Coordinates ouf of range
>>>> Testing 32BUI band
>>>> WARNING: rt_band_set_nodata: NODATA value for 32BUI band got truncated from
>>>> 4.29497e+09 to 0
>>>> WARNING: Pixel value for 32BUI band got truncated from 4.29497e+09 to 0
>>>> ERROR: Coordinates ouf of range
>>>> Testing 32BSI band
>>>> WARNING: rt_band_set_nodata: NODATA value for 32BSI band got truncated from
>>>> 2.14748e+09 to -2.14748e+09
>>>> WARNING: Pixel value for 32BSI band got truncated from 2.14748e+09 to
>>>> -2.14748e+09
>>>> ERROR: Coordinates ouf of range
>>>> Testing 32BF band
>>>> Testing 64BF band
>>>> Testing band hasnodata flag
>>>> testapi: rt_api.c:545: rt_band_get_data: Assertion `((void *)0) != band'
>>>> failed.
>>>> make[2]: *** [check] Aborted
>>>> make[2]: Leaving directory
>>>> `/home/mloskot/dev/wktraster/_svn/trunk/test/core'
>>>> make[1]: *** [check] Error 2
>>>> make[1]: Leaving directory `/home/mloskot/dev/wktraster/_svn/trunk/test'
>>>> make: *** [check] Error 2
>>>>
>>>> The assertion is serious and happens in crucial function.
>>>> I checked and the last healthy revision seems to be r5811.
>>>>
>>>> Pierre, Jorge, could you re-validate your recent commits?
>>>> You do run "make check" before every commit, don't you?
>>>>
>>>> Best regards,
>>>> --
>>>> Mateusz Loskot, http://mateusz.loskot.net
>>>> _______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. On 23/08/10 17:23, Jorge Arévalo wrote:
> Thanks for the fix, Pierre. But I'm getting a Segmentation Fault. caused by
>
> memcpy(raster->bands[i], oldbands[oldi++], sizeof(rt_band));
>
> (rt_core/rt_api.c, line 1351)
>
> in Ubuntu Linux. Anyone else?

I've quickly checked running make check and I confirm this issue.
Getting segmentation fault too.

Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. On Mon, Aug 23, 2010 at 11:11 PM, Pierre Racine
<> wrote:
> Could you test the last one. Thanks. Sorry for that my C is a bit rusty.
>
> Pierre
>

OK. make check is working fine for me now.

Jorge

>>-----Original Message-----
>>From: postgis-devel- [mailto:postgis-devel-
>>] On Behalf Of Mateusz Loskot
>>Sent: 23 août 2010 12:50
>>To: postgis-
>>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>>
>>On 23/08/10 17:23, Jorge Arévalo wrote:
>>> Thanks for the fix, Pierre. But I'm getting a Segmentation Fault. caused by
>>>
>>> memcpy(raster->bands[i], oldbands[oldi++], sizeof(rt_band));
>>>
>>> (rt_core/rt_api.c, line 1351)
>>>
>>> in Ubuntu Linux. Anyone else?
>>
>>I've quickly checked running make check and I confirm this issue.
>>Getting segmentation fault too.
>>
>>Best regards,
>>--
>>Mateusz Loskot, http://mateusz.loskot.net
>>_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. On 24/08/10 10:39, Jorge Arévalo wrote:
> On Mon, Aug 23, 2010 at 11:11 PM, Pierre Racine
> <> wrote:
>> Could you test the last one. Thanks. Sorry for that my C is a bit rusty.
>
> OK. make check is working fine for me now.

Works for me too, however regression test is failing:L


mloskot@vb-ubuntu910-x64:~/dev/wktraster/_svn/trunk$ make post-install-check

...
Creating spatial db rtpostgis_reg
TMPDIR is /tmp/rtpgis_reg_4435

PostgreSQL 8.4.4 on x86_64-pc-linux-gnu, compiled by GCC gcc-4.4.real
(Ubuntu 4.4.3-4ubuntu5) 4.4.3, 64-bit
Postgis 2.0.0SVN - 2010-08-04 11:37:17
GEOS: 3.3.0-CAPI-1.7.0
PROJ: Rel. 4.7.1, 23 September 2009
WKTRaster 0.1.6d - 2010-08-24 09:14:21

Running tests

check_raster_columns. ok
check_raster_overviews. ok
rt_io. ok
create_rt_bytea_test. ok
rt_bytea. ok
create_rt_box2d_test. ok
rt_box2d. ok
rt_addband. failed (diff expected obtained:
/tmp/rtpgis_reg_4435/test_8_diff)
create_rt_properties_test. ok
rt_dimensions. ok
rt_pixelsize. ok
rt_upperleft. ok
rt_rotation. ok
rt_georeference. ok
rt_set_properties. ok
create_rt_band_properties_test. ok
rt_band_properties. ok
rt_set_band_properties. ok
rt_pixelvalue. ok
create_rt_utility_test. ok
rt_utility. ok
create_rt_gist_test. ok
rt_above. ok
rt_below. ok
rt_contained. ok
rt_contain. ok
rt_left. ok
rt_overabove. ok
rt_overbelow. ok
rt_overlap. ok
rt_overleft. ok
rt_overright. ok
rt_right. ok
rt_same. ok
rt_spatial_relationship. ok
bug_test_car5. ok

Run tests: 36
Failed: 1
make[2]: Leaving directory
`/home/mloskot/dev/wktraster/_svn/trunk/test/regress'
make[1]: Leaving directory `/home/mloskot/dev/wktraster/_svn/trunk/test'
mloskot@vb-ubuntu910-x64:~/dev/wktraster/_svn/trunk$ cat
/tmp/rtpgis_reg_4435/test_8_diff
*** rt_addband_expected 2010-08-23 16:51:59.000000000 +0100
--- /tmp/rtpgis_reg_4435/test_8_out 2010-08-24 10:15:19.000000000 +0100
***************
*** 45,52 ****
154
WARNING: Initial pixel value for 8BUI band got truncated from
256.000000 to 255
255
! WARNING: Initial pixel value for 16BSI band got truncated from
-32769.000000 to -32768
! -32768
-32768
0
32767
--- 45,52 ----
154
WARNING: Initial pixel value for 8BUI band got truncated from
256.000000 to 255
255
! WARNING: Initial pixel value for 16BSI band got truncated from
-32769.000000 to 32767
! 32767
-32768
0
32767
***************
*** 54,61 ****
-32768
WARNING: Initial pixel value for 16BSI band got truncated from
21.460000 to 21
21
! WARNING: Initial pixel value for 16BSI band got truncated from
210000.460000 to -32768
! -32768
WARNING: Initial pixel value for 16BUI band got truncated from
-1.000000 to 65535
65535
0
--- 54,61 ----
-32768
WARNING: Initial pixel value for 16BSI band got truncated from
21.460000 to 21
21
! WARNING: Initial pixel value for 16BSI band got truncated from
210000.460000 to 13392
! 13392
WARNING: Initial pixel value for 16BUI band got truncated from
-1.000000 to 65535
65535
0
mloskot@vb-ubuntu910-x64:~/dev/wktraster/_svn/trunk$


Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. make post-install-check works for me too... Maybe is a problem with
PostGIS/GEOS/PROJ versions... here my versions

PostgreSQL 8.4.4 on i486-pc-linux-gnu, compiled by GCC gcc-4.4.real
(Ubuntu 4.4.1-4ubuntu8) 4.4.1, 32-bit
Postgis 1.4.2 - 2010-08-05 17:36:12
GEOS: 3.3.0-CAPI-1.6.1
PROJ: Rel. 4.7.1, 23 September 2009
WKTRaster 0.1.6d - 2010-08-18 13:49:03

I'll do the test with a newer version of postgis (2.0.0SVN, like you,
for example).

A minor issue: the rtpostgis_reg database created for postinstall
check is not deleted by default. Mateusz, did you change it for any
reason? (r5822 was the previous version)

2010/8/24 Mateusz Loskot <>:
> On 24/08/10 10:39, Jorge Arévalo wrote:
>>
>> On Mon, Aug 23, 2010 at 11:11 PM, Pierre Racine
>> <>  wrote:
>>>
>>> Could you test the last one. Thanks. Sorry for that my C is a bit rusty.
>>
>> OK. make check is working fine for me now.
>
> Works for me too, however regression test is failing:L
>
>
> mloskot@vb-ubuntu910-x64:~/dev/wktraster/_svn/trunk$ make post-install-check
>
> ...
> Creating spatial db rtpostgis_reg
> TMPDIR is /tmp/rtpgis_reg_4435
>
>  PostgreSQL 8.4.4 on x86_64-pc-linux-gnu, compiled by GCC gcc-4.4.real
> (Ubuntu 4.4.3-4ubuntu5) 4.4.3, 64-bit
>  Postgis 2.0.0SVN - 2010-08-04 11:37:17
>   GEOS: 3.3.0-CAPI-1.7.0
>   PROJ: Rel. 4.7.1, 23 September 2009
>  WKTRaster 0.1.6d - 2010-08-24 09:14:21
>
> Running tests
>
>  check_raster_columns. ok
>  check_raster_overviews. ok
>  rt_io. ok
>  create_rt_bytea_test. ok
>  rt_bytea. ok
>  create_rt_box2d_test. ok
>  rt_box2d. ok
>  rt_addband. failed (diff expected obtained:
> /tmp/rtpgis_reg_4435/test_8_diff)
>  create_rt_properties_test. ok
>  rt_dimensions. ok
>  rt_pixelsize. ok
>  rt_upperleft. ok
>  rt_rotation. ok
>  rt_georeference. ok
>  rt_set_properties. ok
>  create_rt_band_properties_test. ok
>  rt_band_properties. ok
>  rt_set_band_properties. ok
>  rt_pixelvalue. ok
>  create_rt_utility_test. ok
>  rt_utility. ok
>  create_rt_gist_test. ok
>  rt_above. ok
>  rt_below. ok
>  rt_contained. ok
>  rt_contain. ok
>  rt_left. ok
>  rt_overabove. ok
>  rt_overbelow. ok
>  rt_overlap. ok
>  rt_overleft. ok
>  rt_overright. ok
>  rt_right. ok
>  rt_same. ok
>  rt_spatial_relationship. ok
>  bug_test_car5. ok
>
> Run tests: 36
> Failed: 1
> make[2]: Leaving directory
> `/home/mloskot/dev/wktraster/_svn/trunk/test/regress'
> make[1]: Leaving directory `/home/mloskot/dev/wktraster/_svn/trunk/test'
> mloskot@vb-ubuntu910-x64:~/dev/wktraster/_svn/trunk$ cat
> /tmp/rtpgis_reg_4435/test_8_diff
> *** rt_addband_expected 2010-08-23 16:51:59.000000000 +0100
> --- /tmp/rtpgis_reg_4435/test_8_out     2010-08-24 10:15:19.000000000 +0100
> ***************
> *** 45,52 ****
>  154
>  WARNING:  Initial pixel value for 8BUI band got truncated from 256.000000
> to 255
>  255
> ! WARNING:  Initial pixel value for 16BSI band got truncated from
> -32769.000000 to -32768
> ! -32768
>  -32768
>  0
>  32767
> --- 45,52 ----
>  154
>  WARNING:  Initial pixel value for 8BUI band got truncated from 256.000000
> to 255
>  255
> ! WARNING:  Initial pixel value for 16BSI band got truncated from
> -32769.000000 to 32767
> ! 32767
>  -32768
>  0
>  32767
> ***************
> *** 54,61 ****
>  -32768
>  WARNING:  Initial pixel value for 16BSI band got truncated from 21.460000
> to 21
>  21
> ! WARNING:  Initial pixel value for 16BSI band got truncated from
> 210000.460000 to -32768
> ! -32768
>  WARNING:  Initial pixel value for 16BUI band got truncated from -1.000000
> to 65535
>  65535
>  0
> --- 54,61 ----
>  -32768
>  WARNING:  Initial pixel value for 16BSI band got truncated from 21.460000
> to 21
>  21
> ! WARNING:  Initial pixel value for 16BSI band got truncated from
> 210000.460000 to 13392
> ! 13392
>  WARNING:  Initial pixel value for 16BUI band got truncated from -1.000000
> to 65535
>  65535
>  0
> mloskot@vb-ubuntu910-x64:~/dev/wktraster/_svn/trunk$
>
>
> Best regards,
> --
> Mateusz Loskot, http://mateusz.loskot.net
>



--
Jorge Arévalo
DEIMOS Space
Internet & Mobilty Division
Ronda de Poniente 19. Edificio Fiteni VI, portal 2, 2º
28760 Tres Cantos (Madrid)


http://gis4free.wordpress.com
_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. On 24/08/10 11:08, Jorge Arévalo wrote:
> make post-install-check works for me too... Maybe is a problem with
> PostGIS/GEOS/PROJ versions... here my versions
>
> PostgreSQL 8.4.4 on i486-pc-linux-gnu, compiled by GCC gcc-4.4.real
> (Ubuntu 4.4.1-4ubuntu8) 4.4.1, 32-bit
> Postgis 1.4.2 - 2010-08-05 17:36:12
> GEOS: 3.3.0-CAPI-1.6.1
> PROJ: Rel. 4.7.1, 23 September 2009
> WKTRaster 0.1.6d - 2010-08-18 13:49:03
>
> I'll do the test with a newer version of postgis (2.0.0SVN, like you,
> for example).

OK, thanks.

> A minor issue: the rtpostgis_reg database created for postinstall
> check is not deleted by default. Mateusz, did you change it for any
> reason? (r5822 was the previous version)

Which changeset you mean exactly. The following is r5823
and some changes in test/regress/run_test.in happened.

Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. 2010/8/24 Mateusz Loskot <>:
> On 24/08/10 11:08, Jorge Arévalo wrote:
>>
>> A minor issue: the rtpostgis_reg database created for postinstall
>> check is not deleted by default. Mateusz, did you change it for any
>> reason? (r5822 was the previous version)
>
> Which changeset you mean exactly. The following is r5823
> and some changes in test/regress/run_test.in happened.
>

Yes, sorry, my mistake. I mean the last change on
test/regress/run_test.in. A little change:

http://trac.osgeo.org/postgis/changeset/5823/spike/wktraster/test/regress/run_test.in

May I change the DROP option again, or is a bad idea?

> Best regards,
> --
> Mateusz Loskot, http://mateusz.loskot.net
>



--
Jorge Arévalo
DEIMOS Space
Internet & Mobilty Division
Ronda de Poniente 19. Edificio Fiteni VI, portal 2, 2º
28760 Tres Cantos (Madrid)


http://gis4free.wordpress.com
_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe.

  #12  
24-08-2010 11:47 AM
PostGIS : postgis-devel member admin is online now
User
 

Hi,

I've noticed current revision of WKT Raster is broken.
Running the core tests for r5841 ends up with assertion and
load of warnings:

./testapi
1111 pixtype = 2
Raster starts with 0 bands
First point on convexhull ring is 0.5,0.5
Second point on convexhull ring is 256.5,1280.5
Third point on convexhull ring is 1280.5,1536.5
Fourth point on convexhull ring is 1024.5,256.5
Fifth point on convexhull ring is 0.5,0.5
Testing polygonize function
Testing 1BB band
WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated
from 2 to 0
WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated
from 3 to 1
WARNING: Pixel value for 1BB band got truncated from 2 to 0
WARNING: Pixel value for 1BB band got truncated from 3 to 1
Testing 2BB band
WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated
from 4 to 0
WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated
from 5 to 1
WARNING: Pixel value for 2BUI band got truncated from 4 to 0
WARNING: Pixel value for 2BUI band got truncated from 5 to 1
Testing 4BUI band
WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated
from 16 to 0
WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated
from 17 to 1
WARNING: Pixel value for 4BUI band got truncated from 35 to 3
Testing 8BUI band
WARNING: rt_band_set_nodata: NODATA value for 8BUI band got truncated
from 256 to 0
WARNING: Pixel value for 8BUI band got truncated from 256 to 0
Testing 8BSI band
WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated
from -129 to 127
WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated
from 129 to -127
WARNING: Pixel value for 8BSI band got truncated from -129 to 127
WARNING: Pixel value for 8BSI band got truncated from 129 to -127
Testing 16BSI band
WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated
from -32769 to 32767
WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated
from 32769 to -32767
WARNING: Pixel value for 16BSI band got truncated from -32769 to 32767
WARNING: Pixel value for 16BSI band got truncated from 32769 to -32767
ERROR: Coordinates ouf of range
Testing 16BUI band
WARNING: rt_band_set_nodata: NODATA value for 16BUI band got truncated
from 65536 to 0
WARNING: Pixel value for 16BUI band got truncated from 65536 to 0
ERROR: Coordinates ouf of range
Testing 32BUI band
WARNING: rt_band_set_nodata: NODATA value for 32BUI band got truncated
from 4.29497e+09 to 0
WARNING: Pixel value for 32BUI band got truncated from 4.29497e+09 to 0
ERROR: Coordinates ouf of range
Testing 32BSI band
WARNING: rt_band_set_nodata: NODATA value for 32BSI band got truncated
from 2.14748e+09 to -2.14748e+09
WARNING: Pixel value for 32BSI band got truncated from 2.14748e+09 to
-2.14748e+09
ERROR: Coordinates ouf of range
Testing 32BF band
Testing 64BF band
Testing band hasnodata flag
testapi: rt_api.c:545: rt_band_get_data: Assertion `((void *)0) != band'
failed.
make[2]: *** [check] Aborted
make[2]: Leaving directory
`/home/mloskot/dev/wktraster/_svn/trunk/test/core'
make[1]: *** [check] Error 2
make[1]: Leaving directory `/home/mloskot/dev/wktraster/_svn/trunk/test'
make: *** [check] Error 2

The assertion is serious and happens in crucial function.
I checked and the last healthy revision seems to be r5811.

Pierre, Jorge, could you re-validate your recent commits?
You do run "make check" before every commit, don't you?

Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. On Mon, Aug 23, 2010 at 1:04 PM, Mateusz Loskot <> wrote:
> Hi,
>
> I've noticed current revision of WKT Raster is broken.
> Running the core tests for r5841 ends up with assertion and
> load of warnings:
>
> ./testapi
> 1111 pixtype = 2
> Raster starts with 0 bands
> First point on convexhull ring is 0.5,0.5
> Second point on convexhull ring is 256.5,1280.5
> Third point on convexhull ring is 1280.5,1536.5
> Fourth point on convexhull ring is 1024.5,256.5
> Fifth point on convexhull ring is 0.5,0.5
> Testing polygonize function
> Testing 1BB band
> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 2
> to 0
> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 3
> to 1
> WARNING: Pixel value for 1BB band got truncated from 2 to 0
> WARNING: Pixel value for 1BB band got truncated from 3 to 1
> Testing 2BB band
> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 4
> to 0
> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 5
> to 1
> WARNING: Pixel value for 2BUI band got truncated from 4 to 0
> WARNING: Pixel value for 2BUI band got truncated from 5 to 1
> Testing 4BUI band
> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
> 16 to 0
> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
> 17 to 1
> WARNING: Pixel value for 4BUI band got truncated from 35 to 3
> Testing 8BUI band
> WARNING: rt_band_set_nodata: NODATA value for 8BUI band got truncated from
> 256 to 0
> WARNING: Pixel value for 8BUI band got truncated from 256 to 0
> Testing 8BSI band
> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
> -129 to 127
> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
> 129 to -127
> WARNING: Pixel value for 8BSI band got truncated from -129 to 127
> WARNING: Pixel value for 8BSI band got truncated from 129 to -127
> Testing 16BSI band
> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
> -32769 to 32767
> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
> 32769 to -32767
> WARNING: Pixel value for 16BSI band got truncated from -32769 to 32767
> WARNING: Pixel value for 16BSI band got truncated from 32769 to -32767
> ERROR: Coordinates ouf of range
> Testing 16BUI band
> WARNING: rt_band_set_nodata: NODATA value for 16BUI band got truncated from
> 65536 to 0
> WARNING: Pixel value for 16BUI band got truncated from 65536 to 0
> ERROR: Coordinates ouf of range
> Testing 32BUI band
> WARNING: rt_band_set_nodata: NODATA value for 32BUI band got truncated from
> 4.29497e+09 to 0
> WARNING: Pixel value for 32BUI band got truncated from 4.29497e+09 to 0
> ERROR: Coordinates ouf of range
> Testing 32BSI band
> WARNING: rt_band_set_nodata: NODATA value for 32BSI band got truncated from
> 2.14748e+09 to -2.14748e+09
> WARNING: Pixel value for 32BSI band got truncated from 2.14748e+09 to
> -2.14748e+09
> ERROR: Coordinates ouf of range
> Testing 32BF band
> Testing 64BF band
> Testing band hasnodata flag
> testapi: rt_api.c:545: rt_band_get_data: Assertion `((void *)0) != band'
> failed.
> make[2]: *** [check] Aborted
> make[2]: Leaving directory
> `/home/mloskot/dev/wktraster/_svn/trunk/test/core'
> make[1]: *** [check] Error 2
> make[1]: Leaving directory `/home/mloskot/dev/wktraster/_svn/trunk/test'
> make: *** [check] Error 2
>
> The assertion is serious and happens in crucial function.
> I checked and the last healthy revision seems to be r5811.
>
> Pierre, Jorge, could you re-validate your recent commits?
> You do run "make check" before every commit, don't you?
>
> Best regards,
> --
> Mateusz Loskot, http://mateusz.loskot.net
> _______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. Probably my fault. Double check...

Pierre

>-----Original Message-----
>From: postgis-devel- [mailto:postgis-devel-
>] On Behalf Of Jorge Arévalo
>Sent: 23 août 2010 07:39
>To: PostGIS Development Discussion
>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>
>On Mon, Aug 23, 2010 at 1:04 PM, Mateusz Loskot <> wrote:
>> Hi,
>>
>> I've noticed current revision of WKT Raster is broken.
>> Running the core tests for r5841 ends up with assertion and
>> load of warnings:
>>
>> ./testapi
>> 1111 pixtype = 2
>> Raster starts with 0 bands
>> First point on convexhull ring is 0.5,0.5
>> Second point on convexhull ring is 256.5,1280.5
>> Third point on convexhull ring is 1280.5,1536.5
>> Fourth point on convexhull ring is 1024.5,256.5
>> Fifth point on convexhull ring is 0.5,0.5
>> Testing polygonize function
>> Testing 1BB band
>> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 2
>> to 0
>> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 3
>> to 1
>> WARNING: Pixel value for 1BB band got truncated from 2 to 0
>> WARNING: Pixel value for 1BB band got truncated from 3 to 1
>> Testing 2BB band
>> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 4
>> to 0
>> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 5
>> to 1
>> WARNING: Pixel value for 2BUI band got truncated from 4 to 0
>> WARNING: Pixel value for 2BUI band got truncated from 5 to 1
>> Testing 4BUI band
>> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
>> 16 to 0
>> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
>> 17 to 1
>> WARNING: Pixel value for 4BUI band got truncated from 35 to 3
>> Testing 8BUI band
>> WARNING: rt_band_set_nodata: NODATA value for 8BUI band got truncated from
>> 256 to 0
>> WARNING: Pixel value for 8BUI band got truncated from 256 to 0
>> Testing 8BSI band
>> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
>> -129 to 127
>> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
>> 129 to -127
>> WARNING: Pixel value for 8BSI band got truncated from -129 to 127
>> WARNING: Pixel value for 8BSI band got truncated from 129 to -127
>> Testing 16BSI band
>> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
>> -32769 to 32767
>> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
>> 32769 to -32767
>> WARNING: Pixel value for 16BSI band got truncated from -32769 to 32767
>> WARNING: Pixel value for 16BSI band got truncated from 32769 to -32767
>> ERROR: Coordinates ouf of range
>> Testing 16BUI band
>> WARNING: rt_band_set_nodata: NODATA value for 16BUI band got truncated from
>> 65536 to 0
>> WARNING: Pixel value for 16BUI band got truncated from 65536 to 0
>> ERROR: Coordinates ouf of range
>> Testing 32BUI band
>> WARNING: rt_band_set_nodata: NODATA value for 32BUI band got truncated from
>> 4.29497e+09 to 0
>> WARNING: Pixel value for 32BUI band got truncated from 4.29497e+09 to 0
>> ERROR: Coordinates ouf of range
>> Testing 32BSI band
>> WARNING: rt_band_set_nodata: NODATA value for 32BSI band got truncated from
>> 2.14748e+09 to -2.14748e+09
>> WARNING: Pixel value for 32BSI band got truncated from 2.14748e+09 to
>> -2.14748e+09
>> ERROR: Coordinates ouf of range
>> Testing 32BF band
>> Testing 64BF band
>> Testing band hasnodata flag
>> testapi: rt_api.c:545: rt_band_get_data: Assertion `((void *)0) != band'
>> failed.
>> make[2]: *** [check] Aborted
>> make[2]: Leaving directory
>> `/home/mloskot/dev/wktraster/_svn/trunk/test/core'
>> make[1]: *** [check] Error 2
>> make[1]: Leaving directory `/home/mloskot/dev/wktraster/_svn/trunk/test'
>> make: *** [check] Error 2
>>
>> The assertion is serious and happens in crucial function.
>> I checked and the last healthy revision seems to be r5811.
>>
>> Pierre, Jorge, could you re-validate your recent commits?
>> You do run "make check" before every commit, don't you?
>>
>> Best regards,
>> --
>> Mateusz Loskot, http://mateusz.loskot.net
>> _______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. fixed in r5864

Sorry for that. Probably forgot to make check.

Pierre

>-----Original Message-----
>From: postgis-devel- [mailto:postgis-devel-
>] On Behalf Of Pierre Racine
>Sent: 23 août 2010 09:24
>To: PostGIS Development Discussion
>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>
>Probably my fault. Double check...
>
>Pierre
>
>>-----Original Message-----
>>From: postgis-devel- [mailto:postgis-devel-
>>] On Behalf Of Jorge Arévalo
>>Sent: 23 août 2010 07:39
>>To: PostGIS Development Discussion
>>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>>
>>On Mon, Aug 23, 2010 at 1:04 PM, Mateusz Loskot <> wrote:
>>> Hi,
>>>
>>> I've noticed current revision of WKT Raster is broken.
>>> Running the core tests for r5841 ends up with assertion and
>>> load of warnings:
>>>
>>> ./testapi
>>> 1111 pixtype = 2
>>> Raster starts with 0 bands
>>> First point on convexhull ring is 0.5,0.5
>>> Second point on convexhull ring is 256.5,1280.5
>>> Third point on convexhull ring is 1280.5,1536.5
>>> Fourth point on convexhull ring is 1024.5,256.5
>>> Fifth point on convexhull ring is 0.5,0.5
>>> Testing polygonize function
>>> Testing 1BB band
>>> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 2
>>> to 0
>>> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 3
>>> to 1
>>> WARNING: Pixel value for 1BB band got truncated from 2 to 0
>>> WARNING: Pixel value for 1BB band got truncated from 3 to 1
>>> Testing 2BB band
>>> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 4
>>> to 0
>>> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 5
>>> to 1
>>> WARNING: Pixel value for 2BUI band got truncated from 4 to 0
>>> WARNING: Pixel value for 2BUI band got truncated from 5 to 1
>>> Testing 4BUI band
>>> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
>>> 16 to 0
>>> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
>>> 17 to 1
>>> WARNING: Pixel value for 4BUI band got truncated from 35 to 3
>>> Testing 8BUI band
>>> WARNING: rt_band_set_nodata: NODATA value for 8BUI band got truncated from
>>> 256 to 0
>>> WARNING: Pixel value for 8BUI band got truncated from 256 to 0
>>> Testing 8BSI band
>>> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
>>> -129 to 127
>>> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
>>> 129 to -127
>>> WARNING: Pixel value for 8BSI band got truncated from -129 to 127
>>> WARNING: Pixel value for 8BSI band got truncated from 129 to -127
>>> Testing 16BSI band
>>> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
>>> -32769 to 32767
>>> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
>>> 32769 to -32767
>>> WARNING: Pixel value for 16BSI band got truncated from -32769 to 32767
>>> WARNING: Pixel value for 16BSI band got truncated from 32769 to -32767
>>> ERROR: Coordinates ouf of range
>>> Testing 16BUI band
>>> WARNING: rt_band_set_nodata: NODATA value for 16BUI band got truncated from
>>> 65536 to 0
>>> WARNING: Pixel value for 16BUI band got truncated from 65536 to 0
>>> ERROR: Coordinates ouf of range
>>> Testing 32BUI band
>>> WARNING: rt_band_set_nodata: NODATA value for 32BUI band got truncated from
>>> 4.29497e+09 to 0
>>> WARNING: Pixel value for 32BUI band got truncated from 4.29497e+09 to 0
>>> ERROR: Coordinates ouf of range
>>> Testing 32BSI band
>>> WARNING: rt_band_set_nodata: NODATA value for 32BSI band got truncated from
>>> 2.14748e+09 to -2.14748e+09
>>> WARNING: Pixel value for 32BSI band got truncated from 2.14748e+09 to
>>> -2.14748e+09
>>> ERROR: Coordinates ouf of range
>>> Testing 32BF band
>>> Testing 64BF band
>>> Testing band hasnodata flag
>>> testapi: rt_api.c:545: rt_band_get_data: Assertion `((void *)0) != band'
>>> failed.
>>> make[2]: *** [check] Aborted
>>> make[2]: Leaving directory
>>> `/home/mloskot/dev/wktraster/_svn/trunk/test/core'
>>> make[1]: *** [check] Error 2
>>> make[1]: Leaving directory `/home/mloskot/dev/wktraster/_svn/trunk/test'
>>> make: *** [check] Error 2
>>>
>>> The assertion is serious and happens in crucial function.
>>> I checked and the last healthy revision seems to be r5811.
>>>
>>> Pierre, Jorge, could you re-validate your recent commits?
>>> You do run "make check" before every commit, don't you?
>>>
>>> Best regards,
>>> --
>>> Mateusz Loskot, http://mateusz.loskot.net
>>> _______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. Thanks for the fix, Pierre. But I'm getting a Segmentation Fault. caused by

memcpy(raster->bands[i], oldbands[oldi++], sizeof(rt_band));

(rt_core/rt_api.c, line 1351)

in Ubuntu Linux. Anyone else?

On Mon, Aug 23, 2010 at 4:53 PM, Pierre Racine
<> wrote:
> fixed in r5864
>
> Sorry for that. Probably forgot to make check.
>
> Pierre
>
>>-----Original Message-----
>>From: postgis-devel- [mailto:postgis-devel-
>>] On Behalf Of Pierre Racine
>>Sent: 23 août 2010 09:24
>>To: PostGIS Development Discussion
>>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>>
>>Probably my fault. Double check...
>>
>>Pierre
>>
>>>-----Original Message-----
>>>From: postgis-devel- [mailto:postgis-devel-
>>>] On Behalf Of Jorge Arévalo
>>>Sent: 23 août 2010 07:39
>>>To: PostGIS Development Discussion
>>>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>>>
>>>On Mon, Aug 23, 2010 at 1:04 PM, Mateusz Loskot <> wrote:
>>>> Hi,
>>>>
>>>> I've noticed current revision of WKT Raster is broken.
>>>> Running the core tests for r5841 ends up with assertion and
>>>> load of warnings:
>>>>
>>>> ./testapi
>>>> 1111 pixtype = 2
>>>> Raster starts with 0 bands
>>>> First point on convexhull ring is 0.5,0.5
>>>> Second point on convexhull ring is 256.5,1280.5
>>>> Third point on convexhull ring is 1280.5,1536.5
>>>> Fourth point on convexhull ring is 1024.5,256.5
>>>> Fifth point on convexhull ring is 0.5,0.5
>>>> Testing polygonize function
>>>> Testing 1BB band
>>>> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 2
>>>> to 0
>>>> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 3
>>>> to 1
>>>> WARNING: Pixel value for 1BB band got truncated from 2 to 0
>>>> WARNING: Pixel value for 1BB band got truncated from 3 to 1
>>>> Testing 2BB band
>>>> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 4
>>>> to 0
>>>> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 5
>>>> to 1
>>>> WARNING: Pixel value for 2BUI band got truncated from 4 to 0
>>>> WARNING: Pixel value for 2BUI band got truncated from 5 to 1
>>>> Testing 4BUI band
>>>> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
>>>> 16 to 0
>>>> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
>>>> 17 to 1
>>>> WARNING: Pixel value for 4BUI band got truncated from 35 to 3
>>>> Testing 8BUI band
>>>> WARNING: rt_band_set_nodata: NODATA value for 8BUI band got truncated from
>>>> 256 to 0
>>>> WARNING: Pixel value for 8BUI band got truncated from 256 to 0
>>>> Testing 8BSI band
>>>> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
>>>> -129 to 127
>>>> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
>>>> 129 to -127
>>>> WARNING: Pixel value for 8BSI band got truncated from -129 to 127
>>>> WARNING: Pixel value for 8BSI band got truncated from 129 to -127
>>>> Testing 16BSI band
>>>> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
>>>> -32769 to 32767
>>>> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
>>>> 32769 to -32767
>>>> WARNING: Pixel value for 16BSI band got truncated from -32769 to 32767
>>>> WARNING: Pixel value for 16BSI band got truncated from 32769 to -32767
>>>> ERROR: Coordinates ouf of range
>>>> Testing 16BUI band
>>>> WARNING: rt_band_set_nodata: NODATA value for 16BUI band got truncated from
>>>> 65536 to 0
>>>> WARNING: Pixel value for 16BUI band got truncated from 65536 to 0
>>>> ERROR: Coordinates ouf of range
>>>> Testing 32BUI band
>>>> WARNING: rt_band_set_nodata: NODATA value for 32BUI band got truncated from
>>>> 4.29497e+09 to 0
>>>> WARNING: Pixel value for 32BUI band got truncated from 4.29497e+09 to 0
>>>> ERROR: Coordinates ouf of range
>>>> Testing 32BSI band
>>>> WARNING: rt_band_set_nodata: NODATA value for 32BSI band got truncated from
>>>> 2.14748e+09 to -2.14748e+09
>>>> WARNING: Pixel value for 32BSI band got truncated from 2.14748e+09 to
>>>> -2.14748e+09
>>>> ERROR: Coordinates ouf of range
>>>> Testing 32BF band
>>>> Testing 64BF band
>>>> Testing band hasnodata flag
>>>> testapi: rt_api.c:545: rt_band_get_data: Assertion `((void *)0) != band'
>>>> failed.
>>>> make[2]: *** [check] Aborted
>>>> make[2]: Leaving directory
>>>> `/home/mloskot/dev/wktraster/_svn/trunk/test/core'
>>>> make[1]: *** [check] Error 2
>>>> make[1]: Leaving directory `/home/mloskot/dev/wktraster/_svn/trunk/test'
>>>> make: *** [check] Error 2
>>>>
>>>> The assertion is serious and happens in crucial function.
>>>> I checked and the last healthy revision seems to be r5811.
>>>>
>>>> Pierre, Jorge, could you re-validate your recent commits?
>>>> You do run "make check" before every commit, don't you?
>>>>
>>>> Best regards,
>>>> --
>>>> Mateusz Loskot, http://mateusz.loskot.net
>>>> _______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. On 23/08/10 17:23, Jorge Arévalo wrote:
> Thanks for the fix, Pierre. But I'm getting a Segmentation Fault. caused by
>
> memcpy(raster->bands[i], oldbands[oldi++], sizeof(rt_band));
>
> (rt_core/rt_api.c, line 1351)
>
> in Ubuntu Linux. Anyone else?

I've quickly checked running make check and I confirm this issue.
Getting segmentation fault too.

Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. On Mon, Aug 23, 2010 at 11:11 PM, Pierre Racine
<> wrote:
> Could you test the last one. Thanks. Sorry for that my C is a bit rusty.
>
> Pierre
>

OK. make check is working fine for me now.

Jorge

>>-----Original Message-----
>>From: postgis-devel- [mailto:postgis-devel-
>>] On Behalf Of Mateusz Loskot
>>Sent: 23 août 2010 12:50
>>To: postgis-
>>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>>
>>On 23/08/10 17:23, Jorge Arévalo wrote:
>>> Thanks for the fix, Pierre. But I'm getting a Segmentation Fault. caused by
>>>
>>> memcpy(raster->bands[i], oldbands[oldi++], sizeof(rt_band));
>>>
>>> (rt_core/rt_api.c, line 1351)
>>>
>>> in Ubuntu Linux. Anyone else?
>>
>>I've quickly checked running make check and I confirm this issue.
>>Getting segmentation fault too.
>>
>>Best regards,
>>--
>>Mateusz Loskot, http://mateusz.loskot.net
>>_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. On 24/08/10 10:39, Jorge Arévalo wrote:
> On Mon, Aug 23, 2010 at 11:11 PM, Pierre Racine
> <> wrote:
>> Could you test the last one. Thanks. Sorry for that my C is a bit rusty.
>
> OK. make check is working fine for me now.

Works for me too, however regression test is failing:L


mloskot@vb-ubuntu910-x64:~/dev/wktraster/_svn/trunk$ make post-install-check

...
Creating spatial db rtpostgis_reg
TMPDIR is /tmp/rtpgis_reg_4435

PostgreSQL 8.4.4 on x86_64-pc-linux-gnu, compiled by GCC gcc-4.4.real
(Ubuntu 4.4.3-4ubuntu5) 4.4.3, 64-bit
Postgis 2.0.0SVN - 2010-08-04 11:37:17
GEOS: 3.3.0-CAPI-1.7.0
PROJ: Rel. 4.7.1, 23 September 2009
WKTRaster 0.1.6d - 2010-08-24 09:14:21

Running tests

check_raster_columns. ok
check_raster_overviews. ok
rt_io. ok
create_rt_bytea_test. ok
rt_bytea. ok
create_rt_box2d_test. ok
rt_box2d. ok
rt_addband. failed (diff expected obtained:
/tmp/rtpgis_reg_4435/test_8_diff)
create_rt_properties_test. ok
rt_dimensions. ok
rt_pixelsize. ok
rt_upperleft. ok
rt_rotation. ok
rt_georeference. ok
rt_set_properties. ok
create_rt_band_properties_test. ok
rt_band_properties. ok
rt_set_band_properties. ok
rt_pixelvalue. ok
create_rt_utility_test. ok
rt_utility. ok
create_rt_gist_test. ok
rt_above. ok
rt_below. ok
rt_contained. ok
rt_contain. ok
rt_left. ok
rt_overabove. ok
rt_overbelow. ok
rt_overlap. ok
rt_overleft. ok
rt_overright. ok
rt_right. ok
rt_same. ok
rt_spatial_relationship. ok
bug_test_car5. ok

Run tests: 36
Failed: 1
make[2]: Leaving directory
`/home/mloskot/dev/wktraster/_svn/trunk/test/regress'
make[1]: Leaving directory `/home/mloskot/dev/wktraster/_svn/trunk/test'
mloskot@vb-ubuntu910-x64:~/dev/wktraster/_svn/trunk$ cat
/tmp/rtpgis_reg_4435/test_8_diff
*** rt_addband_expected 2010-08-23 16:51:59.000000000 +0100
--- /tmp/rtpgis_reg_4435/test_8_out 2010-08-24 10:15:19.000000000 +0100
***************
*** 45,52 ****
154
WARNING: Initial pixel value for 8BUI band got truncated from
256.000000 to 255
255
! WARNING: Initial pixel value for 16BSI band got truncated from
-32769.000000 to -32768
! -32768
-32768
0
32767
--- 45,52 ----
154
WARNING: Initial pixel value for 8BUI band got truncated from
256.000000 to 255
255
! WARNING: Initial pixel value for 16BSI band got truncated from
-32769.000000 to 32767
! 32767
-32768
0
32767
***************
*** 54,61 ****
-32768
WARNING: Initial pixel value for 16BSI band got truncated from
21.460000 to 21
21
! WARNING: Initial pixel value for 16BSI band got truncated from
210000.460000 to -32768
! -32768
WARNING: Initial pixel value for 16BUI band got truncated from
-1.000000 to 65535
65535
0
--- 54,61 ----
-32768
WARNING: Initial pixel value for 16BSI band got truncated from
21.460000 to 21
21
! WARNING: Initial pixel value for 16BSI band got truncated from
210000.460000 to 13392
! 13392
WARNING: Initial pixel value for 16BUI band got truncated from
-1.000000 to 65535
65535
0
mloskot@vb-ubuntu910-x64:~/dev/wktraster/_svn/trunk$


Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. make post-install-check works for me too... Maybe is a problem with
PostGIS/GEOS/PROJ versions... here my versions

PostgreSQL 8.4.4 on i486-pc-linux-gnu, compiled by GCC gcc-4.4.real
(Ubuntu 4.4.1-4ubuntu8) 4.4.1, 32-bit
Postgis 1.4.2 - 2010-08-05 17:36:12
GEOS: 3.3.0-CAPI-1.6.1
PROJ: Rel. 4.7.1, 23 September 2009
WKTRaster 0.1.6d - 2010-08-18 13:49:03

I'll do the test with a newer version of postgis (2.0.0SVN, like you,
for example).

A minor issue: the rtpostgis_reg database created for postinstall
check is not deleted by default. Mateusz, did you change it for any
reason? (r5822 was the previous version)

2010/8/24 Mateusz Loskot <>:
> On 24/08/10 10:39, Jorge Arévalo wrote:
>>
>> On Mon, Aug 23, 2010 at 11:11 PM, Pierre Racine
>> <>  wrote:
>>>
>>> Could you test the last one. Thanks. Sorry for that my C is a bit rusty.
>>
>> OK. make check is working fine for me now.
>
> Works for me too, however regression test is failing:L
>
>
> mloskot@vb-ubuntu910-x64:~/dev/wktraster/_svn/trunk$ make post-install-check
>
> ...
> Creating spatial db rtpostgis_reg
> TMPDIR is /tmp/rtpgis_reg_4435
>
>  PostgreSQL 8.4.4 on x86_64-pc-linux-gnu, compiled by GCC gcc-4.4.real
> (Ubuntu 4.4.3-4ubuntu5) 4.4.3, 64-bit
>  Postgis 2.0.0SVN - 2010-08-04 11:37:17
>   GEOS: 3.3.0-CAPI-1.7.0
>   PROJ: Rel. 4.7.1, 23 September 2009
>  WKTRaster 0.1.6d - 2010-08-24 09:14:21
>
> Running tests
>
>  check_raster_columns. ok
>  check_raster_overviews. ok
>  rt_io. ok
>  create_rt_bytea_test. ok
>  rt_bytea. ok
>  create_rt_box2d_test. ok
>  rt_box2d. ok
>  rt_addband. failed (diff expected obtained:
> /tmp/rtpgis_reg_4435/test_8_diff)
>  create_rt_properties_test. ok
>  rt_dimensions. ok
>  rt_pixelsize. ok
>  rt_upperleft. ok
>  rt_rotation. ok
>  rt_georeference. ok
>  rt_set_properties. ok
>  create_rt_band_properties_test. ok
>  rt_band_properties. ok
>  rt_set_band_properties. ok
>  rt_pixelvalue. ok
>  create_rt_utility_test. ok
>  rt_utility. ok
>  create_rt_gist_test. ok
>  rt_above. ok
>  rt_below. ok
>  rt_contained. ok
>  rt_contain. ok
>  rt_left. ok
>  rt_overabove. ok
>  rt_overbelow. ok
>  rt_overlap. ok
>  rt_overleft. ok
>  rt_overright. ok
>  rt_right. ok
>  rt_same. ok
>  rt_spatial_relationship. ok
>  bug_test_car5. ok
>
> Run tests: 36
> Failed: 1
> make[2]: Leaving directory
> `/home/mloskot/dev/wktraster/_svn/trunk/test/regress'
> make[1]: Leaving directory `/home/mloskot/dev/wktraster/_svn/trunk/test'
> mloskot@vb-ubuntu910-x64:~/dev/wktraster/_svn/trunk$ cat
> /tmp/rtpgis_reg_4435/test_8_diff
> *** rt_addband_expected 2010-08-23 16:51:59.000000000 +0100
> --- /tmp/rtpgis_reg_4435/test_8_out     2010-08-24 10:15:19.000000000 +0100
> ***************
> *** 45,52 ****
>  154
>  WARNING:  Initial pixel value for 8BUI band got truncated from 256.000000
> to 255
>  255
> ! WARNING:  Initial pixel value for 16BSI band got truncated from
> -32769.000000 to -32768
> ! -32768
>  -32768
>  0
>  32767
> --- 45,52 ----
>  154
>  WARNING:  Initial pixel value for 8BUI band got truncated from 256.000000
> to 255
>  255
> ! WARNING:  Initial pixel value for 16BSI band got truncated from
> -32769.000000 to 32767
> ! 32767
>  -32768
>  0
>  32767
> ***************
> *** 54,61 ****
>  -32768
>  WARNING:  Initial pixel value for 16BSI band got truncated from 21.460000
> to 21
>  21
> ! WARNING:  Initial pixel value for 16BSI band got truncated from
> 210000.460000 to -32768
> ! -32768
>  WARNING:  Initial pixel value for 16BUI band got truncated from -1.000000
> to 65535
>  65535
>  0
> --- 54,61 ----
>  -32768
>  WARNING:  Initial pixel value for 16BSI band got truncated from 21.460000
> to 21
>  21
> ! WARNING:  Initial pixel value for 16BSI band got truncated from
> 210000.460000 to 13392
> ! 13392
>  WARNING:  Initial pixel value for 16BUI band got truncated from -1.000000
> to 65535
>  65535
>  0
> mloskot@vb-ubuntu910-x64:~/dev/wktraster/_svn/trunk$
>
>
> Best regards,
> --
> Mateusz Loskot, http://mateusz.loskot.net
>



--
Jorge Arévalo
DEIMOS Space
Internet & Mobilty Division
Ronda de Poniente 19. Edificio Fiteni VI, portal 2, 2º
28760 Tres Cantos (Madrid)


http://gis4free.wordpress.com
_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. On 24/08/10 11:08, Jorge Arévalo wrote:
> make post-install-check works for me too... Maybe is a problem with
> PostGIS/GEOS/PROJ versions... here my versions
>
> PostgreSQL 8.4.4 on i486-pc-linux-gnu, compiled by GCC gcc-4.4.real
> (Ubuntu 4.4.1-4ubuntu8) 4.4.1, 32-bit
> Postgis 1.4.2 - 2010-08-05 17:36:12
> GEOS: 3.3.0-CAPI-1.6.1
> PROJ: Rel. 4.7.1, 23 September 2009
> WKTRaster 0.1.6d - 2010-08-18 13:49:03
>
> I'll do the test with a newer version of postgis (2.0.0SVN, like you,
> for example).

OK, thanks.

> A minor issue: the rtpostgis_reg database created for postinstall
> check is not deleted by default. Mateusz, did you change it for any
> reason? (r5822 was the previous version)

Which changeset you mean exactly. The following is r5823
and some changes in test/regress/run_test.in happened.

Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. 2010/8/24 Mateusz Loskot <>:
> On 24/08/10 11:08, Jorge Arévalo wrote:
>>
>> A minor issue: the rtpostgis_reg database created for postinstall
>> check is not deleted by default. Mateusz, did you change it for any
>> reason? (r5822 was the previous version)
>
> Which changeset you mean exactly. The following is r5823
> and some changes in test/regress/run_test.in happened.
>

Yes, sorry, my mistake. I mean the last change on
test/regress/run_test.in. A little change:

http://trac.osgeo.org/postgis/changeset/5823/spike/wktraster/test/regress/run_test.in

May I change the DROP option again, or is a bad idea?

> Best regards,
> --
> Mateusz Loskot, http://mateusz.loskot.net
>



--
Jorge Arévalo
DEIMOS Space
Internet & Mobilty Division
Ronda de Poniente 19. Edificio Fiteni VI, portal 2, 2º
28760 Tres Cantos (Madrid)


http://gis4free.wordpress.com
_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. On 24/08/10 11:32, Jorge Arévalo wrote:
> 2010/8/24 Mateusz Loskot<>:
>> On 24/08/10 11:08, Jorge Arévalo wrote:
>>>
>>> A minor issue: the rtpostgis_reg database created for postinstall
>>> check is not deleted by default. Mateusz, did you change it for any
>>> reason? (r5822 was the previous version)
>>
>> Which changeset you mean exactly. The following is r5823
>> and some changes in test/regress/run_test.in happened.
>>
>
> Yes, sorry, my mistake. I mean the last change on
> test/regress/run_test.in. A little change:
>
> http://trac.osgeo.org/postgis/changeset/5823/spike/wktraster/test/regress/run_test.in
>
> May I change the DROP option again, or is a bad idea?

IMO, we should follow PostGIS' approach:

http://trac.osgeo.org/postgis/changeset/5823/spike/wktraster/test/regress/run_test.in

AFAIU, it is yes, I'd re-enable the drop option.

Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe.

  #13  
24-08-2010 01:48 PM
PostGIS : postgis-devel member admin is online now
User
 

Hi,

I've noticed current revision of WKT Raster is broken.
Running the core tests for r5841 ends up with assertion and
load of warnings:

./testapi
1111 pixtype = 2
Raster starts with 0 bands
First point on convexhull ring is 0.5,0.5
Second point on convexhull ring is 256.5,1280.5
Third point on convexhull ring is 1280.5,1536.5
Fourth point on convexhull ring is 1024.5,256.5
Fifth point on convexhull ring is 0.5,0.5
Testing polygonize function
Testing 1BB band
WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated
from 2 to 0
WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated
from 3 to 1
WARNING: Pixel value for 1BB band got truncated from 2 to 0
WARNING: Pixel value for 1BB band got truncated from 3 to 1
Testing 2BB band
WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated
from 4 to 0
WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated
from 5 to 1
WARNING: Pixel value for 2BUI band got truncated from 4 to 0
WARNING: Pixel value for 2BUI band got truncated from 5 to 1
Testing 4BUI band
WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated
from 16 to 0
WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated
from 17 to 1
WARNING: Pixel value for 4BUI band got truncated from 35 to 3
Testing 8BUI band
WARNING: rt_band_set_nodata: NODATA value for 8BUI band got truncated
from 256 to 0
WARNING: Pixel value for 8BUI band got truncated from 256 to 0
Testing 8BSI band
WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated
from -129 to 127
WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated
from 129 to -127
WARNING: Pixel value for 8BSI band got truncated from -129 to 127
WARNING: Pixel value for 8BSI band got truncated from 129 to -127
Testing 16BSI band
WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated
from -32769 to 32767
WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated
from 32769 to -32767
WARNING: Pixel value for 16BSI band got truncated from -32769 to 32767
WARNING: Pixel value for 16BSI band got truncated from 32769 to -32767
ERROR: Coordinates ouf of range
Testing 16BUI band
WARNING: rt_band_set_nodata: NODATA value for 16BUI band got truncated
from 65536 to 0
WARNING: Pixel value for 16BUI band got truncated from 65536 to 0
ERROR: Coordinates ouf of range
Testing 32BUI band
WARNING: rt_band_set_nodata: NODATA value for 32BUI band got truncated
from 4.29497e+09 to 0
WARNING: Pixel value for 32BUI band got truncated from 4.29497e+09 to 0
ERROR: Coordinates ouf of range
Testing 32BSI band
WARNING: rt_band_set_nodata: NODATA value for 32BSI band got truncated
from 2.14748e+09 to -2.14748e+09
WARNING: Pixel value for 32BSI band got truncated from 2.14748e+09 to
-2.14748e+09
ERROR: Coordinates ouf of range
Testing 32BF band
Testing 64BF band
Testing band hasnodata flag
testapi: rt_api.c:545: rt_band_get_data: Assertion `((void *)0) != band'
failed.
make[2]: *** [check] Aborted
make[2]: Leaving directory
`/home/mloskot/dev/wktraster/_svn/trunk/test/core'
make[1]: *** [check] Error 2
make[1]: Leaving directory `/home/mloskot/dev/wktraster/_svn/trunk/test'
make: *** [check] Error 2

The assertion is serious and happens in crucial function.
I checked and the last healthy revision seems to be r5811.

Pierre, Jorge, could you re-validate your recent commits?
You do run "make check" before every commit, don't you?

Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. On Mon, Aug 23, 2010 at 1:04 PM, Mateusz Loskot <> wrote:
> Hi,
>
> I've noticed current revision of WKT Raster is broken.
> Running the core tests for r5841 ends up with assertion and
> load of warnings:
>
> ./testapi
> 1111 pixtype = 2
> Raster starts with 0 bands
> First point on convexhull ring is 0.5,0.5
> Second point on convexhull ring is 256.5,1280.5
> Third point on convexhull ring is 1280.5,1536.5
> Fourth point on convexhull ring is 1024.5,256.5
> Fifth point on convexhull ring is 0.5,0.5
> Testing polygonize function
> Testing 1BB band
> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 2
> to 0
> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 3
> to 1
> WARNING: Pixel value for 1BB band got truncated from 2 to 0
> WARNING: Pixel value for 1BB band got truncated from 3 to 1
> Testing 2BB band
> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 4
> to 0
> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 5
> to 1
> WARNING: Pixel value for 2BUI band got truncated from 4 to 0
> WARNING: Pixel value for 2BUI band got truncated from 5 to 1
> Testing 4BUI band
> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
> 16 to 0
> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
> 17 to 1
> WARNING: Pixel value for 4BUI band got truncated from 35 to 3
> Testing 8BUI band
> WARNING: rt_band_set_nodata: NODATA value for 8BUI band got truncated from
> 256 to 0
> WARNING: Pixel value for 8BUI band got truncated from 256 to 0
> Testing 8BSI band
> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
> -129 to 127
> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
> 129 to -127
> WARNING: Pixel value for 8BSI band got truncated from -129 to 127
> WARNING: Pixel value for 8BSI band got truncated from 129 to -127
> Testing 16BSI band
> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
> -32769 to 32767
> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
> 32769 to -32767
> WARNING: Pixel value for 16BSI band got truncated from -32769 to 32767
> WARNING: Pixel value for 16BSI band got truncated from 32769 to -32767
> ERROR: Coordinates ouf of range
> Testing 16BUI band
> WARNING: rt_band_set_nodata: NODATA value for 16BUI band got truncated from
> 65536 to 0
> WARNING: Pixel value for 16BUI band got truncated from 65536 to 0
> ERROR: Coordinates ouf of range
> Testing 32BUI band
> WARNING: rt_band_set_nodata: NODATA value for 32BUI band got truncated from
> 4.29497e+09 to 0
> WARNING: Pixel value for 32BUI band got truncated from 4.29497e+09 to 0
> ERROR: Coordinates ouf of range
> Testing 32BSI band
> WARNING: rt_band_set_nodata: NODATA value for 32BSI band got truncated from
> 2.14748e+09 to -2.14748e+09
> WARNING: Pixel value for 32BSI band got truncated from 2.14748e+09 to
> -2.14748e+09
> ERROR: Coordinates ouf of range
> Testing 32BF band
> Testing 64BF band
> Testing band hasnodata flag
> testapi: rt_api.c:545: rt_band_get_data: Assertion `((void *)0) != band'
> failed.
> make[2]: *** [check] Aborted
> make[2]: Leaving directory
> `/home/mloskot/dev/wktraster/_svn/trunk/test/core'
> make[1]: *** [check] Error 2
> make[1]: Leaving directory `/home/mloskot/dev/wktraster/_svn/trunk/test'
> make: *** [check] Error 2
>
> The assertion is serious and happens in crucial function.
> I checked and the last healthy revision seems to be r5811.
>
> Pierre, Jorge, could you re-validate your recent commits?
> You do run "make check" before every commit, don't you?
>
> Best regards,
> --
> Mateusz Loskot, http://mateusz.loskot.net
> _______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. Probably my fault. Double check...

Pierre

>-----Original Message-----
>From: postgis-devel- [mailto:postgis-devel-
>] On Behalf Of Jorge Arévalo
>Sent: 23 août 2010 07:39
>To: PostGIS Development Discussion
>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>
>On Mon, Aug 23, 2010 at 1:04 PM, Mateusz Loskot <> wrote:
>> Hi,
>>
>> I've noticed current revision of WKT Raster is broken.
>> Running the core tests for r5841 ends up with assertion and
>> load of warnings:
>>
>> ./testapi
>> 1111 pixtype = 2
>> Raster starts with 0 bands
>> First point on convexhull ring is 0.5,0.5
>> Second point on convexhull ring is 256.5,1280.5
>> Third point on convexhull ring is 1280.5,1536.5
>> Fourth point on convexhull ring is 1024.5,256.5
>> Fifth point on convexhull ring is 0.5,0.5
>> Testing polygonize function
>> Testing 1BB band
>> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 2
>> to 0
>> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 3
>> to 1
>> WARNING: Pixel value for 1BB band got truncated from 2 to 0
>> WARNING: Pixel value for 1BB band got truncated from 3 to 1
>> Testing 2BB band
>> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 4
>> to 0
>> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 5
>> to 1
>> WARNING: Pixel value for 2BUI band got truncated from 4 to 0
>> WARNING: Pixel value for 2BUI band got truncated from 5 to 1
>> Testing 4BUI band
>> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
>> 16 to 0
>> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
>> 17 to 1
>> WARNING: Pixel value for 4BUI band got truncated from 35 to 3
>> Testing 8BUI band
>> WARNING: rt_band_set_nodata: NODATA value for 8BUI band got truncated from
>> 256 to 0
>> WARNING: Pixel value for 8BUI band got truncated from 256 to 0
>> Testing 8BSI band
>> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
>> -129 to 127
>> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
>> 129 to -127
>> WARNING: Pixel value for 8BSI band got truncated from -129 to 127
>> WARNING: Pixel value for 8BSI band got truncated from 129 to -127
>> Testing 16BSI band
>> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
>> -32769 to 32767
>> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
>> 32769 to -32767
>> WARNING: Pixel value for 16BSI band got truncated from -32769 to 32767
>> WARNING: Pixel value for 16BSI band got truncated from 32769 to -32767
>> ERROR: Coordinates ouf of range
>> Testing 16BUI band
>> WARNING: rt_band_set_nodata: NODATA value for 16BUI band got truncated from
>> 65536 to 0
>> WARNING: Pixel value for 16BUI band got truncated from 65536 to 0
>> ERROR: Coordinates ouf of range
>> Testing 32BUI band
>> WARNING: rt_band_set_nodata: NODATA value for 32BUI band got truncated from
>> 4.29497e+09 to 0
>> WARNING: Pixel value for 32BUI band got truncated from 4.29497e+09 to 0
>> ERROR: Coordinates ouf of range
>> Testing 32BSI band
>> WARNING: rt_band_set_nodata: NODATA value for 32BSI band got truncated from
>> 2.14748e+09 to -2.14748e+09
>> WARNING: Pixel value for 32BSI band got truncated from 2.14748e+09 to
>> -2.14748e+09
>> ERROR: Coordinates ouf of range
>> Testing 32BF band
>> Testing 64BF band
>> Testing band hasnodata flag
>> testapi: rt_api.c:545: rt_band_get_data: Assertion `((void *)0) != band'
>> failed.
>> make[2]: *** [check] Aborted
>> make[2]: Leaving directory
>> `/home/mloskot/dev/wktraster/_svn/trunk/test/core'
>> make[1]: *** [check] Error 2
>> make[1]: Leaving directory `/home/mloskot/dev/wktraster/_svn/trunk/test'
>> make: *** [check] Error 2
>>
>> The assertion is serious and happens in crucial function.
>> I checked and the last healthy revision seems to be r5811.
>>
>> Pierre, Jorge, could you re-validate your recent commits?
>> You do run "make check" before every commit, don't you?
>>
>> Best regards,
>> --
>> Mateusz Loskot, http://mateusz.loskot.net
>> _______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. fixed in r5864

Sorry for that. Probably forgot to make check.

Pierre

>-----Original Message-----
>From: postgis-devel- [mailto:postgis-devel-
>] On Behalf Of Pierre Racine
>Sent: 23 août 2010 09:24
>To: PostGIS Development Discussion
>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>
>Probably my fault. Double check...
>
>Pierre
>
>>-----Original Message-----
>>From: postgis-devel- [mailto:postgis-devel-
>>] On Behalf Of Jorge Arévalo
>>Sent: 23 août 2010 07:39
>>To: PostGIS Development Discussion
>>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>>
>>On Mon, Aug 23, 2010 at 1:04 PM, Mateusz Loskot <> wrote:
>>> Hi,
>>>
>>> I've noticed current revision of WKT Raster is broken.
>>> Running the core tests for r5841 ends up with assertion and
>>> load of warnings:
>>>
>>> ./testapi
>>> 1111 pixtype = 2
>>> Raster starts with 0 bands
>>> First point on convexhull ring is 0.5,0.5
>>> Second point on convexhull ring is 256.5,1280.5
>>> Third point on convexhull ring is 1280.5,1536.5
>>> Fourth point on convexhull ring is 1024.5,256.5
>>> Fifth point on convexhull ring is 0.5,0.5
>>> Testing polygonize function
>>> Testing 1BB band
>>> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 2
>>> to 0
>>> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 3
>>> to 1
>>> WARNING: Pixel value for 1BB band got truncated from 2 to 0
>>> WARNING: Pixel value for 1BB band got truncated from 3 to 1
>>> Testing 2BB band
>>> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 4
>>> to 0
>>> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 5
>>> to 1
>>> WARNING: Pixel value for 2BUI band got truncated from 4 to 0
>>> WARNING: Pixel value for 2BUI band got truncated from 5 to 1
>>> Testing 4BUI band
>>> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
>>> 16 to 0
>>> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
>>> 17 to 1
>>> WARNING: Pixel value for 4BUI band got truncated from 35 to 3
>>> Testing 8BUI band
>>> WARNING: rt_band_set_nodata: NODATA value for 8BUI band got truncated from
>>> 256 to 0
>>> WARNING: Pixel value for 8BUI band got truncated from 256 to 0
>>> Testing 8BSI band
>>> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
>>> -129 to 127
>>> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
>>> 129 to -127
>>> WARNING: Pixel value for 8BSI band got truncated from -129 to 127
>>> WARNING: Pixel value for 8BSI band got truncated from 129 to -127
>>> Testing 16BSI band
>>> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
>>> -32769 to 32767
>>> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
>>> 32769 to -32767
>>> WARNING: Pixel value for 16BSI band got truncated from -32769 to 32767
>>> WARNING: Pixel value for 16BSI band got truncated from 32769 to -32767
>>> ERROR: Coordinates ouf of range
>>> Testing 16BUI band
>>> WARNING: rt_band_set_nodata: NODATA value for 16BUI band got truncated from
>>> 65536 to 0
>>> WARNING: Pixel value for 16BUI band got truncated from 65536 to 0
>>> ERROR: Coordinates ouf of range
>>> Testing 32BUI band
>>> WARNING: rt_band_set_nodata: NODATA value for 32BUI band got truncated from
>>> 4.29497e+09 to 0
>>> WARNING: Pixel value for 32BUI band got truncated from 4.29497e+09 to 0
>>> ERROR: Coordinates ouf of range
>>> Testing 32BSI band
>>> WARNING: rt_band_set_nodata: NODATA value for 32BSI band got truncated from
>>> 2.14748e+09 to -2.14748e+09
>>> WARNING: Pixel value for 32BSI band got truncated from 2.14748e+09 to
>>> -2.14748e+09
>>> ERROR: Coordinates ouf of range
>>> Testing 32BF band
>>> Testing 64BF band
>>> Testing band hasnodata flag
>>> testapi: rt_api.c:545: rt_band_get_data: Assertion `((void *)0) != band'
>>> failed.
>>> make[2]: *** [check] Aborted
>>> make[2]: Leaving directory
>>> `/home/mloskot/dev/wktraster/_svn/trunk/test/core'
>>> make[1]: *** [check] Error 2
>>> make[1]: Leaving directory `/home/mloskot/dev/wktraster/_svn/trunk/test'
>>> make: *** [check] Error 2
>>>
>>> The assertion is serious and happens in crucial function.
>>> I checked and the last healthy revision seems to be r5811.
>>>
>>> Pierre, Jorge, could you re-validate your recent commits?
>>> You do run "make check" before every commit, don't you?
>>>
>>> Best regards,
>>> --
>>> Mateusz Loskot, http://mateusz.loskot.net
>>> _______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. Thanks for the fix, Pierre. But I'm getting a Segmentation Fault. caused by

memcpy(raster->bands[i], oldbands[oldi++], sizeof(rt_band));

(rt_core/rt_api.c, line 1351)

in Ubuntu Linux. Anyone else?

On Mon, Aug 23, 2010 at 4:53 PM, Pierre Racine
<> wrote:
> fixed in r5864
>
> Sorry for that. Probably forgot to make check.
>
> Pierre
>
>>-----Original Message-----
>>From: postgis-devel- [mailto:postgis-devel-
>>] On Behalf Of Pierre Racine
>>Sent: 23 août 2010 09:24
>>To: PostGIS Development Discussion
>>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>>
>>Probably my fault. Double check...
>>
>>Pierre
>>
>>>-----Original Message-----
>>>From: postgis-devel- [mailto:postgis-devel-
>>>] On Behalf Of Jorge Arévalo
>>>Sent: 23 août 2010 07:39
>>>To: PostGIS Development Discussion
>>>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>>>
>>>On Mon, Aug 23, 2010 at 1:04 PM, Mateusz Loskot <> wrote:
>>>> Hi,
>>>>
>>>> I've noticed current revision of WKT Raster is broken.
>>>> Running the core tests for r5841 ends up with assertion and
>>>> load of warnings:
>>>>
>>>> ./testapi
>>>> 1111 pixtype = 2
>>>> Raster starts with 0 bands
>>>> First point on convexhull ring is 0.5,0.5
>>>> Second point on convexhull ring is 256.5,1280.5
>>>> Third point on convexhull ring is 1280.5,1536.5
>>>> Fourth point on convexhull ring is 1024.5,256.5
>>>> Fifth point on convexhull ring is 0.5,0.5
>>>> Testing polygonize function
>>>> Testing 1BB band
>>>> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 2
>>>> to 0
>>>> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 3
>>>> to 1
>>>> WARNING: Pixel value for 1BB band got truncated from 2 to 0
>>>> WARNING: Pixel value for 1BB band got truncated from 3 to 1
>>>> Testing 2BB band
>>>> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 4
>>>> to 0
>>>> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 5
>>>> to 1
>>>> WARNING: Pixel value for 2BUI band got truncated from 4 to 0
>>>> WARNING: Pixel value for 2BUI band got truncated from 5 to 1
>>>> Testing 4BUI band
>>>> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
>>>> 16 to 0
>>>> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
>>>> 17 to 1
>>>> WARNING: Pixel value for 4BUI band got truncated from 35 to 3
>>>> Testing 8BUI band
>>>> WARNING: rt_band_set_nodata: NODATA value for 8BUI band got truncated from
>>>> 256 to 0
>>>> WARNING: Pixel value for 8BUI band got truncated from 256 to 0
>>>> Testing 8BSI band
>>>> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
>>>> -129 to 127
>>>> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
>>>> 129 to -127
>>>> WARNING: Pixel value for 8BSI band got truncated from -129 to 127
>>>> WARNING: Pixel value for 8BSI band got truncated from 129 to -127
>>>> Testing 16BSI band
>>>> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
>>>> -32769 to 32767
>>>> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
>>>> 32769 to -32767
>>>> WARNING: Pixel value for 16BSI band got truncated from -32769 to 32767
>>>> WARNING: Pixel value for 16BSI band got truncated from 32769 to -32767
>>>> ERROR: Coordinates ouf of range
>>>> Testing 16BUI band
>>>> WARNING: rt_band_set_nodata: NODATA value for 16BUI band got truncated from
>>>> 65536 to 0
>>>> WARNING: Pixel value for 16BUI band got truncated from 65536 to 0
>>>> ERROR: Coordinates ouf of range
>>>> Testing 32BUI band
>>>> WARNING: rt_band_set_nodata: NODATA value for 32BUI band got truncated from
>>>> 4.29497e+09 to 0
>>>> WARNING: Pixel value for 32BUI band got truncated from 4.29497e+09 to 0
>>>> ERROR: Coordinates ouf of range
>>>> Testing 32BSI band
>>>> WARNING: rt_band_set_nodata: NODATA value for 32BSI band got truncated from
>>>> 2.14748e+09 to -2.14748e+09
>>>> WARNING: Pixel value for 32BSI band got truncated from 2.14748e+09 to
>>>> -2.14748e+09
>>>> ERROR: Coordinates ouf of range
>>>> Testing 32BF band
>>>> Testing 64BF band
>>>> Testing band hasnodata flag
>>>> testapi: rt_api.c:545: rt_band_get_data: Assertion `((void *)0) != band'
>>>> failed.
>>>> make[2]: *** [check] Aborted
>>>> make[2]: Leaving directory
>>>> `/home/mloskot/dev/wktraster/_svn/trunk/test/core'
>>>> make[1]: *** [check] Error 2
>>>> make[1]: Leaving directory `/home/mloskot/dev/wktraster/_svn/trunk/test'
>>>> make: *** [check] Error 2
>>>>
>>>> The assertion is serious and happens in crucial function.
>>>> I checked and the last healthy revision seems to be r5811.
>>>>
>>>> Pierre, Jorge, could you re-validate your recent commits?
>>>> You do run "make check" before every commit, don't you?
>>>>
>>>> Best regards,
>>>> --
>>>> Mateusz Loskot, http://mateusz.loskot.net
>>>> _______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. On 23/08/10 17:23, Jorge Arévalo wrote:
> Thanks for the fix, Pierre. But I'm getting a Segmentation Fault. caused by
>
> memcpy(raster->bands[i], oldbands[oldi++], sizeof(rt_band));
>
> (rt_core/rt_api.c, line 1351)
>
> in Ubuntu Linux. Anyone else?

I've quickly checked running make check and I confirm this issue.
Getting segmentation fault too.

Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. On Mon, Aug 23, 2010 at 11:11 PM, Pierre Racine
<> wrote:
> Could you test the last one. Thanks. Sorry for that my C is a bit rusty.
>
> Pierre
>

OK. make check is working fine for me now.

Jorge

>>-----Original Message-----
>>From: postgis-devel- [mailto:postgis-devel-
>>] On Behalf Of Mateusz Loskot
>>Sent: 23 août 2010 12:50
>>To: postgis-
>>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>>
>>On 23/08/10 17:23, Jorge Arévalo wrote:
>>> Thanks for the fix, Pierre. But I'm getting a Segmentation Fault. caused by
>>>
>>> memcpy(raster->bands[i], oldbands[oldi++], sizeof(rt_band));
>>>
>>> (rt_core/rt_api.c, line 1351)
>>>
>>> in Ubuntu Linux. Anyone else?
>>
>>I've quickly checked running make check and I confirm this issue.
>>Getting segmentation fault too.
>>
>>Best regards,
>>--
>>Mateusz Loskot, http://mateusz.loskot.net
>>_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. On 24/08/10 10:39, Jorge Arévalo wrote:
> On Mon, Aug 23, 2010 at 11:11 PM, Pierre Racine
> <> wrote:
>> Could you test the last one. Thanks. Sorry for that my C is a bit rusty.
>
> OK. make check is working fine for me now.

Works for me too, however regression test is failing:L


mloskot@vb-ubuntu910-x64:~/dev/wktraster/_svn/trunk$ make post-install-check

...
Creating spatial db rtpostgis_reg
TMPDIR is /tmp/rtpgis_reg_4435

PostgreSQL 8.4.4 on x86_64-pc-linux-gnu, compiled by GCC gcc-4.4.real
(Ubuntu 4.4.3-4ubuntu5) 4.4.3, 64-bit
Postgis 2.0.0SVN - 2010-08-04 11:37:17
GEOS: 3.3.0-CAPI-1.7.0
PROJ: Rel. 4.7.1, 23 September 2009
WKTRaster 0.1.6d - 2010-08-24 09:14:21

Running tests

check_raster_columns. ok
check_raster_overviews. ok
rt_io. ok
create_rt_bytea_test. ok
rt_bytea. ok
create_rt_box2d_test. ok
rt_box2d. ok
rt_addband. failed (diff expected obtained:
/tmp/rtpgis_reg_4435/test_8_diff)
create_rt_properties_test. ok
rt_dimensions. ok
rt_pixelsize. ok
rt_upperleft. ok
rt_rotation. ok
rt_georeference. ok
rt_set_properties. ok
create_rt_band_properties_test. ok
rt_band_properties. ok
rt_set_band_properties. ok
rt_pixelvalue. ok
create_rt_utility_test. ok
rt_utility. ok
create_rt_gist_test. ok
rt_above. ok
rt_below. ok
rt_contained. ok
rt_contain. ok
rt_left. ok
rt_overabove. ok
rt_overbelow. ok
rt_overlap. ok
rt_overleft. ok
rt_overright. ok
rt_right. ok
rt_same. ok
rt_spatial_relationship. ok
bug_test_car5. ok

Run tests: 36
Failed: 1
make[2]: Leaving directory
`/home/mloskot/dev/wktraster/_svn/trunk/test/regress'
make[1]: Leaving directory `/home/mloskot/dev/wktraster/_svn/trunk/test'
mloskot@vb-ubuntu910-x64:~/dev/wktraster/_svn/trunk$ cat
/tmp/rtpgis_reg_4435/test_8_diff
*** rt_addband_expected 2010-08-23 16:51:59.000000000 +0100
--- /tmp/rtpgis_reg_4435/test_8_out 2010-08-24 10:15:19.000000000 +0100
***************
*** 45,52 ****
154
WARNING: Initial pixel value for 8BUI band got truncated from
256.000000 to 255
255
! WARNING: Initial pixel value for 16BSI band got truncated from
-32769.000000 to -32768
! -32768
-32768
0
32767
--- 45,52 ----
154
WARNING: Initial pixel value for 8BUI band got truncated from
256.000000 to 255
255
! WARNING: Initial pixel value for 16BSI band got truncated from
-32769.000000 to 32767
! 32767
-32768
0
32767
***************
*** 54,61 ****
-32768
WARNING: Initial pixel value for 16BSI band got truncated from
21.460000 to 21
21
! WARNING: Initial pixel value for 16BSI band got truncated from
210000.460000 to -32768
! -32768
WARNING: Initial pixel value for 16BUI band got truncated from
-1.000000 to 65535
65535
0
--- 54,61 ----
-32768
WARNING: Initial pixel value for 16BSI band got truncated from
21.460000 to 21
21
! WARNING: Initial pixel value for 16BSI band got truncated from
210000.460000 to 13392
! 13392
WARNING: Initial pixel value for 16BUI band got truncated from
-1.000000 to 65535
65535
0
mloskot@vb-ubuntu910-x64:~/dev/wktraster/_svn/trunk$


Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. make post-install-check works for me too... Maybe is a problem with
PostGIS/GEOS/PROJ versions... here my versions

PostgreSQL 8.4.4 on i486-pc-linux-gnu, compiled by GCC gcc-4.4.real
(Ubuntu 4.4.1-4ubuntu8) 4.4.1, 32-bit
Postgis 1.4.2 - 2010-08-05 17:36:12
GEOS: 3.3.0-CAPI-1.6.1
PROJ: Rel. 4.7.1, 23 September 2009
WKTRaster 0.1.6d - 2010-08-18 13:49:03

I'll do the test with a newer version of postgis (2.0.0SVN, like you,
for example).

A minor issue: the rtpostgis_reg database created for postinstall
check is not deleted by default. Mateusz, did you change it for any
reason? (r5822 was the previous version)

2010/8/24 Mateusz Loskot <>:
> On 24/08/10 10:39, Jorge Arévalo wrote:
>>
>> On Mon, Aug 23, 2010 at 11:11 PM, Pierre Racine
>> <>  wrote:
>>>
>>> Could you test the last one. Thanks. Sorry for that my C is a bit rusty.
>>
>> OK. make check is working fine for me now.
>
> Works for me too, however regression test is failing:L
>
>
> mloskot@vb-ubuntu910-x64:~/dev/wktraster/_svn/trunk$ make post-install-check
>
> ...
> Creating spatial db rtpostgis_reg
> TMPDIR is /tmp/rtpgis_reg_4435
>
>  PostgreSQL 8.4.4 on x86_64-pc-linux-gnu, compiled by GCC gcc-4.4.real
> (Ubuntu 4.4.3-4ubuntu5) 4.4.3, 64-bit
>  Postgis 2.0.0SVN - 2010-08-04 11:37:17
>   GEOS: 3.3.0-CAPI-1.7.0
>   PROJ: Rel. 4.7.1, 23 September 2009
>  WKTRaster 0.1.6d - 2010-08-24 09:14:21
>
> Running tests
>
>  check_raster_columns. ok
>  check_raster_overviews. ok
>  rt_io. ok
>  create_rt_bytea_test. ok
>  rt_bytea. ok
>  create_rt_box2d_test. ok
>  rt_box2d. ok
>  rt_addband. failed (diff expected obtained:
> /tmp/rtpgis_reg_4435/test_8_diff)
>  create_rt_properties_test. ok
>  rt_dimensions. ok
>  rt_pixelsize. ok
>  rt_upperleft. ok
>  rt_rotation. ok
>  rt_georeference. ok
>  rt_set_properties. ok
>  create_rt_band_properties_test. ok
>  rt_band_properties. ok
>  rt_set_band_properties. ok
>  rt_pixelvalue. ok
>  create_rt_utility_test. ok
>  rt_utility. ok
>  create_rt_gist_test. ok
>  rt_above. ok
>  rt_below. ok
>  rt_contained. ok
>  rt_contain. ok
>  rt_left. ok
>  rt_overabove. ok
>  rt_overbelow. ok
>  rt_overlap. ok
>  rt_overleft. ok
>  rt_overright. ok
>  rt_right. ok
>  rt_same. ok
>  rt_spatial_relationship. ok
>  bug_test_car5. ok
>
> Run tests: 36
> Failed: 1
> make[2]: Leaving directory
> `/home/mloskot/dev/wktraster/_svn/trunk/test/regress'
> make[1]: Leaving directory `/home/mloskot/dev/wktraster/_svn/trunk/test'
> mloskot@vb-ubuntu910-x64:~/dev/wktraster/_svn/trunk$ cat
> /tmp/rtpgis_reg_4435/test_8_diff
> *** rt_addband_expected 2010-08-23 16:51:59.000000000 +0100
> --- /tmp/rtpgis_reg_4435/test_8_out     2010-08-24 10:15:19.000000000 +0100
> ***************
> *** 45,52 ****
>  154
>  WARNING:  Initial pixel value for 8BUI band got truncated from 256.000000
> to 255
>  255
> ! WARNING:  Initial pixel value for 16BSI band got truncated from
> -32769.000000 to -32768
> ! -32768
>  -32768
>  0
>  32767
> --- 45,52 ----
>  154
>  WARNING:  Initial pixel value for 8BUI band got truncated from 256.000000
> to 255
>  255
> ! WARNING:  Initial pixel value for 16BSI band got truncated from
> -32769.000000 to 32767
> ! 32767
>  -32768
>  0
>  32767
> ***************
> *** 54,61 ****
>  -32768
>  WARNING:  Initial pixel value for 16BSI band got truncated from 21.460000
> to 21
>  21
> ! WARNING:  Initial pixel value for 16BSI band got truncated from
> 210000.460000 to -32768
> ! -32768
>  WARNING:  Initial pixel value for 16BUI band got truncated from -1.000000
> to 65535
>  65535
>  0
> --- 54,61 ----
>  -32768
>  WARNING:  Initial pixel value for 16BSI band got truncated from 21.460000
> to 21
>  21
> ! WARNING:  Initial pixel value for 16BSI band got truncated from
> 210000.460000 to 13392
> ! 13392
>  WARNING:  Initial pixel value for 16BUI band got truncated from -1.000000
> to 65535
>  65535
>  0
> mloskot@vb-ubuntu910-x64:~/dev/wktraster/_svn/trunk$
>
>
> Best regards,
> --
> Mateusz Loskot, http://mateusz.loskot.net
>



--
Jorge Arévalo
DEIMOS Space
Internet & Mobilty Division
Ronda de Poniente 19. Edificio Fiteni VI, portal 2, 2º
28760 Tres Cantos (Madrid)


http://gis4free.wordpress.com
_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. On 24/08/10 11:08, Jorge Arévalo wrote:
> make post-install-check works for me too... Maybe is a problem with
> PostGIS/GEOS/PROJ versions... here my versions
>
> PostgreSQL 8.4.4 on i486-pc-linux-gnu, compiled by GCC gcc-4.4.real
> (Ubuntu 4.4.1-4ubuntu8) 4.4.1, 32-bit
> Postgis 1.4.2 - 2010-08-05 17:36:12
> GEOS: 3.3.0-CAPI-1.6.1
> PROJ: Rel. 4.7.1, 23 September 2009
> WKTRaster 0.1.6d - 2010-08-18 13:49:03
>
> I'll do the test with a newer version of postgis (2.0.0SVN, like you,
> for example).

OK, thanks.

> A minor issue: the rtpostgis_reg database created for postinstall
> check is not deleted by default. Mateusz, did you change it for any
> reason? (r5822 was the previous version)

Which changeset you mean exactly. The following is r5823
and some changes in test/regress/run_test.in happened.

Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. 2010/8/24 Mateusz Loskot <>:
> On 24/08/10 11:08, Jorge Arévalo wrote:
>>
>> A minor issue: the rtpostgis_reg database created for postinstall
>> check is not deleted by default. Mateusz, did you change it for any
>> reason? (r5822 was the previous version)
>
> Which changeset you mean exactly. The following is r5823
> and some changes in test/regress/run_test.in happened.
>

Yes, sorry, my mistake. I mean the last change on
test/regress/run_test.in. A little change:

http://trac.osgeo.org/postgis/changeset/5823/spike/wktraster/test/regress/run_test.in

May I change the DROP option again, or is a bad idea?

> Best regards,
> --
> Mateusz Loskot, http://mateusz.loskot.net
>



--
Jorge Arévalo
DEIMOS Space
Internet & Mobilty Division
Ronda de Poniente 19. Edificio Fiteni VI, portal 2, 2º
28760 Tres Cantos (Madrid)


http://gis4free.wordpress.com
_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. On 24/08/10 11:32, Jorge Arévalo wrote:
> 2010/8/24 Mateusz Loskot<>:
>> On 24/08/10 11:08, Jorge Arévalo wrote:
>>>
>>> A minor issue: the rtpostgis_reg database created for postinstall
>>> check is not deleted by default. Mateusz, did you change it for any
>>> reason? (r5822 was the previous version)
>>
>> Which changeset you mean exactly. The following is r5823
>> and some changes in test/regress/run_test.in happened.
>>
>
> Yes, sorry, my mistake. I mean the last change on
> test/regress/run_test.in. A little change:
>
> http://trac.osgeo.org/postgis/changeset/5823/spike/wktraster/test/regress/run_test.in
>
> May I change the DROP option again, or is a bad idea?

IMO, we should follow PostGIS' approach:

http://trac.osgeo.org/postgis/changeset/5823/spike/wktraster/test/regress/run_test.in

AFAIU, it is yes, I'd re-enable the drop option.

Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. Mateusz,

Could you get your regression test to work?

I reverted the drop option to "yes".

Pierre

>-----Original Message-----
>From: postgis-devel- [mailto:postgis-devel-
>] On Behalf Of Mateusz Loskot
>Sent: 24 août 2010 06:48
>To: Jorge Arévalo
>Cc: PostGIS Development Discussion
>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>
>On 24/08/10 11:32, Jorge Arévalo wrote:
>> 2010/8/24 Mateusz Loskot<>:
>>> On 24/08/10 11:08, Jorge Arévalo wrote:
>>>>
>>>> A minor issue: the rtpostgis_reg database created for postinstall
>>>> check is not deleted by default. Mateusz, did you change it for any
>>>> reason? (r5822 was the previous version)
>>>
>>> Which changeset you mean exactly. The following is r5823
>>> and some changes in test/regress/run_test.in happened.
>>>
>>
>> Yes, sorry, my mistake. I mean the last change on
>> test/regress/run_test.in. A little change:
>>
>> http://trac.osgeo.org/postgis/changeset/5823/spike/wktraster/test/regress/run_test.in
>>
>> May I change the DROP option again, or is a bad idea?
>
>IMO, we should follow PostGIS' approach:
>
>http://trac.osgeo.org/postgis/changeset/5823/spike/wktraster/test/regress/run_test.in
>
>AFAIU, it is yes, I'd re-enable the drop option.
>
>Best regards,
>--
>Mateusz Loskot, http://mateusz.loskot.net
>_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe.

  #14  
31-08-2010 06:13 PM
PostGIS : postgis-devel member admin is online now
User
 

Hi,

I've noticed current revision of WKT Raster is broken.
Running the core tests for r5841 ends up with assertion and
load of warnings:

./testapi
1111 pixtype = 2
Raster starts with 0 bands
First point on convexhull ring is 0.5,0.5
Second point on convexhull ring is 256.5,1280.5
Third point on convexhull ring is 1280.5,1536.5
Fourth point on convexhull ring is 1024.5,256.5
Fifth point on convexhull ring is 0.5,0.5
Testing polygonize function
Testing 1BB band
WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated
from 2 to 0
WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated
from 3 to 1
WARNING: Pixel value for 1BB band got truncated from 2 to 0
WARNING: Pixel value for 1BB band got truncated from 3 to 1
Testing 2BB band
WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated
from 4 to 0
WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated
from 5 to 1
WARNING: Pixel value for 2BUI band got truncated from 4 to 0
WARNING: Pixel value for 2BUI band got truncated from 5 to 1
Testing 4BUI band
WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated
from 16 to 0
WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated
from 17 to 1
WARNING: Pixel value for 4BUI band got truncated from 35 to 3
Testing 8BUI band
WARNING: rt_band_set_nodata: NODATA value for 8BUI band got truncated
from 256 to 0
WARNING: Pixel value for 8BUI band got truncated from 256 to 0
Testing 8BSI band
WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated
from -129 to 127
WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated
from 129 to -127
WARNING: Pixel value for 8BSI band got truncated from -129 to 127
WARNING: Pixel value for 8BSI band got truncated from 129 to -127
Testing 16BSI band
WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated
from -32769 to 32767
WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated
from 32769 to -32767
WARNING: Pixel value for 16BSI band got truncated from -32769 to 32767
WARNING: Pixel value for 16BSI band got truncated from 32769 to -32767
ERROR: Coordinates ouf of range
Testing 16BUI band
WARNING: rt_band_set_nodata: NODATA value for 16BUI band got truncated
from 65536 to 0
WARNING: Pixel value for 16BUI band got truncated from 65536 to 0
ERROR: Coordinates ouf of range
Testing 32BUI band
WARNING: rt_band_set_nodata: NODATA value for 32BUI band got truncated
from 4.29497e+09 to 0
WARNING: Pixel value for 32BUI band got truncated from 4.29497e+09 to 0
ERROR: Coordinates ouf of range
Testing 32BSI band
WARNING: rt_band_set_nodata: NODATA value for 32BSI band got truncated
from 2.14748e+09 to -2.14748e+09
WARNING: Pixel value for 32BSI band got truncated from 2.14748e+09 to
-2.14748e+09
ERROR: Coordinates ouf of range
Testing 32BF band
Testing 64BF band
Testing band hasnodata flag
testapi: rt_api.c:545: rt_band_get_data: Assertion `((void *)0) != band'
failed.
make[2]: *** [check] Aborted
make[2]: Leaving directory
`/home/mloskot/dev/wktraster/_svn/trunk/test/core'
make[1]: *** [check] Error 2
make[1]: Leaving directory `/home/mloskot/dev/wktraster/_svn/trunk/test'
make: *** [check] Error 2

The assertion is serious and happens in crucial function.
I checked and the last healthy revision seems to be r5811.

Pierre, Jorge, could you re-validate your recent commits?
You do run "make check" before every commit, don't you?

Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. On Mon, Aug 23, 2010 at 1:04 PM, Mateusz Loskot <> wrote:
> Hi,
>
> I've noticed current revision of WKT Raster is broken.
> Running the core tests for r5841 ends up with assertion and
> load of warnings:
>
> ./testapi
> 1111 pixtype = 2
> Raster starts with 0 bands
> First point on convexhull ring is 0.5,0.5
> Second point on convexhull ring is 256.5,1280.5
> Third point on convexhull ring is 1280.5,1536.5
> Fourth point on convexhull ring is 1024.5,256.5
> Fifth point on convexhull ring is 0.5,0.5
> Testing polygonize function
> Testing 1BB band
> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 2
> to 0
> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 3
> to 1
> WARNING: Pixel value for 1BB band got truncated from 2 to 0
> WARNING: Pixel value for 1BB band got truncated from 3 to 1
> Testing 2BB band
> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 4
> to 0
> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 5
> to 1
> WARNING: Pixel value for 2BUI band got truncated from 4 to 0
> WARNING: Pixel value for 2BUI band got truncated from 5 to 1
> Testing 4BUI band
> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
> 16 to 0
> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
> 17 to 1
> WARNING: Pixel value for 4BUI band got truncated from 35 to 3
> Testing 8BUI band
> WARNING: rt_band_set_nodata: NODATA value for 8BUI band got truncated from
> 256 to 0
> WARNING: Pixel value for 8BUI band got truncated from 256 to 0
> Testing 8BSI band
> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
> -129 to 127
> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
> 129 to -127
> WARNING: Pixel value for 8BSI band got truncated from -129 to 127
> WARNING: Pixel value for 8BSI band got truncated from 129 to -127
> Testing 16BSI band
> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
> -32769 to 32767
> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
> 32769 to -32767
> WARNING: Pixel value for 16BSI band got truncated from -32769 to 32767
> WARNING: Pixel value for 16BSI band got truncated from 32769 to -32767
> ERROR: Coordinates ouf of range
> Testing 16BUI band
> WARNING: rt_band_set_nodata: NODATA value for 16BUI band got truncated from
> 65536 to 0
> WARNING: Pixel value for 16BUI band got truncated from 65536 to 0
> ERROR: Coordinates ouf of range
> Testing 32BUI band
> WARNING: rt_band_set_nodata: NODATA value for 32BUI band got truncated from
> 4.29497e+09 to 0
> WARNING: Pixel value for 32BUI band got truncated from 4.29497e+09 to 0
> ERROR: Coordinates ouf of range
> Testing 32BSI band
> WARNING: rt_band_set_nodata: NODATA value for 32BSI band got truncated from
> 2.14748e+09 to -2.14748e+09
> WARNING: Pixel value for 32BSI band got truncated from 2.14748e+09 to
> -2.14748e+09
> ERROR: Coordinates ouf of range
> Testing 32BF band
> Testing 64BF band
> Testing band hasnodata flag
> testapi: rt_api.c:545: rt_band_get_data: Assertion `((void *)0) != band'
> failed.
> make[2]: *** [check] Aborted
> make[2]: Leaving directory
> `/home/mloskot/dev/wktraster/_svn/trunk/test/core'
> make[1]: *** [check] Error 2
> make[1]: Leaving directory `/home/mloskot/dev/wktraster/_svn/trunk/test'
> make: *** [check] Error 2
>
> The assertion is serious and happens in crucial function.
> I checked and the last healthy revision seems to be r5811.
>
> Pierre, Jorge, could you re-validate your recent commits?
> You do run "make check" before every commit, don't you?
>
> Best regards,
> --
> Mateusz Loskot, http://mateusz.loskot.net
> _______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. Probably my fault. Double check...

Pierre

>-----Original Message-----
>From: postgis-devel- [mailto:postgis-devel-
>] On Behalf Of Jorge Arévalo
>Sent: 23 août 2010 07:39
>To: PostGIS Development Discussion
>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>
>On Mon, Aug 23, 2010 at 1:04 PM, Mateusz Loskot <> wrote:
>> Hi,
>>
>> I've noticed current revision of WKT Raster is broken.
>> Running the core tests for r5841 ends up with assertion and
>> load of warnings:
>>
>> ./testapi
>> 1111 pixtype = 2
>> Raster starts with 0 bands
>> First point on convexhull ring is 0.5,0.5
>> Second point on convexhull ring is 256.5,1280.5
>> Third point on convexhull ring is 1280.5,1536.5
>> Fourth point on convexhull ring is 1024.5,256.5
>> Fifth point on convexhull ring is 0.5,0.5
>> Testing polygonize function
>> Testing 1BB band
>> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 2
>> to 0
>> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 3
>> to 1
>> WARNING: Pixel value for 1BB band got truncated from 2 to 0
>> WARNING: Pixel value for 1BB band got truncated from 3 to 1
>> Testing 2BB band
>> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 4
>> to 0
>> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 5
>> to 1
>> WARNING: Pixel value for 2BUI band got truncated from 4 to 0
>> WARNING: Pixel value for 2BUI band got truncated from 5 to 1
>> Testing 4BUI band
>> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
>> 16 to 0
>> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
>> 17 to 1
>> WARNING: Pixel value for 4BUI band got truncated from 35 to 3
>> Testing 8BUI band
>> WARNING: rt_band_set_nodata: NODATA value for 8BUI band got truncated from
>> 256 to 0
>> WARNING: Pixel value for 8BUI band got truncated from 256 to 0
>> Testing 8BSI band
>> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
>> -129 to 127
>> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
>> 129 to -127
>> WARNING: Pixel value for 8BSI band got truncated from -129 to 127
>> WARNING: Pixel value for 8BSI band got truncated from 129 to -127
>> Testing 16BSI band
>> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
>> -32769 to 32767
>> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
>> 32769 to -32767
>> WARNING: Pixel value for 16BSI band got truncated from -32769 to 32767
>> WARNING: Pixel value for 16BSI band got truncated from 32769 to -32767
>> ERROR: Coordinates ouf of range
>> Testing 16BUI band
>> WARNING: rt_band_set_nodata: NODATA value for 16BUI band got truncated from
>> 65536 to 0
>> WARNING: Pixel value for 16BUI band got truncated from 65536 to 0
>> ERROR: Coordinates ouf of range
>> Testing 32BUI band
>> WARNING: rt_band_set_nodata: NODATA value for 32BUI band got truncated from
>> 4.29497e+09 to 0
>> WARNING: Pixel value for 32BUI band got truncated from 4.29497e+09 to 0
>> ERROR: Coordinates ouf of range
>> Testing 32BSI band
>> WARNING: rt_band_set_nodata: NODATA value for 32BSI band got truncated from
>> 2.14748e+09 to -2.14748e+09
>> WARNING: Pixel value for 32BSI band got truncated from 2.14748e+09 to
>> -2.14748e+09
>> ERROR: Coordinates ouf of range
>> Testing 32BF band
>> Testing 64BF band
>> Testing band hasnodata flag
>> testapi: rt_api.c:545: rt_band_get_data: Assertion `((void *)0) != band'
>> failed.
>> make[2]: *** [check] Aborted
>> make[2]: Leaving directory
>> `/home/mloskot/dev/wktraster/_svn/trunk/test/core'
>> make[1]: *** [check] Error 2
>> make[1]: Leaving directory `/home/mloskot/dev/wktraster/_svn/trunk/test'
>> make: *** [check] Error 2
>>
>> The assertion is serious and happens in crucial function.
>> I checked and the last healthy revision seems to be r5811.
>>
>> Pierre, Jorge, could you re-validate your recent commits?
>> You do run "make check" before every commit, don't you?
>>
>> Best regards,
>> --
>> Mateusz Loskot, http://mateusz.loskot.net
>> _______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. fixed in r5864

Sorry for that. Probably forgot to make check.

Pierre

>-----Original Message-----
>From: postgis-devel- [mailto:postgis-devel-
>] On Behalf Of Pierre Racine
>Sent: 23 août 2010 09:24
>To: PostGIS Development Discussion
>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>
>Probably my fault. Double check...
>
>Pierre
>
>>-----Original Message-----
>>From: postgis-devel- [mailto:postgis-devel-
>>] On Behalf Of Jorge Arévalo
>>Sent: 23 août 2010 07:39
>>To: PostGIS Development Discussion
>>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>>
>>On Mon, Aug 23, 2010 at 1:04 PM, Mateusz Loskot <> wrote:
>>> Hi,
>>>
>>> I've noticed current revision of WKT Raster is broken.
>>> Running the core tests for r5841 ends up with assertion and
>>> load of warnings:
>>>
>>> ./testapi
>>> 1111 pixtype = 2
>>> Raster starts with 0 bands
>>> First point on convexhull ring is 0.5,0.5
>>> Second point on convexhull ring is 256.5,1280.5
>>> Third point on convexhull ring is 1280.5,1536.5
>>> Fourth point on convexhull ring is 1024.5,256.5
>>> Fifth point on convexhull ring is 0.5,0.5
>>> Testing polygonize function
>>> Testing 1BB band
>>> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 2
>>> to 0
>>> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 3
>>> to 1
>>> WARNING: Pixel value for 1BB band got truncated from 2 to 0
>>> WARNING: Pixel value for 1BB band got truncated from 3 to 1
>>> Testing 2BB band
>>> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 4
>>> to 0
>>> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 5
>>> to 1
>>> WARNING: Pixel value for 2BUI band got truncated from 4 to 0
>>> WARNING: Pixel value for 2BUI band got truncated from 5 to 1
>>> Testing 4BUI band
>>> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
>>> 16 to 0
>>> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
>>> 17 to 1
>>> WARNING: Pixel value for 4BUI band got truncated from 35 to 3
>>> Testing 8BUI band
>>> WARNING: rt_band_set_nodata: NODATA value for 8BUI band got truncated from
>>> 256 to 0
>>> WARNING: Pixel value for 8BUI band got truncated from 256 to 0
>>> Testing 8BSI band
>>> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
>>> -129 to 127
>>> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
>>> 129 to -127
>>> WARNING: Pixel value for 8BSI band got truncated from -129 to 127
>>> WARNING: Pixel value for 8BSI band got truncated from 129 to -127
>>> Testing 16BSI band
>>> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
>>> -32769 to 32767
>>> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
>>> 32769 to -32767
>>> WARNING: Pixel value for 16BSI band got truncated from -32769 to 32767
>>> WARNING: Pixel value for 16BSI band got truncated from 32769 to -32767
>>> ERROR: Coordinates ouf of range
>>> Testing 16BUI band
>>> WARNING: rt_band_set_nodata: NODATA value for 16BUI band got truncated from
>>> 65536 to 0
>>> WARNING: Pixel value for 16BUI band got truncated from 65536 to 0
>>> ERROR: Coordinates ouf of range
>>> Testing 32BUI band
>>> WARNING: rt_band_set_nodata: NODATA value for 32BUI band got truncated from
>>> 4.29497e+09 to 0
>>> WARNING: Pixel value for 32BUI band got truncated from 4.29497e+09 to 0
>>> ERROR: Coordinates ouf of range
>>> Testing 32BSI band
>>> WARNING: rt_band_set_nodata: NODATA value for 32BSI band got truncated from
>>> 2.14748e+09 to -2.14748e+09
>>> WARNING: Pixel value for 32BSI band got truncated from 2.14748e+09 to
>>> -2.14748e+09
>>> ERROR: Coordinates ouf of range
>>> Testing 32BF band
>>> Testing 64BF band
>>> Testing band hasnodata flag
>>> testapi: rt_api.c:545: rt_band_get_data: Assertion `((void *)0) != band'
>>> failed.
>>> make[2]: *** [check] Aborted
>>> make[2]: Leaving directory
>>> `/home/mloskot/dev/wktraster/_svn/trunk/test/core'
>>> make[1]: *** [check] Error 2
>>> make[1]: Leaving directory `/home/mloskot/dev/wktraster/_svn/trunk/test'
>>> make: *** [check] Error 2
>>>
>>> The assertion is serious and happens in crucial function.
>>> I checked and the last healthy revision seems to be r5811.
>>>
>>> Pierre, Jorge, could you re-validate your recent commits?
>>> You do run "make check" before every commit, don't you?
>>>
>>> Best regards,
>>> --
>>> Mateusz Loskot, http://mateusz.loskot.net
>>> _______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. Thanks for the fix, Pierre. But I'm getting a Segmentation Fault. caused by

memcpy(raster->bands[i], oldbands[oldi++], sizeof(rt_band));

(rt_core/rt_api.c, line 1351)

in Ubuntu Linux. Anyone else?

On Mon, Aug 23, 2010 at 4:53 PM, Pierre Racine
<> wrote:
> fixed in r5864
>
> Sorry for that. Probably forgot to make check.
>
> Pierre
>
>>-----Original Message-----
>>From: postgis-devel- [mailto:postgis-devel-
>>] On Behalf Of Pierre Racine
>>Sent: 23 août 2010 09:24
>>To: PostGIS Development Discussion
>>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>>
>>Probably my fault. Double check...
>>
>>Pierre
>>
>>>-----Original Message-----
>>>From: postgis-devel- [mailto:postgis-devel-
>>>] On Behalf Of Jorge Arévalo
>>>Sent: 23 août 2010 07:39
>>>To: PostGIS Development Discussion
>>>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>>>
>>>On Mon, Aug 23, 2010 at 1:04 PM, Mateusz Loskot <> wrote:
>>>> Hi,
>>>>
>>>> I've noticed current revision of WKT Raster is broken.
>>>> Running the core tests for r5841 ends up with assertion and
>>>> load of warnings:
>>>>
>>>> ./testapi
>>>> 1111 pixtype = 2
>>>> Raster starts with 0 bands
>>>> First point on convexhull ring is 0.5,0.5
>>>> Second point on convexhull ring is 256.5,1280.5
>>>> Third point on convexhull ring is 1280.5,1536.5
>>>> Fourth point on convexhull ring is 1024.5,256.5
>>>> Fifth point on convexhull ring is 0.5,0.5
>>>> Testing polygonize function
>>>> Testing 1BB band
>>>> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 2
>>>> to 0
>>>> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 3
>>>> to 1
>>>> WARNING: Pixel value for 1BB band got truncated from 2 to 0
>>>> WARNING: Pixel value for 1BB band got truncated from 3 to 1
>>>> Testing 2BB band
>>>> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 4
>>>> to 0
>>>> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 5
>>>> to 1
>>>> WARNING: Pixel value for 2BUI band got truncated from 4 to 0
>>>> WARNING: Pixel value for 2BUI band got truncated from 5 to 1
>>>> Testing 4BUI band
>>>> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
>>>> 16 to 0
>>>> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
>>>> 17 to 1
>>>> WARNING: Pixel value for 4BUI band got truncated from 35 to 3
>>>> Testing 8BUI band
>>>> WARNING: rt_band_set_nodata: NODATA value for 8BUI band got truncated from
>>>> 256 to 0
>>>> WARNING: Pixel value for 8BUI band got truncated from 256 to 0
>>>> Testing 8BSI band
>>>> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
>>>> -129 to 127
>>>> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
>>>> 129 to -127
>>>> WARNING: Pixel value for 8BSI band got truncated from -129 to 127
>>>> WARNING: Pixel value for 8BSI band got truncated from 129 to -127
>>>> Testing 16BSI band
>>>> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
>>>> -32769 to 32767
>>>> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
>>>> 32769 to -32767
>>>> WARNING: Pixel value for 16BSI band got truncated from -32769 to 32767
>>>> WARNING: Pixel value for 16BSI band got truncated from 32769 to -32767
>>>> ERROR: Coordinates ouf of range
>>>> Testing 16BUI band
>>>> WARNING: rt_band_set_nodata: NODATA value for 16BUI band got truncated from
>>>> 65536 to 0
>>>> WARNING: Pixel value for 16BUI band got truncated from 65536 to 0
>>>> ERROR: Coordinates ouf of range
>>>> Testing 32BUI band
>>>> WARNING: rt_band_set_nodata: NODATA value for 32BUI band got truncated from
>>>> 4.29497e+09 to 0
>>>> WARNING: Pixel value for 32BUI band got truncated from 4.29497e+09 to 0
>>>> ERROR: Coordinates ouf of range
>>>> Testing 32BSI band
>>>> WARNING: rt_band_set_nodata: NODATA value for 32BSI band got truncated from
>>>> 2.14748e+09 to -2.14748e+09
>>>> WARNING: Pixel value for 32BSI band got truncated from 2.14748e+09 to
>>>> -2.14748e+09
>>>> ERROR: Coordinates ouf of range
>>>> Testing 32BF band
>>>> Testing 64BF band
>>>> Testing band hasnodata flag
>>>> testapi: rt_api.c:545: rt_band_get_data: Assertion `((void *)0) != band'
>>>> failed.
>>>> make[2]: *** [check] Aborted
>>>> make[2]: Leaving directory
>>>> `/home/mloskot/dev/wktraster/_svn/trunk/test/core'
>>>> make[1]: *** [check] Error 2
>>>> make[1]: Leaving directory `/home/mloskot/dev/wktraster/_svn/trunk/test'
>>>> make: *** [check] Error 2
>>>>
>>>> The assertion is serious and happens in crucial function.
>>>> I checked and the last healthy revision seems to be r5811.
>>>>
>>>> Pierre, Jorge, could you re-validate your recent commits?
>>>> You do run "make check" before every commit, don't you?
>>>>
>>>> Best regards,
>>>> --
>>>> Mateusz Loskot, http://mateusz.loskot.net
>>>> _______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. On 23/08/10 17:23, Jorge Arévalo wrote:
> Thanks for the fix, Pierre. But I'm getting a Segmentation Fault. caused by
>
> memcpy(raster->bands[i], oldbands[oldi++], sizeof(rt_band));
>
> (rt_core/rt_api.c, line 1351)
>
> in Ubuntu Linux. Anyone else?

I've quickly checked running make check and I confirm this issue.
Getting segmentation fault too.

Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. On Mon, Aug 23, 2010 at 11:11 PM, Pierre Racine
<> wrote:
> Could you test the last one. Thanks. Sorry for that my C is a bit rusty.
>
> Pierre
>

OK. make check is working fine for me now.

Jorge

>>-----Original Message-----
>>From: postgis-devel- [mailto:postgis-devel-
>>] On Behalf Of Mateusz Loskot
>>Sent: 23 août 2010 12:50
>>To: postgis-
>>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>>
>>On 23/08/10 17:23, Jorge Arévalo wrote:
>>> Thanks for the fix, Pierre. But I'm getting a Segmentation Fault. caused by
>>>
>>> memcpy(raster->bands[i], oldbands[oldi++], sizeof(rt_band));
>>>
>>> (rt_core/rt_api.c, line 1351)
>>>
>>> in Ubuntu Linux. Anyone else?
>>
>>I've quickly checked running make check and I confirm this issue.
>>Getting segmentation fault too.
>>
>>Best regards,
>>--
>>Mateusz Loskot, http://mateusz.loskot.net
>>_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. On 24/08/10 10:39, Jorge Arévalo wrote:
> On Mon, Aug 23, 2010 at 11:11 PM, Pierre Racine
> <> wrote:
>> Could you test the last one. Thanks. Sorry for that my C is a bit rusty.
>
> OK. make check is working fine for me now.

Works for me too, however regression test is failing:L


mloskot@vb-ubuntu910-x64:~/dev/wktraster/_svn/trunk$ make post-install-check

...
Creating spatial db rtpostgis_reg
TMPDIR is /tmp/rtpgis_reg_4435

PostgreSQL 8.4.4 on x86_64-pc-linux-gnu, compiled by GCC gcc-4.4.real
(Ubuntu 4.4.3-4ubuntu5) 4.4.3, 64-bit
Postgis 2.0.0SVN - 2010-08-04 11:37:17
GEOS: 3.3.0-CAPI-1.7.0
PROJ: Rel. 4.7.1, 23 September 2009
WKTRaster 0.1.6d - 2010-08-24 09:14:21

Running tests

check_raster_columns. ok
check_raster_overviews. ok
rt_io. ok
create_rt_bytea_test. ok
rt_bytea. ok
create_rt_box2d_test. ok
rt_box2d. ok
rt_addband. failed (diff expected obtained:
/tmp/rtpgis_reg_4435/test_8_diff)
create_rt_properties_test. ok
rt_dimensions. ok
rt_pixelsize. ok
rt_upperleft. ok
rt_rotation. ok
rt_georeference. ok
rt_set_properties. ok
create_rt_band_properties_test. ok
rt_band_properties. ok
rt_set_band_properties. ok
rt_pixelvalue. ok
create_rt_utility_test. ok
rt_utility. ok
create_rt_gist_test. ok
rt_above. ok
rt_below. ok
rt_contained. ok
rt_contain. ok
rt_left. ok
rt_overabove. ok
rt_overbelow. ok
rt_overlap. ok
rt_overleft. ok
rt_overright. ok
rt_right. ok
rt_same. ok
rt_spatial_relationship. ok
bug_test_car5. ok

Run tests: 36
Failed: 1
make[2]: Leaving directory
`/home/mloskot/dev/wktraster/_svn/trunk/test/regress'
make[1]: Leaving directory `/home/mloskot/dev/wktraster/_svn/trunk/test'
mloskot@vb-ubuntu910-x64:~/dev/wktraster/_svn/trunk$ cat
/tmp/rtpgis_reg_4435/test_8_diff
*** rt_addband_expected 2010-08-23 16:51:59.000000000 +0100
--- /tmp/rtpgis_reg_4435/test_8_out 2010-08-24 10:15:19.000000000 +0100
***************
*** 45,52 ****
154
WARNING: Initial pixel value for 8BUI band got truncated from
256.000000 to 255
255
! WARNING: Initial pixel value for 16BSI band got truncated from
-32769.000000 to -32768
! -32768
-32768
0
32767
--- 45,52 ----
154
WARNING: Initial pixel value for 8BUI band got truncated from
256.000000 to 255
255
! WARNING: Initial pixel value for 16BSI band got truncated from
-32769.000000 to 32767
! 32767
-32768
0
32767
***************
*** 54,61 ****
-32768
WARNING: Initial pixel value for 16BSI band got truncated from
21.460000 to 21
21
! WARNING: Initial pixel value for 16BSI band got truncated from
210000.460000 to -32768
! -32768
WARNING: Initial pixel value for 16BUI band got truncated from
-1.000000 to 65535
65535
0
--- 54,61 ----
-32768
WARNING: Initial pixel value for 16BSI band got truncated from
21.460000 to 21
21
! WARNING: Initial pixel value for 16BSI band got truncated from
210000.460000 to 13392
! 13392
WARNING: Initial pixel value for 16BUI band got truncated from
-1.000000 to 65535
65535
0
mloskot@vb-ubuntu910-x64:~/dev/wktraster/_svn/trunk$


Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. make post-install-check works for me too... Maybe is a problem with
PostGIS/GEOS/PROJ versions... here my versions

PostgreSQL 8.4.4 on i486-pc-linux-gnu, compiled by GCC gcc-4.4.real
(Ubuntu 4.4.1-4ubuntu8) 4.4.1, 32-bit
Postgis 1.4.2 - 2010-08-05 17:36:12
GEOS: 3.3.0-CAPI-1.6.1
PROJ: Rel. 4.7.1, 23 September 2009
WKTRaster 0.1.6d - 2010-08-18 13:49:03

I'll do the test with a newer version of postgis (2.0.0SVN, like you,
for example).

A minor issue: the rtpostgis_reg database created for postinstall
check is not deleted by default. Mateusz, did you change it for any
reason? (r5822 was the previous version)

2010/8/24 Mateusz Loskot <>:
> On 24/08/10 10:39, Jorge Arévalo wrote:
>>
>> On Mon, Aug 23, 2010 at 11:11 PM, Pierre Racine
>> <>  wrote:
>>>
>>> Could you test the last one. Thanks. Sorry for that my C is a bit rusty.
>>
>> OK. make check is working fine for me now.
>
> Works for me too, however regression test is failing:L
>
>
> mloskot@vb-ubuntu910-x64:~/dev/wktraster/_svn/trunk$ make post-install-check
>
> ...
> Creating spatial db rtpostgis_reg
> TMPDIR is /tmp/rtpgis_reg_4435
>
>  PostgreSQL 8.4.4 on x86_64-pc-linux-gnu, compiled by GCC gcc-4.4.real
> (Ubuntu 4.4.3-4ubuntu5) 4.4.3, 64-bit
>  Postgis 2.0.0SVN - 2010-08-04 11:37:17
>   GEOS: 3.3.0-CAPI-1.7.0
>   PROJ: Rel. 4.7.1, 23 September 2009
>  WKTRaster 0.1.6d - 2010-08-24 09:14:21
>
> Running tests
>
>  check_raster_columns. ok
>  check_raster_overviews. ok
>  rt_io. ok
>  create_rt_bytea_test. ok
>  rt_bytea. ok
>  create_rt_box2d_test. ok
>  rt_box2d. ok
>  rt_addband. failed (diff expected obtained:
> /tmp/rtpgis_reg_4435/test_8_diff)
>  create_rt_properties_test. ok
>  rt_dimensions. ok
>  rt_pixelsize. ok
>  rt_upperleft. ok
>  rt_rotation. ok
>  rt_georeference. ok
>  rt_set_properties. ok
>  create_rt_band_properties_test. ok
>  rt_band_properties. ok
>  rt_set_band_properties. ok
>  rt_pixelvalue. ok
>  create_rt_utility_test. ok
>  rt_utility. ok
>  create_rt_gist_test. ok
>  rt_above. ok
>  rt_below. ok
>  rt_contained. ok
>  rt_contain. ok
>  rt_left. ok
>  rt_overabove. ok
>  rt_overbelow. ok
>  rt_overlap. ok
>  rt_overleft. ok
>  rt_overright. ok
>  rt_right. ok
>  rt_same. ok
>  rt_spatial_relationship. ok
>  bug_test_car5. ok
>
> Run tests: 36
> Failed: 1
> make[2]: Leaving directory
> `/home/mloskot/dev/wktraster/_svn/trunk/test/regress'
> make[1]: Leaving directory `/home/mloskot/dev/wktraster/_svn/trunk/test'
> mloskot@vb-ubuntu910-x64:~/dev/wktraster/_svn/trunk$ cat
> /tmp/rtpgis_reg_4435/test_8_diff
> *** rt_addband_expected 2010-08-23 16:51:59.000000000 +0100
> --- /tmp/rtpgis_reg_4435/test_8_out     2010-08-24 10:15:19.000000000 +0100
> ***************
> *** 45,52 ****
>  154
>  WARNING:  Initial pixel value for 8BUI band got truncated from 256.000000
> to 255
>  255
> ! WARNING:  Initial pixel value for 16BSI band got truncated from
> -32769.000000 to -32768
> ! -32768
>  -32768
>  0
>  32767
> --- 45,52 ----
>  154
>  WARNING:  Initial pixel value for 8BUI band got truncated from 256.000000
> to 255
>  255
> ! WARNING:  Initial pixel value for 16BSI band got truncated from
> -32769.000000 to 32767
> ! 32767
>  -32768
>  0
>  32767
> ***************
> *** 54,61 ****
>  -32768
>  WARNING:  Initial pixel value for 16BSI band got truncated from 21.460000
> to 21
>  21
> ! WARNING:  Initial pixel value for 16BSI band got truncated from
> 210000.460000 to -32768
> ! -32768
>  WARNING:  Initial pixel value for 16BUI band got truncated from -1.000000
> to 65535
>  65535
>  0
> --- 54,61 ----
>  -32768
>  WARNING:  Initial pixel value for 16BSI band got truncated from 21.460000
> to 21
>  21
> ! WARNING:  Initial pixel value for 16BSI band got truncated from
> 210000.460000 to 13392
> ! 13392
>  WARNING:  Initial pixel value for 16BUI band got truncated from -1.000000
> to 65535
>  65535
>  0
> mloskot@vb-ubuntu910-x64:~/dev/wktraster/_svn/trunk$
>
>
> Best regards,
> --
> Mateusz Loskot, http://mateusz.loskot.net
>



--
Jorge Arévalo
DEIMOS Space
Internet & Mobilty Division
Ronda de Poniente 19. Edificio Fiteni VI, portal 2, 2º
28760 Tres Cantos (Madrid)


http://gis4free.wordpress.com
_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. On 24/08/10 11:08, Jorge Arévalo wrote:
> make post-install-check works for me too... Maybe is a problem with
> PostGIS/GEOS/PROJ versions... here my versions
>
> PostgreSQL 8.4.4 on i486-pc-linux-gnu, compiled by GCC gcc-4.4.real
> (Ubuntu 4.4.1-4ubuntu8) 4.4.1, 32-bit
> Postgis 1.4.2 - 2010-08-05 17:36:12
> GEOS: 3.3.0-CAPI-1.6.1
> PROJ: Rel. 4.7.1, 23 September 2009
> WKTRaster 0.1.6d - 2010-08-18 13:49:03
>
> I'll do the test with a newer version of postgis (2.0.0SVN, like you,
> for example).

OK, thanks.

> A minor issue: the rtpostgis_reg database created for postinstall
> check is not deleted by default. Mateusz, did you change it for any
> reason? (r5822 was the previous version)

Which changeset you mean exactly. The following is r5823
and some changes in test/regress/run_test.in happened.

Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. 2010/8/24 Mateusz Loskot <>:
> On 24/08/10 11:08, Jorge Arévalo wrote:
>>
>> A minor issue: the rtpostgis_reg database created for postinstall
>> check is not deleted by default. Mateusz, did you change it for any
>> reason? (r5822 was the previous version)
>
> Which changeset you mean exactly. The following is r5823
> and some changes in test/regress/run_test.in happened.
>

Yes, sorry, my mistake. I mean the last change on
test/regress/run_test.in. A little change:

http://trac.osgeo.org/postgis/changeset/5823/spike/wktraster/test/regress/run_test.in

May I change the DROP option again, or is a bad idea?

> Best regards,
> --
> Mateusz Loskot, http://mateusz.loskot.net
>



--
Jorge Arévalo
DEIMOS Space
Internet & Mobilty Division
Ronda de Poniente 19. Edificio Fiteni VI, portal 2, 2º
28760 Tres Cantos (Madrid)


http://gis4free.wordpress.com
_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. On 24/08/10 11:32, Jorge Arévalo wrote:
> 2010/8/24 Mateusz Loskot<>:
>> On 24/08/10 11:08, Jorge Arévalo wrote:
>>>
>>> A minor issue: the rtpostgis_reg database created for postinstall
>>> check is not deleted by default. Mateusz, did you change it for any
>>> reason? (r5822 was the previous version)
>>
>> Which changeset you mean exactly. The following is r5823
>> and some changes in test/regress/run_test.in happened.
>>
>
> Yes, sorry, my mistake. I mean the last change on
> test/regress/run_test.in. A little change:
>
> http://trac.osgeo.org/postgis/changeset/5823/spike/wktraster/test/regress/run_test.in
>
> May I change the DROP option again, or is a bad idea?

IMO, we should follow PostGIS' approach:

http://trac.osgeo.org/postgis/changeset/5823/spike/wktraster/test/regress/run_test.in

AFAIU, it is yes, I'd re-enable the drop option.

Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. Mateusz,

Could you get your regression test to work?

I reverted the drop option to "yes".

Pierre

>-----Original Message-----
>From: postgis-devel- [mailto:postgis-devel-
>] On Behalf Of Mateusz Loskot
>Sent: 24 août 2010 06:48
>To: Jorge Arévalo
>Cc: PostGIS Development Discussion
>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>
>On 24/08/10 11:32, Jorge Arévalo wrote:
>> 2010/8/24 Mateusz Loskot<>:
>>> On 24/08/10 11:08, Jorge Arévalo wrote:
>>>>
>>>> A minor issue: the rtpostgis_reg database created for postinstall
>>>> check is not deleted by default. Mateusz, did you change it for any
>>>> reason? (r5822 was the previous version)
>>>
>>> Which changeset you mean exactly. The following is r5823
>>> and some changes in test/regress/run_test.in happened.
>>>
>>
>> Yes, sorry, my mistake. I mean the last change on
>> test/regress/run_test.in. A little change:
>>
>> http://trac.osgeo.org/postgis/changeset/5823/spike/wktraster/test/regress/run_test.in
>>
>> May I change the DROP option again, or is a bad idea?
>
>IMO, we should follow PostGIS' approach:
>
>http://trac.osgeo.org/postgis/changeset/5823/spike/wktraster/test/regress/run_test.in
>
>AFAIU, it is yes, I'd re-enable the drop option.
>
>Best regards,
>--
>Mateusz Loskot, http://mateusz.loskot.net
>_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. On 24/08/10 13:48, Pierre Racine wrote:
> Mateusz,
>
> Could you get your regression test to work?

Pierre,

Where does this expected value of -32768 come from in the following
messages in the rt_addband_expected file?

WARNING: Initial pixel value for 16BSI band got truncated from
-32769.000000 to -32768
-32768

WARNING: Initial pixel value for 16BSI band got truncated from
210000.460000 to -32768
-32768

Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe.

  #15  
31-08-2010 09:14 PM
PostGIS : postgis-devel member admin is online now
User
 

Hi,

I've noticed current revision of WKT Raster is broken.
Running the core tests for r5841 ends up with assertion and
load of warnings:

./testapi
1111 pixtype = 2
Raster starts with 0 bands
First point on convexhull ring is 0.5,0.5
Second point on convexhull ring is 256.5,1280.5
Third point on convexhull ring is 1280.5,1536.5
Fourth point on convexhull ring is 1024.5,256.5
Fifth point on convexhull ring is 0.5,0.5
Testing polygonize function
Testing 1BB band
WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated
from 2 to 0
WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated
from 3 to 1
WARNING: Pixel value for 1BB band got truncated from 2 to 0
WARNING: Pixel value for 1BB band got truncated from 3 to 1
Testing 2BB band
WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated
from 4 to 0
WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated
from 5 to 1
WARNING: Pixel value for 2BUI band got truncated from 4 to 0
WARNING: Pixel value for 2BUI band got truncated from 5 to 1
Testing 4BUI band
WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated
from 16 to 0
WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated
from 17 to 1
WARNING: Pixel value for 4BUI band got truncated from 35 to 3
Testing 8BUI band
WARNING: rt_band_set_nodata: NODATA value for 8BUI band got truncated
from 256 to 0
WARNING: Pixel value for 8BUI band got truncated from 256 to 0
Testing 8BSI band
WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated
from -129 to 127
WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated
from 129 to -127
WARNING: Pixel value for 8BSI band got truncated from -129 to 127
WARNING: Pixel value for 8BSI band got truncated from 129 to -127
Testing 16BSI band
WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated
from -32769 to 32767
WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated
from 32769 to -32767
WARNING: Pixel value for 16BSI band got truncated from -32769 to 32767
WARNING: Pixel value for 16BSI band got truncated from 32769 to -32767
ERROR: Coordinates ouf of range
Testing 16BUI band
WARNING: rt_band_set_nodata: NODATA value for 16BUI band got truncated
from 65536 to 0
WARNING: Pixel value for 16BUI band got truncated from 65536 to 0
ERROR: Coordinates ouf of range
Testing 32BUI band
WARNING: rt_band_set_nodata: NODATA value for 32BUI band got truncated
from 4.29497e+09 to 0
WARNING: Pixel value for 32BUI band got truncated from 4.29497e+09 to 0
ERROR: Coordinates ouf of range
Testing 32BSI band
WARNING: rt_band_set_nodata: NODATA value for 32BSI band got truncated
from 2.14748e+09 to -2.14748e+09
WARNING: Pixel value for 32BSI band got truncated from 2.14748e+09 to
-2.14748e+09
ERROR: Coordinates ouf of range
Testing 32BF band
Testing 64BF band
Testing band hasnodata flag
testapi: rt_api.c:545: rt_band_get_data: Assertion `((void *)0) != band'
failed.
make[2]: *** [check] Aborted
make[2]: Leaving directory
`/home/mloskot/dev/wktraster/_svn/trunk/test/core'
make[1]: *** [check] Error 2
make[1]: Leaving directory `/home/mloskot/dev/wktraster/_svn/trunk/test'
make: *** [check] Error 2

The assertion is serious and happens in crucial function.
I checked and the last healthy revision seems to be r5811.

Pierre, Jorge, could you re-validate your recent commits?
You do run "make check" before every commit, don't you?

Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. On Mon, Aug 23, 2010 at 1:04 PM, Mateusz Loskot <> wrote:
> Hi,
>
> I've noticed current revision of WKT Raster is broken.
> Running the core tests for r5841 ends up with assertion and
> load of warnings:
>
> ./testapi
> 1111 pixtype = 2
> Raster starts with 0 bands
> First point on convexhull ring is 0.5,0.5
> Second point on convexhull ring is 256.5,1280.5
> Third point on convexhull ring is 1280.5,1536.5
> Fourth point on convexhull ring is 1024.5,256.5
> Fifth point on convexhull ring is 0.5,0.5
> Testing polygonize function
> Testing 1BB band
> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 2
> to 0
> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 3
> to 1
> WARNING: Pixel value for 1BB band got truncated from 2 to 0
> WARNING: Pixel value for 1BB band got truncated from 3 to 1
> Testing 2BB band
> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 4
> to 0
> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 5
> to 1
> WARNING: Pixel value for 2BUI band got truncated from 4 to 0
> WARNING: Pixel value for 2BUI band got truncated from 5 to 1
> Testing 4BUI band
> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
> 16 to 0
> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
> 17 to 1
> WARNING: Pixel value for 4BUI band got truncated from 35 to 3
> Testing 8BUI band
> WARNING: rt_band_set_nodata: NODATA value for 8BUI band got truncated from
> 256 to 0
> WARNING: Pixel value for 8BUI band got truncated from 256 to 0
> Testing 8BSI band
> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
> -129 to 127
> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
> 129 to -127
> WARNING: Pixel value for 8BSI band got truncated from -129 to 127
> WARNING: Pixel value for 8BSI band got truncated from 129 to -127
> Testing 16BSI band
> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
> -32769 to 32767
> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
> 32769 to -32767
> WARNING: Pixel value for 16BSI band got truncated from -32769 to 32767
> WARNING: Pixel value for 16BSI band got truncated from 32769 to -32767
> ERROR: Coordinates ouf of range
> Testing 16BUI band
> WARNING: rt_band_set_nodata: NODATA value for 16BUI band got truncated from
> 65536 to 0
> WARNING: Pixel value for 16BUI band got truncated from 65536 to 0
> ERROR: Coordinates ouf of range
> Testing 32BUI band
> WARNING: rt_band_set_nodata: NODATA value for 32BUI band got truncated from
> 4.29497e+09 to 0
> WARNING: Pixel value for 32BUI band got truncated from 4.29497e+09 to 0
> ERROR: Coordinates ouf of range
> Testing 32BSI band
> WARNING: rt_band_set_nodata: NODATA value for 32BSI band got truncated from
> 2.14748e+09 to -2.14748e+09
> WARNING: Pixel value for 32BSI band got truncated from 2.14748e+09 to
> -2.14748e+09
> ERROR: Coordinates ouf of range
> Testing 32BF band
> Testing 64BF band
> Testing band hasnodata flag
> testapi: rt_api.c:545: rt_band_get_data: Assertion `((void *)0) != band'
> failed.
> make[2]: *** [check] Aborted
> make[2]: Leaving directory
> `/home/mloskot/dev/wktraster/_svn/trunk/test/core'
> make[1]: *** [check] Error 2
> make[1]: Leaving directory `/home/mloskot/dev/wktraster/_svn/trunk/test'
> make: *** [check] Error 2
>
> The assertion is serious and happens in crucial function.
> I checked and the last healthy revision seems to be r5811.
>
> Pierre, Jorge, could you re-validate your recent commits?
> You do run "make check" before every commit, don't you?
>
> Best regards,
> --
> Mateusz Loskot, http://mateusz.loskot.net
> _______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. Probably my fault. Double check...

Pierre

>-----Original Message-----
>From: postgis-devel- [mailto:postgis-devel-
>] On Behalf Of Jorge Arévalo
>Sent: 23 août 2010 07:39
>To: PostGIS Development Discussion
>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>
>On Mon, Aug 23, 2010 at 1:04 PM, Mateusz Loskot <> wrote:
>> Hi,
>>
>> I've noticed current revision of WKT Raster is broken.
>> Running the core tests for r5841 ends up with assertion and
>> load of warnings:
>>
>> ./testapi
>> 1111 pixtype = 2
>> Raster starts with 0 bands
>> First point on convexhull ring is 0.5,0.5
>> Second point on convexhull ring is 256.5,1280.5
>> Third point on convexhull ring is 1280.5,1536.5
>> Fourth point on convexhull ring is 1024.5,256.5
>> Fifth point on convexhull ring is 0.5,0.5
>> Testing polygonize function
>> Testing 1BB band
>> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 2
>> to 0
>> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 3
>> to 1
>> WARNING: Pixel value for 1BB band got truncated from 2 to 0
>> WARNING: Pixel value for 1BB band got truncated from 3 to 1
>> Testing 2BB band
>> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 4
>> to 0
>> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 5
>> to 1
>> WARNING: Pixel value for 2BUI band got truncated from 4 to 0
>> WARNING: Pixel value for 2BUI band got truncated from 5 to 1
>> Testing 4BUI band
>> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
>> 16 to 0
>> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
>> 17 to 1
>> WARNING: Pixel value for 4BUI band got truncated from 35 to 3
>> Testing 8BUI band
>> WARNING: rt_band_set_nodata: NODATA value for 8BUI band got truncated from
>> 256 to 0
>> WARNING: Pixel value for 8BUI band got truncated from 256 to 0
>> Testing 8BSI band
>> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
>> -129 to 127
>> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
>> 129 to -127
>> WARNING: Pixel value for 8BSI band got truncated from -129 to 127
>> WARNING: Pixel value for 8BSI band got truncated from 129 to -127
>> Testing 16BSI band
>> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
>> -32769 to 32767
>> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
>> 32769 to -32767
>> WARNING: Pixel value for 16BSI band got truncated from -32769 to 32767
>> WARNING: Pixel value for 16BSI band got truncated from 32769 to -32767
>> ERROR: Coordinates ouf of range
>> Testing 16BUI band
>> WARNING: rt_band_set_nodata: NODATA value for 16BUI band got truncated from
>> 65536 to 0
>> WARNING: Pixel value for 16BUI band got truncated from 65536 to 0
>> ERROR: Coordinates ouf of range
>> Testing 32BUI band
>> WARNING: rt_band_set_nodata: NODATA value for 32BUI band got truncated from
>> 4.29497e+09 to 0
>> WARNING: Pixel value for 32BUI band got truncated from 4.29497e+09 to 0
>> ERROR: Coordinates ouf of range
>> Testing 32BSI band
>> WARNING: rt_band_set_nodata: NODATA value for 32BSI band got truncated from
>> 2.14748e+09 to -2.14748e+09
>> WARNING: Pixel value for 32BSI band got truncated from 2.14748e+09 to
>> -2.14748e+09
>> ERROR: Coordinates ouf of range
>> Testing 32BF band
>> Testing 64BF band
>> Testing band hasnodata flag
>> testapi: rt_api.c:545: rt_band_get_data: Assertion `((void *)0) != band'
>> failed.
>> make[2]: *** [check] Aborted
>> make[2]: Leaving directory
>> `/home/mloskot/dev/wktraster/_svn/trunk/test/core'
>> make[1]: *** [check] Error 2
>> make[1]: Leaving directory `/home/mloskot/dev/wktraster/_svn/trunk/test'
>> make: *** [check] Error 2
>>
>> The assertion is serious and happens in crucial function.
>> I checked and the last healthy revision seems to be r5811.
>>
>> Pierre, Jorge, could you re-validate your recent commits?
>> You do run "make check" before every commit, don't you?
>>
>> Best regards,
>> --
>> Mateusz Loskot, http://mateusz.loskot.net
>> _______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. fixed in r5864

Sorry for that. Probably forgot to make check.

Pierre

>-----Original Message-----
>From: postgis-devel- [mailto:postgis-devel-
>] On Behalf Of Pierre Racine
>Sent: 23 août 2010 09:24
>To: PostGIS Development Discussion
>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>
>Probably my fault. Double check...
>
>Pierre
>
>>-----Original Message-----
>>From: postgis-devel- [mailto:postgis-devel-
>>] On Behalf Of Jorge Arévalo
>>Sent: 23 août 2010 07:39
>>To: PostGIS Development Discussion
>>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>>
>>On Mon, Aug 23, 2010 at 1:04 PM, Mateusz Loskot <> wrote:
>>> Hi,
>>>
>>> I've noticed current revision of WKT Raster is broken.
>>> Running the core tests for r5841 ends up with assertion and
>>> load of warnings:
>>>
>>> ./testapi
>>> 1111 pixtype = 2
>>> Raster starts with 0 bands
>>> First point on convexhull ring is 0.5,0.5
>>> Second point on convexhull ring is 256.5,1280.5
>>> Third point on convexhull ring is 1280.5,1536.5
>>> Fourth point on convexhull ring is 1024.5,256.5
>>> Fifth point on convexhull ring is 0.5,0.5
>>> Testing polygonize function
>>> Testing 1BB band
>>> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 2
>>> to 0
>>> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 3
>>> to 1
>>> WARNING: Pixel value for 1BB band got truncated from 2 to 0
>>> WARNING: Pixel value for 1BB band got truncated from 3 to 1
>>> Testing 2BB band
>>> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 4
>>> to 0
>>> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 5
>>> to 1
>>> WARNING: Pixel value for 2BUI band got truncated from 4 to 0
>>> WARNING: Pixel value for 2BUI band got truncated from 5 to 1
>>> Testing 4BUI band
>>> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
>>> 16 to 0
>>> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
>>> 17 to 1
>>> WARNING: Pixel value for 4BUI band got truncated from 35 to 3
>>> Testing 8BUI band
>>> WARNING: rt_band_set_nodata: NODATA value for 8BUI band got truncated from
>>> 256 to 0
>>> WARNING: Pixel value for 8BUI band got truncated from 256 to 0
>>> Testing 8BSI band
>>> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
>>> -129 to 127
>>> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
>>> 129 to -127
>>> WARNING: Pixel value for 8BSI band got truncated from -129 to 127
>>> WARNING: Pixel value for 8BSI band got truncated from 129 to -127
>>> Testing 16BSI band
>>> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
>>> -32769 to 32767
>>> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
>>> 32769 to -32767
>>> WARNING: Pixel value for 16BSI band got truncated from -32769 to 32767
>>> WARNING: Pixel value for 16BSI band got truncated from 32769 to -32767
>>> ERROR: Coordinates ouf of range
>>> Testing 16BUI band
>>> WARNING: rt_band_set_nodata: NODATA value for 16BUI band got truncated from
>>> 65536 to 0
>>> WARNING: Pixel value for 16BUI band got truncated from 65536 to 0
>>> ERROR: Coordinates ouf of range
>>> Testing 32BUI band
>>> WARNING: rt_band_set_nodata: NODATA value for 32BUI band got truncated from
>>> 4.29497e+09 to 0
>>> WARNING: Pixel value for 32BUI band got truncated from 4.29497e+09 to 0
>>> ERROR: Coordinates ouf of range
>>> Testing 32BSI band
>>> WARNING: rt_band_set_nodata: NODATA value for 32BSI band got truncated from
>>> 2.14748e+09 to -2.14748e+09
>>> WARNING: Pixel value for 32BSI band got truncated from 2.14748e+09 to
>>> -2.14748e+09
>>> ERROR: Coordinates ouf of range
>>> Testing 32BF band
>>> Testing 64BF band
>>> Testing band hasnodata flag
>>> testapi: rt_api.c:545: rt_band_get_data: Assertion `((void *)0) != band'
>>> failed.
>>> make[2]: *** [check] Aborted
>>> make[2]: Leaving directory
>>> `/home/mloskot/dev/wktraster/_svn/trunk/test/core'
>>> make[1]: *** [check] Error 2
>>> make[1]: Leaving directory `/home/mloskot/dev/wktraster/_svn/trunk/test'
>>> make: *** [check] Error 2
>>>
>>> The assertion is serious and happens in crucial function.
>>> I checked and the last healthy revision seems to be r5811.
>>>
>>> Pierre, Jorge, could you re-validate your recent commits?
>>> You do run "make check" before every commit, don't you?
>>>
>>> Best regards,
>>> --
>>> Mateusz Loskot, http://mateusz.loskot.net
>>> _______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. Thanks for the fix, Pierre. But I'm getting a Segmentation Fault. caused by

memcpy(raster->bands[i], oldbands[oldi++], sizeof(rt_band));

(rt_core/rt_api.c, line 1351)

in Ubuntu Linux. Anyone else?

On Mon, Aug 23, 2010 at 4:53 PM, Pierre Racine
<> wrote:
> fixed in r5864
>
> Sorry for that. Probably forgot to make check.
>
> Pierre
>
>>-----Original Message-----
>>From: postgis-devel- [mailto:postgis-devel-
>>] On Behalf Of Pierre Racine
>>Sent: 23 août 2010 09:24
>>To: PostGIS Development Discussion
>>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>>
>>Probably my fault. Double check...
>>
>>Pierre
>>
>>>-----Original Message-----
>>>From: postgis-devel- [mailto:postgis-devel-
>>>] On Behalf Of Jorge Arévalo
>>>Sent: 23 août 2010 07:39
>>>To: PostGIS Development Discussion
>>>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>>>
>>>On Mon, Aug 23, 2010 at 1:04 PM, Mateusz Loskot <> wrote:
>>>> Hi,
>>>>
>>>> I've noticed current revision of WKT Raster is broken.
>>>> Running the core tests for r5841 ends up with assertion and
>>>> load of warnings:
>>>>
>>>> ./testapi
>>>> 1111 pixtype = 2
>>>> Raster starts with 0 bands
>>>> First point on convexhull ring is 0.5,0.5
>>>> Second point on convexhull ring is 256.5,1280.5
>>>> Third point on convexhull ring is 1280.5,1536.5
>>>> Fourth point on convexhull ring is 1024.5,256.5
>>>> Fifth point on convexhull ring is 0.5,0.5
>>>> Testing polygonize function
>>>> Testing 1BB band
>>>> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 2
>>>> to 0
>>>> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 3
>>>> to 1
>>>> WARNING: Pixel value for 1BB band got truncated from 2 to 0
>>>> WARNING: Pixel value for 1BB band got truncated from 3 to 1
>>>> Testing 2BB band
>>>> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 4
>>>> to 0
>>>> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 5
>>>> to 1
>>>> WARNING: Pixel value for 2BUI band got truncated from 4 to 0
>>>> WARNING: Pixel value for 2BUI band got truncated from 5 to 1
>>>> Testing 4BUI band
>>>> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
>>>> 16 to 0
>>>> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
>>>> 17 to 1
>>>> WARNING: Pixel value for 4BUI band got truncated from 35 to 3
>>>> Testing 8BUI band
>>>> WARNING: rt_band_set_nodata: NODATA value for 8BUI band got truncated from
>>>> 256 to 0
>>>> WARNING: Pixel value for 8BUI band got truncated from 256 to 0
>>>> Testing 8BSI band
>>>> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
>>>> -129 to 127
>>>> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
>>>> 129 to -127
>>>> WARNING: Pixel value for 8BSI band got truncated from -129 to 127
>>>> WARNING: Pixel value for 8BSI band got truncated from 129 to -127
>>>> Testing 16BSI band
>>>> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
>>>> -32769 to 32767
>>>> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
>>>> 32769 to -32767
>>>> WARNING: Pixel value for 16BSI band got truncated from -32769 to 32767
>>>> WARNING: Pixel value for 16BSI band got truncated from 32769 to -32767
>>>> ERROR: Coordinates ouf of range
>>>> Testing 16BUI band
>>>> WARNING: rt_band_set_nodata: NODATA value for 16BUI band got truncated from
>>>> 65536 to 0
>>>> WARNING: Pixel value for 16BUI band got truncated from 65536 to 0
>>>> ERROR: Coordinates ouf of range
>>>> Testing 32BUI band
>>>> WARNING: rt_band_set_nodata: NODATA value for 32BUI band got truncated from
>>>> 4.29497e+09 to 0
>>>> WARNING: Pixel value for 32BUI band got truncated from 4.29497e+09 to 0
>>>> ERROR: Coordinates ouf of range
>>>> Testing 32BSI band
>>>> WARNING: rt_band_set_nodata: NODATA value for 32BSI band got truncated from
>>>> 2.14748e+09 to -2.14748e+09
>>>> WARNING: Pixel value for 32BSI band got truncated from 2.14748e+09 to
>>>> -2.14748e+09
>>>> ERROR: Coordinates ouf of range
>>>> Testing 32BF band
>>>> Testing 64BF band
>>>> Testing band hasnodata flag
>>>> testapi: rt_api.c:545: rt_band_get_data: Assertion `((void *)0) != band'
>>>> failed.
>>>> make[2]: *** [check] Aborted
>>>> make[2]: Leaving directory
>>>> `/home/mloskot/dev/wktraster/_svn/trunk/test/core'
>>>> make[1]: *** [check] Error 2
>>>> make[1]: Leaving directory `/home/mloskot/dev/wktraster/_svn/trunk/test'
>>>> make: *** [check] Error 2
>>>>
>>>> The assertion is serious and happens in crucial function.
>>>> I checked and the last healthy revision seems to be r5811.
>>>>
>>>> Pierre, Jorge, could you re-validate your recent commits?
>>>> You do run "make check" before every commit, don't you?
>>>>
>>>> Best regards,
>>>> --
>>>> Mateusz Loskot, http://mateusz.loskot.net
>>>> _______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. On 23/08/10 17:23, Jorge Arévalo wrote:
> Thanks for the fix, Pierre. But I'm getting a Segmentation Fault. caused by
>
> memcpy(raster->bands[i], oldbands[oldi++], sizeof(rt_band));
>
> (rt_core/rt_api.c, line 1351)
>
> in Ubuntu Linux. Anyone else?

I've quickly checked running make check and I confirm this issue.
Getting segmentation fault too.

Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. On Mon, Aug 23, 2010 at 11:11 PM, Pierre Racine
<> wrote:
> Could you test the last one. Thanks. Sorry for that my C is a bit rusty.
>
> Pierre
>

OK. make check is working fine for me now.

Jorge

>>-----Original Message-----
>>From: postgis-devel- [mailto:postgis-devel-
>>] On Behalf Of Mateusz Loskot
>>Sent: 23 août 2010 12:50
>>To: postgis-
>>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>>
>>On 23/08/10 17:23, Jorge Arévalo wrote:
>>> Thanks for the fix, Pierre. But I'm getting a Segmentation Fault. caused by
>>>
>>> memcpy(raster->bands[i], oldbands[oldi++], sizeof(rt_band));
>>>
>>> (rt_core/rt_api.c, line 1351)
>>>
>>> in Ubuntu Linux. Anyone else?
>>
>>I've quickly checked running make check and I confirm this issue.
>>Getting segmentation fault too.
>>
>>Best regards,
>>--
>>Mateusz Loskot, http://mateusz.loskot.net
>>_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. On 24/08/10 10:39, Jorge Arévalo wrote:
> On Mon, Aug 23, 2010 at 11:11 PM, Pierre Racine
> <> wrote:
>> Could you test the last one. Thanks. Sorry for that my C is a bit rusty.
>
> OK. make check is working fine for me now.

Works for me too, however regression test is failing:L


mloskot@vb-ubuntu910-x64:~/dev/wktraster/_svn/trunk$ make post-install-check

...
Creating spatial db rtpostgis_reg
TMPDIR is /tmp/rtpgis_reg_4435

PostgreSQL 8.4.4 on x86_64-pc-linux-gnu, compiled by GCC gcc-4.4.real
(Ubuntu 4.4.3-4ubuntu5) 4.4.3, 64-bit
Postgis 2.0.0SVN - 2010-08-04 11:37:17
GEOS: 3.3.0-CAPI-1.7.0
PROJ: Rel. 4.7.1, 23 September 2009
WKTRaster 0.1.6d - 2010-08-24 09:14:21

Running tests

check_raster_columns. ok
check_raster_overviews. ok
rt_io. ok
create_rt_bytea_test. ok
rt_bytea. ok
create_rt_box2d_test. ok
rt_box2d. ok
rt_addband. failed (diff expected obtained:
/tmp/rtpgis_reg_4435/test_8_diff)
create_rt_properties_test. ok
rt_dimensions. ok
rt_pixelsize. ok
rt_upperleft. ok
rt_rotation. ok
rt_georeference. ok
rt_set_properties. ok
create_rt_band_properties_test. ok
rt_band_properties. ok
rt_set_band_properties. ok
rt_pixelvalue. ok
create_rt_utility_test. ok
rt_utility. ok
create_rt_gist_test. ok
rt_above. ok
rt_below. ok
rt_contained. ok
rt_contain. ok
rt_left. ok
rt_overabove. ok
rt_overbelow. ok
rt_overlap. ok
rt_overleft. ok
rt_overright. ok
rt_right. ok
rt_same. ok
rt_spatial_relationship. ok
bug_test_car5. ok

Run tests: 36
Failed: 1
make[2]: Leaving directory
`/home/mloskot/dev/wktraster/_svn/trunk/test/regress'
make[1]: Leaving directory `/home/mloskot/dev/wktraster/_svn/trunk/test'
mloskot@vb-ubuntu910-x64:~/dev/wktraster/_svn/trunk$ cat
/tmp/rtpgis_reg_4435/test_8_diff
*** rt_addband_expected 2010-08-23 16:51:59.000000000 +0100
--- /tmp/rtpgis_reg_4435/test_8_out 2010-08-24 10:15:19.000000000 +0100
***************
*** 45,52 ****
154
WARNING: Initial pixel value for 8BUI band got truncated from
256.000000 to 255
255
! WARNING: Initial pixel value for 16BSI band got truncated from
-32769.000000 to -32768
! -32768
-32768
0
32767
--- 45,52 ----
154
WARNING: Initial pixel value for 8BUI band got truncated from
256.000000 to 255
255
! WARNING: Initial pixel value for 16BSI band got truncated from
-32769.000000 to 32767
! 32767
-32768
0
32767
***************
*** 54,61 ****
-32768
WARNING: Initial pixel value for 16BSI band got truncated from
21.460000 to 21
21
! WARNING: Initial pixel value for 16BSI band got truncated from
210000.460000 to -32768
! -32768
WARNING: Initial pixel value for 16BUI band got truncated from
-1.000000 to 65535
65535
0
--- 54,61 ----
-32768
WARNING: Initial pixel value for 16BSI band got truncated from
21.460000 to 21
21
! WARNING: Initial pixel value for 16BSI band got truncated from
210000.460000 to 13392
! 13392
WARNING: Initial pixel value for 16BUI band got truncated from
-1.000000 to 65535
65535
0
mloskot@vb-ubuntu910-x64:~/dev/wktraster/_svn/trunk$


Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. make post-install-check works for me too... Maybe is a problem with
PostGIS/GEOS/PROJ versions... here my versions

PostgreSQL 8.4.4 on i486-pc-linux-gnu, compiled by GCC gcc-4.4.real
(Ubuntu 4.4.1-4ubuntu8) 4.4.1, 32-bit
Postgis 1.4.2 - 2010-08-05 17:36:12
GEOS: 3.3.0-CAPI-1.6.1
PROJ: Rel. 4.7.1, 23 September 2009
WKTRaster 0.1.6d - 2010-08-18 13:49:03

I'll do the test with a newer version of postgis (2.0.0SVN, like you,
for example).

A minor issue: the rtpostgis_reg database created for postinstall
check is not deleted by default. Mateusz, did you change it for any
reason? (r5822 was the previous version)

2010/8/24 Mateusz Loskot <>:
> On 24/08/10 10:39, Jorge Arévalo wrote:
>>
>> On Mon, Aug 23, 2010 at 11:11 PM, Pierre Racine
>> <>  wrote:
>>>
>>> Could you test the last one. Thanks. Sorry for that my C is a bit rusty.
>>
>> OK. make check is working fine for me now.
>
> Works for me too, however regression test is failing:L
>
>
> mloskot@vb-ubuntu910-x64:~/dev/wktraster/_svn/trunk$ make post-install-check
>
> ...
> Creating spatial db rtpostgis_reg
> TMPDIR is /tmp/rtpgis_reg_4435
>
>  PostgreSQL 8.4.4 on x86_64-pc-linux-gnu, compiled by GCC gcc-4.4.real
> (Ubuntu 4.4.3-4ubuntu5) 4.4.3, 64-bit
>  Postgis 2.0.0SVN - 2010-08-04 11:37:17
>   GEOS: 3.3.0-CAPI-1.7.0
>   PROJ: Rel. 4.7.1, 23 September 2009
>  WKTRaster 0.1.6d - 2010-08-24 09:14:21
>
> Running tests
>
>  check_raster_columns. ok
>  check_raster_overviews. ok
>  rt_io. ok
>  create_rt_bytea_test. ok
>  rt_bytea. ok
>  create_rt_box2d_test. ok
>  rt_box2d. ok
>  rt_addband. failed (diff expected obtained:
> /tmp/rtpgis_reg_4435/test_8_diff)
>  create_rt_properties_test. ok
>  rt_dimensions. ok
>  rt_pixelsize. ok
>  rt_upperleft. ok
>  rt_rotation. ok
>  rt_georeference. ok
>  rt_set_properties. ok
>  create_rt_band_properties_test. ok
>  rt_band_properties. ok
>  rt_set_band_properties. ok
>  rt_pixelvalue. ok
>  create_rt_utility_test. ok
>  rt_utility. ok
>  create_rt_gist_test. ok
>  rt_above. ok
>  rt_below. ok
>  rt_contained. ok
>  rt_contain. ok
>  rt_left. ok
>  rt_overabove. ok
>  rt_overbelow. ok
>  rt_overlap. ok
>  rt_overleft. ok
>  rt_overright. ok
>  rt_right. ok
>  rt_same. ok
>  rt_spatial_relationship. ok
>  bug_test_car5. ok
>
> Run tests: 36
> Failed: 1
> make[2]: Leaving directory
> `/home/mloskot/dev/wktraster/_svn/trunk/test/regress'
> make[1]: Leaving directory `/home/mloskot/dev/wktraster/_svn/trunk/test'
> mloskot@vb-ubuntu910-x64:~/dev/wktraster/_svn/trunk$ cat
> /tmp/rtpgis_reg_4435/test_8_diff
> *** rt_addband_expected 2010-08-23 16:51:59.000000000 +0100
> --- /tmp/rtpgis_reg_4435/test_8_out     2010-08-24 10:15:19.000000000 +0100
> ***************
> *** 45,52 ****
>  154
>  WARNING:  Initial pixel value for 8BUI band got truncated from 256.000000
> to 255
>  255
> ! WARNING:  Initial pixel value for 16BSI band got truncated from
> -32769.000000 to -32768
> ! -32768
>  -32768
>  0
>  32767
> --- 45,52 ----
>  154
>  WARNING:  Initial pixel value for 8BUI band got truncated from 256.000000
> to 255
>  255
> ! WARNING:  Initial pixel value for 16BSI band got truncated from
> -32769.000000 to 32767
> ! 32767
>  -32768
>  0
>  32767
> ***************
> *** 54,61 ****
>  -32768
>  WARNING:  Initial pixel value for 16BSI band got truncated from 21.460000
> to 21
>  21
> ! WARNING:  Initial pixel value for 16BSI band got truncated from
> 210000.460000 to -32768
> ! -32768
>  WARNING:  Initial pixel value for 16BUI band got truncated from -1.000000
> to 65535
>  65535
>  0
> --- 54,61 ----
>  -32768
>  WARNING:  Initial pixel value for 16BSI band got truncated from 21.460000
> to 21
>  21
> ! WARNING:  Initial pixel value for 16BSI band got truncated from
> 210000.460000 to 13392
> ! 13392
>  WARNING:  Initial pixel value for 16BUI band got truncated from -1.000000
> to 65535
>  65535
>  0
> mloskot@vb-ubuntu910-x64:~/dev/wktraster/_svn/trunk$
>
>
> Best regards,
> --
> Mateusz Loskot, http://mateusz.loskot.net
>



--
Jorge Arévalo
DEIMOS Space
Internet & Mobilty Division
Ronda de Poniente 19. Edificio Fiteni VI, portal 2, 2º
28760 Tres Cantos (Madrid)


http://gis4free.wordpress.com
_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. On 24/08/10 11:08, Jorge Arévalo wrote:
> make post-install-check works for me too... Maybe is a problem with
> PostGIS/GEOS/PROJ versions... here my versions
>
> PostgreSQL 8.4.4 on i486-pc-linux-gnu, compiled by GCC gcc-4.4.real
> (Ubuntu 4.4.1-4ubuntu8) 4.4.1, 32-bit
> Postgis 1.4.2 - 2010-08-05 17:36:12
> GEOS: 3.3.0-CAPI-1.6.1
> PROJ: Rel. 4.7.1, 23 September 2009
> WKTRaster 0.1.6d - 2010-08-18 13:49:03
>
> I'll do the test with a newer version of postgis (2.0.0SVN, like you,
> for example).

OK, thanks.

> A minor issue: the rtpostgis_reg database created for postinstall
> check is not deleted by default. Mateusz, did you change it for any
> reason? (r5822 was the previous version)

Which changeset you mean exactly. The following is r5823
and some changes in test/regress/run_test.in happened.

Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. 2010/8/24 Mateusz Loskot <>:
> On 24/08/10 11:08, Jorge Arévalo wrote:
>>
>> A minor issue: the rtpostgis_reg database created for postinstall
>> check is not deleted by default. Mateusz, did you change it for any
>> reason? (r5822 was the previous version)
>
> Which changeset you mean exactly. The following is r5823
> and some changes in test/regress/run_test.in happened.
>

Yes, sorry, my mistake. I mean the last change on
test/regress/run_test.in. A little change:

http://trac.osgeo.org/postgis/changeset/5823/spike/wktraster/test/regress/run_test.in

May I change the DROP option again, or is a bad idea?

> Best regards,
> --
> Mateusz Loskot, http://mateusz.loskot.net
>



--
Jorge Arévalo
DEIMOS Space
Internet & Mobilty Division
Ronda de Poniente 19. Edificio Fiteni VI, portal 2, 2º
28760 Tres Cantos (Madrid)


http://gis4free.wordpress.com
_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. On 24/08/10 11:32, Jorge Arévalo wrote:
> 2010/8/24 Mateusz Loskot<>:
>> On 24/08/10 11:08, Jorge Arévalo wrote:
>>>
>>> A minor issue: the rtpostgis_reg database created for postinstall
>>> check is not deleted by default. Mateusz, did you change it for any
>>> reason? (r5822 was the previous version)
>>
>> Which changeset you mean exactly. The following is r5823
>> and some changes in test/regress/run_test.in happened.
>>
>
> Yes, sorry, my mistake. I mean the last change on
> test/regress/run_test.in. A little change:
>
> http://trac.osgeo.org/postgis/changeset/5823/spike/wktraster/test/regress/run_test.in
>
> May I change the DROP option again, or is a bad idea?

IMO, we should follow PostGIS' approach:

http://trac.osgeo.org/postgis/changeset/5823/spike/wktraster/test/regress/run_test.in

AFAIU, it is yes, I'd re-enable the drop option.

Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. Mateusz,

Could you get your regression test to work?

I reverted the drop option to "yes".

Pierre

>-----Original Message-----
>From: postgis-devel- [mailto:postgis-devel-
>] On Behalf Of Mateusz Loskot
>Sent: 24 août 2010 06:48
>To: Jorge Arévalo
>Cc: PostGIS Development Discussion
>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>
>On 24/08/10 11:32, Jorge Arévalo wrote:
>> 2010/8/24 Mateusz Loskot<>:
>>> On 24/08/10 11:08, Jorge Arévalo wrote:
>>>>
>>>> A minor issue: the rtpostgis_reg database created for postinstall
>>>> check is not deleted by default. Mateusz, did you change it for any
>>>> reason? (r5822 was the previous version)
>>>
>>> Which changeset you mean exactly. The following is r5823
>>> and some changes in test/regress/run_test.in happened.
>>>
>>
>> Yes, sorry, my mistake. I mean the last change on
>> test/regress/run_test.in. A little change:
>>
>> http://trac.osgeo.org/postgis/changeset/5823/spike/wktraster/test/regress/run_test.in
>>
>> May I change the DROP option again, or is a bad idea?
>
>IMO, we should follow PostGIS' approach:
>
>http://trac.osgeo.org/postgis/changeset/5823/spike/wktraster/test/regress/run_test.in
>
>AFAIU, it is yes, I'd re-enable the drop option.
>
>Best regards,
>--
>Mateusz Loskot, http://mateusz.loskot.net
>_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. On 24/08/10 13:48, Pierre Racine wrote:
> Mateusz,
>
> Could you get your regression test to work?

Pierre,

Where does this expected value of -32768 come from in the following
messages in the rt_addband_expected file?

WARNING: Initial pixel value for 16BSI band got truncated from
-32769.000000 to -32768
-32768

WARNING: Initial pixel value for 16BSI band got truncated from
210000.460000 to -32768
-32768

Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. From thoses two lines in the rt_addband.sql file:

SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '16BSI', -32769, NULL), 3, 3);

and further:

SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '16BSI', 210000.46, NULL), 3, 3);

Pierre

>-----Original Message-----
>From: postgis-devel- [mailto:postgis-devel-
>] On Behalf Of Mateusz Loskot
>Sent: 31 août 2010 13:14
>To: PostGIS Development Discussion
>Cc: Pierre Racine; =?UTF-8?B?Sm9yZ2UgQXLDqXY=?=@lists.refractions.net
>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>
>On 24/08/10 13:48, Pierre Racine wrote:
>> Mateusz,
>>
>> Could you get your regression test to work?
>
>Pierre,
>
>Where does this expected value of -32768 come from in the following
>messages in the rt_addband_expected file?
>
>WARNING: Initial pixel value for 16BSI band got truncated from
>-32769.000000 to -32768
>-32768
>
>WARNING: Initial pixel value for 16BSI band got truncated from
>210000.460000 to -32768
>-32768
>
>Best regards,
>--
>Mateusz Loskot, http://mateusz.loskot.net
>_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe.

  #16  
04-09-2010 07:28 PM
PostGIS : postgis-devel member admin is online now
User
 

Hi,

I've noticed current revision of WKT Raster is broken.
Running the core tests for r5841 ends up with assertion and
load of warnings:

./testapi
1111 pixtype = 2
Raster starts with 0 bands
First point on convexhull ring is 0.5,0.5
Second point on convexhull ring is 256.5,1280.5
Third point on convexhull ring is 1280.5,1536.5
Fourth point on convexhull ring is 1024.5,256.5
Fifth point on convexhull ring is 0.5,0.5
Testing polygonize function
Testing 1BB band
WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated
from 2 to 0
WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated
from 3 to 1
WARNING: Pixel value for 1BB band got truncated from 2 to 0
WARNING: Pixel value for 1BB band got truncated from 3 to 1
Testing 2BB band
WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated
from 4 to 0
WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated
from 5 to 1
WARNING: Pixel value for 2BUI band got truncated from 4 to 0
WARNING: Pixel value for 2BUI band got truncated from 5 to 1
Testing 4BUI band
WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated
from 16 to 0
WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated
from 17 to 1
WARNING: Pixel value for 4BUI band got truncated from 35 to 3
Testing 8BUI band
WARNING: rt_band_set_nodata: NODATA value for 8BUI band got truncated
from 256 to 0
WARNING: Pixel value for 8BUI band got truncated from 256 to 0
Testing 8BSI band
WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated
from -129 to 127
WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated
from 129 to -127
WARNING: Pixel value for 8BSI band got truncated from -129 to 127
WARNING: Pixel value for 8BSI band got truncated from 129 to -127
Testing 16BSI band
WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated
from -32769 to 32767
WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated
from 32769 to -32767
WARNING: Pixel value for 16BSI band got truncated from -32769 to 32767
WARNING: Pixel value for 16BSI band got truncated from 32769 to -32767
ERROR: Coordinates ouf of range
Testing 16BUI band
WARNING: rt_band_set_nodata: NODATA value for 16BUI band got truncated
from 65536 to 0
WARNING: Pixel value for 16BUI band got truncated from 65536 to 0
ERROR: Coordinates ouf of range
Testing 32BUI band
WARNING: rt_band_set_nodata: NODATA value for 32BUI band got truncated
from 4.29497e+09 to 0
WARNING: Pixel value for 32BUI band got truncated from 4.29497e+09 to 0
ERROR: Coordinates ouf of range
Testing 32BSI band
WARNING: rt_band_set_nodata: NODATA value for 32BSI band got truncated
from 2.14748e+09 to -2.14748e+09
WARNING: Pixel value for 32BSI band got truncated from 2.14748e+09 to
-2.14748e+09
ERROR: Coordinates ouf of range
Testing 32BF band
Testing 64BF band
Testing band hasnodata flag
testapi: rt_api.c:545: rt_band_get_data: Assertion `((void *)0) != band'
failed.
make[2]: *** [check] Aborted
make[2]: Leaving directory
`/home/mloskot/dev/wktraster/_svn/trunk/test/core'
make[1]: *** [check] Error 2
make[1]: Leaving directory `/home/mloskot/dev/wktraster/_svn/trunk/test'
make: *** [check] Error 2

The assertion is serious and happens in crucial function.
I checked and the last healthy revision seems to be r5811.

Pierre, Jorge, could you re-validate your recent commits?
You do run "make check" before every commit, don't you?

Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. On Mon, Aug 23, 2010 at 1:04 PM, Mateusz Loskot <> wrote:
> Hi,
>
> I've noticed current revision of WKT Raster is broken.
> Running the core tests for r5841 ends up with assertion and
> load of warnings:
>
> ./testapi
> 1111 pixtype = 2
> Raster starts with 0 bands
> First point on convexhull ring is 0.5,0.5
> Second point on convexhull ring is 256.5,1280.5
> Third point on convexhull ring is 1280.5,1536.5
> Fourth point on convexhull ring is 1024.5,256.5
> Fifth point on convexhull ring is 0.5,0.5
> Testing polygonize function
> Testing 1BB band
> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 2
> to 0
> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 3
> to 1
> WARNING: Pixel value for 1BB band got truncated from 2 to 0
> WARNING: Pixel value for 1BB band got truncated from 3 to 1
> Testing 2BB band
> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 4
> to 0
> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 5
> to 1
> WARNING: Pixel value for 2BUI band got truncated from 4 to 0
> WARNING: Pixel value for 2BUI band got truncated from 5 to 1
> Testing 4BUI band
> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
> 16 to 0
> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
> 17 to 1
> WARNING: Pixel value for 4BUI band got truncated from 35 to 3
> Testing 8BUI band
> WARNING: rt_band_set_nodata: NODATA value for 8BUI band got truncated from
> 256 to 0
> WARNING: Pixel value for 8BUI band got truncated from 256 to 0
> Testing 8BSI band
> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
> -129 to 127
> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
> 129 to -127
> WARNING: Pixel value for 8BSI band got truncated from -129 to 127
> WARNING: Pixel value for 8BSI band got truncated from 129 to -127
> Testing 16BSI band
> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
> -32769 to 32767
> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
> 32769 to -32767
> WARNING: Pixel value for 16BSI band got truncated from -32769 to 32767
> WARNING: Pixel value for 16BSI band got truncated from 32769 to -32767
> ERROR: Coordinates ouf of range
> Testing 16BUI band
> WARNING: rt_band_set_nodata: NODATA value for 16BUI band got truncated from
> 65536 to 0
> WARNING: Pixel value for 16BUI band got truncated from 65536 to 0
> ERROR: Coordinates ouf of range
> Testing 32BUI band
> WARNING: rt_band_set_nodata: NODATA value for 32BUI band got truncated from
> 4.29497e+09 to 0
> WARNING: Pixel value for 32BUI band got truncated from 4.29497e+09 to 0
> ERROR: Coordinates ouf of range
> Testing 32BSI band
> WARNING: rt_band_set_nodata: NODATA value for 32BSI band got truncated from
> 2.14748e+09 to -2.14748e+09
> WARNING: Pixel value for 32BSI band got truncated from 2.14748e+09 to
> -2.14748e+09
> ERROR: Coordinates ouf of range
> Testing 32BF band
> Testing 64BF band
> Testing band hasnodata flag
> testapi: rt_api.c:545: rt_band_get_data: Assertion `((void *)0) != band'
> failed.
> make[2]: *** [check] Aborted
> make[2]: Leaving directory
> `/home/mloskot/dev/wktraster/_svn/trunk/test/core'
> make[1]: *** [check] Error 2
> make[1]: Leaving directory `/home/mloskot/dev/wktraster/_svn/trunk/test'
> make: *** [check] Error 2
>
> The assertion is serious and happens in crucial function.
> I checked and the last healthy revision seems to be r5811.
>
> Pierre, Jorge, could you re-validate your recent commits?
> You do run "make check" before every commit, don't you?
>
> Best regards,
> --
> Mateusz Loskot, http://mateusz.loskot.net
> _______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. Probably my fault. Double check...

Pierre

>-----Original Message-----
>From: postgis-devel- [mailto:postgis-devel-
>] On Behalf Of Jorge Arévalo
>Sent: 23 août 2010 07:39
>To: PostGIS Development Discussion
>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>
>On Mon, Aug 23, 2010 at 1:04 PM, Mateusz Loskot <> wrote:
>> Hi,
>>
>> I've noticed current revision of WKT Raster is broken.
>> Running the core tests for r5841 ends up with assertion and
>> load of warnings:
>>
>> ./testapi
>> 1111 pixtype = 2
>> Raster starts with 0 bands
>> First point on convexhull ring is 0.5,0.5
>> Second point on convexhull ring is 256.5,1280.5
>> Third point on convexhull ring is 1280.5,1536.5
>> Fourth point on convexhull ring is 1024.5,256.5
>> Fifth point on convexhull ring is 0.5,0.5
>> Testing polygonize function
>> Testing 1BB band
>> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 2
>> to 0
>> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 3
>> to 1
>> WARNING: Pixel value for 1BB band got truncated from 2 to 0
>> WARNING: Pixel value for 1BB band got truncated from 3 to 1
>> Testing 2BB band
>> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 4
>> to 0
>> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 5
>> to 1
>> WARNING: Pixel value for 2BUI band got truncated from 4 to 0
>> WARNING: Pixel value for 2BUI band got truncated from 5 to 1
>> Testing 4BUI band
>> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
>> 16 to 0
>> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
>> 17 to 1
>> WARNING: Pixel value for 4BUI band got truncated from 35 to 3
>> Testing 8BUI band
>> WARNING: rt_band_set_nodata: NODATA value for 8BUI band got truncated from
>> 256 to 0
>> WARNING: Pixel value for 8BUI band got truncated from 256 to 0
>> Testing 8BSI band
>> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
>> -129 to 127
>> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
>> 129 to -127
>> WARNING: Pixel value for 8BSI band got truncated from -129 to 127
>> WARNING: Pixel value for 8BSI band got truncated from 129 to -127
>> Testing 16BSI band
>> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
>> -32769 to 32767
>> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
>> 32769 to -32767
>> WARNING: Pixel value for 16BSI band got truncated from -32769 to 32767
>> WARNING: Pixel value for 16BSI band got truncated from 32769 to -32767
>> ERROR: Coordinates ouf of range
>> Testing 16BUI band
>> WARNING: rt_band_set_nodata: NODATA value for 16BUI band got truncated from
>> 65536 to 0
>> WARNING: Pixel value for 16BUI band got truncated from 65536 to 0
>> ERROR: Coordinates ouf of range
>> Testing 32BUI band
>> WARNING: rt_band_set_nodata: NODATA value for 32BUI band got truncated from
>> 4.29497e+09 to 0
>> WARNING: Pixel value for 32BUI band got truncated from 4.29497e+09 to 0
>> ERROR: Coordinates ouf of range
>> Testing 32BSI band
>> WARNING: rt_band_set_nodata: NODATA value for 32BSI band got truncated from
>> 2.14748e+09 to -2.14748e+09
>> WARNING: Pixel value for 32BSI band got truncated from 2.14748e+09 to
>> -2.14748e+09
>> ERROR: Coordinates ouf of range
>> Testing 32BF band
>> Testing 64BF band
>> Testing band hasnodata flag
>> testapi: rt_api.c:545: rt_band_get_data: Assertion `((void *)0) != band'
>> failed.
>> make[2]: *** [check] Aborted
>> make[2]: Leaving directory
>> `/home/mloskot/dev/wktraster/_svn/trunk/test/core'
>> make[1]: *** [check] Error 2
>> make[1]: Leaving directory `/home/mloskot/dev/wktraster/_svn/trunk/test'
>> make: *** [check] Error 2
>>
>> The assertion is serious and happens in crucial function.
>> I checked and the last healthy revision seems to be r5811.
>>
>> Pierre, Jorge, could you re-validate your recent commits?
>> You do run "make check" before every commit, don't you?
>>
>> Best regards,
>> --
>> Mateusz Loskot, http://mateusz.loskot.net
>> _______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. fixed in r5864

Sorry for that. Probably forgot to make check.

Pierre

>-----Original Message-----
>From: postgis-devel- [mailto:postgis-devel-
>] On Behalf Of Pierre Racine
>Sent: 23 août 2010 09:24
>To: PostGIS Development Discussion
>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>
>Probably my fault. Double check...
>
>Pierre
>
>>-----Original Message-----
>>From: postgis-devel- [mailto:postgis-devel-
>>] On Behalf Of Jorge Arévalo
>>Sent: 23 août 2010 07:39
>>To: PostGIS Development Discussion
>>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>>
>>On Mon, Aug 23, 2010 at 1:04 PM, Mateusz Loskot <> wrote:
>>> Hi,
>>>
>>> I've noticed current revision of WKT Raster is broken.
>>> Running the core tests for r5841 ends up with assertion and
>>> load of warnings:
>>>
>>> ./testapi
>>> 1111 pixtype = 2
>>> Raster starts with 0 bands
>>> First point on convexhull ring is 0.5,0.5
>>> Second point on convexhull ring is 256.5,1280.5
>>> Third point on convexhull ring is 1280.5,1536.5
>>> Fourth point on convexhull ring is 1024.5,256.5
>>> Fifth point on convexhull ring is 0.5,0.5
>>> Testing polygonize function
>>> Testing 1BB band
>>> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 2
>>> to 0
>>> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 3
>>> to 1
>>> WARNING: Pixel value for 1BB band got truncated from 2 to 0
>>> WARNING: Pixel value for 1BB band got truncated from 3 to 1
>>> Testing 2BB band
>>> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 4
>>> to 0
>>> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 5
>>> to 1
>>> WARNING: Pixel value for 2BUI band got truncated from 4 to 0
>>> WARNING: Pixel value for 2BUI band got truncated from 5 to 1
>>> Testing 4BUI band
>>> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
>>> 16 to 0
>>> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
>>> 17 to 1
>>> WARNING: Pixel value for 4BUI band got truncated from 35 to 3
>>> Testing 8BUI band
>>> WARNING: rt_band_set_nodata: NODATA value for 8BUI band got truncated from
>>> 256 to 0
>>> WARNING: Pixel value for 8BUI band got truncated from 256 to 0
>>> Testing 8BSI band
>>> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
>>> -129 to 127
>>> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
>>> 129 to -127
>>> WARNING: Pixel value for 8BSI band got truncated from -129 to 127
>>> WARNING: Pixel value for 8BSI band got truncated from 129 to -127
>>> Testing 16BSI band
>>> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
>>> -32769 to 32767
>>> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
>>> 32769 to -32767
>>> WARNING: Pixel value for 16BSI band got truncated from -32769 to 32767
>>> WARNING: Pixel value for 16BSI band got truncated from 32769 to -32767
>>> ERROR: Coordinates ouf of range
>>> Testing 16BUI band
>>> WARNING: rt_band_set_nodata: NODATA value for 16BUI band got truncated from
>>> 65536 to 0
>>> WARNING: Pixel value for 16BUI band got truncated from 65536 to 0
>>> ERROR: Coordinates ouf of range
>>> Testing 32BUI band
>>> WARNING: rt_band_set_nodata: NODATA value for 32BUI band got truncated from
>>> 4.29497e+09 to 0
>>> WARNING: Pixel value for 32BUI band got truncated from 4.29497e+09 to 0
>>> ERROR: Coordinates ouf of range
>>> Testing 32BSI band
>>> WARNING: rt_band_set_nodata: NODATA value for 32BSI band got truncated from
>>> 2.14748e+09 to -2.14748e+09
>>> WARNING: Pixel value for 32BSI band got truncated from 2.14748e+09 to
>>> -2.14748e+09
>>> ERROR: Coordinates ouf of range
>>> Testing 32BF band
>>> Testing 64BF band
>>> Testing band hasnodata flag
>>> testapi: rt_api.c:545: rt_band_get_data: Assertion `((void *)0) != band'
>>> failed.
>>> make[2]: *** [check] Aborted
>>> make[2]: Leaving directory
>>> `/home/mloskot/dev/wktraster/_svn/trunk/test/core'
>>> make[1]: *** [check] Error 2
>>> make[1]: Leaving directory `/home/mloskot/dev/wktraster/_svn/trunk/test'
>>> make: *** [check] Error 2
>>>
>>> The assertion is serious and happens in crucial function.
>>> I checked and the last healthy revision seems to be r5811.
>>>
>>> Pierre, Jorge, could you re-validate your recent commits?
>>> You do run "make check" before every commit, don't you?
>>>
>>> Best regards,
>>> --
>>> Mateusz Loskot, http://mateusz.loskot.net
>>> _______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. Thanks for the fix, Pierre. But I'm getting a Segmentation Fault. caused by

memcpy(raster->bands[i], oldbands[oldi++], sizeof(rt_band));

(rt_core/rt_api.c, line 1351)

in Ubuntu Linux. Anyone else?

On Mon, Aug 23, 2010 at 4:53 PM, Pierre Racine
<> wrote:
> fixed in r5864
>
> Sorry for that. Probably forgot to make check.
>
> Pierre
>
>>-----Original Message-----
>>From: postgis-devel- [mailto:postgis-devel-
>>] On Behalf Of Pierre Racine
>>Sent: 23 août 2010 09:24
>>To: PostGIS Development Discussion
>>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>>
>>Probably my fault. Double check...
>>
>>Pierre
>>
>>>-----Original Message-----
>>>From: postgis-devel- [mailto:postgis-devel-
>>>] On Behalf Of Jorge Arévalo
>>>Sent: 23 août 2010 07:39
>>>To: PostGIS Development Discussion
>>>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>>>
>>>On Mon, Aug 23, 2010 at 1:04 PM, Mateusz Loskot <> wrote:
>>>> Hi,
>>>>
>>>> I've noticed current revision of WKT Raster is broken.
>>>> Running the core tests for r5841 ends up with assertion and
>>>> load of warnings:
>>>>
>>>> ./testapi
>>>> 1111 pixtype = 2
>>>> Raster starts with 0 bands
>>>> First point on convexhull ring is 0.5,0.5
>>>> Second point on convexhull ring is 256.5,1280.5
>>>> Third point on convexhull ring is 1280.5,1536.5
>>>> Fourth point on convexhull ring is 1024.5,256.5
>>>> Fifth point on convexhull ring is 0.5,0.5
>>>> Testing polygonize function
>>>> Testing 1BB band
>>>> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 2
>>>> to 0
>>>> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 3
>>>> to 1
>>>> WARNING: Pixel value for 1BB band got truncated from 2 to 0
>>>> WARNING: Pixel value for 1BB band got truncated from 3 to 1
>>>> Testing 2BB band
>>>> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 4
>>>> to 0
>>>> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 5
>>>> to 1
>>>> WARNING: Pixel value for 2BUI band got truncated from 4 to 0
>>>> WARNING: Pixel value for 2BUI band got truncated from 5 to 1
>>>> Testing 4BUI band
>>>> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
>>>> 16 to 0
>>>> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
>>>> 17 to 1
>>>> WARNING: Pixel value for 4BUI band got truncated from 35 to 3
>>>> Testing 8BUI band
>>>> WARNING: rt_band_set_nodata: NODATA value for 8BUI band got truncated from
>>>> 256 to 0
>>>> WARNING: Pixel value for 8BUI band got truncated from 256 to 0
>>>> Testing 8BSI band
>>>> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
>>>> -129 to 127
>>>> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
>>>> 129 to -127
>>>> WARNING: Pixel value for 8BSI band got truncated from -129 to 127
>>>> WARNING: Pixel value for 8BSI band got truncated from 129 to -127
>>>> Testing 16BSI band
>>>> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
>>>> -32769 to 32767
>>>> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
>>>> 32769 to -32767
>>>> WARNING: Pixel value for 16BSI band got truncated from -32769 to 32767
>>>> WARNING: Pixel value for 16BSI band got truncated from 32769 to -32767
>>>> ERROR: Coordinates ouf of range
>>>> Testing 16BUI band
>>>> WARNING: rt_band_set_nodata: NODATA value for 16BUI band got truncated from
>>>> 65536 to 0
>>>> WARNING: Pixel value for 16BUI band got truncated from 65536 to 0
>>>> ERROR: Coordinates ouf of range
>>>> Testing 32BUI band
>>>> WARNING: rt_band_set_nodata: NODATA value for 32BUI band got truncated from
>>>> 4.29497e+09 to 0
>>>> WARNING: Pixel value for 32BUI band got truncated from 4.29497e+09 to 0
>>>> ERROR: Coordinates ouf of range
>>>> Testing 32BSI band
>>>> WARNING: rt_band_set_nodata: NODATA value for 32BSI band got truncated from
>>>> 2.14748e+09 to -2.14748e+09
>>>> WARNING: Pixel value for 32BSI band got truncated from 2.14748e+09 to
>>>> -2.14748e+09
>>>> ERROR: Coordinates ouf of range
>>>> Testing 32BF band
>>>> Testing 64BF band
>>>> Testing band hasnodata flag
>>>> testapi: rt_api.c:545: rt_band_get_data: Assertion `((void *)0) != band'
>>>> failed.
>>>> make[2]: *** [check] Aborted
>>>> make[2]: Leaving directory
>>>> `/home/mloskot/dev/wktraster/_svn/trunk/test/core'
>>>> make[1]: *** [check] Error 2
>>>> make[1]: Leaving directory `/home/mloskot/dev/wktraster/_svn/trunk/test'
>>>> make: *** [check] Error 2
>>>>
>>>> The assertion is serious and happens in crucial function.
>>>> I checked and the last healthy revision seems to be r5811.
>>>>
>>>> Pierre, Jorge, could you re-validate your recent commits?
>>>> You do run "make check" before every commit, don't you?
>>>>
>>>> Best regards,
>>>> --
>>>> Mateusz Loskot, http://mateusz.loskot.net
>>>> _______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. On 23/08/10 17:23, Jorge Arévalo wrote:
> Thanks for the fix, Pierre. But I'm getting a Segmentation Fault. caused by
>
> memcpy(raster->bands[i], oldbands[oldi++], sizeof(rt_band));
>
> (rt_core/rt_api.c, line 1351)
>
> in Ubuntu Linux. Anyone else?

I've quickly checked running make check and I confirm this issue.
Getting segmentation fault too.

Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. On Mon, Aug 23, 2010 at 11:11 PM, Pierre Racine
<> wrote:
> Could you test the last one. Thanks. Sorry for that my C is a bit rusty.
>
> Pierre
>

OK. make check is working fine for me now.

Jorge

>>-----Original Message-----
>>From: postgis-devel- [mailto:postgis-devel-
>>] On Behalf Of Mateusz Loskot
>>Sent: 23 août 2010 12:50
>>To: postgis-
>>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>>
>>On 23/08/10 17:23, Jorge Arévalo wrote:
>>> Thanks for the fix, Pierre. But I'm getting a Segmentation Fault. caused by
>>>
>>> memcpy(raster->bands[i], oldbands[oldi++], sizeof(rt_band));
>>>
>>> (rt_core/rt_api.c, line 1351)
>>>
>>> in Ubuntu Linux. Anyone else?
>>
>>I've quickly checked running make check and I confirm this issue.
>>Getting segmentation fault too.
>>
>>Best regards,
>>--
>>Mateusz Loskot, http://mateusz.loskot.net
>>_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. On 24/08/10 10:39, Jorge Arévalo wrote:
> On Mon, Aug 23, 2010 at 11:11 PM, Pierre Racine
> <> wrote:
>> Could you test the last one. Thanks. Sorry for that my C is a bit rusty.
>
> OK. make check is working fine for me now.

Works for me too, however regression test is failing:L


mloskot@vb-ubuntu910-x64:~/dev/wktraster/_svn/trunk$ make post-install-check

...
Creating spatial db rtpostgis_reg
TMPDIR is /tmp/rtpgis_reg_4435

PostgreSQL 8.4.4 on x86_64-pc-linux-gnu, compiled by GCC gcc-4.4.real
(Ubuntu 4.4.3-4ubuntu5) 4.4.3, 64-bit
Postgis 2.0.0SVN - 2010-08-04 11:37:17
GEOS: 3.3.0-CAPI-1.7.0
PROJ: Rel. 4.7.1, 23 September 2009
WKTRaster 0.1.6d - 2010-08-24 09:14:21

Running tests

check_raster_columns. ok
check_raster_overviews. ok
rt_io. ok
create_rt_bytea_test. ok
rt_bytea. ok
create_rt_box2d_test. ok
rt_box2d. ok
rt_addband. failed (diff expected obtained:
/tmp/rtpgis_reg_4435/test_8_diff)
create_rt_properties_test. ok
rt_dimensions. ok
rt_pixelsize. ok
rt_upperleft. ok
rt_rotation. ok
rt_georeference. ok
rt_set_properties. ok
create_rt_band_properties_test. ok
rt_band_properties. ok
rt_set_band_properties. ok
rt_pixelvalue. ok
create_rt_utility_test. ok
rt_utility. ok
create_rt_gist_test. ok
rt_above. ok
rt_below. ok
rt_contained. ok
rt_contain. ok
rt_left. ok
rt_overabove. ok
rt_overbelow. ok
rt_overlap. ok
rt_overleft. ok
rt_overright. ok
rt_right. ok
rt_same. ok
rt_spatial_relationship. ok
bug_test_car5. ok

Run tests: 36
Failed: 1
make[2]: Leaving directory
`/home/mloskot/dev/wktraster/_svn/trunk/test/regress'
make[1]: Leaving directory `/home/mloskot/dev/wktraster/_svn/trunk/test'
mloskot@vb-ubuntu910-x64:~/dev/wktraster/_svn/trunk$ cat
/tmp/rtpgis_reg_4435/test_8_diff
*** rt_addband_expected 2010-08-23 16:51:59.000000000 +0100
--- /tmp/rtpgis_reg_4435/test_8_out 2010-08-24 10:15:19.000000000 +0100
***************
*** 45,52 ****
154
WARNING: Initial pixel value for 8BUI band got truncated from
256.000000 to 255
255
! WARNING: Initial pixel value for 16BSI band got truncated from
-32769.000000 to -32768
! -32768
-32768
0
32767
--- 45,52 ----
154
WARNING: Initial pixel value for 8BUI band got truncated from
256.000000 to 255
255
! WARNING: Initial pixel value for 16BSI band got truncated from
-32769.000000 to 32767
! 32767
-32768
0
32767
***************
*** 54,61 ****
-32768
WARNING: Initial pixel value for 16BSI band got truncated from
21.460000 to 21
21
! WARNING: Initial pixel value for 16BSI band got truncated from
210000.460000 to -32768
! -32768
WARNING: Initial pixel value for 16BUI band got truncated from
-1.000000 to 65535
65535
0
--- 54,61 ----
-32768
WARNING: Initial pixel value for 16BSI band got truncated from
21.460000 to 21
21
! WARNING: Initial pixel value for 16BSI band got truncated from
210000.460000 to 13392
! 13392
WARNING: Initial pixel value for 16BUI band got truncated from
-1.000000 to 65535
65535
0
mloskot@vb-ubuntu910-x64:~/dev/wktraster/_svn/trunk$


Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. make post-install-check works for me too... Maybe is a problem with
PostGIS/GEOS/PROJ versions... here my versions

PostgreSQL 8.4.4 on i486-pc-linux-gnu, compiled by GCC gcc-4.4.real
(Ubuntu 4.4.1-4ubuntu8) 4.4.1, 32-bit
Postgis 1.4.2 - 2010-08-05 17:36:12
GEOS: 3.3.0-CAPI-1.6.1
PROJ: Rel. 4.7.1, 23 September 2009
WKTRaster 0.1.6d - 2010-08-18 13:49:03

I'll do the test with a newer version of postgis (2.0.0SVN, like you,
for example).

A minor issue: the rtpostgis_reg database created for postinstall
check is not deleted by default. Mateusz, did you change it for any
reason? (r5822 was the previous version)

2010/8/24 Mateusz Loskot <>:
> On 24/08/10 10:39, Jorge Arévalo wrote:
>>
>> On Mon, Aug 23, 2010 at 11:11 PM, Pierre Racine
>> <>  wrote:
>>>
>>> Could you test the last one. Thanks. Sorry for that my C is a bit rusty.
>>
>> OK. make check is working fine for me now.
>
> Works for me too, however regression test is failing:L
>
>
> mloskot@vb-ubuntu910-x64:~/dev/wktraster/_svn/trunk$ make post-install-check
>
> ...
> Creating spatial db rtpostgis_reg
> TMPDIR is /tmp/rtpgis_reg_4435
>
>  PostgreSQL 8.4.4 on x86_64-pc-linux-gnu, compiled by GCC gcc-4.4.real
> (Ubuntu 4.4.3-4ubuntu5) 4.4.3, 64-bit
>  Postgis 2.0.0SVN - 2010-08-04 11:37:17
>   GEOS: 3.3.0-CAPI-1.7.0
>   PROJ: Rel. 4.7.1, 23 September 2009
>  WKTRaster 0.1.6d - 2010-08-24 09:14:21
>
> Running tests
>
>  check_raster_columns. ok
>  check_raster_overviews. ok
>  rt_io. ok
>  create_rt_bytea_test. ok
>  rt_bytea. ok
>  create_rt_box2d_test. ok
>  rt_box2d. ok
>  rt_addband. failed (diff expected obtained:
> /tmp/rtpgis_reg_4435/test_8_diff)
>  create_rt_properties_test. ok
>  rt_dimensions. ok
>  rt_pixelsize. ok
>  rt_upperleft. ok
>  rt_rotation. ok
>  rt_georeference. ok
>  rt_set_properties. ok
>  create_rt_band_properties_test. ok
>  rt_band_properties. ok
>  rt_set_band_properties. ok
>  rt_pixelvalue. ok
>  create_rt_utility_test. ok
>  rt_utility. ok
>  create_rt_gist_test. ok
>  rt_above. ok
>  rt_below. ok
>  rt_contained. ok
>  rt_contain. ok
>  rt_left. ok
>  rt_overabove. ok
>  rt_overbelow. ok
>  rt_overlap. ok
>  rt_overleft. ok
>  rt_overright. ok
>  rt_right. ok
>  rt_same. ok
>  rt_spatial_relationship. ok
>  bug_test_car5. ok
>
> Run tests: 36
> Failed: 1
> make[2]: Leaving directory
> `/home/mloskot/dev/wktraster/_svn/trunk/test/regress'
> make[1]: Leaving directory `/home/mloskot/dev/wktraster/_svn/trunk/test'
> mloskot@vb-ubuntu910-x64:~/dev/wktraster/_svn/trunk$ cat
> /tmp/rtpgis_reg_4435/test_8_diff
> *** rt_addband_expected 2010-08-23 16:51:59.000000000 +0100
> --- /tmp/rtpgis_reg_4435/test_8_out     2010-08-24 10:15:19.000000000 +0100
> ***************
> *** 45,52 ****
>  154
>  WARNING:  Initial pixel value for 8BUI band got truncated from 256.000000
> to 255
>  255
> ! WARNING:  Initial pixel value for 16BSI band got truncated from
> -32769.000000 to -32768
> ! -32768
>  -32768
>  0
>  32767
> --- 45,52 ----
>  154
>  WARNING:  Initial pixel value for 8BUI band got truncated from 256.000000
> to 255
>  255
> ! WARNING:  Initial pixel value for 16BSI band got truncated from
> -32769.000000 to 32767
> ! 32767
>  -32768
>  0
>  32767
> ***************
> *** 54,61 ****
>  -32768
>  WARNING:  Initial pixel value for 16BSI band got truncated from 21.460000
> to 21
>  21
> ! WARNING:  Initial pixel value for 16BSI band got truncated from
> 210000.460000 to -32768
> ! -32768
>  WARNING:  Initial pixel value for 16BUI band got truncated from -1.000000
> to 65535
>  65535
>  0
> --- 54,61 ----
>  -32768
>  WARNING:  Initial pixel value for 16BSI band got truncated from 21.460000
> to 21
>  21
> ! WARNING:  Initial pixel value for 16BSI band got truncated from
> 210000.460000 to 13392
> ! 13392
>  WARNING:  Initial pixel value for 16BUI band got truncated from -1.000000
> to 65535
>  65535
>  0
> mloskot@vb-ubuntu910-x64:~/dev/wktraster/_svn/trunk$
>
>
> Best regards,
> --
> Mateusz Loskot, http://mateusz.loskot.net
>



--
Jorge Arévalo
DEIMOS Space
Internet & Mobilty Division
Ronda de Poniente 19. Edificio Fiteni VI, portal 2, 2º
28760 Tres Cantos (Madrid)


http://gis4free.wordpress.com
_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. On 24/08/10 11:08, Jorge Arévalo wrote:
> make post-install-check works for me too... Maybe is a problem with
> PostGIS/GEOS/PROJ versions... here my versions
>
> PostgreSQL 8.4.4 on i486-pc-linux-gnu, compiled by GCC gcc-4.4.real
> (Ubuntu 4.4.1-4ubuntu8) 4.4.1, 32-bit
> Postgis 1.4.2 - 2010-08-05 17:36:12
> GEOS: 3.3.0-CAPI-1.6.1
> PROJ: Rel. 4.7.1, 23 September 2009
> WKTRaster 0.1.6d - 2010-08-18 13:49:03
>
> I'll do the test with a newer version of postgis (2.0.0SVN, like you,
> for example).

OK, thanks.

> A minor issue: the rtpostgis_reg database created for postinstall
> check is not deleted by default. Mateusz, did you change it for any
> reason? (r5822 was the previous version)

Which changeset you mean exactly. The following is r5823
and some changes in test/regress/run_test.in happened.

Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. 2010/8/24 Mateusz Loskot <>:
> On 24/08/10 11:08, Jorge Arévalo wrote:
>>
>> A minor issue: the rtpostgis_reg database created for postinstall
>> check is not deleted by default. Mateusz, did you change it for any
>> reason? (r5822 was the previous version)
>
> Which changeset you mean exactly. The following is r5823
> and some changes in test/regress/run_test.in happened.
>

Yes, sorry, my mistake. I mean the last change on
test/regress/run_test.in. A little change:

http://trac.osgeo.org/postgis/changeset/5823/spike/wktraster/test/regress/run_test.in

May I change the DROP option again, or is a bad idea?

> Best regards,
> --
> Mateusz Loskot, http://mateusz.loskot.net
>



--
Jorge Arévalo
DEIMOS Space
Internet & Mobilty Division
Ronda de Poniente 19. Edificio Fiteni VI, portal 2, 2º
28760 Tres Cantos (Madrid)


http://gis4free.wordpress.com
_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. On 24/08/10 11:32, Jorge Arévalo wrote:
> 2010/8/24 Mateusz Loskot<>:
>> On 24/08/10 11:08, Jorge Arévalo wrote:
>>>
>>> A minor issue: the rtpostgis_reg database created for postinstall
>>> check is not deleted by default. Mateusz, did you change it for any
>>> reason? (r5822 was the previous version)
>>
>> Which changeset you mean exactly. The following is r5823
>> and some changes in test/regress/run_test.in happened.
>>
>
> Yes, sorry, my mistake. I mean the last change on
> test/regress/run_test.in. A little change:
>
> http://trac.osgeo.org/postgis/changeset/5823/spike/wktraster/test/regress/run_test.in
>
> May I change the DROP option again, or is a bad idea?

IMO, we should follow PostGIS' approach:

http://trac.osgeo.org/postgis/changeset/5823/spike/wktraster/test/regress/run_test.in

AFAIU, it is yes, I'd re-enable the drop option.

Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. Mateusz,

Could you get your regression test to work?

I reverted the drop option to "yes".

Pierre

>-----Original Message-----
>From: postgis-devel- [mailto:postgis-devel-
>] On Behalf Of Mateusz Loskot
>Sent: 24 août 2010 06:48
>To: Jorge Arévalo
>Cc: PostGIS Development Discussion
>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>
>On 24/08/10 11:32, Jorge Arévalo wrote:
>> 2010/8/24 Mateusz Loskot<>:
>>> On 24/08/10 11:08, Jorge Arévalo wrote:
>>>>
>>>> A minor issue: the rtpostgis_reg database created for postinstall
>>>> check is not deleted by default. Mateusz, did you change it for any
>>>> reason? (r5822 was the previous version)
>>>
>>> Which changeset you mean exactly. The following is r5823
>>> and some changes in test/regress/run_test.in happened.
>>>
>>
>> Yes, sorry, my mistake. I mean the last change on
>> test/regress/run_test.in. A little change:
>>
>> http://trac.osgeo.org/postgis/changeset/5823/spike/wktraster/test/regress/run_test.in
>>
>> May I change the DROP option again, or is a bad idea?
>
>IMO, we should follow PostGIS' approach:
>
>http://trac.osgeo.org/postgis/changeset/5823/spike/wktraster/test/regress/run_test.in
>
>AFAIU, it is yes, I'd re-enable the drop option.
>
>Best regards,
>--
>Mateusz Loskot, http://mateusz.loskot.net
>_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. On 24/08/10 13:48, Pierre Racine wrote:
> Mateusz,
>
> Could you get your regression test to work?

Pierre,

Where does this expected value of -32768 come from in the following
messages in the rt_addband_expected file?

WARNING: Initial pixel value for 16BSI band got truncated from
-32769.000000 to -32768
-32768

WARNING: Initial pixel value for 16BSI band got truncated from
210000.460000 to -32768
-32768

Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. From thoses two lines in the rt_addband.sql file:

SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '16BSI', -32769, NULL), 3, 3);

and further:

SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '16BSI', 210000.46, NULL), 3, 3);

Pierre

>-----Original Message-----
>From: postgis-devel- [mailto:postgis-devel-
>] On Behalf Of Mateusz Loskot
>Sent: 31 août 2010 13:14
>To: PostGIS Development Discussion
>Cc: Pierre Racine; =?UTF-8?B?Sm9yZ2UgQXLDqXY=?=@lists.refractions.net
>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>
>On 24/08/10 13:48, Pierre Racine wrote:
>> Mateusz,
>>
>> Could you get your regression test to work?
>
>Pierre,
>
>Where does this expected value of -32768 come from in the following
>messages in the rt_addband_expected file?
>
>WARNING: Initial pixel value for 16BSI band got truncated from
>-32769.000000 to -32768
>-32768
>
>WARNING: Initial pixel value for 16BSI band got truncated from
>210000.460000 to -32768
>-32768
>
>Best regards,
>--
>Mateusz Loskot, http://mateusz.loskot.net
>_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. On 31/08/10 21:14, Pierre Racine wrote:
>>From thoses two lines in the rt_addband.sql file:
>
> SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '16BSI', -32769, NULL), 3, 3);
>
> and further:
>
> SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '16BSI', 210000.46, NULL), 3, 3);


Pierre,

I'm still confused why you are getting such strange values.
The value -32768 is invalid and unexpected, obviously.
It would indicate a bug.

Fortunately, I do not get such value, but I get the correct ones:

r1=# SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10,
2, 2, 0, 0, -1), 1, '16BSI', -32769, NULL), 3, 3);
WARNING: Initial pixel value for 16BSI band got truncated from
-32769.000000 to 32767
st_value
----------
32767
(1 row)

r1=# SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10,
2, 2, 0, 0, -1), 1, '16BSI', 210000.46, NULL), 3, 3);
WARNING: Initial pixel value for 16BSI band got truncated from
210000.460000 to 13392
st_value
----------
13392
(1 row)



Nevertheless, I've updated the expected output with correct values:

http://trac.osgeo.org/postgis/changeset/5907

Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
Charter Member of OSGeo, http://osgeo.org
_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe.

  #17  
12-01-2011 06:47 PM
PostGIS : postgis-devel member admin is online now
User
 

Hi,

I've noticed current revision of WKT Raster is broken.
Running the core tests for r5841 ends up with assertion and
load of warnings:

./testapi
1111 pixtype = 2
Raster starts with 0 bands
First point on convexhull ring is 0.5,0.5
Second point on convexhull ring is 256.5,1280.5
Third point on convexhull ring is 1280.5,1536.5
Fourth point on convexhull ring is 1024.5,256.5
Fifth point on convexhull ring is 0.5,0.5
Testing polygonize function
Testing 1BB band
WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated
from 2 to 0
WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated
from 3 to 1
WARNING: Pixel value for 1BB band got truncated from 2 to 0
WARNING: Pixel value for 1BB band got truncated from 3 to 1
Testing 2BB band
WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated
from 4 to 0
WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated
from 5 to 1
WARNING: Pixel value for 2BUI band got truncated from 4 to 0
WARNING: Pixel value for 2BUI band got truncated from 5 to 1
Testing 4BUI band
WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated
from 16 to 0
WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated
from 17 to 1
WARNING: Pixel value for 4BUI band got truncated from 35 to 3
Testing 8BUI band
WARNING: rt_band_set_nodata: NODATA value for 8BUI band got truncated
from 256 to 0
WARNING: Pixel value for 8BUI band got truncated from 256 to 0
Testing 8BSI band
WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated
from -129 to 127
WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated
from 129 to -127
WARNING: Pixel value for 8BSI band got truncated from -129 to 127
WARNING: Pixel value for 8BSI band got truncated from 129 to -127
Testing 16BSI band
WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated
from -32769 to 32767
WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated
from 32769 to -32767
WARNING: Pixel value for 16BSI band got truncated from -32769 to 32767
WARNING: Pixel value for 16BSI band got truncated from 32769 to -32767
ERROR: Coordinates ouf of range
Testing 16BUI band
WARNING: rt_band_set_nodata: NODATA value for 16BUI band got truncated
from 65536 to 0
WARNING: Pixel value for 16BUI band got truncated from 65536 to 0
ERROR: Coordinates ouf of range
Testing 32BUI band
WARNING: rt_band_set_nodata: NODATA value for 32BUI band got truncated
from 4.29497e+09 to 0
WARNING: Pixel value for 32BUI band got truncated from 4.29497e+09 to 0
ERROR: Coordinates ouf of range
Testing 32BSI band
WARNING: rt_band_set_nodata: NODATA value for 32BSI band got truncated
from 2.14748e+09 to -2.14748e+09
WARNING: Pixel value for 32BSI band got truncated from 2.14748e+09 to
-2.14748e+09
ERROR: Coordinates ouf of range
Testing 32BF band
Testing 64BF band
Testing band hasnodata flag
testapi: rt_api.c:545: rt_band_get_data: Assertion `((void *)0) != band'
failed.
make[2]: *** [check] Aborted
make[2]: Leaving directory
`/home/mloskot/dev/wktraster/_svn/trunk/test/core'
make[1]: *** [check] Error 2
make[1]: Leaving directory `/home/mloskot/dev/wktraster/_svn/trunk/test'
make: *** [check] Error 2

The assertion is serious and happens in crucial function.
I checked and the last healthy revision seems to be r5811.

Pierre, Jorge, could you re-validate your recent commits?
You do run "make check" before every commit, don't you?

Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. On Mon, Aug 23, 2010 at 1:04 PM, Mateusz Loskot <> wrote:
> Hi,
>
> I've noticed current revision of WKT Raster is broken.
> Running the core tests for r5841 ends up with assertion and
> load of warnings:
>
> ./testapi
> 1111 pixtype = 2
> Raster starts with 0 bands
> First point on convexhull ring is 0.5,0.5
> Second point on convexhull ring is 256.5,1280.5
> Third point on convexhull ring is 1280.5,1536.5
> Fourth point on convexhull ring is 1024.5,256.5
> Fifth point on convexhull ring is 0.5,0.5
> Testing polygonize function
> Testing 1BB band
> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 2
> to 0
> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 3
> to 1
> WARNING: Pixel value for 1BB band got truncated from 2 to 0
> WARNING: Pixel value for 1BB band got truncated from 3 to 1
> Testing 2BB band
> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 4
> to 0
> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 5
> to 1
> WARNING: Pixel value for 2BUI band got truncated from 4 to 0
> WARNING: Pixel value for 2BUI band got truncated from 5 to 1
> Testing 4BUI band
> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
> 16 to 0
> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
> 17 to 1
> WARNING: Pixel value for 4BUI band got truncated from 35 to 3
> Testing 8BUI band
> WARNING: rt_band_set_nodata: NODATA value for 8BUI band got truncated from
> 256 to 0
> WARNING: Pixel value for 8BUI band got truncated from 256 to 0
> Testing 8BSI band
> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
> -129 to 127
> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
> 129 to -127
> WARNING: Pixel value for 8BSI band got truncated from -129 to 127
> WARNING: Pixel value for 8BSI band got truncated from 129 to -127
> Testing 16BSI band
> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
> -32769 to 32767
> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
> 32769 to -32767
> WARNING: Pixel value for 16BSI band got truncated from -32769 to 32767
> WARNING: Pixel value for 16BSI band got truncated from 32769 to -32767
> ERROR: Coordinates ouf of range
> Testing 16BUI band
> WARNING: rt_band_set_nodata: NODATA value for 16BUI band got truncated from
> 65536 to 0
> WARNING: Pixel value for 16BUI band got truncated from 65536 to 0
> ERROR: Coordinates ouf of range
> Testing 32BUI band
> WARNING: rt_band_set_nodata: NODATA value for 32BUI band got truncated from
> 4.29497e+09 to 0
> WARNING: Pixel value for 32BUI band got truncated from 4.29497e+09 to 0
> ERROR: Coordinates ouf of range
> Testing 32BSI band
> WARNING: rt_band_set_nodata: NODATA value for 32BSI band got truncated from
> 2.14748e+09 to -2.14748e+09
> WARNING: Pixel value for 32BSI band got truncated from 2.14748e+09 to
> -2.14748e+09
> ERROR: Coordinates ouf of range
> Testing 32BF band
> Testing 64BF band
> Testing band hasnodata flag
> testapi: rt_api.c:545: rt_band_get_data: Assertion `((void *)0) != band'
> failed.
> make[2]: *** [check] Aborted
> make[2]: Leaving directory
> `/home/mloskot/dev/wktraster/_svn/trunk/test/core'
> make[1]: *** [check] Error 2
> make[1]: Leaving directory `/home/mloskot/dev/wktraster/_svn/trunk/test'
> make: *** [check] Error 2
>
> The assertion is serious and happens in crucial function.
> I checked and the last healthy revision seems to be r5811.
>
> Pierre, Jorge, could you re-validate your recent commits?
> You do run "make check" before every commit, don't you?
>
> Best regards,
> --
> Mateusz Loskot, http://mateusz.loskot.net
> _______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. Probably my fault. Double check...

Pierre

>-----Original Message-----
>From: postgis-devel- [mailto:postgis-devel-
>] On Behalf Of Jorge Arévalo
>Sent: 23 août 2010 07:39
>To: PostGIS Development Discussion
>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>
>On Mon, Aug 23, 2010 at 1:04 PM, Mateusz Loskot <> wrote:
>> Hi,
>>
>> I've noticed current revision of WKT Raster is broken.
>> Running the core tests for r5841 ends up with assertion and
>> load of warnings:
>>
>> ./testapi
>> 1111 pixtype = 2
>> Raster starts with 0 bands
>> First point on convexhull ring is 0.5,0.5
>> Second point on convexhull ring is 256.5,1280.5
>> Third point on convexhull ring is 1280.5,1536.5
>> Fourth point on convexhull ring is 1024.5,256.5
>> Fifth point on convexhull ring is 0.5,0.5
>> Testing polygonize function
>> Testing 1BB band
>> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 2
>> to 0
>> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 3
>> to 1
>> WARNING: Pixel value for 1BB band got truncated from 2 to 0
>> WARNING: Pixel value for 1BB band got truncated from 3 to 1
>> Testing 2BB band
>> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 4
>> to 0
>> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 5
>> to 1
>> WARNING: Pixel value for 2BUI band got truncated from 4 to 0
>> WARNING: Pixel value for 2BUI band got truncated from 5 to 1
>> Testing 4BUI band
>> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
>> 16 to 0
>> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
>> 17 to 1
>> WARNING: Pixel value for 4BUI band got truncated from 35 to 3
>> Testing 8BUI band
>> WARNING: rt_band_set_nodata: NODATA value for 8BUI band got truncated from
>> 256 to 0
>> WARNING: Pixel value for 8BUI band got truncated from 256 to 0
>> Testing 8BSI band
>> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
>> -129 to 127
>> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
>> 129 to -127
>> WARNING: Pixel value for 8BSI band got truncated from -129 to 127
>> WARNING: Pixel value for 8BSI band got truncated from 129 to -127
>> Testing 16BSI band
>> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
>> -32769 to 32767
>> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
>> 32769 to -32767
>> WARNING: Pixel value for 16BSI band got truncated from -32769 to 32767
>> WARNING: Pixel value for 16BSI band got truncated from 32769 to -32767
>> ERROR: Coordinates ouf of range
>> Testing 16BUI band
>> WARNING: rt_band_set_nodata: NODATA value for 16BUI band got truncated from
>> 65536 to 0
>> WARNING: Pixel value for 16BUI band got truncated from 65536 to 0
>> ERROR: Coordinates ouf of range
>> Testing 32BUI band
>> WARNING: rt_band_set_nodata: NODATA value for 32BUI band got truncated from
>> 4.29497e+09 to 0
>> WARNING: Pixel value for 32BUI band got truncated from 4.29497e+09 to 0
>> ERROR: Coordinates ouf of range
>> Testing 32BSI band
>> WARNING: rt_band_set_nodata: NODATA value for 32BSI band got truncated from
>> 2.14748e+09 to -2.14748e+09
>> WARNING: Pixel value for 32BSI band got truncated from 2.14748e+09 to
>> -2.14748e+09
>> ERROR: Coordinates ouf of range
>> Testing 32BF band
>> Testing 64BF band
>> Testing band hasnodata flag
>> testapi: rt_api.c:545: rt_band_get_data: Assertion `((void *)0) != band'
>> failed.
>> make[2]: *** [check] Aborted
>> make[2]: Leaving directory
>> `/home/mloskot/dev/wktraster/_svn/trunk/test/core'
>> make[1]: *** [check] Error 2
>> make[1]: Leaving directory `/home/mloskot/dev/wktraster/_svn/trunk/test'
>> make: *** [check] Error 2
>>
>> The assertion is serious and happens in crucial function.
>> I checked and the last healthy revision seems to be r5811.
>>
>> Pierre, Jorge, could you re-validate your recent commits?
>> You do run "make check" before every commit, don't you?
>>
>> Best regards,
>> --
>> Mateusz Loskot, http://mateusz.loskot.net
>> _______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. fixed in r5864

Sorry for that. Probably forgot to make check.

Pierre

>-----Original Message-----
>From: postgis-devel- [mailto:postgis-devel-
>] On Behalf Of Pierre Racine
>Sent: 23 août 2010 09:24
>To: PostGIS Development Discussion
>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>
>Probably my fault. Double check...
>
>Pierre
>
>>-----Original Message-----
>>From: postgis-devel- [mailto:postgis-devel-
>>] On Behalf Of Jorge Arévalo
>>Sent: 23 août 2010 07:39
>>To: PostGIS Development Discussion
>>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>>
>>On Mon, Aug 23, 2010 at 1:04 PM, Mateusz Loskot <> wrote:
>>> Hi,
>>>
>>> I've noticed current revision of WKT Raster is broken.
>>> Running the core tests for r5841 ends up with assertion and
>>> load of warnings:
>>>
>>> ./testapi
>>> 1111 pixtype = 2
>>> Raster starts with 0 bands
>>> First point on convexhull ring is 0.5,0.5
>>> Second point on convexhull ring is 256.5,1280.5
>>> Third point on convexhull ring is 1280.5,1536.5
>>> Fourth point on convexhull ring is 1024.5,256.5
>>> Fifth point on convexhull ring is 0.5,0.5
>>> Testing polygonize function
>>> Testing 1BB band
>>> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 2
>>> to 0
>>> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 3
>>> to 1
>>> WARNING: Pixel value for 1BB band got truncated from 2 to 0
>>> WARNING: Pixel value for 1BB band got truncated from 3 to 1
>>> Testing 2BB band
>>> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 4
>>> to 0
>>> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 5
>>> to 1
>>> WARNING: Pixel value for 2BUI band got truncated from 4 to 0
>>> WARNING: Pixel value for 2BUI band got truncated from 5 to 1
>>> Testing 4BUI band
>>> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
>>> 16 to 0
>>> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
>>> 17 to 1
>>> WARNING: Pixel value for 4BUI band got truncated from 35 to 3
>>> Testing 8BUI band
>>> WARNING: rt_band_set_nodata: NODATA value for 8BUI band got truncated from
>>> 256 to 0
>>> WARNING: Pixel value for 8BUI band got truncated from 256 to 0
>>> Testing 8BSI band
>>> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
>>> -129 to 127
>>> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
>>> 129 to -127
>>> WARNING: Pixel value for 8BSI band got truncated from -129 to 127
>>> WARNING: Pixel value for 8BSI band got truncated from 129 to -127
>>> Testing 16BSI band
>>> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
>>> -32769 to 32767
>>> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
>>> 32769 to -32767
>>> WARNING: Pixel value for 16BSI band got truncated from -32769 to 32767
>>> WARNING: Pixel value for 16BSI band got truncated from 32769 to -32767
>>> ERROR: Coordinates ouf of range
>>> Testing 16BUI band
>>> WARNING: rt_band_set_nodata: NODATA value for 16BUI band got truncated from
>>> 65536 to 0
>>> WARNING: Pixel value for 16BUI band got truncated from 65536 to 0
>>> ERROR: Coordinates ouf of range
>>> Testing 32BUI band
>>> WARNING: rt_band_set_nodata: NODATA value for 32BUI band got truncated from
>>> 4.29497e+09 to 0
>>> WARNING: Pixel value for 32BUI band got truncated from 4.29497e+09 to 0
>>> ERROR: Coordinates ouf of range
>>> Testing 32BSI band
>>> WARNING: rt_band_set_nodata: NODATA value for 32BSI band got truncated from
>>> 2.14748e+09 to -2.14748e+09
>>> WARNING: Pixel value for 32BSI band got truncated from 2.14748e+09 to
>>> -2.14748e+09
>>> ERROR: Coordinates ouf of range
>>> Testing 32BF band
>>> Testing 64BF band
>>> Testing band hasnodata flag
>>> testapi: rt_api.c:545: rt_band_get_data: Assertion `((void *)0) != band'
>>> failed.
>>> make[2]: *** [check] Aborted
>>> make[2]: Leaving directory
>>> `/home/mloskot/dev/wktraster/_svn/trunk/test/core'
>>> make[1]: *** [check] Error 2
>>> make[1]: Leaving directory `/home/mloskot/dev/wktraster/_svn/trunk/test'
>>> make: *** [check] Error 2
>>>
>>> The assertion is serious and happens in crucial function.
>>> I checked and the last healthy revision seems to be r5811.
>>>
>>> Pierre, Jorge, could you re-validate your recent commits?
>>> You do run "make check" before every commit, don't you?
>>>
>>> Best regards,
>>> --
>>> Mateusz Loskot, http://mateusz.loskot.net
>>> _______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. Thanks for the fix, Pierre. But I'm getting a Segmentation Fault. caused by

memcpy(raster->bands[i], oldbands[oldi++], sizeof(rt_band));

(rt_core/rt_api.c, line 1351)

in Ubuntu Linux. Anyone else?

On Mon, Aug 23, 2010 at 4:53 PM, Pierre Racine
<> wrote:
> fixed in r5864
>
> Sorry for that. Probably forgot to make check.
>
> Pierre
>
>>-----Original Message-----
>>From: postgis-devel- [mailto:postgis-devel-
>>] On Behalf Of Pierre Racine
>>Sent: 23 août 2010 09:24
>>To: PostGIS Development Discussion
>>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>>
>>Probably my fault. Double check...
>>
>>Pierre
>>
>>>-----Original Message-----
>>>From: postgis-devel- [mailto:postgis-devel-
>>>] On Behalf Of Jorge Arévalo
>>>Sent: 23 août 2010 07:39
>>>To: PostGIS Development Discussion
>>>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>>>
>>>On Mon, Aug 23, 2010 at 1:04 PM, Mateusz Loskot <> wrote:
>>>> Hi,
>>>>
>>>> I've noticed current revision of WKT Raster is broken.
>>>> Running the core tests for r5841 ends up with assertion and
>>>> load of warnings:
>>>>
>>>> ./testapi
>>>> 1111 pixtype = 2
>>>> Raster starts with 0 bands
>>>> First point on convexhull ring is 0.5,0.5
>>>> Second point on convexhull ring is 256.5,1280.5
>>>> Third point on convexhull ring is 1280.5,1536.5
>>>> Fourth point on convexhull ring is 1024.5,256.5
>>>> Fifth point on convexhull ring is 0.5,0.5
>>>> Testing polygonize function
>>>> Testing 1BB band
>>>> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 2
>>>> to 0
>>>> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 3
>>>> to 1
>>>> WARNING: Pixel value for 1BB band got truncated from 2 to 0
>>>> WARNING: Pixel value for 1BB band got truncated from 3 to 1
>>>> Testing 2BB band
>>>> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 4
>>>> to 0
>>>> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 5
>>>> to 1
>>>> WARNING: Pixel value for 2BUI band got truncated from 4 to 0
>>>> WARNING: Pixel value for 2BUI band got truncated from 5 to 1
>>>> Testing 4BUI band
>>>> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
>>>> 16 to 0
>>>> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
>>>> 17 to 1
>>>> WARNING: Pixel value for 4BUI band got truncated from 35 to 3
>>>> Testing 8BUI band
>>>> WARNING: rt_band_set_nodata: NODATA value for 8BUI band got truncated from
>>>> 256 to 0
>>>> WARNING: Pixel value for 8BUI band got truncated from 256 to 0
>>>> Testing 8BSI band
>>>> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
>>>> -129 to 127
>>>> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
>>>> 129 to -127
>>>> WARNING: Pixel value for 8BSI band got truncated from -129 to 127
>>>> WARNING: Pixel value for 8BSI band got truncated from 129 to -127
>>>> Testing 16BSI band
>>>> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
>>>> -32769 to 32767
>>>> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
>>>> 32769 to -32767
>>>> WARNING: Pixel value for 16BSI band got truncated from -32769 to 32767
>>>> WARNING: Pixel value for 16BSI band got truncated from 32769 to -32767
>>>> ERROR: Coordinates ouf of range
>>>> Testing 16BUI band
>>>> WARNING: rt_band_set_nodata: NODATA value for 16BUI band got truncated from
>>>> 65536 to 0
>>>> WARNING: Pixel value for 16BUI band got truncated from 65536 to 0
>>>> ERROR: Coordinates ouf of range
>>>> Testing 32BUI band
>>>> WARNING: rt_band_set_nodata: NODATA value for 32BUI band got truncated from
>>>> 4.29497e+09 to 0
>>>> WARNING: Pixel value for 32BUI band got truncated from 4.29497e+09 to 0
>>>> ERROR: Coordinates ouf of range
>>>> Testing 32BSI band
>>>> WARNING: rt_band_set_nodata: NODATA value for 32BSI band got truncated from
>>>> 2.14748e+09 to -2.14748e+09
>>>> WARNING: Pixel value for 32BSI band got truncated from 2.14748e+09 to
>>>> -2.14748e+09
>>>> ERROR: Coordinates ouf of range
>>>> Testing 32BF band
>>>> Testing 64BF band
>>>> Testing band hasnodata flag
>>>> testapi: rt_api.c:545: rt_band_get_data: Assertion `((void *)0) != band'
>>>> failed.
>>>> make[2]: *** [check] Aborted
>>>> make[2]: Leaving directory
>>>> `/home/mloskot/dev/wktraster/_svn/trunk/test/core'
>>>> make[1]: *** [check] Error 2
>>>> make[1]: Leaving directory `/home/mloskot/dev/wktraster/_svn/trunk/test'
>>>> make: *** [check] Error 2
>>>>
>>>> The assertion is serious and happens in crucial function.
>>>> I checked and the last healthy revision seems to be r5811.
>>>>
>>>> Pierre, Jorge, could you re-validate your recent commits?
>>>> You do run "make check" before every commit, don't you?
>>>>
>>>> Best regards,
>>>> --
>>>> Mateusz Loskot, http://mateusz.loskot.net
>>>> _______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. On 23/08/10 17:23, Jorge Arévalo wrote:
> Thanks for the fix, Pierre. But I'm getting a Segmentation Fault. caused by
>
> memcpy(raster->bands[i], oldbands[oldi++], sizeof(rt_band));
>
> (rt_core/rt_api.c, line 1351)
>
> in Ubuntu Linux. Anyone else?

I've quickly checked running make check and I confirm this issue.
Getting segmentation fault too.

Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. On Mon, Aug 23, 2010 at 11:11 PM, Pierre Racine
<> wrote:
> Could you test the last one. Thanks. Sorry for that my C is a bit rusty.
>
> Pierre
>

OK. make check is working fine for me now.

Jorge

>>-----Original Message-----
>>From: postgis-devel- [mailto:postgis-devel-
>>] On Behalf Of Mateusz Loskot
>>Sent: 23 août 2010 12:50
>>To: postgis-
>>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>>
>>On 23/08/10 17:23, Jorge Arévalo wrote:
>>> Thanks for the fix, Pierre. But I'm getting a Segmentation Fault. caused by
>>>
>>> memcpy(raster->bands[i], oldbands[oldi++], sizeof(rt_band));
>>>
>>> (rt_core/rt_api.c, line 1351)
>>>
>>> in Ubuntu Linux. Anyone else?
>>
>>I've quickly checked running make check and I confirm this issue.
>>Getting segmentation fault too.
>>
>>Best regards,
>>--
>>Mateusz Loskot, http://mateusz.loskot.net
>>_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. On 24/08/10 10:39, Jorge Arévalo wrote:
> On Mon, Aug 23, 2010 at 11:11 PM, Pierre Racine
> <> wrote:
>> Could you test the last one. Thanks. Sorry for that my C is a bit rusty.
>
> OK. make check is working fine for me now.

Works for me too, however regression test is failing:L


mloskot@vb-ubuntu910-x64:~/dev/wktraster/_svn/trunk$ make post-install-check

...
Creating spatial db rtpostgis_reg
TMPDIR is /tmp/rtpgis_reg_4435

PostgreSQL 8.4.4 on x86_64-pc-linux-gnu, compiled by GCC gcc-4.4.real
(Ubuntu 4.4.3-4ubuntu5) 4.4.3, 64-bit
Postgis 2.0.0SVN - 2010-08-04 11:37:17
GEOS: 3.3.0-CAPI-1.7.0
PROJ: Rel. 4.7.1, 23 September 2009
WKTRaster 0.1.6d - 2010-08-24 09:14:21

Running tests

check_raster_columns. ok
check_raster_overviews. ok
rt_io. ok
create_rt_bytea_test. ok
rt_bytea. ok
create_rt_box2d_test. ok
rt_box2d. ok
rt_addband. failed (diff expected obtained:
/tmp/rtpgis_reg_4435/test_8_diff)
create_rt_properties_test. ok
rt_dimensions. ok
rt_pixelsize. ok
rt_upperleft. ok
rt_rotation. ok
rt_georeference. ok
rt_set_properties. ok
create_rt_band_properties_test. ok
rt_band_properties. ok
rt_set_band_properties. ok
rt_pixelvalue. ok
create_rt_utility_test. ok
rt_utility. ok
create_rt_gist_test. ok
rt_above. ok
rt_below. ok
rt_contained. ok
rt_contain. ok
rt_left. ok
rt_overabove. ok
rt_overbelow. ok
rt_overlap. ok
rt_overleft. ok
rt_overright. ok
rt_right. ok
rt_same. ok
rt_spatial_relationship. ok
bug_test_car5. ok

Run tests: 36
Failed: 1
make[2]: Leaving directory
`/home/mloskot/dev/wktraster/_svn/trunk/test/regress'
make[1]: Leaving directory `/home/mloskot/dev/wktraster/_svn/trunk/test'
mloskot@vb-ubuntu910-x64:~/dev/wktraster/_svn/trunk$ cat
/tmp/rtpgis_reg_4435/test_8_diff
*** rt_addband_expected 2010-08-23 16:51:59.000000000 +0100
--- /tmp/rtpgis_reg_4435/test_8_out 2010-08-24 10:15:19.000000000 +0100
***************
*** 45,52 ****
154
WARNING: Initial pixel value for 8BUI band got truncated from
256.000000 to 255
255
! WARNING: Initial pixel value for 16BSI band got truncated from
-32769.000000 to -32768
! -32768
-32768
0
32767
--- 45,52 ----
154
WARNING: Initial pixel value for 8BUI band got truncated from
256.000000 to 255
255
! WARNING: Initial pixel value for 16BSI band got truncated from
-32769.000000 to 32767
! 32767
-32768
0
32767
***************
*** 54,61 ****
-32768
WARNING: Initial pixel value for 16BSI band got truncated from
21.460000 to 21
21
! WARNING: Initial pixel value for 16BSI band got truncated from
210000.460000 to -32768
! -32768
WARNING: Initial pixel value for 16BUI band got truncated from
-1.000000 to 65535
65535
0
--- 54,61 ----
-32768
WARNING: Initial pixel value for 16BSI band got truncated from
21.460000 to 21
21
! WARNING: Initial pixel value for 16BSI band got truncated from
210000.460000 to 13392
! 13392
WARNING: Initial pixel value for 16BUI band got truncated from
-1.000000 to 65535
65535
0
mloskot@vb-ubuntu910-x64:~/dev/wktraster/_svn/trunk$


Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. make post-install-check works for me too... Maybe is a problem with
PostGIS/GEOS/PROJ versions... here my versions

PostgreSQL 8.4.4 on i486-pc-linux-gnu, compiled by GCC gcc-4.4.real
(Ubuntu 4.4.1-4ubuntu8) 4.4.1, 32-bit
Postgis 1.4.2 - 2010-08-05 17:36:12
GEOS: 3.3.0-CAPI-1.6.1
PROJ: Rel. 4.7.1, 23 September 2009
WKTRaster 0.1.6d - 2010-08-18 13:49:03

I'll do the test with a newer version of postgis (2.0.0SVN, like you,
for example).

A minor issue: the rtpostgis_reg database created for postinstall
check is not deleted by default. Mateusz, did you change it for any
reason? (r5822 was the previous version)

2010/8/24 Mateusz Loskot <>:
> On 24/08/10 10:39, Jorge Arévalo wrote:
>>
>> On Mon, Aug 23, 2010 at 11:11 PM, Pierre Racine
>> <>  wrote:
>>>
>>> Could you test the last one. Thanks. Sorry for that my C is a bit rusty.
>>
>> OK. make check is working fine for me now.
>
> Works for me too, however regression test is failing:L
>
>
> mloskot@vb-ubuntu910-x64:~/dev/wktraster/_svn/trunk$ make post-install-check
>
> ...
> Creating spatial db rtpostgis_reg
> TMPDIR is /tmp/rtpgis_reg_4435
>
>  PostgreSQL 8.4.4 on x86_64-pc-linux-gnu, compiled by GCC gcc-4.4.real
> (Ubuntu 4.4.3-4ubuntu5) 4.4.3, 64-bit
>  Postgis 2.0.0SVN - 2010-08-04 11:37:17
>   GEOS: 3.3.0-CAPI-1.7.0
>   PROJ: Rel. 4.7.1, 23 September 2009
>  WKTRaster 0.1.6d - 2010-08-24 09:14:21
>
> Running tests
>
>  check_raster_columns. ok
>  check_raster_overviews. ok
>  rt_io. ok
>  create_rt_bytea_test. ok
>  rt_bytea. ok
>  create_rt_box2d_test. ok
>  rt_box2d. ok
>  rt_addband. failed (diff expected obtained:
> /tmp/rtpgis_reg_4435/test_8_diff)
>  create_rt_properties_test. ok
>  rt_dimensions. ok
>  rt_pixelsize. ok
>  rt_upperleft. ok
>  rt_rotation. ok
>  rt_georeference. ok
>  rt_set_properties. ok
>  create_rt_band_properties_test. ok
>  rt_band_properties. ok
>  rt_set_band_properties. ok
>  rt_pixelvalue. ok
>  create_rt_utility_test. ok
>  rt_utility. ok
>  create_rt_gist_test. ok
>  rt_above. ok
>  rt_below. ok
>  rt_contained. ok
>  rt_contain. ok
>  rt_left. ok
>  rt_overabove. ok
>  rt_overbelow. ok
>  rt_overlap. ok
>  rt_overleft. ok
>  rt_overright. ok
>  rt_right. ok
>  rt_same. ok
>  rt_spatial_relationship. ok
>  bug_test_car5. ok
>
> Run tests: 36
> Failed: 1
> make[2]: Leaving directory
> `/home/mloskot/dev/wktraster/_svn/trunk/test/regress'
> make[1]: Leaving directory `/home/mloskot/dev/wktraster/_svn/trunk/test'
> mloskot@vb-ubuntu910-x64:~/dev/wktraster/_svn/trunk$ cat
> /tmp/rtpgis_reg_4435/test_8_diff
> *** rt_addband_expected 2010-08-23 16:51:59.000000000 +0100
> --- /tmp/rtpgis_reg_4435/test_8_out     2010-08-24 10:15:19.000000000 +0100
> ***************
> *** 45,52 ****
>  154
>  WARNING:  Initial pixel value for 8BUI band got truncated from 256.000000
> to 255
>  255
> ! WARNING:  Initial pixel value for 16BSI band got truncated from
> -32769.000000 to -32768
> ! -32768
>  -32768
>  0
>  32767
> --- 45,52 ----
>  154
>  WARNING:  Initial pixel value for 8BUI band got truncated from 256.000000
> to 255
>  255
> ! WARNING:  Initial pixel value for 16BSI band got truncated from
> -32769.000000 to 32767
> ! 32767
>  -32768
>  0
>  32767
> ***************
> *** 54,61 ****
>  -32768
>  WARNING:  Initial pixel value for 16BSI band got truncated from 21.460000
> to 21
>  21
> ! WARNING:  Initial pixel value for 16BSI band got truncated from
> 210000.460000 to -32768
> ! -32768
>  WARNING:  Initial pixel value for 16BUI band got truncated from -1.000000
> to 65535
>  65535
>  0
> --- 54,61 ----
>  -32768
>  WARNING:  Initial pixel value for 16BSI band got truncated from 21.460000
> to 21
>  21
> ! WARNING:  Initial pixel value for 16BSI band got truncated from
> 210000.460000 to 13392
> ! 13392
>  WARNING:  Initial pixel value for 16BUI band got truncated from -1.000000
> to 65535
>  65535
>  0
> mloskot@vb-ubuntu910-x64:~/dev/wktraster/_svn/trunk$
>
>
> Best regards,
> --
> Mateusz Loskot, http://mateusz.loskot.net
>



--
Jorge Arévalo
DEIMOS Space
Internet & Mobilty Division
Ronda de Poniente 19. Edificio Fiteni VI, portal 2, 2º
28760 Tres Cantos (Madrid)


http://gis4free.wordpress.com
_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. On 24/08/10 11:08, Jorge Arévalo wrote:
> make post-install-check works for me too... Maybe is a problem with
> PostGIS/GEOS/PROJ versions... here my versions
>
> PostgreSQL 8.4.4 on i486-pc-linux-gnu, compiled by GCC gcc-4.4.real
> (Ubuntu 4.4.1-4ubuntu8) 4.4.1, 32-bit
> Postgis 1.4.2 - 2010-08-05 17:36:12
> GEOS: 3.3.0-CAPI-1.6.1
> PROJ: Rel. 4.7.1, 23 September 2009
> WKTRaster 0.1.6d - 2010-08-18 13:49:03
>
> I'll do the test with a newer version of postgis (2.0.0SVN, like you,
> for example).

OK, thanks.

> A minor issue: the rtpostgis_reg database created for postinstall
> check is not deleted by default. Mateusz, did you change it for any
> reason? (r5822 was the previous version)

Which changeset you mean exactly. The following is r5823
and some changes in test/regress/run_test.in happened.

Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. 2010/8/24 Mateusz Loskot <>:
> On 24/08/10 11:08, Jorge Arévalo wrote:
>>
>> A minor issue: the rtpostgis_reg database created for postinstall
>> check is not deleted by default. Mateusz, did you change it for any
>> reason? (r5822 was the previous version)
>
> Which changeset you mean exactly. The following is r5823
> and some changes in test/regress/run_test.in happened.
>

Yes, sorry, my mistake. I mean the last change on
test/regress/run_test.in. A little change:

http://trac.osgeo.org/postgis/changeset/5823/spike/wktraster/test/regress/run_test.in

May I change the DROP option again, or is a bad idea?

> Best regards,
> --
> Mateusz Loskot, http://mateusz.loskot.net
>



--
Jorge Arévalo
DEIMOS Space
Internet & Mobilty Division
Ronda de Poniente 19. Edificio Fiteni VI, portal 2, 2º
28760 Tres Cantos (Madrid)


http://gis4free.wordpress.com
_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. On 24/08/10 11:32, Jorge Arévalo wrote:
> 2010/8/24 Mateusz Loskot<>:
>> On 24/08/10 11:08, Jorge Arévalo wrote:
>>>
>>> A minor issue: the rtpostgis_reg database created for postinstall
>>> check is not deleted by default. Mateusz, did you change it for any
>>> reason? (r5822 was the previous version)
>>
>> Which changeset you mean exactly. The following is r5823
>> and some changes in test/regress/run_test.in happened.
>>
>
> Yes, sorry, my mistake. I mean the last change on
> test/regress/run_test.in. A little change:
>
> http://trac.osgeo.org/postgis/changeset/5823/spike/wktraster/test/regress/run_test.in
>
> May I change the DROP option again, or is a bad idea?

IMO, we should follow PostGIS' approach:

http://trac.osgeo.org/postgis/changeset/5823/spike/wktraster/test/regress/run_test.in

AFAIU, it is yes, I'd re-enable the drop option.

Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. Mateusz,

Could you get your regression test to work?

I reverted the drop option to "yes".

Pierre

>-----Original Message-----
>From: postgis-devel- [mailto:postgis-devel-
>] On Behalf Of Mateusz Loskot
>Sent: 24 août 2010 06:48
>To: Jorge Arévalo
>Cc: PostGIS Development Discussion
>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>
>On 24/08/10 11:32, Jorge Arévalo wrote:
>> 2010/8/24 Mateusz Loskot<>:
>>> On 24/08/10 11:08, Jorge Arévalo wrote:
>>>>
>>>> A minor issue: the rtpostgis_reg database created for postinstall
>>>> check is not deleted by default. Mateusz, did you change it for any
>>>> reason? (r5822 was the previous version)
>>>
>>> Which changeset you mean exactly. The following is r5823
>>> and some changes in test/regress/run_test.in happened.
>>>
>>
>> Yes, sorry, my mistake. I mean the last change on
>> test/regress/run_test.in. A little change:
>>
>> http://trac.osgeo.org/postgis/changeset/5823/spike/wktraster/test/regress/run_test.in
>>
>> May I change the DROP option again, or is a bad idea?
>
>IMO, we should follow PostGIS' approach:
>
>http://trac.osgeo.org/postgis/changeset/5823/spike/wktraster/test/regress/run_test.in
>
>AFAIU, it is yes, I'd re-enable the drop option.
>
>Best regards,
>--
>Mateusz Loskot, http://mateusz.loskot.net
>_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. On 24/08/10 13:48, Pierre Racine wrote:
> Mateusz,
>
> Could you get your regression test to work?

Pierre,

Where does this expected value of -32768 come from in the following
messages in the rt_addband_expected file?

WARNING: Initial pixel value for 16BSI band got truncated from
-32769.000000 to -32768
-32768

WARNING: Initial pixel value for 16BSI band got truncated from
210000.460000 to -32768
-32768

Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. From thoses two lines in the rt_addband.sql file:

SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '16BSI', -32769, NULL), 3, 3);

and further:

SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '16BSI', 210000.46, NULL), 3, 3);

Pierre

>-----Original Message-----
>From: postgis-devel- [mailto:postgis-devel-
>] On Behalf Of Mateusz Loskot
>Sent: 31 août 2010 13:14
>To: PostGIS Development Discussion
>Cc: Pierre Racine; =?UTF-8?B?Sm9yZ2UgQXLDqXY=?=@lists.refractions.net
>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>
>On 24/08/10 13:48, Pierre Racine wrote:
>> Mateusz,
>>
>> Could you get your regression test to work?
>
>Pierre,
>
>Where does this expected value of -32768 come from in the following
>messages in the rt_addband_expected file?
>
>WARNING: Initial pixel value for 16BSI band got truncated from
>-32769.000000 to -32768
>-32768
>
>WARNING: Initial pixel value for 16BSI band got truncated from
>210000.460000 to -32768
>-32768
>
>Best regards,
>--
>Mateusz Loskot, http://mateusz.loskot.net
>_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. On 31/08/10 21:14, Pierre Racine wrote:
>>From thoses two lines in the rt_addband.sql file:
>
> SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '16BSI', -32769, NULL), 3, 3);
>
> and further:
>
> SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '16BSI', 210000.46, NULL), 3, 3);


Pierre,

I'm still confused why you are getting such strange values.
The value -32768 is invalid and unexpected, obviously.
It would indicate a bug.

Fortunately, I do not get such value, but I get the correct ones:

r1=# SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10,
2, 2, 0, 0, -1), 1, '16BSI', -32769, NULL), 3, 3);
WARNING: Initial pixel value for 16BSI band got truncated from
-32769.000000 to 32767
st_value
----------
32767
(1 row)

r1=# SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10,
2, 2, 0, 0, -1), 1, '16BSI', 210000.46, NULL), 3, 3);
WARNING: Initial pixel value for 16BSI band got truncated from
210000.460000 to 13392
st_value
----------
13392
(1 row)



Nevertheless, I've updated the expected output with correct values:

http://trac.osgeo.org/postgis/changeset/5907

Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
Charter Member of OSGeo, http://osgeo.org
_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. Jorge, Regina,

I get a fresh build of PostGIS raster and the regress test in rt_addband.sql fail on my machine. It was modified by Mateusz which was obtaining different results.

In the first case:

SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '16BSI', -32769, NULL), 3, 3);

Mateusz gets 32767 and I get -32768

In the second case:

SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '16BSI', 210000.46, NULL), 3, 3);

Mateusz gets 13392 and I get -32768

I suspect this is a Windows/Linux difference. Do the test works/fails for you? What results do you get?

Pierre

>-----Original Message-----
>From: Mateusz Loskot [mailto:]
>Sent: 4 septembre 2010 14:28
>To: PostGIS Development Discussion
>Cc: Pierre Racine
>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>
>On 31/08/10 21:14, Pierre Racine wrote:
>>>From thoses two lines in the rt_addband.sql file:
>>
>> SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '16BSI', -
>32769, NULL), 3, 3);
>>
>> and further:
>>
>> SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '16BSI',
>210000.46, NULL), 3, 3);
>
>
>Pierre,
>
>I'm still confused why you are getting such strange values.
>The value -32768 is invalid and unexpected, obviously.
>It would indicate a bug.
>
>Fortunately, I do not get such value, but I get the correct ones:
>
>r1=# SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10,
>2, 2, 0, 0, -1), 1, '16BSI', -32769, NULL), 3, 3);
>WARNING: Initial pixel value for 16BSI band got truncated from
>-32769.000000 to 32767
> st_value
>----------
> 32767
>(1 row)
>
>r1=# SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10,
>2, 2, 0, 0, -1), 1, '16BSI', 210000.46, NULL), 3, 3);
>WARNING: Initial pixel value for 16BSI band got truncated from
>210000.460000 to 13392
> st_value
>----------
> 13392
>(1 row)
>
>
>
>Nevertheless, I've updated the expected output with correct values:
>
>http://trac.osgeo.org/postgis/changeset/5907
>
>Best regards,
>--
>Mateusz Loskot, http://mateusz.loskot.net
>Charter Member of OSGeo, http://osgeo.org
_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe.

  #18  
12-01-2011 07:02 PM
PostGIS : postgis-devel member admin is online now
User
 

Hi,

I've noticed current revision of WKT Raster is broken.
Running the core tests for r5841 ends up with assertion and
load of warnings:

./testapi
1111 pixtype = 2
Raster starts with 0 bands
First point on convexhull ring is 0.5,0.5
Second point on convexhull ring is 256.5,1280.5
Third point on convexhull ring is 1280.5,1536.5
Fourth point on convexhull ring is 1024.5,256.5
Fifth point on convexhull ring is 0.5,0.5
Testing polygonize function
Testing 1BB band
WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated
from 2 to 0
WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated
from 3 to 1
WARNING: Pixel value for 1BB band got truncated from 2 to 0
WARNING: Pixel value for 1BB band got truncated from 3 to 1
Testing 2BB band
WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated
from 4 to 0
WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated
from 5 to 1
WARNING: Pixel value for 2BUI band got truncated from 4 to 0
WARNING: Pixel value for 2BUI band got truncated from 5 to 1
Testing 4BUI band
WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated
from 16 to 0
WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated
from 17 to 1
WARNING: Pixel value for 4BUI band got truncated from 35 to 3
Testing 8BUI band
WARNING: rt_band_set_nodata: NODATA value for 8BUI band got truncated
from 256 to 0
WARNING: Pixel value for 8BUI band got truncated from 256 to 0
Testing 8BSI band
WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated
from -129 to 127
WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated
from 129 to -127
WARNING: Pixel value for 8BSI band got truncated from -129 to 127
WARNING: Pixel value for 8BSI band got truncated from 129 to -127
Testing 16BSI band
WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated
from -32769 to 32767
WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated
from 32769 to -32767
WARNING: Pixel value for 16BSI band got truncated from -32769 to 32767
WARNING: Pixel value for 16BSI band got truncated from 32769 to -32767
ERROR: Coordinates ouf of range
Testing 16BUI band
WARNING: rt_band_set_nodata: NODATA value for 16BUI band got truncated
from 65536 to 0
WARNING: Pixel value for 16BUI band got truncated from 65536 to 0
ERROR: Coordinates ouf of range
Testing 32BUI band
WARNING: rt_band_set_nodata: NODATA value for 32BUI band got truncated
from 4.29497e+09 to 0
WARNING: Pixel value for 32BUI band got truncated from 4.29497e+09 to 0
ERROR: Coordinates ouf of range
Testing 32BSI band
WARNING: rt_band_set_nodata: NODATA value for 32BSI band got truncated
from 2.14748e+09 to -2.14748e+09
WARNING: Pixel value for 32BSI band got truncated from 2.14748e+09 to
-2.14748e+09
ERROR: Coordinates ouf of range
Testing 32BF band
Testing 64BF band
Testing band hasnodata flag
testapi: rt_api.c:545: rt_band_get_data: Assertion `((void *)0) != band'
failed.
make[2]: *** [check] Aborted
make[2]: Leaving directory
`/home/mloskot/dev/wktraster/_svn/trunk/test/core'
make[1]: *** [check] Error 2
make[1]: Leaving directory `/home/mloskot/dev/wktraster/_svn/trunk/test'
make: *** [check] Error 2

The assertion is serious and happens in crucial function.
I checked and the last healthy revision seems to be r5811.

Pierre, Jorge, could you re-validate your recent commits?
You do run "make check" before every commit, don't you?

Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. On Mon, Aug 23, 2010 at 1:04 PM, Mateusz Loskot <> wrote:
> Hi,
>
> I've noticed current revision of WKT Raster is broken.
> Running the core tests for r5841 ends up with assertion and
> load of warnings:
>
> ./testapi
> 1111 pixtype = 2
> Raster starts with 0 bands
> First point on convexhull ring is 0.5,0.5
> Second point on convexhull ring is 256.5,1280.5
> Third point on convexhull ring is 1280.5,1536.5
> Fourth point on convexhull ring is 1024.5,256.5
> Fifth point on convexhull ring is 0.5,0.5
> Testing polygonize function
> Testing 1BB band
> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 2
> to 0
> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 3
> to 1
> WARNING: Pixel value for 1BB band got truncated from 2 to 0
> WARNING: Pixel value for 1BB band got truncated from 3 to 1
> Testing 2BB band
> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 4
> to 0
> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 5
> to 1
> WARNING: Pixel value for 2BUI band got truncated from 4 to 0
> WARNING: Pixel value for 2BUI band got truncated from 5 to 1
> Testing 4BUI band
> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
> 16 to 0
> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
> 17 to 1
> WARNING: Pixel value for 4BUI band got truncated from 35 to 3
> Testing 8BUI band
> WARNING: rt_band_set_nodata: NODATA value for 8BUI band got truncated from
> 256 to 0
> WARNING: Pixel value for 8BUI band got truncated from 256 to 0
> Testing 8BSI band
> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
> -129 to 127
> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
> 129 to -127
> WARNING: Pixel value for 8BSI band got truncated from -129 to 127
> WARNING: Pixel value for 8BSI band got truncated from 129 to -127
> Testing 16BSI band
> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
> -32769 to 32767
> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
> 32769 to -32767
> WARNING: Pixel value for 16BSI band got truncated from -32769 to 32767
> WARNING: Pixel value for 16BSI band got truncated from 32769 to -32767
> ERROR: Coordinates ouf of range
> Testing 16BUI band
> WARNING: rt_band_set_nodata: NODATA value for 16BUI band got truncated from
> 65536 to 0
> WARNING: Pixel value for 16BUI band got truncated from 65536 to 0
> ERROR: Coordinates ouf of range
> Testing 32BUI band
> WARNING: rt_band_set_nodata: NODATA value for 32BUI band got truncated from
> 4.29497e+09 to 0
> WARNING: Pixel value for 32BUI band got truncated from 4.29497e+09 to 0
> ERROR: Coordinates ouf of range
> Testing 32BSI band
> WARNING: rt_band_set_nodata: NODATA value for 32BSI band got truncated from
> 2.14748e+09 to -2.14748e+09
> WARNING: Pixel value for 32BSI band got truncated from 2.14748e+09 to
> -2.14748e+09
> ERROR: Coordinates ouf of range
> Testing 32BF band
> Testing 64BF band
> Testing band hasnodata flag
> testapi: rt_api.c:545: rt_band_get_data: Assertion `((void *)0) != band'
> failed.
> make[2]: *** [check] Aborted
> make[2]: Leaving directory
> `/home/mloskot/dev/wktraster/_svn/trunk/test/core'
> make[1]: *** [check] Error 2
> make[1]: Leaving directory `/home/mloskot/dev/wktraster/_svn/trunk/test'
> make: *** [check] Error 2
>
> The assertion is serious and happens in crucial function.
> I checked and the last healthy revision seems to be r5811.
>
> Pierre, Jorge, could you re-validate your recent commits?
> You do run "make check" before every commit, don't you?
>
> Best regards,
> --
> Mateusz Loskot, http://mateusz.loskot.net
> _______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. Probably my fault. Double check...

Pierre

>-----Original Message-----
>From: postgis-devel- [mailto:postgis-devel-
>] On Behalf Of Jorge Arévalo
>Sent: 23 août 2010 07:39
>To: PostGIS Development Discussion
>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>
>On Mon, Aug 23, 2010 at 1:04 PM, Mateusz Loskot <> wrote:
>> Hi,
>>
>> I've noticed current revision of WKT Raster is broken.
>> Running the core tests for r5841 ends up with assertion and
>> load of warnings:
>>
>> ./testapi
>> 1111 pixtype = 2
>> Raster starts with 0 bands
>> First point on convexhull ring is 0.5,0.5
>> Second point on convexhull ring is 256.5,1280.5
>> Third point on convexhull ring is 1280.5,1536.5
>> Fourth point on convexhull ring is 1024.5,256.5
>> Fifth point on convexhull ring is 0.5,0.5
>> Testing polygonize function
>> Testing 1BB band
>> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 2
>> to 0
>> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 3
>> to 1
>> WARNING: Pixel value for 1BB band got truncated from 2 to 0
>> WARNING: Pixel value for 1BB band got truncated from 3 to 1
>> Testing 2BB band
>> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 4
>> to 0
>> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 5
>> to 1
>> WARNING: Pixel value for 2BUI band got truncated from 4 to 0
>> WARNING: Pixel value for 2BUI band got truncated from 5 to 1
>> Testing 4BUI band
>> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
>> 16 to 0
>> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
>> 17 to 1
>> WARNING: Pixel value for 4BUI band got truncated from 35 to 3
>> Testing 8BUI band
>> WARNING: rt_band_set_nodata: NODATA value for 8BUI band got truncated from
>> 256 to 0
>> WARNING: Pixel value for 8BUI band got truncated from 256 to 0
>> Testing 8BSI band
>> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
>> -129 to 127
>> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
>> 129 to -127
>> WARNING: Pixel value for 8BSI band got truncated from -129 to 127
>> WARNING: Pixel value for 8BSI band got truncated from 129 to -127
>> Testing 16BSI band
>> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
>> -32769 to 32767
>> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
>> 32769 to -32767
>> WARNING: Pixel value for 16BSI band got truncated from -32769 to 32767
>> WARNING: Pixel value for 16BSI band got truncated from 32769 to -32767
>> ERROR: Coordinates ouf of range
>> Testing 16BUI band
>> WARNING: rt_band_set_nodata: NODATA value for 16BUI band got truncated from
>> 65536 to 0
>> WARNING: Pixel value for 16BUI band got truncated from 65536 to 0
>> ERROR: Coordinates ouf of range
>> Testing 32BUI band
>> WARNING: rt_band_set_nodata: NODATA value for 32BUI band got truncated from
>> 4.29497e+09 to 0
>> WARNING: Pixel value for 32BUI band got truncated from 4.29497e+09 to 0
>> ERROR: Coordinates ouf of range
>> Testing 32BSI band
>> WARNING: rt_band_set_nodata: NODATA value for 32BSI band got truncated from
>> 2.14748e+09 to -2.14748e+09
>> WARNING: Pixel value for 32BSI band got truncated from 2.14748e+09 to
>> -2.14748e+09
>> ERROR: Coordinates ouf of range
>> Testing 32BF band
>> Testing 64BF band
>> Testing band hasnodata flag
>> testapi: rt_api.c:545: rt_band_get_data: Assertion `((void *)0) != band'
>> failed.
>> make[2]: *** [check] Aborted
>> make[2]: Leaving directory
>> `/home/mloskot/dev/wktraster/_svn/trunk/test/core'
>> make[1]: *** [check] Error 2
>> make[1]: Leaving directory `/home/mloskot/dev/wktraster/_svn/trunk/test'
>> make: *** [check] Error 2
>>
>> The assertion is serious and happens in crucial function.
>> I checked and the last healthy revision seems to be r5811.
>>
>> Pierre, Jorge, could you re-validate your recent commits?
>> You do run "make check" before every commit, don't you?
>>
>> Best regards,
>> --
>> Mateusz Loskot, http://mateusz.loskot.net
>> _______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. fixed in r5864

Sorry for that. Probably forgot to make check.

Pierre

>-----Original Message-----
>From: postgis-devel- [mailto:postgis-devel-
>] On Behalf Of Pierre Racine
>Sent: 23 août 2010 09:24
>To: PostGIS Development Discussion
>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>
>Probably my fault. Double check...
>
>Pierre
>
>>-----Original Message-----
>>From: postgis-devel- [mailto:postgis-devel-
>>] On Behalf Of Jorge Arévalo
>>Sent: 23 août 2010 07:39
>>To: PostGIS Development Discussion
>>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>>
>>On Mon, Aug 23, 2010 at 1:04 PM, Mateusz Loskot <> wrote:
>>> Hi,
>>>
>>> I've noticed current revision of WKT Raster is broken.
>>> Running the core tests for r5841 ends up with assertion and
>>> load of warnings:
>>>
>>> ./testapi
>>> 1111 pixtype = 2
>>> Raster starts with 0 bands
>>> First point on convexhull ring is 0.5,0.5
>>> Second point on convexhull ring is 256.5,1280.5
>>> Third point on convexhull ring is 1280.5,1536.5
>>> Fourth point on convexhull ring is 1024.5,256.5
>>> Fifth point on convexhull ring is 0.5,0.5
>>> Testing polygonize function
>>> Testing 1BB band
>>> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 2
>>> to 0
>>> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 3
>>> to 1
>>> WARNING: Pixel value for 1BB band got truncated from 2 to 0
>>> WARNING: Pixel value for 1BB band got truncated from 3 to 1
>>> Testing 2BB band
>>> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 4
>>> to 0
>>> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 5
>>> to 1
>>> WARNING: Pixel value for 2BUI band got truncated from 4 to 0
>>> WARNING: Pixel value for 2BUI band got truncated from 5 to 1
>>> Testing 4BUI band
>>> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
>>> 16 to 0
>>> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
>>> 17 to 1
>>> WARNING: Pixel value for 4BUI band got truncated from 35 to 3
>>> Testing 8BUI band
>>> WARNING: rt_band_set_nodata: NODATA value for 8BUI band got truncated from
>>> 256 to 0
>>> WARNING: Pixel value for 8BUI band got truncated from 256 to 0
>>> Testing 8BSI band
>>> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
>>> -129 to 127
>>> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
>>> 129 to -127
>>> WARNING: Pixel value for 8BSI band got truncated from -129 to 127
>>> WARNING: Pixel value for 8BSI band got truncated from 129 to -127
>>> Testing 16BSI band
>>> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
>>> -32769 to 32767
>>> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
>>> 32769 to -32767
>>> WARNING: Pixel value for 16BSI band got truncated from -32769 to 32767
>>> WARNING: Pixel value for 16BSI band got truncated from 32769 to -32767
>>> ERROR: Coordinates ouf of range
>>> Testing 16BUI band
>>> WARNING: rt_band_set_nodata: NODATA value for 16BUI band got truncated from
>>> 65536 to 0
>>> WARNING: Pixel value for 16BUI band got truncated from 65536 to 0
>>> ERROR: Coordinates ouf of range
>>> Testing 32BUI band
>>> WARNING: rt_band_set_nodata: NODATA value for 32BUI band got truncated from
>>> 4.29497e+09 to 0
>>> WARNING: Pixel value for 32BUI band got truncated from 4.29497e+09 to 0
>>> ERROR: Coordinates ouf of range
>>> Testing 32BSI band
>>> WARNING: rt_band_set_nodata: NODATA value for 32BSI band got truncated from
>>> 2.14748e+09 to -2.14748e+09
>>> WARNING: Pixel value for 32BSI band got truncated from 2.14748e+09 to
>>> -2.14748e+09
>>> ERROR: Coordinates ouf of range
>>> Testing 32BF band
>>> Testing 64BF band
>>> Testing band hasnodata flag
>>> testapi: rt_api.c:545: rt_band_get_data: Assertion `((void *)0) != band'
>>> failed.
>>> make[2]: *** [check] Aborted
>>> make[2]: Leaving directory
>>> `/home/mloskot/dev/wktraster/_svn/trunk/test/core'
>>> make[1]: *** [check] Error 2
>>> make[1]: Leaving directory `/home/mloskot/dev/wktraster/_svn/trunk/test'
>>> make: *** [check] Error 2
>>>
>>> The assertion is serious and happens in crucial function.
>>> I checked and the last healthy revision seems to be r5811.
>>>
>>> Pierre, Jorge, could you re-validate your recent commits?
>>> You do run "make check" before every commit, don't you?
>>>
>>> Best regards,
>>> --
>>> Mateusz Loskot, http://mateusz.loskot.net
>>> _______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. Thanks for the fix, Pierre. But I'm getting a Segmentation Fault. caused by

memcpy(raster->bands[i], oldbands[oldi++], sizeof(rt_band));

(rt_core/rt_api.c, line 1351)

in Ubuntu Linux. Anyone else?

On Mon, Aug 23, 2010 at 4:53 PM, Pierre Racine
<> wrote:
> fixed in r5864
>
> Sorry for that. Probably forgot to make check.
>
> Pierre
>
>>-----Original Message-----
>>From: postgis-devel- [mailto:postgis-devel-
>>] On Behalf Of Pierre Racine
>>Sent: 23 août 2010 09:24
>>To: PostGIS Development Discussion
>>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>>
>>Probably my fault. Double check...
>>
>>Pierre
>>
>>>-----Original Message-----
>>>From: postgis-devel- [mailto:postgis-devel-
>>>] On Behalf Of Jorge Arévalo
>>>Sent: 23 août 2010 07:39
>>>To: PostGIS Development Discussion
>>>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>>>
>>>On Mon, Aug 23, 2010 at 1:04 PM, Mateusz Loskot <> wrote:
>>>> Hi,
>>>>
>>>> I've noticed current revision of WKT Raster is broken.
>>>> Running the core tests for r5841 ends up with assertion and
>>>> load of warnings:
>>>>
>>>> ./testapi
>>>> 1111 pixtype = 2
>>>> Raster starts with 0 bands
>>>> First point on convexhull ring is 0.5,0.5
>>>> Second point on convexhull ring is 256.5,1280.5
>>>> Third point on convexhull ring is 1280.5,1536.5
>>>> Fourth point on convexhull ring is 1024.5,256.5
>>>> Fifth point on convexhull ring is 0.5,0.5
>>>> Testing polygonize function
>>>> Testing 1BB band
>>>> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 2
>>>> to 0
>>>> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 3
>>>> to 1
>>>> WARNING: Pixel value for 1BB band got truncated from 2 to 0
>>>> WARNING: Pixel value for 1BB band got truncated from 3 to 1
>>>> Testing 2BB band
>>>> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 4
>>>> to 0
>>>> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 5
>>>> to 1
>>>> WARNING: Pixel value for 2BUI band got truncated from 4 to 0
>>>> WARNING: Pixel value for 2BUI band got truncated from 5 to 1
>>>> Testing 4BUI band
>>>> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
>>>> 16 to 0
>>>> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
>>>> 17 to 1
>>>> WARNING: Pixel value for 4BUI band got truncated from 35 to 3
>>>> Testing 8BUI band
>>>> WARNING: rt_band_set_nodata: NODATA value for 8BUI band got truncated from
>>>> 256 to 0
>>>> WARNING: Pixel value for 8BUI band got truncated from 256 to 0
>>>> Testing 8BSI band
>>>> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
>>>> -129 to 127
>>>> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
>>>> 129 to -127
>>>> WARNING: Pixel value for 8BSI band got truncated from -129 to 127
>>>> WARNING: Pixel value for 8BSI band got truncated from 129 to -127
>>>> Testing 16BSI band
>>>> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
>>>> -32769 to 32767
>>>> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
>>>> 32769 to -32767
>>>> WARNING: Pixel value for 16BSI band got truncated from -32769 to 32767
>>>> WARNING: Pixel value for 16BSI band got truncated from 32769 to -32767
>>>> ERROR: Coordinates ouf of range
>>>> Testing 16BUI band
>>>> WARNING: rt_band_set_nodata: NODATA value for 16BUI band got truncated from
>>>> 65536 to 0
>>>> WARNING: Pixel value for 16BUI band got truncated from 65536 to 0
>>>> ERROR: Coordinates ouf of range
>>>> Testing 32BUI band
>>>> WARNING: rt_band_set_nodata: NODATA value for 32BUI band got truncated from
>>>> 4.29497e+09 to 0
>>>> WARNING: Pixel value for 32BUI band got truncated from 4.29497e+09 to 0
>>>> ERROR: Coordinates ouf of range
>>>> Testing 32BSI band
>>>> WARNING: rt_band_set_nodata: NODATA value for 32BSI band got truncated from
>>>> 2.14748e+09 to -2.14748e+09
>>>> WARNING: Pixel value for 32BSI band got truncated from 2.14748e+09 to
>>>> -2.14748e+09
>>>> ERROR: Coordinates ouf of range
>>>> Testing 32BF band
>>>> Testing 64BF band
>>>> Testing band hasnodata flag
>>>> testapi: rt_api.c:545: rt_band_get_data: Assertion `((void *)0) != band'
>>>> failed.
>>>> make[2]: *** [check] Aborted
>>>> make[2]: Leaving directory
>>>> `/home/mloskot/dev/wktraster/_svn/trunk/test/core'
>>>> make[1]: *** [check] Error 2
>>>> make[1]: Leaving directory `/home/mloskot/dev/wktraster/_svn/trunk/test'
>>>> make: *** [check] Error 2
>>>>
>>>> The assertion is serious and happens in crucial function.
>>>> I checked and the last healthy revision seems to be r5811.
>>>>
>>>> Pierre, Jorge, could you re-validate your recent commits?
>>>> You do run "make check" before every commit, don't you?
>>>>
>>>> Best regards,
>>>> --
>>>> Mateusz Loskot, http://mateusz.loskot.net
>>>> _______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. On 23/08/10 17:23, Jorge Arévalo wrote:
> Thanks for the fix, Pierre. But I'm getting a Segmentation Fault. caused by
>
> memcpy(raster->bands[i], oldbands[oldi++], sizeof(rt_band));
>
> (rt_core/rt_api.c, line 1351)
>
> in Ubuntu Linux. Anyone else?

I've quickly checked running make check and I confirm this issue.
Getting segmentation fault too.

Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. On Mon, Aug 23, 2010 at 11:11 PM, Pierre Racine
<> wrote:
> Could you test the last one. Thanks. Sorry for that my C is a bit rusty.
>
> Pierre
>

OK. make check is working fine for me now.

Jorge

>>-----Original Message-----
>>From: postgis-devel- [mailto:postgis-devel-
>>] On Behalf Of Mateusz Loskot
>>Sent: 23 août 2010 12:50
>>To: postgis-
>>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>>
>>On 23/08/10 17:23, Jorge Arévalo wrote:
>>> Thanks for the fix, Pierre. But I'm getting a Segmentation Fault. caused by
>>>
>>> memcpy(raster->bands[i], oldbands[oldi++], sizeof(rt_band));
>>>
>>> (rt_core/rt_api.c, line 1351)
>>>
>>> in Ubuntu Linux. Anyone else?
>>
>>I've quickly checked running make check and I confirm this issue.
>>Getting segmentation fault too.
>>
>>Best regards,
>>--
>>Mateusz Loskot, http://mateusz.loskot.net
>>_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. On 24/08/10 10:39, Jorge Arévalo wrote:
> On Mon, Aug 23, 2010 at 11:11 PM, Pierre Racine
> <> wrote:
>> Could you test the last one. Thanks. Sorry for that my C is a bit rusty.
>
> OK. make check is working fine for me now.

Works for me too, however regression test is failing:L


mloskot@vb-ubuntu910-x64:~/dev/wktraster/_svn/trunk$ make post-install-check

...
Creating spatial db rtpostgis_reg
TMPDIR is /tmp/rtpgis_reg_4435

PostgreSQL 8.4.4 on x86_64-pc-linux-gnu, compiled by GCC gcc-4.4.real
(Ubuntu 4.4.3-4ubuntu5) 4.4.3, 64-bit
Postgis 2.0.0SVN - 2010-08-04 11:37:17
GEOS: 3.3.0-CAPI-1.7.0
PROJ: Rel. 4.7.1, 23 September 2009
WKTRaster 0.1.6d - 2010-08-24 09:14:21

Running tests

check_raster_columns. ok
check_raster_overviews. ok
rt_io. ok
create_rt_bytea_test. ok
rt_bytea. ok
create_rt_box2d_test. ok
rt_box2d. ok
rt_addband. failed (diff expected obtained:
/tmp/rtpgis_reg_4435/test_8_diff)
create_rt_properties_test. ok
rt_dimensions. ok
rt_pixelsize. ok
rt_upperleft. ok
rt_rotation. ok
rt_georeference. ok
rt_set_properties. ok
create_rt_band_properties_test. ok
rt_band_properties. ok
rt_set_band_properties. ok
rt_pixelvalue. ok
create_rt_utility_test. ok
rt_utility. ok
create_rt_gist_test. ok
rt_above. ok
rt_below. ok
rt_contained. ok
rt_contain. ok
rt_left. ok
rt_overabove. ok
rt_overbelow. ok
rt_overlap. ok
rt_overleft. ok
rt_overright. ok
rt_right. ok
rt_same. ok
rt_spatial_relationship. ok
bug_test_car5. ok

Run tests: 36
Failed: 1
make[2]: Leaving directory
`/home/mloskot/dev/wktraster/_svn/trunk/test/regress'
make[1]: Leaving directory `/home/mloskot/dev/wktraster/_svn/trunk/test'
mloskot@vb-ubuntu910-x64:~/dev/wktraster/_svn/trunk$ cat
/tmp/rtpgis_reg_4435/test_8_diff
*** rt_addband_expected 2010-08-23 16:51:59.000000000 +0100
--- /tmp/rtpgis_reg_4435/test_8_out 2010-08-24 10:15:19.000000000 +0100
***************
*** 45,52 ****
154
WARNING: Initial pixel value for 8BUI band got truncated from
256.000000 to 255
255
! WARNING: Initial pixel value for 16BSI band got truncated from
-32769.000000 to -32768
! -32768
-32768
0
32767
--- 45,52 ----
154
WARNING: Initial pixel value for 8BUI band got truncated from
256.000000 to 255
255
! WARNING: Initial pixel value for 16BSI band got truncated from
-32769.000000 to 32767
! 32767
-32768
0
32767
***************
*** 54,61 ****
-32768
WARNING: Initial pixel value for 16BSI band got truncated from
21.460000 to 21
21
! WARNING: Initial pixel value for 16BSI band got truncated from
210000.460000 to -32768
! -32768
WARNING: Initial pixel value for 16BUI band got truncated from
-1.000000 to 65535
65535
0
--- 54,61 ----
-32768
WARNING: Initial pixel value for 16BSI band got truncated from
21.460000 to 21
21
! WARNING: Initial pixel value for 16BSI band got truncated from
210000.460000 to 13392
! 13392
WARNING: Initial pixel value for 16BUI band got truncated from
-1.000000 to 65535
65535
0
mloskot@vb-ubuntu910-x64:~/dev/wktraster/_svn/trunk$


Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. make post-install-check works for me too... Maybe is a problem with
PostGIS/GEOS/PROJ versions... here my versions

PostgreSQL 8.4.4 on i486-pc-linux-gnu, compiled by GCC gcc-4.4.real
(Ubuntu 4.4.1-4ubuntu8) 4.4.1, 32-bit
Postgis 1.4.2 - 2010-08-05 17:36:12
GEOS: 3.3.0-CAPI-1.6.1
PROJ: Rel. 4.7.1, 23 September 2009
WKTRaster 0.1.6d - 2010-08-18 13:49:03

I'll do the test with a newer version of postgis (2.0.0SVN, like you,
for example).

A minor issue: the rtpostgis_reg database created for postinstall
check is not deleted by default. Mateusz, did you change it for any
reason? (r5822 was the previous version)

2010/8/24 Mateusz Loskot <>:
> On 24/08/10 10:39, Jorge Arévalo wrote:
>>
>> On Mon, Aug 23, 2010 at 11:11 PM, Pierre Racine
>> <>  wrote:
>>>
>>> Could you test the last one. Thanks. Sorry for that my C is a bit rusty.
>>
>> OK. make check is working fine for me now.
>
> Works for me too, however regression test is failing:L
>
>
> mloskot@vb-ubuntu910-x64:~/dev/wktraster/_svn/trunk$ make post-install-check
>
> ...
> Creating spatial db rtpostgis_reg
> TMPDIR is /tmp/rtpgis_reg_4435
>
>  PostgreSQL 8.4.4 on x86_64-pc-linux-gnu, compiled by GCC gcc-4.4.real
> (Ubuntu 4.4.3-4ubuntu5) 4.4.3, 64-bit
>  Postgis 2.0.0SVN - 2010-08-04 11:37:17
>   GEOS: 3.3.0-CAPI-1.7.0
>   PROJ: Rel. 4.7.1, 23 September 2009
>  WKTRaster 0.1.6d - 2010-08-24 09:14:21
>
> Running tests
>
>  check_raster_columns. ok
>  check_raster_overviews. ok
>  rt_io. ok
>  create_rt_bytea_test. ok
>  rt_bytea. ok
>  create_rt_box2d_test. ok
>  rt_box2d. ok
>  rt_addband. failed (diff expected obtained:
> /tmp/rtpgis_reg_4435/test_8_diff)
>  create_rt_properties_test. ok
>  rt_dimensions. ok
>  rt_pixelsize. ok
>  rt_upperleft. ok
>  rt_rotation. ok
>  rt_georeference. ok
>  rt_set_properties. ok
>  create_rt_band_properties_test. ok
>  rt_band_properties. ok
>  rt_set_band_properties. ok
>  rt_pixelvalue. ok
>  create_rt_utility_test. ok
>  rt_utility. ok
>  create_rt_gist_test. ok
>  rt_above. ok
>  rt_below. ok
>  rt_contained. ok
>  rt_contain. ok
>  rt_left. ok
>  rt_overabove. ok
>  rt_overbelow. ok
>  rt_overlap. ok
>  rt_overleft. ok
>  rt_overright. ok
>  rt_right. ok
>  rt_same. ok
>  rt_spatial_relationship. ok
>  bug_test_car5. ok
>
> Run tests: 36
> Failed: 1
> make[2]: Leaving directory
> `/home/mloskot/dev/wktraster/_svn/trunk/test/regress'
> make[1]: Leaving directory `/home/mloskot/dev/wktraster/_svn/trunk/test'
> mloskot@vb-ubuntu910-x64:~/dev/wktraster/_svn/trunk$ cat
> /tmp/rtpgis_reg_4435/test_8_diff
> *** rt_addband_expected 2010-08-23 16:51:59.000000000 +0100
> --- /tmp/rtpgis_reg_4435/test_8_out     2010-08-24 10:15:19.000000000 +0100
> ***************
> *** 45,52 ****
>  154
>  WARNING:  Initial pixel value for 8BUI band got truncated from 256.000000
> to 255
>  255
> ! WARNING:  Initial pixel value for 16BSI band got truncated from
> -32769.000000 to -32768
> ! -32768
>  -32768
>  0
>  32767
> --- 45,52 ----
>  154
>  WARNING:  Initial pixel value for 8BUI band got truncated from 256.000000
> to 255
>  255
> ! WARNING:  Initial pixel value for 16BSI band got truncated from
> -32769.000000 to 32767
> ! 32767
>  -32768
>  0
>  32767
> ***************
> *** 54,61 ****
>  -32768
>  WARNING:  Initial pixel value for 16BSI band got truncated from 21.460000
> to 21
>  21
> ! WARNING:  Initial pixel value for 16BSI band got truncated from
> 210000.460000 to -32768
> ! -32768
>  WARNING:  Initial pixel value for 16BUI band got truncated from -1.000000
> to 65535
>  65535
>  0
> --- 54,61 ----
>  -32768
>  WARNING:  Initial pixel value for 16BSI band got truncated from 21.460000
> to 21
>  21
> ! WARNING:  Initial pixel value for 16BSI band got truncated from
> 210000.460000 to 13392
> ! 13392
>  WARNING:  Initial pixel value for 16BUI band got truncated from -1.000000
> to 65535
>  65535
>  0
> mloskot@vb-ubuntu910-x64:~/dev/wktraster/_svn/trunk$
>
>
> Best regards,
> --
> Mateusz Loskot, http://mateusz.loskot.net
>



--
Jorge Arévalo
DEIMOS Space
Internet & Mobilty Division
Ronda de Poniente 19. Edificio Fiteni VI, portal 2, 2º
28760 Tres Cantos (Madrid)


http://gis4free.wordpress.com
_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. On 24/08/10 11:08, Jorge Arévalo wrote:
> make post-install-check works for me too... Maybe is a problem with
> PostGIS/GEOS/PROJ versions... here my versions
>
> PostgreSQL 8.4.4 on i486-pc-linux-gnu, compiled by GCC gcc-4.4.real
> (Ubuntu 4.4.1-4ubuntu8) 4.4.1, 32-bit
> Postgis 1.4.2 - 2010-08-05 17:36:12
> GEOS: 3.3.0-CAPI-1.6.1
> PROJ: Rel. 4.7.1, 23 September 2009
> WKTRaster 0.1.6d - 2010-08-18 13:49:03
>
> I'll do the test with a newer version of postgis (2.0.0SVN, like you,
> for example).

OK, thanks.

> A minor issue: the rtpostgis_reg database created for postinstall
> check is not deleted by default. Mateusz, did you change it for any
> reason? (r5822 was the previous version)

Which changeset you mean exactly. The following is r5823
and some changes in test/regress/run_test.in happened.

Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. 2010/8/24 Mateusz Loskot <>:
> On 24/08/10 11:08, Jorge Arévalo wrote:
>>
>> A minor issue: the rtpostgis_reg database created for postinstall
>> check is not deleted by default. Mateusz, did you change it for any
>> reason? (r5822 was the previous version)
>
> Which changeset you mean exactly. The following is r5823
> and some changes in test/regress/run_test.in happened.
>

Yes, sorry, my mistake. I mean the last change on
test/regress/run_test.in. A little change:

http://trac.osgeo.org/postgis/changeset/5823/spike/wktraster/test/regress/run_test.in

May I change the DROP option again, or is a bad idea?

> Best regards,
> --
> Mateusz Loskot, http://mateusz.loskot.net
>



--
Jorge Arévalo
DEIMOS Space
Internet & Mobilty Division
Ronda de Poniente 19. Edificio Fiteni VI, portal 2, 2º
28760 Tres Cantos (Madrid)


http://gis4free.wordpress.com
_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. On 24/08/10 11:32, Jorge Arévalo wrote:
> 2010/8/24 Mateusz Loskot<>:
>> On 24/08/10 11:08, Jorge Arévalo wrote:
>>>
>>> A minor issue: the rtpostgis_reg database created for postinstall
>>> check is not deleted by default. Mateusz, did you change it for any
>>> reason? (r5822 was the previous version)
>>
>> Which changeset you mean exactly. The following is r5823
>> and some changes in test/regress/run_test.in happened.
>>
>
> Yes, sorry, my mistake. I mean the last change on
> test/regress/run_test.in. A little change:
>
> http://trac.osgeo.org/postgis/changeset/5823/spike/wktraster/test/regress/run_test.in
>
> May I change the DROP option again, or is a bad idea?

IMO, we should follow PostGIS' approach:

http://trac.osgeo.org/postgis/changeset/5823/spike/wktraster/test/regress/run_test.in

AFAIU, it is yes, I'd re-enable the drop option.

Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. Mateusz,

Could you get your regression test to work?

I reverted the drop option to "yes".

Pierre

>-----Original Message-----
>From: postgis-devel- [mailto:postgis-devel-
>] On Behalf Of Mateusz Loskot
>Sent: 24 août 2010 06:48
>To: Jorge Arévalo
>Cc: PostGIS Development Discussion
>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>
>On 24/08/10 11:32, Jorge Arévalo wrote:
>> 2010/8/24 Mateusz Loskot<>:
>>> On 24/08/10 11:08, Jorge Arévalo wrote:
>>>>
>>>> A minor issue: the rtpostgis_reg database created for postinstall
>>>> check is not deleted by default. Mateusz, did you change it for any
>>>> reason? (r5822 was the previous version)
>>>
>>> Which changeset you mean exactly. The following is r5823
>>> and some changes in test/regress/run_test.in happened.
>>>
>>
>> Yes, sorry, my mistake. I mean the last change on
>> test/regress/run_test.in. A little change:
>>
>> http://trac.osgeo.org/postgis/changeset/5823/spike/wktraster/test/regress/run_test.in
>>
>> May I change the DROP option again, or is a bad idea?
>
>IMO, we should follow PostGIS' approach:
>
>http://trac.osgeo.org/postgis/changeset/5823/spike/wktraster/test/regress/run_test.in
>
>AFAIU, it is yes, I'd re-enable the drop option.
>
>Best regards,
>--
>Mateusz Loskot, http://mateusz.loskot.net
>_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. On 24/08/10 13:48, Pierre Racine wrote:
> Mateusz,
>
> Could you get your regression test to work?

Pierre,

Where does this expected value of -32768 come from in the following
messages in the rt_addband_expected file?

WARNING: Initial pixel value for 16BSI band got truncated from
-32769.000000 to -32768
-32768

WARNING: Initial pixel value for 16BSI band got truncated from
210000.460000 to -32768
-32768

Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. From thoses two lines in the rt_addband.sql file:

SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '16BSI', -32769, NULL), 3, 3);

and further:

SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '16BSI', 210000.46, NULL), 3, 3);

Pierre

>-----Original Message-----
>From: postgis-devel- [mailto:postgis-devel-
>] On Behalf Of Mateusz Loskot
>Sent: 31 août 2010 13:14
>To: PostGIS Development Discussion
>Cc: Pierre Racine; =?UTF-8?B?Sm9yZ2UgQXLDqXY=?=@lists.refractions.net
>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>
>On 24/08/10 13:48, Pierre Racine wrote:
>> Mateusz,
>>
>> Could you get your regression test to work?
>
>Pierre,
>
>Where does this expected value of -32768 come from in the following
>messages in the rt_addband_expected file?
>
>WARNING: Initial pixel value for 16BSI band got truncated from
>-32769.000000 to -32768
>-32768
>
>WARNING: Initial pixel value for 16BSI band got truncated from
>210000.460000 to -32768
>-32768
>
>Best regards,
>--
>Mateusz Loskot, http://mateusz.loskot.net
>_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. On 31/08/10 21:14, Pierre Racine wrote:
>>From thoses two lines in the rt_addband.sql file:
>
> SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '16BSI', -32769, NULL), 3, 3);
>
> and further:
>
> SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '16BSI', 210000.46, NULL), 3, 3);


Pierre,

I'm still confused why you are getting such strange values.
The value -32768 is invalid and unexpected, obviously.
It would indicate a bug.

Fortunately, I do not get such value, but I get the correct ones:

r1=# SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10,
2, 2, 0, 0, -1), 1, '16BSI', -32769, NULL), 3, 3);
WARNING: Initial pixel value for 16BSI band got truncated from
-32769.000000 to 32767
st_value
----------
32767
(1 row)

r1=# SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10,
2, 2, 0, 0, -1), 1, '16BSI', 210000.46, NULL), 3, 3);
WARNING: Initial pixel value for 16BSI band got truncated from
210000.460000 to 13392
st_value
----------
13392
(1 row)



Nevertheless, I've updated the expected output with correct values:

http://trac.osgeo.org/postgis/changeset/5907

Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
Charter Member of OSGeo, http://osgeo.org
_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. Jorge, Regina,

I get a fresh build of PostGIS raster and the regress test in rt_addband.sql fail on my machine. It was modified by Mateusz which was obtaining different results.

In the first case:

SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '16BSI', -32769, NULL), 3, 3);

Mateusz gets 32767 and I get -32768

In the second case:

SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '16BSI', 210000.46, NULL), 3, 3);

Mateusz gets 13392 and I get -32768

I suspect this is a Windows/Linux difference. Do the test works/fails for you? What results do you get?

Pierre

>-----Original Message-----
>From: Mateusz Loskot [mailto:]
>Sent: 4 septembre 2010 14:28
>To: PostGIS Development Discussion
>Cc: Pierre Racine
>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>
>On 31/08/10 21:14, Pierre Racine wrote:
>>>From thoses two lines in the rt_addband.sql file:
>>
>> SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '16BSI', -
>32769, NULL), 3, 3);
>>
>> and further:
>>
>> SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '16BSI',
>210000.46, NULL), 3, 3);
>
>
>Pierre,
>
>I'm still confused why you are getting such strange values.
>The value -32768 is invalid and unexpected, obviously.
>It would indicate a bug.
>
>Fortunately, I do not get such value, but I get the correct ones:
>
>r1=# SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10,
>2, 2, 0, 0, -1), 1, '16BSI', -32769, NULL), 3, 3);
>WARNING: Initial pixel value for 16BSI band got truncated from
>-32769.000000 to 32767
> st_value
>----------
> 32767
>(1 row)
>
>r1=# SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10,
>2, 2, 0, 0, -1), 1, '16BSI', 210000.46, NULL), 3, 3);
>WARNING: Initial pixel value for 16BSI band got truncated from
>210000.460000 to 13392
> st_value
>----------
> 13392
>(1 row)
>
>
>
>Nevertheless, I've updated the expected output with correct values:
>
>http://trac.osgeo.org/postgis/changeset/5907
>
>Best regards,
>--
>Mateusz Loskot, http://mateusz.loskot.net
>Charter Member of OSGeo, http://osgeo.org
_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. On Wed, Jan 12, 2011 at 7:47 PM, Pierre Racine
<> wrote:
> Jorge, Regina,
>
> I get a fresh build of PostGIS raster and the regress test in rt_addband.sql fail on my machine. It was modified by Mateusz which was obtaining different results.
>
> In the first case:
>
> SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '16BSI', -32769, NULL), 3, 3);
>
> Mateusz gets 32767 and I get -32768
>
> In the second case:
>
> SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '16BSI', 210000.46, NULL), 3, 3);
>
> Mateusz gets 13392 and I get -32768
>
> I suspect this is a Windows/Linux difference. Do the test works/fails for you? What results do you get?
>
> Pierre
>

Hi,

In my Linux (Ubuntu 9.10) box:

From SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10,
2, 2, 0, 0, -1), 1, '16BSI', -32769, NULL), 3, 3);

I'm getting -32768

And from SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10,
10, 2, 2, 0, 0, -1), 1, '16BSI', 210000.46, NULL), 3, 3);

I'm getting -32768 too

Using last version from trunk (r6604).

Best regards,

--
Jorge Arévalo
Internet & Mobilty Division, DEIMOS

http://mobility.grupodeimos.com/
http://gis4free.wordpress.com
http://geohash.org/ezjqgrgzz0g


>>-----Original Message-----
>>From: Mateusz Loskot [mailto:]
>>Sent: 4 septembre 2010 14:28
>>To: PostGIS Development Discussion
>>Cc: Pierre Racine
>>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>>
>>On 31/08/10 21:14, Pierre Racine wrote:
>>>>From thoses two lines in the rt_addband.sql file:
>>>
>>> SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '16BSI', -
>>32769, NULL), 3, 3);
>>>
>>> and further:
>>>
>>> SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '16BSI',
>>210000.46, NULL), 3, 3);
>>
>>
>>Pierre,
>>
>>I'm still confused why you are getting such strange values.
>>The value -32768 is invalid and unexpected, obviously.
>>It would indicate a bug.
>>
>>Fortunately, I do not get such value, but I get the correct ones:
>>
>>r1=# SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10,
>>2, 2, 0, 0, -1), 1, '16BSI', -32769, NULL), 3, 3);
>>WARNING:  Initial pixel value for 16BSI band got truncated from
>>-32769.000000 to 32767
>> st_value
>>----------
>>    32767
>>(1 row)
>>
>>r1=# SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10,
>>2, 2, 0, 0, -1), 1, '16BSI', 210000.46, NULL), 3, 3);
>>WARNING:  Initial pixel value for 16BSI band got truncated from
>>210000.460000 to 13392
>> st_value
>>----------
>>    13392
>>(1 row)
>>
>>
>>
>>Nevertheless, I've updated the expected output with correct values:
>>
>>http://trac.osgeo.org/postgis/changeset/5907
>>
>>Best regards,
>>--
>>Mateusz Loskot, http://mateusz.loskot.net
>>Charter Member of OSGeo, http://osgeo.org
> _______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe.

  #19  
12-01-2011 07:03 PM
PostGIS : postgis-devel member admin is online now
User
 

Hi,

I've noticed current revision of WKT Raster is broken.
Running the core tests for r5841 ends up with assertion and
load of warnings:

./testapi
1111 pixtype = 2
Raster starts with 0 bands
First point on convexhull ring is 0.5,0.5
Second point on convexhull ring is 256.5,1280.5
Third point on convexhull ring is 1280.5,1536.5
Fourth point on convexhull ring is 1024.5,256.5
Fifth point on convexhull ring is 0.5,0.5
Testing polygonize function
Testing 1BB band
WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated
from 2 to 0
WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated
from 3 to 1
WARNING: Pixel value for 1BB band got truncated from 2 to 0
WARNING: Pixel value for 1BB band got truncated from 3 to 1
Testing 2BB band
WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated
from 4 to 0
WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated
from 5 to 1
WARNING: Pixel value for 2BUI band got truncated from 4 to 0
WARNING: Pixel value for 2BUI band got truncated from 5 to 1
Testing 4BUI band
WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated
from 16 to 0
WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated
from 17 to 1
WARNING: Pixel value for 4BUI band got truncated from 35 to 3
Testing 8BUI band
WARNING: rt_band_set_nodata: NODATA value for 8BUI band got truncated
from 256 to 0
WARNING: Pixel value for 8BUI band got truncated from 256 to 0
Testing 8BSI band
WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated
from -129 to 127
WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated
from 129 to -127
WARNING: Pixel value for 8BSI band got truncated from -129 to 127
WARNING: Pixel value for 8BSI band got truncated from 129 to -127
Testing 16BSI band
WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated
from -32769 to 32767
WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated
from 32769 to -32767
WARNING: Pixel value for 16BSI band got truncated from -32769 to 32767
WARNING: Pixel value for 16BSI band got truncated from 32769 to -32767
ERROR: Coordinates ouf of range
Testing 16BUI band
WARNING: rt_band_set_nodata: NODATA value for 16BUI band got truncated
from 65536 to 0
WARNING: Pixel value for 16BUI band got truncated from 65536 to 0
ERROR: Coordinates ouf of range
Testing 32BUI band
WARNING: rt_band_set_nodata: NODATA value for 32BUI band got truncated
from 4.29497e+09 to 0
WARNING: Pixel value for 32BUI band got truncated from 4.29497e+09 to 0
ERROR: Coordinates ouf of range
Testing 32BSI band
WARNING: rt_band_set_nodata: NODATA value for 32BSI band got truncated
from 2.14748e+09 to -2.14748e+09
WARNING: Pixel value for 32BSI band got truncated from 2.14748e+09 to
-2.14748e+09
ERROR: Coordinates ouf of range
Testing 32BF band
Testing 64BF band
Testing band hasnodata flag
testapi: rt_api.c:545: rt_band_get_data: Assertion `((void *)0) != band'
failed.
make[2]: *** [check] Aborted
make[2]: Leaving directory
`/home/mloskot/dev/wktraster/_svn/trunk/test/core'
make[1]: *** [check] Error 2
make[1]: Leaving directory `/home/mloskot/dev/wktraster/_svn/trunk/test'
make: *** [check] Error 2

The assertion is serious and happens in crucial function.
I checked and the last healthy revision seems to be r5811.

Pierre, Jorge, could you re-validate your recent commits?
You do run "make check" before every commit, don't you?

Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. On Mon, Aug 23, 2010 at 1:04 PM, Mateusz Loskot <> wrote:
> Hi,
>
> I've noticed current revision of WKT Raster is broken.
> Running the core tests for r5841 ends up with assertion and
> load of warnings:
>
> ./testapi
> 1111 pixtype = 2
> Raster starts with 0 bands
> First point on convexhull ring is 0.5,0.5
> Second point on convexhull ring is 256.5,1280.5
> Third point on convexhull ring is 1280.5,1536.5
> Fourth point on convexhull ring is 1024.5,256.5
> Fifth point on convexhull ring is 0.5,0.5
> Testing polygonize function
> Testing 1BB band
> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 2
> to 0
> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 3
> to 1
> WARNING: Pixel value for 1BB band got truncated from 2 to 0
> WARNING: Pixel value for 1BB band got truncated from 3 to 1
> Testing 2BB band
> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 4
> to 0
> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 5
> to 1
> WARNING: Pixel value for 2BUI band got truncated from 4 to 0
> WARNING: Pixel value for 2BUI band got truncated from 5 to 1
> Testing 4BUI band
> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
> 16 to 0
> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
> 17 to 1
> WARNING: Pixel value for 4BUI band got truncated from 35 to 3
> Testing 8BUI band
> WARNING: rt_band_set_nodata: NODATA value for 8BUI band got truncated from
> 256 to 0
> WARNING: Pixel value for 8BUI band got truncated from 256 to 0
> Testing 8BSI band
> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
> -129 to 127
> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
> 129 to -127
> WARNING: Pixel value for 8BSI band got truncated from -129 to 127
> WARNING: Pixel value for 8BSI band got truncated from 129 to -127
> Testing 16BSI band
> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
> -32769 to 32767
> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
> 32769 to -32767
> WARNING: Pixel value for 16BSI band got truncated from -32769 to 32767
> WARNING: Pixel value for 16BSI band got truncated from 32769 to -32767
> ERROR: Coordinates ouf of range
> Testing 16BUI band
> WARNING: rt_band_set_nodata: NODATA value for 16BUI band got truncated from
> 65536 to 0
> WARNING: Pixel value for 16BUI band got truncated from 65536 to 0
> ERROR: Coordinates ouf of range
> Testing 32BUI band
> WARNING: rt_band_set_nodata: NODATA value for 32BUI band got truncated from
> 4.29497e+09 to 0
> WARNING: Pixel value for 32BUI band got truncated from 4.29497e+09 to 0
> ERROR: Coordinates ouf of range
> Testing 32BSI band
> WARNING: rt_band_set_nodata: NODATA value for 32BSI band got truncated from
> 2.14748e+09 to -2.14748e+09
> WARNING: Pixel value for 32BSI band got truncated from 2.14748e+09 to
> -2.14748e+09
> ERROR: Coordinates ouf of range
> Testing 32BF band
> Testing 64BF band
> Testing band hasnodata flag
> testapi: rt_api.c:545: rt_band_get_data: Assertion `((void *)0) != band'
> failed.
> make[2]: *** [check] Aborted
> make[2]: Leaving directory
> `/home/mloskot/dev/wktraster/_svn/trunk/test/core'
> make[1]: *** [check] Error 2
> make[1]: Leaving directory `/home/mloskot/dev/wktraster/_svn/trunk/test'
> make: *** [check] Error 2
>
> The assertion is serious and happens in crucial function.
> I checked and the last healthy revision seems to be r5811.
>
> Pierre, Jorge, could you re-validate your recent commits?
> You do run "make check" before every commit, don't you?
>
> Best regards,
> --
> Mateusz Loskot, http://mateusz.loskot.net
> _______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. Probably my fault. Double check...

Pierre

>-----Original Message-----
>From: postgis-devel- [mailto:postgis-devel-
>] On Behalf Of Jorge Arévalo
>Sent: 23 août 2010 07:39
>To: PostGIS Development Discussion
>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>
>On Mon, Aug 23, 2010 at 1:04 PM, Mateusz Loskot <> wrote:
>> Hi,
>>
>> I've noticed current revision of WKT Raster is broken.
>> Running the core tests for r5841 ends up with assertion and
>> load of warnings:
>>
>> ./testapi
>> 1111 pixtype = 2
>> Raster starts with 0 bands
>> First point on convexhull ring is 0.5,0.5
>> Second point on convexhull ring is 256.5,1280.5
>> Third point on convexhull ring is 1280.5,1536.5
>> Fourth point on convexhull ring is 1024.5,256.5
>> Fifth point on convexhull ring is 0.5,0.5
>> Testing polygonize function
>> Testing 1BB band
>> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 2
>> to 0
>> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 3
>> to 1
>> WARNING: Pixel value for 1BB band got truncated from 2 to 0
>> WARNING: Pixel value for 1BB band got truncated from 3 to 1
>> Testing 2BB band
>> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 4
>> to 0
>> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 5
>> to 1
>> WARNING: Pixel value for 2BUI band got truncated from 4 to 0
>> WARNING: Pixel value for 2BUI band got truncated from 5 to 1
>> Testing 4BUI band
>> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
>> 16 to 0
>> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
>> 17 to 1
>> WARNING: Pixel value for 4BUI band got truncated from 35 to 3
>> Testing 8BUI band
>> WARNING: rt_band_set_nodata: NODATA value for 8BUI band got truncated from
>> 256 to 0
>> WARNING: Pixel value for 8BUI band got truncated from 256 to 0
>> Testing 8BSI band
>> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
>> -129 to 127
>> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
>> 129 to -127
>> WARNING: Pixel value for 8BSI band got truncated from -129 to 127
>> WARNING: Pixel value for 8BSI band got truncated from 129 to -127
>> Testing 16BSI band
>> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
>> -32769 to 32767
>> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
>> 32769 to -32767
>> WARNING: Pixel value for 16BSI band got truncated from -32769 to 32767
>> WARNING: Pixel value for 16BSI band got truncated from 32769 to -32767
>> ERROR: Coordinates ouf of range
>> Testing 16BUI band
>> WARNING: rt_band_set_nodata: NODATA value for 16BUI band got truncated from
>> 65536 to 0
>> WARNING: Pixel value for 16BUI band got truncated from 65536 to 0
>> ERROR: Coordinates ouf of range
>> Testing 32BUI band
>> WARNING: rt_band_set_nodata: NODATA value for 32BUI band got truncated from
>> 4.29497e+09 to 0
>> WARNING: Pixel value for 32BUI band got truncated from 4.29497e+09 to 0
>> ERROR: Coordinates ouf of range
>> Testing 32BSI band
>> WARNING: rt_band_set_nodata: NODATA value for 32BSI band got truncated from
>> 2.14748e+09 to -2.14748e+09
>> WARNING: Pixel value for 32BSI band got truncated from 2.14748e+09 to
>> -2.14748e+09
>> ERROR: Coordinates ouf of range
>> Testing 32BF band
>> Testing 64BF band
>> Testing band hasnodata flag
>> testapi: rt_api.c:545: rt_band_get_data: Assertion `((void *)0) != band'
>> failed.
>> make[2]: *** [check] Aborted
>> make[2]: Leaving directory
>> `/home/mloskot/dev/wktraster/_svn/trunk/test/core'
>> make[1]: *** [check] Error 2
>> make[1]: Leaving directory `/home/mloskot/dev/wktraster/_svn/trunk/test'
>> make: *** [check] Error 2
>>
>> The assertion is serious and happens in crucial function.
>> I checked and the last healthy revision seems to be r5811.
>>
>> Pierre, Jorge, could you re-validate your recent commits?
>> You do run "make check" before every commit, don't you?
>>
>> Best regards,
>> --
>> Mateusz Loskot, http://mateusz.loskot.net
>> _______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. fixed in r5864

Sorry for that. Probably forgot to make check.

Pierre

>-----Original Message-----
>From: postgis-devel- [mailto:postgis-devel-
>] On Behalf Of Pierre Racine
>Sent: 23 août 2010 09:24
>To: PostGIS Development Discussion
>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>
>Probably my fault. Double check...
>
>Pierre
>
>>-----Original Message-----
>>From: postgis-devel- [mailto:postgis-devel-
>>] On Behalf Of Jorge Arévalo
>>Sent: 23 août 2010 07:39
>>To: PostGIS Development Discussion
>>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>>
>>On Mon, Aug 23, 2010 at 1:04 PM, Mateusz Loskot <> wrote:
>>> Hi,
>>>
>>> I've noticed current revision of WKT Raster is broken.
>>> Running the core tests for r5841 ends up with assertion and
>>> load of warnings:
>>>
>>> ./testapi
>>> 1111 pixtype = 2
>>> Raster starts with 0 bands
>>> First point on convexhull ring is 0.5,0.5
>>> Second point on convexhull ring is 256.5,1280.5
>>> Third point on convexhull ring is 1280.5,1536.5
>>> Fourth point on convexhull ring is 1024.5,256.5
>>> Fifth point on convexhull ring is 0.5,0.5
>>> Testing polygonize function
>>> Testing 1BB band
>>> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 2
>>> to 0
>>> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 3
>>> to 1
>>> WARNING: Pixel value for 1BB band got truncated from 2 to 0
>>> WARNING: Pixel value for 1BB band got truncated from 3 to 1
>>> Testing 2BB band
>>> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 4
>>> to 0
>>> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 5
>>> to 1
>>> WARNING: Pixel value for 2BUI band got truncated from 4 to 0
>>> WARNING: Pixel value for 2BUI band got truncated from 5 to 1
>>> Testing 4BUI band
>>> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
>>> 16 to 0
>>> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
>>> 17 to 1
>>> WARNING: Pixel value for 4BUI band got truncated from 35 to 3
>>> Testing 8BUI band
>>> WARNING: rt_band_set_nodata: NODATA value for 8BUI band got truncated from
>>> 256 to 0
>>> WARNING: Pixel value for 8BUI band got truncated from 256 to 0
>>> Testing 8BSI band
>>> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
>>> -129 to 127
>>> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
>>> 129 to -127
>>> WARNING: Pixel value for 8BSI band got truncated from -129 to 127
>>> WARNING: Pixel value for 8BSI band got truncated from 129 to -127
>>> Testing 16BSI band
>>> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
>>> -32769 to 32767
>>> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
>>> 32769 to -32767
>>> WARNING: Pixel value for 16BSI band got truncated from -32769 to 32767
>>> WARNING: Pixel value for 16BSI band got truncated from 32769 to -32767
>>> ERROR: Coordinates ouf of range
>>> Testing 16BUI band
>>> WARNING: rt_band_set_nodata: NODATA value for 16BUI band got truncated from
>>> 65536 to 0
>>> WARNING: Pixel value for 16BUI band got truncated from 65536 to 0
>>> ERROR: Coordinates ouf of range
>>> Testing 32BUI band
>>> WARNING: rt_band_set_nodata: NODATA value for 32BUI band got truncated from
>>> 4.29497e+09 to 0
>>> WARNING: Pixel value for 32BUI band got truncated from 4.29497e+09 to 0
>>> ERROR: Coordinates ouf of range
>>> Testing 32BSI band
>>> WARNING: rt_band_set_nodata: NODATA value for 32BSI band got truncated from
>>> 2.14748e+09 to -2.14748e+09
>>> WARNING: Pixel value for 32BSI band got truncated from 2.14748e+09 to
>>> -2.14748e+09
>>> ERROR: Coordinates ouf of range
>>> Testing 32BF band
>>> Testing 64BF band
>>> Testing band hasnodata flag
>>> testapi: rt_api.c:545: rt_band_get_data: Assertion `((void *)0) != band'
>>> failed.
>>> make[2]: *** [check] Aborted
>>> make[2]: Leaving directory
>>> `/home/mloskot/dev/wktraster/_svn/trunk/test/core'
>>> make[1]: *** [check] Error 2
>>> make[1]: Leaving directory `/home/mloskot/dev/wktraster/_svn/trunk/test'
>>> make: *** [check] Error 2
>>>
>>> The assertion is serious and happens in crucial function.
>>> I checked and the last healthy revision seems to be r5811.
>>>
>>> Pierre, Jorge, could you re-validate your recent commits?
>>> You do run "make check" before every commit, don't you?
>>>
>>> Best regards,
>>> --
>>> Mateusz Loskot, http://mateusz.loskot.net
>>> _______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. Thanks for the fix, Pierre. But I'm getting a Segmentation Fault. caused by

memcpy(raster->bands[i], oldbands[oldi++], sizeof(rt_band));

(rt_core/rt_api.c, line 1351)

in Ubuntu Linux. Anyone else?

On Mon, Aug 23, 2010 at 4:53 PM, Pierre Racine
<> wrote:
> fixed in r5864
>
> Sorry for that. Probably forgot to make check.
>
> Pierre
>
>>-----Original Message-----
>>From: postgis-devel- [mailto:postgis-devel-
>>] On Behalf Of Pierre Racine
>>Sent: 23 août 2010 09:24
>>To: PostGIS Development Discussion
>>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>>
>>Probably my fault. Double check...
>>
>>Pierre
>>
>>>-----Original Message-----
>>>From: postgis-devel- [mailto:postgis-devel-
>>>] On Behalf Of Jorge Arévalo
>>>Sent: 23 août 2010 07:39
>>>To: PostGIS Development Discussion
>>>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>>>
>>>On Mon, Aug 23, 2010 at 1:04 PM, Mateusz Loskot <> wrote:
>>>> Hi,
>>>>
>>>> I've noticed current revision of WKT Raster is broken.
>>>> Running the core tests for r5841 ends up with assertion and
>>>> load of warnings:
>>>>
>>>> ./testapi
>>>> 1111 pixtype = 2
>>>> Raster starts with 0 bands
>>>> First point on convexhull ring is 0.5,0.5
>>>> Second point on convexhull ring is 256.5,1280.5
>>>> Third point on convexhull ring is 1280.5,1536.5
>>>> Fourth point on convexhull ring is 1024.5,256.5
>>>> Fifth point on convexhull ring is 0.5,0.5
>>>> Testing polygonize function
>>>> Testing 1BB band
>>>> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 2
>>>> to 0
>>>> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 3
>>>> to 1
>>>> WARNING: Pixel value for 1BB band got truncated from 2 to 0
>>>> WARNING: Pixel value for 1BB band got truncated from 3 to 1
>>>> Testing 2BB band
>>>> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 4
>>>> to 0
>>>> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 5
>>>> to 1
>>>> WARNING: Pixel value for 2BUI band got truncated from 4 to 0
>>>> WARNING: Pixel value for 2BUI band got truncated from 5 to 1
>>>> Testing 4BUI band
>>>> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
>>>> 16 to 0
>>>> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
>>>> 17 to 1
>>>> WARNING: Pixel value for 4BUI band got truncated from 35 to 3
>>>> Testing 8BUI band
>>>> WARNING: rt_band_set_nodata: NODATA value for 8BUI band got truncated from
>>>> 256 to 0
>>>> WARNING: Pixel value for 8BUI band got truncated from 256 to 0
>>>> Testing 8BSI band
>>>> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
>>>> -129 to 127
>>>> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
>>>> 129 to -127
>>>> WARNING: Pixel value for 8BSI band got truncated from -129 to 127
>>>> WARNING: Pixel value for 8BSI band got truncated from 129 to -127
>>>> Testing 16BSI band
>>>> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
>>>> -32769 to 32767
>>>> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
>>>> 32769 to -32767
>>>> WARNING: Pixel value for 16BSI band got truncated from -32769 to 32767
>>>> WARNING: Pixel value for 16BSI band got truncated from 32769 to -32767
>>>> ERROR: Coordinates ouf of range
>>>> Testing 16BUI band
>>>> WARNING: rt_band_set_nodata: NODATA value for 16BUI band got truncated from
>>>> 65536 to 0
>>>> WARNING: Pixel value for 16BUI band got truncated from 65536 to 0
>>>> ERROR: Coordinates ouf of range
>>>> Testing 32BUI band
>>>> WARNING: rt_band_set_nodata: NODATA value for 32BUI band got truncated from
>>>> 4.29497e+09 to 0
>>>> WARNING: Pixel value for 32BUI band got truncated from 4.29497e+09 to 0
>>>> ERROR: Coordinates ouf of range
>>>> Testing 32BSI band
>>>> WARNING: rt_band_set_nodata: NODATA value for 32BSI band got truncated from
>>>> 2.14748e+09 to -2.14748e+09
>>>> WARNING: Pixel value for 32BSI band got truncated from 2.14748e+09 to
>>>> -2.14748e+09
>>>> ERROR: Coordinates ouf of range
>>>> Testing 32BF band
>>>> Testing 64BF band
>>>> Testing band hasnodata flag
>>>> testapi: rt_api.c:545: rt_band_get_data: Assertion `((void *)0) != band'
>>>> failed.
>>>> make[2]: *** [check] Aborted
>>>> make[2]: Leaving directory
>>>> `/home/mloskot/dev/wktraster/_svn/trunk/test/core'
>>>> make[1]: *** [check] Error 2
>>>> make[1]: Leaving directory `/home/mloskot/dev/wktraster/_svn/trunk/test'
>>>> make: *** [check] Error 2
>>>>
>>>> The assertion is serious and happens in crucial function.
>>>> I checked and the last healthy revision seems to be r5811.
>>>>
>>>> Pierre, Jorge, could you re-validate your recent commits?
>>>> You do run "make check" before every commit, don't you?
>>>>
>>>> Best regards,
>>>> --
>>>> Mateusz Loskot, http://mateusz.loskot.net
>>>> _______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. On 23/08/10 17:23, Jorge Arévalo wrote:
> Thanks for the fix, Pierre. But I'm getting a Segmentation Fault. caused by
>
> memcpy(raster->bands[i], oldbands[oldi++], sizeof(rt_band));
>
> (rt_core/rt_api.c, line 1351)
>
> in Ubuntu Linux. Anyone else?

I've quickly checked running make check and I confirm this issue.
Getting segmentation fault too.

Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. On Mon, Aug 23, 2010 at 11:11 PM, Pierre Racine
<> wrote:
> Could you test the last one. Thanks. Sorry for that my C is a bit rusty.
>
> Pierre
>

OK. make check is working fine for me now.

Jorge

>>-----Original Message-----
>>From: postgis-devel- [mailto:postgis-devel-
>>] On Behalf Of Mateusz Loskot
>>Sent: 23 août 2010 12:50
>>To: postgis-
>>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>>
>>On 23/08/10 17:23, Jorge Arévalo wrote:
>>> Thanks for the fix, Pierre. But I'm getting a Segmentation Fault. caused by
>>>
>>> memcpy(raster->bands[i], oldbands[oldi++], sizeof(rt_band));
>>>
>>> (rt_core/rt_api.c, line 1351)
>>>
>>> in Ubuntu Linux. Anyone else?
>>
>>I've quickly checked running make check and I confirm this issue.
>>Getting segmentation fault too.
>>
>>Best regards,
>>--
>>Mateusz Loskot, http://mateusz.loskot.net
>>_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. On 24/08/10 10:39, Jorge Arévalo wrote:
> On Mon, Aug 23, 2010 at 11:11 PM, Pierre Racine
> <> wrote:
>> Could you test the last one. Thanks. Sorry for that my C is a bit rusty.
>
> OK. make check is working fine for me now.

Works for me too, however regression test is failing:L


mloskot@vb-ubuntu910-x64:~/dev/wktraster/_svn/trunk$ make post-install-check

...
Creating spatial db rtpostgis_reg
TMPDIR is /tmp/rtpgis_reg_4435

PostgreSQL 8.4.4 on x86_64-pc-linux-gnu, compiled by GCC gcc-4.4.real
(Ubuntu 4.4.3-4ubuntu5) 4.4.3, 64-bit
Postgis 2.0.0SVN - 2010-08-04 11:37:17
GEOS: 3.3.0-CAPI-1.7.0
PROJ: Rel. 4.7.1, 23 September 2009
WKTRaster 0.1.6d - 2010-08-24 09:14:21

Running tests

check_raster_columns. ok
check_raster_overviews. ok
rt_io. ok
create_rt_bytea_test. ok
rt_bytea. ok
create_rt_box2d_test. ok
rt_box2d. ok
rt_addband. failed (diff expected obtained:
/tmp/rtpgis_reg_4435/test_8_diff)
create_rt_properties_test. ok
rt_dimensions. ok
rt_pixelsize. ok
rt_upperleft. ok
rt_rotation. ok
rt_georeference. ok
rt_set_properties. ok
create_rt_band_properties_test. ok
rt_band_properties. ok
rt_set_band_properties. ok
rt_pixelvalue. ok
create_rt_utility_test. ok
rt_utility. ok
create_rt_gist_test. ok
rt_above. ok
rt_below. ok
rt_contained. ok
rt_contain. ok
rt_left. ok
rt_overabove. ok
rt_overbelow. ok
rt_overlap. ok
rt_overleft. ok
rt_overright. ok
rt_right. ok
rt_same. ok
rt_spatial_relationship. ok
bug_test_car5. ok

Run tests: 36
Failed: 1
make[2]: Leaving directory
`/home/mloskot/dev/wktraster/_svn/trunk/test/regress'
make[1]: Leaving directory `/home/mloskot/dev/wktraster/_svn/trunk/test'
mloskot@vb-ubuntu910-x64:~/dev/wktraster/_svn/trunk$ cat
/tmp/rtpgis_reg_4435/test_8_diff
*** rt_addband_expected 2010-08-23 16:51:59.000000000 +0100
--- /tmp/rtpgis_reg_4435/test_8_out 2010-08-24 10:15:19.000000000 +0100
***************
*** 45,52 ****
154
WARNING: Initial pixel value for 8BUI band got truncated from
256.000000 to 255
255
! WARNING: Initial pixel value for 16BSI band got truncated from
-32769.000000 to -32768
! -32768
-32768
0
32767
--- 45,52 ----
154
WARNING: Initial pixel value for 8BUI band got truncated from
256.000000 to 255
255
! WARNING: Initial pixel value for 16BSI band got truncated from
-32769.000000 to 32767
! 32767
-32768
0
32767
***************
*** 54,61 ****
-32768
WARNING: Initial pixel value for 16BSI band got truncated from
21.460000 to 21
21
! WARNING: Initial pixel value for 16BSI band got truncated from
210000.460000 to -32768
! -32768
WARNING: Initial pixel value for 16BUI band got truncated from
-1.000000 to 65535
65535
0
--- 54,61 ----
-32768
WARNING: Initial pixel value for 16BSI band got truncated from
21.460000 to 21
21
! WARNING: Initial pixel value for 16BSI band got truncated from
210000.460000 to 13392
! 13392
WARNING: Initial pixel value for 16BUI band got truncated from
-1.000000 to 65535
65535
0
mloskot@vb-ubuntu910-x64:~/dev/wktraster/_svn/trunk$


Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. make post-install-check works for me too... Maybe is a problem with
PostGIS/GEOS/PROJ versions... here my versions

PostgreSQL 8.4.4 on i486-pc-linux-gnu, compiled by GCC gcc-4.4.real
(Ubuntu 4.4.1-4ubuntu8) 4.4.1, 32-bit
Postgis 1.4.2 - 2010-08-05 17:36:12
GEOS: 3.3.0-CAPI-1.6.1
PROJ: Rel. 4.7.1, 23 September 2009
WKTRaster 0.1.6d - 2010-08-18 13:49:03

I'll do the test with a newer version of postgis (2.0.0SVN, like you,
for example).

A minor issue: the rtpostgis_reg database created for postinstall
check is not deleted by default. Mateusz, did you change it for any
reason? (r5822 was the previous version)

2010/8/24 Mateusz Loskot <>:
> On 24/08/10 10:39, Jorge Arévalo wrote:
>>
>> On Mon, Aug 23, 2010 at 11:11 PM, Pierre Racine
>> <>  wrote:
>>>
>>> Could you test the last one. Thanks. Sorry for that my C is a bit rusty.
>>
>> OK. make check is working fine for me now.
>
> Works for me too, however regression test is failing:L
>
>
> mloskot@vb-ubuntu910-x64:~/dev/wktraster/_svn/trunk$ make post-install-check
>
> ...
> Creating spatial db rtpostgis_reg
> TMPDIR is /tmp/rtpgis_reg_4435
>
>  PostgreSQL 8.4.4 on x86_64-pc-linux-gnu, compiled by GCC gcc-4.4.real
> (Ubuntu 4.4.3-4ubuntu5) 4.4.3, 64-bit
>  Postgis 2.0.0SVN - 2010-08-04 11:37:17
>   GEOS: 3.3.0-CAPI-1.7.0
>   PROJ: Rel. 4.7.1, 23 September 2009
>  WKTRaster 0.1.6d - 2010-08-24 09:14:21
>
> Running tests
>
>  check_raster_columns. ok
>  check_raster_overviews. ok
>  rt_io. ok
>  create_rt_bytea_test. ok
>  rt_bytea. ok
>  create_rt_box2d_test. ok
>  rt_box2d. ok
>  rt_addband. failed (diff expected obtained:
> /tmp/rtpgis_reg_4435/test_8_diff)
>  create_rt_properties_test. ok
>  rt_dimensions. ok
>  rt_pixelsize. ok
>  rt_upperleft. ok
>  rt_rotation. ok
>  rt_georeference. ok
>  rt_set_properties. ok
>  create_rt_band_properties_test. ok
>  rt_band_properties. ok
>  rt_set_band_properties. ok
>  rt_pixelvalue. ok
>  create_rt_utility_test. ok
>  rt_utility. ok
>  create_rt_gist_test. ok
>  rt_above. ok
>  rt_below. ok
>  rt_contained. ok
>  rt_contain. ok
>  rt_left. ok
>  rt_overabove. ok
>  rt_overbelow. ok
>  rt_overlap. ok
>  rt_overleft. ok
>  rt_overright. ok
>  rt_right. ok
>  rt_same. ok
>  rt_spatial_relationship. ok
>  bug_test_car5. ok
>
> Run tests: 36
> Failed: 1
> make[2]: Leaving directory
> `/home/mloskot/dev/wktraster/_svn/trunk/test/regress'
> make[1]: Leaving directory `/home/mloskot/dev/wktraster/_svn/trunk/test'
> mloskot@vb-ubuntu910-x64:~/dev/wktraster/_svn/trunk$ cat
> /tmp/rtpgis_reg_4435/test_8_diff
> *** rt_addband_expected 2010-08-23 16:51:59.000000000 +0100
> --- /tmp/rtpgis_reg_4435/test_8_out     2010-08-24 10:15:19.000000000 +0100
> ***************
> *** 45,52 ****
>  154
>  WARNING:  Initial pixel value for 8BUI band got truncated from 256.000000
> to 255
>  255
> ! WARNING:  Initial pixel value for 16BSI band got truncated from
> -32769.000000 to -32768
> ! -32768
>  -32768
>  0
>  32767
> --- 45,52 ----
>  154
>  WARNING:  Initial pixel value for 8BUI band got truncated from 256.000000
> to 255
>  255
> ! WARNING:  Initial pixel value for 16BSI band got truncated from
> -32769.000000 to 32767
> ! 32767
>  -32768
>  0
>  32767
> ***************
> *** 54,61 ****
>  -32768
>  WARNING:  Initial pixel value for 16BSI band got truncated from 21.460000
> to 21
>  21
> ! WARNING:  Initial pixel value for 16BSI band got truncated from
> 210000.460000 to -32768
> ! -32768
>  WARNING:  Initial pixel value for 16BUI band got truncated from -1.000000
> to 65535
>  65535
>  0
> --- 54,61 ----
>  -32768
>  WARNING:  Initial pixel value for 16BSI band got truncated from 21.460000
> to 21
>  21
> ! WARNING:  Initial pixel value for 16BSI band got truncated from
> 210000.460000 to 13392
> ! 13392
>  WARNING:  Initial pixel value for 16BUI band got truncated from -1.000000
> to 65535
>  65535
>  0
> mloskot@vb-ubuntu910-x64:~/dev/wktraster/_svn/trunk$
>
>
> Best regards,
> --
> Mateusz Loskot, http://mateusz.loskot.net
>



--
Jorge Arévalo
DEIMOS Space
Internet & Mobilty Division
Ronda de Poniente 19. Edificio Fiteni VI, portal 2, 2º
28760 Tres Cantos (Madrid)


http://gis4free.wordpress.com
_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. On 24/08/10 11:08, Jorge Arévalo wrote:
> make post-install-check works for me too... Maybe is a problem with
> PostGIS/GEOS/PROJ versions... here my versions
>
> PostgreSQL 8.4.4 on i486-pc-linux-gnu, compiled by GCC gcc-4.4.real
> (Ubuntu 4.4.1-4ubuntu8) 4.4.1, 32-bit
> Postgis 1.4.2 - 2010-08-05 17:36:12
> GEOS: 3.3.0-CAPI-1.6.1
> PROJ: Rel. 4.7.1, 23 September 2009
> WKTRaster 0.1.6d - 2010-08-18 13:49:03
>
> I'll do the test with a newer version of postgis (2.0.0SVN, like you,
> for example).

OK, thanks.

> A minor issue: the rtpostgis_reg database created for postinstall
> check is not deleted by default. Mateusz, did you change it for any
> reason? (r5822 was the previous version)

Which changeset you mean exactly. The following is r5823
and some changes in test/regress/run_test.in happened.

Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. 2010/8/24 Mateusz Loskot <>:
> On 24/08/10 11:08, Jorge Arévalo wrote:
>>
>> A minor issue: the rtpostgis_reg database created for postinstall
>> check is not deleted by default. Mateusz, did you change it for any
>> reason? (r5822 was the previous version)
>
> Which changeset you mean exactly. The following is r5823
> and some changes in test/regress/run_test.in happened.
>

Yes, sorry, my mistake. I mean the last change on
test/regress/run_test.in. A little change:

http://trac.osgeo.org/postgis/changeset/5823/spike/wktraster/test/regress/run_test.in

May I change the DROP option again, or is a bad idea?

> Best regards,
> --
> Mateusz Loskot, http://mateusz.loskot.net
>



--
Jorge Arévalo
DEIMOS Space
Internet & Mobilty Division
Ronda de Poniente 19. Edificio Fiteni VI, portal 2, 2º
28760 Tres Cantos (Madrid)


http://gis4free.wordpress.com
_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. On 24/08/10 11:32, Jorge Arévalo wrote:
> 2010/8/24 Mateusz Loskot<>:
>> On 24/08/10 11:08, Jorge Arévalo wrote:
>>>
>>> A minor issue: the rtpostgis_reg database created for postinstall
>>> check is not deleted by default. Mateusz, did you change it for any
>>> reason? (r5822 was the previous version)
>>
>> Which changeset you mean exactly. The following is r5823
>> and some changes in test/regress/run_test.in happened.
>>
>
> Yes, sorry, my mistake. I mean the last change on
> test/regress/run_test.in. A little change:
>
> http://trac.osgeo.org/postgis/changeset/5823/spike/wktraster/test/regress/run_test.in
>
> May I change the DROP option again, or is a bad idea?

IMO, we should follow PostGIS' approach:

http://trac.osgeo.org/postgis/changeset/5823/spike/wktraster/test/regress/run_test.in

AFAIU, it is yes, I'd re-enable the drop option.

Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. Mateusz,

Could you get your regression test to work?

I reverted the drop option to "yes".

Pierre

>-----Original Message-----
>From: postgis-devel- [mailto:postgis-devel-
>] On Behalf Of Mateusz Loskot
>Sent: 24 août 2010 06:48
>To: Jorge Arévalo
>Cc: PostGIS Development Discussion
>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>
>On 24/08/10 11:32, Jorge Arévalo wrote:
>> 2010/8/24 Mateusz Loskot<>:
>>> On 24/08/10 11:08, Jorge Arévalo wrote:
>>>>
>>>> A minor issue: the rtpostgis_reg database created for postinstall
>>>> check is not deleted by default. Mateusz, did you change it for any
>>>> reason? (r5822 was the previous version)
>>>
>>> Which changeset you mean exactly. The following is r5823
>>> and some changes in test/regress/run_test.in happened.
>>>
>>
>> Yes, sorry, my mistake. I mean the last change on
>> test/regress/run_test.in. A little change:
>>
>> http://trac.osgeo.org/postgis/changeset/5823/spike/wktraster/test/regress/run_test.in
>>
>> May I change the DROP option again, or is a bad idea?
>
>IMO, we should follow PostGIS' approach:
>
>http://trac.osgeo.org/postgis/changeset/5823/spike/wktraster/test/regress/run_test.in
>
>AFAIU, it is yes, I'd re-enable the drop option.
>
>Best regards,
>--
>Mateusz Loskot, http://mateusz.loskot.net
>_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. On 24/08/10 13:48, Pierre Racine wrote:
> Mateusz,
>
> Could you get your regression test to work?

Pierre,

Where does this expected value of -32768 come from in the following
messages in the rt_addband_expected file?

WARNING: Initial pixel value for 16BSI band got truncated from
-32769.000000 to -32768
-32768

WARNING: Initial pixel value for 16BSI band got truncated from
210000.460000 to -32768
-32768

Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. From thoses two lines in the rt_addband.sql file:

SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '16BSI', -32769, NULL), 3, 3);

and further:

SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '16BSI', 210000.46, NULL), 3, 3);

Pierre

>-----Original Message-----
>From: postgis-devel- [mailto:postgis-devel-
>] On Behalf Of Mateusz Loskot
>Sent: 31 août 2010 13:14
>To: PostGIS Development Discussion
>Cc: Pierre Racine; =?UTF-8?B?Sm9yZ2UgQXLDqXY=?=@lists.refractions.net
>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>
>On 24/08/10 13:48, Pierre Racine wrote:
>> Mateusz,
>>
>> Could you get your regression test to work?
>
>Pierre,
>
>Where does this expected value of -32768 come from in the following
>messages in the rt_addband_expected file?
>
>WARNING: Initial pixel value for 16BSI band got truncated from
>-32769.000000 to -32768
>-32768
>
>WARNING: Initial pixel value for 16BSI band got truncated from
>210000.460000 to -32768
>-32768
>
>Best regards,
>--
>Mateusz Loskot, http://mateusz.loskot.net
>_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. On 31/08/10 21:14, Pierre Racine wrote:
>>From thoses two lines in the rt_addband.sql file:
>
> SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '16BSI', -32769, NULL), 3, 3);
>
> and further:
>
> SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '16BSI', 210000.46, NULL), 3, 3);


Pierre,

I'm still confused why you are getting such strange values.
The value -32768 is invalid and unexpected, obviously.
It would indicate a bug.

Fortunately, I do not get such value, but I get the correct ones:

r1=# SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10,
2, 2, 0, 0, -1), 1, '16BSI', -32769, NULL), 3, 3);
WARNING: Initial pixel value for 16BSI band got truncated from
-32769.000000 to 32767
st_value
----------
32767
(1 row)

r1=# SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10,
2, 2, 0, 0, -1), 1, '16BSI', 210000.46, NULL), 3, 3);
WARNING: Initial pixel value for 16BSI band got truncated from
210000.460000 to 13392
st_value
----------
13392
(1 row)



Nevertheless, I've updated the expected output with correct values:

http://trac.osgeo.org/postgis/changeset/5907

Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
Charter Member of OSGeo, http://osgeo.org
_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. Jorge, Regina,

I get a fresh build of PostGIS raster and the regress test in rt_addband.sql fail on my machine. It was modified by Mateusz which was obtaining different results.

In the first case:

SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '16BSI', -32769, NULL), 3, 3);

Mateusz gets 32767 and I get -32768

In the second case:

SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '16BSI', 210000.46, NULL), 3, 3);

Mateusz gets 13392 and I get -32768

I suspect this is a Windows/Linux difference. Do the test works/fails for you? What results do you get?

Pierre

>-----Original Message-----
>From: Mateusz Loskot [mailto:]
>Sent: 4 septembre 2010 14:28
>To: PostGIS Development Discussion
>Cc: Pierre Racine
>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>
>On 31/08/10 21:14, Pierre Racine wrote:
>>>From thoses two lines in the rt_addband.sql file:
>>
>> SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '16BSI', -
>32769, NULL), 3, 3);
>>
>> and further:
>>
>> SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '16BSI',
>210000.46, NULL), 3, 3);
>
>
>Pierre,
>
>I'm still confused why you are getting such strange values.
>The value -32768 is invalid and unexpected, obviously.
>It would indicate a bug.
>
>Fortunately, I do not get such value, but I get the correct ones:
>
>r1=# SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10,
>2, 2, 0, 0, -1), 1, '16BSI', -32769, NULL), 3, 3);
>WARNING: Initial pixel value for 16BSI band got truncated from
>-32769.000000 to 32767
> st_value
>----------
> 32767
>(1 row)
>
>r1=# SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10,
>2, 2, 0, 0, -1), 1, '16BSI', 210000.46, NULL), 3, 3);
>WARNING: Initial pixel value for 16BSI band got truncated from
>210000.460000 to 13392
> st_value
>----------
> 13392
>(1 row)
>
>
>
>Nevertheless, I've updated the expected output with correct values:
>
>http://trac.osgeo.org/postgis/changeset/5907
>
>Best regards,
>--
>Mateusz Loskot, http://mateusz.loskot.net
>Charter Member of OSGeo, http://osgeo.org
_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. On Wed, Jan 12, 2011 at 7:47 PM, Pierre Racine
<> wrote:
> Jorge, Regina,
>
> I get a fresh build of PostGIS raster and the regress test in rt_addband.sql fail on my machine. It was modified by Mateusz which was obtaining different results.
>
> In the first case:
>
> SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '16BSI', -32769, NULL), 3, 3);
>
> Mateusz gets 32767 and I get -32768
>
> In the second case:
>
> SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '16BSI', 210000.46, NULL), 3, 3);
>
> Mateusz gets 13392 and I get -32768
>
> I suspect this is a Windows/Linux difference. Do the test works/fails for you? What results do you get?
>
> Pierre
>

Hi,

In my Linux (Ubuntu 9.10) box:

From SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10,
2, 2, 0, 0, -1), 1, '16BSI', -32769, NULL), 3, 3);

I'm getting -32768

And from SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10,
10, 2, 2, 0, 0, -1), 1, '16BSI', 210000.46, NULL), 3, 3);

I'm getting -32768 too

Using last version from trunk (r6604).

Best regards,

--
Jorge Arévalo
Internet & Mobilty Division, DEIMOS

http://mobility.grupodeimos.com/
http://gis4free.wordpress.com
http://geohash.org/ezjqgrgzz0g


>>-----Original Message-----
>>From: Mateusz Loskot [mailto:]
>>Sent: 4 septembre 2010 14:28
>>To: PostGIS Development Discussion
>>Cc: Pierre Racine
>>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>>
>>On 31/08/10 21:14, Pierre Racine wrote:
>>>>From thoses two lines in the rt_addband.sql file:
>>>
>>> SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '16BSI', -
>>32769, NULL), 3, 3);
>>>
>>> and further:
>>>
>>> SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '16BSI',
>>210000.46, NULL), 3, 3);
>>
>>
>>Pierre,
>>
>>I'm still confused why you are getting such strange values.
>>The value -32768 is invalid and unexpected, obviously.
>>It would indicate a bug.
>>
>>Fortunately, I do not get such value, but I get the correct ones:
>>
>>r1=# SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10,
>>2, 2, 0, 0, -1), 1, '16BSI', -32769, NULL), 3, 3);
>>WARNING:  Initial pixel value for 16BSI band got truncated from
>>-32769.000000 to 32767
>> st_value
>>----------
>>    32767
>>(1 row)
>>
>>r1=# SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10,
>>2, 2, 0, 0, -1), 1, '16BSI', 210000.46, NULL), 3, 3);
>>WARNING:  Initial pixel value for 16BSI band got truncated from
>>210000.460000 to 13392
>> st_value
>>----------
>>    13392
>>(1 row)
>>
>>
>>
>>Nevertheless, I've updated the expected output with correct values:
>>
>>http://trac.osgeo.org/postgis/changeset/5907
>>
>>Best regards,
>>--
>>Mateusz Loskot, http://mateusz.loskot.net
>>Charter Member of OSGeo, http://osgeo.org
> _______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. 2011/1/12 Jorge Arévalo <>:
> On Wed, Jan 12, 2011 at 7:47 PM, Pierre Racine
> <> wrote:
>> Jorge, Regina,
>>
>> I get a fresh build of PostGIS raster and the regress test in rt_addband.sql fail on my machine. It was modified by Mateusz which was obtaining different results.
>>
>> In the first case:
>>
>> SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '16BSI', -32769, NULL), 3, 3);
>>
>> Mateusz gets 32767 and I get -32768
>>
>> In the second case:
>>
>> SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '16BSI', 210000.46, NULL), 3, 3);
>>
>> Mateusz gets 13392 and I get -32768
>>
>> I suspect this is a Windows/Linux difference. Do the test works/fails for you? What results do you get?
>>
>> Pierre
>>
>
> Hi,
>
> In my Linux (Ubuntu 9.10) box:
>
> From SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10,
> 2, 2, 0, 0, -1), 1, '16BSI', -32769, NULL), 3, 3);
>
> I'm getting -32768
>
> And from SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10,
> 10, 2, 2, 0, 0, -1), 1, '16BSI', 210000.46, NULL), 3, 3);
>
> I'm getting -32768 too
>
> Using last version from trunk (r6604).
>
> Best regards,
>
> --
> Jorge Arévalo
> Internet & Mobilty Division, DEIMOS
>
> http://mobility.grupodeimos.com/
> http://gis4free.wordpress.com
> http://geohash.org/ezjqgrgzz0g
>
>


Sorry, I forgot to say the result of that test was an error too. So,
rt_addband.sql fails in my machine.



>>>-----Original Message-----
>>>From: Mateusz Loskot [mailto:]
>>>Sent: 4 septembre 2010 14:28
>>>To: PostGIS Development Discussion
>>>Cc: Pierre Racine
>>>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>>>
>>>On 31/08/10 21:14, Pierre Racine wrote:
>>>>>From thoses two lines in the rt_addband.sql file:
>>>>
>>>> SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '16BSI', -
>>>32769, NULL), 3, 3);
>>>>
>>>> and further:
>>>>
>>>> SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '16BSI',
>>>210000.46, NULL), 3, 3);
>>>
>>>
>>>Pierre,
>>>
>>>I'm still confused why you are getting such strange values.
>>>The value -32768 is invalid and unexpected, obviously.
>>>It would indicate a bug.
>>>
>>>Fortunately, I do not get such value, but I get the correct ones:
>>>
>>>r1=# SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10,
>>>2, 2, 0, 0, -1), 1, '16BSI', -32769, NULL), 3, 3);
>>>WARNING:  Initial pixel value for 16BSI band got truncated from
>>>-32769.000000 to 32767
>>> st_value
>>>----------
>>>    32767
>>>(1 row)
>>>
>>>r1=# SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10,
>>>2, 2, 0, 0, -1), 1, '16BSI', 210000.46, NULL), 3, 3);
>>>WARNING:  Initial pixel value for 16BSI band got truncated from
>>>210000.460000 to 13392
>>> st_value
>>>----------
>>>    13392
>>>(1 row)
>>>
>>>
>>>
>>>Nevertheless, I've updated the expected output with correct values:
>>>
>>>http://trac.osgeo.org/postgis/changeset/5907
>>>
>>>Best regards,
>>>--
>>>Mateusz Loskot, http://mateusz.loskot.net
>>>Charter Member of OSGeo, http://osgeo.org
>> _______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe.

  #20  
12-01-2011 07:06 PM
PostGIS : postgis-devel member admin is online now
User
 

Hi,

I've noticed current revision of WKT Raster is broken.
Running the core tests for r5841 ends up with assertion and
load of warnings:

./testapi
1111 pixtype = 2
Raster starts with 0 bands
First point on convexhull ring is 0.5,0.5
Second point on convexhull ring is 256.5,1280.5
Third point on convexhull ring is 1280.5,1536.5
Fourth point on convexhull ring is 1024.5,256.5
Fifth point on convexhull ring is 0.5,0.5
Testing polygonize function
Testing 1BB band
WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated
from 2 to 0
WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated
from 3 to 1
WARNING: Pixel value for 1BB band got truncated from 2 to 0
WARNING: Pixel value for 1BB band got truncated from 3 to 1
Testing 2BB band
WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated
from 4 to 0
WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated
from 5 to 1
WARNING: Pixel value for 2BUI band got truncated from 4 to 0
WARNING: Pixel value for 2BUI band got truncated from 5 to 1
Testing 4BUI band
WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated
from 16 to 0
WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated
from 17 to 1
WARNING: Pixel value for 4BUI band got truncated from 35 to 3
Testing 8BUI band
WARNING: rt_band_set_nodata: NODATA value for 8BUI band got truncated
from 256 to 0
WARNING: Pixel value for 8BUI band got truncated from 256 to 0
Testing 8BSI band
WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated
from -129 to 127
WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated
from 129 to -127
WARNING: Pixel value for 8BSI band got truncated from -129 to 127
WARNING: Pixel value for 8BSI band got truncated from 129 to -127
Testing 16BSI band
WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated
from -32769 to 32767
WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated
from 32769 to -32767
WARNING: Pixel value for 16BSI band got truncated from -32769 to 32767
WARNING: Pixel value for 16BSI band got truncated from 32769 to -32767
ERROR: Coordinates ouf of range
Testing 16BUI band
WARNING: rt_band_set_nodata: NODATA value for 16BUI band got truncated
from 65536 to 0
WARNING: Pixel value for 16BUI band got truncated from 65536 to 0
ERROR: Coordinates ouf of range
Testing 32BUI band
WARNING: rt_band_set_nodata: NODATA value for 32BUI band got truncated
from 4.29497e+09 to 0
WARNING: Pixel value for 32BUI band got truncated from 4.29497e+09 to 0
ERROR: Coordinates ouf of range
Testing 32BSI band
WARNING: rt_band_set_nodata: NODATA value for 32BSI band got truncated
from 2.14748e+09 to -2.14748e+09
WARNING: Pixel value for 32BSI band got truncated from 2.14748e+09 to
-2.14748e+09
ERROR: Coordinates ouf of range
Testing 32BF band
Testing 64BF band
Testing band hasnodata flag
testapi: rt_api.c:545: rt_band_get_data: Assertion `((void *)0) != band'
failed.
make[2]: *** [check] Aborted
make[2]: Leaving directory
`/home/mloskot/dev/wktraster/_svn/trunk/test/core'
make[1]: *** [check] Error 2
make[1]: Leaving directory `/home/mloskot/dev/wktraster/_svn/trunk/test'
make: *** [check] Error 2

The assertion is serious and happens in crucial function.
I checked and the last healthy revision seems to be r5811.

Pierre, Jorge, could you re-validate your recent commits?
You do run "make check" before every commit, don't you?

Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. On Mon, Aug 23, 2010 at 1:04 PM, Mateusz Loskot <> wrote:
> Hi,
>
> I've noticed current revision of WKT Raster is broken.
> Running the core tests for r5841 ends up with assertion and
> load of warnings:
>
> ./testapi
> 1111 pixtype = 2
> Raster starts with 0 bands
> First point on convexhull ring is 0.5,0.5
> Second point on convexhull ring is 256.5,1280.5
> Third point on convexhull ring is 1280.5,1536.5
> Fourth point on convexhull ring is 1024.5,256.5
> Fifth point on convexhull ring is 0.5,0.5
> Testing polygonize function
> Testing 1BB band
> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 2
> to 0
> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 3
> to 1
> WARNING: Pixel value for 1BB band got truncated from 2 to 0
> WARNING: Pixel value for 1BB band got truncated from 3 to 1
> Testing 2BB band
> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 4
> to 0
> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 5
> to 1
> WARNING: Pixel value for 2BUI band got truncated from 4 to 0
> WARNING: Pixel value for 2BUI band got truncated from 5 to 1
> Testing 4BUI band
> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
> 16 to 0
> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
> 17 to 1
> WARNING: Pixel value for 4BUI band got truncated from 35 to 3
> Testing 8BUI band
> WARNING: rt_band_set_nodata: NODATA value for 8BUI band got truncated from
> 256 to 0
> WARNING: Pixel value for 8BUI band got truncated from 256 to 0
> Testing 8BSI band
> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
> -129 to 127
> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
> 129 to -127
> WARNING: Pixel value for 8BSI band got truncated from -129 to 127
> WARNING: Pixel value for 8BSI band got truncated from 129 to -127
> Testing 16BSI band
> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
> -32769 to 32767
> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
> 32769 to -32767
> WARNING: Pixel value for 16BSI band got truncated from -32769 to 32767
> WARNING: Pixel value for 16BSI band got truncated from 32769 to -32767
> ERROR: Coordinates ouf of range
> Testing 16BUI band
> WARNING: rt_band_set_nodata: NODATA value for 16BUI band got truncated from
> 65536 to 0
> WARNING: Pixel value for 16BUI band got truncated from 65536 to 0
> ERROR: Coordinates ouf of range
> Testing 32BUI band
> WARNING: rt_band_set_nodata: NODATA value for 32BUI band got truncated from
> 4.29497e+09 to 0
> WARNING: Pixel value for 32BUI band got truncated from 4.29497e+09 to 0
> ERROR: Coordinates ouf of range
> Testing 32BSI band
> WARNING: rt_band_set_nodata: NODATA value for 32BSI band got truncated from
> 2.14748e+09 to -2.14748e+09
> WARNING: Pixel value for 32BSI band got truncated from 2.14748e+09 to
> -2.14748e+09
> ERROR: Coordinates ouf of range
> Testing 32BF band
> Testing 64BF band
> Testing band hasnodata flag
> testapi: rt_api.c:545: rt_band_get_data: Assertion `((void *)0) != band'
> failed.
> make[2]: *** [check] Aborted
> make[2]: Leaving directory
> `/home/mloskot/dev/wktraster/_svn/trunk/test/core'
> make[1]: *** [check] Error 2
> make[1]: Leaving directory `/home/mloskot/dev/wktraster/_svn/trunk/test'
> make: *** [check] Error 2
>
> The assertion is serious and happens in crucial function.
> I checked and the last healthy revision seems to be r5811.
>
> Pierre, Jorge, could you re-validate your recent commits?
> You do run "make check" before every commit, don't you?
>
> Best regards,
> --
> Mateusz Loskot, http://mateusz.loskot.net
> _______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. Probably my fault. Double check...

Pierre

>-----Original Message-----
>From: postgis-devel- [mailto:postgis-devel-
>] On Behalf Of Jorge Arévalo
>Sent: 23 août 2010 07:39
>To: PostGIS Development Discussion
>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>
>On Mon, Aug 23, 2010 at 1:04 PM, Mateusz Loskot <> wrote:
>> Hi,
>>
>> I've noticed current revision of WKT Raster is broken.
>> Running the core tests for r5841 ends up with assertion and
>> load of warnings:
>>
>> ./testapi
>> 1111 pixtype = 2
>> Raster starts with 0 bands
>> First point on convexhull ring is 0.5,0.5
>> Second point on convexhull ring is 256.5,1280.5
>> Third point on convexhull ring is 1280.5,1536.5
>> Fourth point on convexhull ring is 1024.5,256.5
>> Fifth point on convexhull ring is 0.5,0.5
>> Testing polygonize function
>> Testing 1BB band
>> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 2
>> to 0
>> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 3
>> to 1
>> WARNING: Pixel value for 1BB band got truncated from 2 to 0
>> WARNING: Pixel value for 1BB band got truncated from 3 to 1
>> Testing 2BB band
>> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 4
>> to 0
>> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 5
>> to 1
>> WARNING: Pixel value for 2BUI band got truncated from 4 to 0
>> WARNING: Pixel value for 2BUI band got truncated from 5 to 1
>> Testing 4BUI band
>> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
>> 16 to 0
>> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
>> 17 to 1
>> WARNING: Pixel value for 4BUI band got truncated from 35 to 3
>> Testing 8BUI band
>> WARNING: rt_band_set_nodata: NODATA value for 8BUI band got truncated from
>> 256 to 0
>> WARNING: Pixel value for 8BUI band got truncated from 256 to 0
>> Testing 8BSI band
>> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
>> -129 to 127
>> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
>> 129 to -127
>> WARNING: Pixel value for 8BSI band got truncated from -129 to 127
>> WARNING: Pixel value for 8BSI band got truncated from 129 to -127
>> Testing 16BSI band
>> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
>> -32769 to 32767
>> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
>> 32769 to -32767
>> WARNING: Pixel value for 16BSI band got truncated from -32769 to 32767
>> WARNING: Pixel value for 16BSI band got truncated from 32769 to -32767
>> ERROR: Coordinates ouf of range
>> Testing 16BUI band
>> WARNING: rt_band_set_nodata: NODATA value for 16BUI band got truncated from
>> 65536 to 0
>> WARNING: Pixel value for 16BUI band got truncated from 65536 to 0
>> ERROR: Coordinates ouf of range
>> Testing 32BUI band
>> WARNING: rt_band_set_nodata: NODATA value for 32BUI band got truncated from
>> 4.29497e+09 to 0
>> WARNING: Pixel value for 32BUI band got truncated from 4.29497e+09 to 0
>> ERROR: Coordinates ouf of range
>> Testing 32BSI band
>> WARNING: rt_band_set_nodata: NODATA value for 32BSI band got truncated from
>> 2.14748e+09 to -2.14748e+09
>> WARNING: Pixel value for 32BSI band got truncated from 2.14748e+09 to
>> -2.14748e+09
>> ERROR: Coordinates ouf of range
>> Testing 32BF band
>> Testing 64BF band
>> Testing band hasnodata flag
>> testapi: rt_api.c:545: rt_band_get_data: Assertion `((void *)0) != band'
>> failed.
>> make[2]: *** [check] Aborted
>> make[2]: Leaving directory
>> `/home/mloskot/dev/wktraster/_svn/trunk/test/core'
>> make[1]: *** [check] Error 2
>> make[1]: Leaving directory `/home/mloskot/dev/wktraster/_svn/trunk/test'
>> make: *** [check] Error 2
>>
>> The assertion is serious and happens in crucial function.
>> I checked and the last healthy revision seems to be r5811.
>>
>> Pierre, Jorge, could you re-validate your recent commits?
>> You do run "make check" before every commit, don't you?
>>
>> Best regards,
>> --
>> Mateusz Loskot, http://mateusz.loskot.net
>> _______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. fixed in r5864

Sorry for that. Probably forgot to make check.

Pierre

>-----Original Message-----
>From: postgis-devel- [mailto:postgis-devel-
>] On Behalf Of Pierre Racine
>Sent: 23 août 2010 09:24
>To: PostGIS Development Discussion
>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>
>Probably my fault. Double check...
>
>Pierre
>
>>-----Original Message-----
>>From: postgis-devel- [mailto:postgis-devel-
>>] On Behalf Of Jorge Arévalo
>>Sent: 23 août 2010 07:39
>>To: PostGIS Development Discussion
>>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>>
>>On Mon, Aug 23, 2010 at 1:04 PM, Mateusz Loskot <> wrote:
>>> Hi,
>>>
>>> I've noticed current revision of WKT Raster is broken.
>>> Running the core tests for r5841 ends up with assertion and
>>> load of warnings:
>>>
>>> ./testapi
>>> 1111 pixtype = 2
>>> Raster starts with 0 bands
>>> First point on convexhull ring is 0.5,0.5
>>> Second point on convexhull ring is 256.5,1280.5
>>> Third point on convexhull ring is 1280.5,1536.5
>>> Fourth point on convexhull ring is 1024.5,256.5
>>> Fifth point on convexhull ring is 0.5,0.5
>>> Testing polygonize function
>>> Testing 1BB band
>>> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 2
>>> to 0
>>> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 3
>>> to 1
>>> WARNING: Pixel value for 1BB band got truncated from 2 to 0
>>> WARNING: Pixel value for 1BB band got truncated from 3 to 1
>>> Testing 2BB band
>>> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 4
>>> to 0
>>> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 5
>>> to 1
>>> WARNING: Pixel value for 2BUI band got truncated from 4 to 0
>>> WARNING: Pixel value for 2BUI band got truncated from 5 to 1
>>> Testing 4BUI band
>>> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
>>> 16 to 0
>>> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
>>> 17 to 1
>>> WARNING: Pixel value for 4BUI band got truncated from 35 to 3
>>> Testing 8BUI band
>>> WARNING: rt_band_set_nodata: NODATA value for 8BUI band got truncated from
>>> 256 to 0
>>> WARNING: Pixel value for 8BUI band got truncated from 256 to 0
>>> Testing 8BSI band
>>> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
>>> -129 to 127
>>> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
>>> 129 to -127
>>> WARNING: Pixel value for 8BSI band got truncated from -129 to 127
>>> WARNING: Pixel value for 8BSI band got truncated from 129 to -127
>>> Testing 16BSI band
>>> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
>>> -32769 to 32767
>>> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
>>> 32769 to -32767
>>> WARNING: Pixel value for 16BSI band got truncated from -32769 to 32767
>>> WARNING: Pixel value for 16BSI band got truncated from 32769 to -32767
>>> ERROR: Coordinates ouf of range
>>> Testing 16BUI band
>>> WARNING: rt_band_set_nodata: NODATA value for 16BUI band got truncated from
>>> 65536 to 0
>>> WARNING: Pixel value for 16BUI band got truncated from 65536 to 0
>>> ERROR: Coordinates ouf of range
>>> Testing 32BUI band
>>> WARNING: rt_band_set_nodata: NODATA value for 32BUI band got truncated from
>>> 4.29497e+09 to 0
>>> WARNING: Pixel value for 32BUI band got truncated from 4.29497e+09 to 0
>>> ERROR: Coordinates ouf of range
>>> Testing 32BSI band
>>> WARNING: rt_band_set_nodata: NODATA value for 32BSI band got truncated from
>>> 2.14748e+09 to -2.14748e+09
>>> WARNING: Pixel value for 32BSI band got truncated from 2.14748e+09 to
>>> -2.14748e+09
>>> ERROR: Coordinates ouf of range
>>> Testing 32BF band
>>> Testing 64BF band
>>> Testing band hasnodata flag
>>> testapi: rt_api.c:545: rt_band_get_data: Assertion `((void *)0) != band'
>>> failed.
>>> make[2]: *** [check] Aborted
>>> make[2]: Leaving directory
>>> `/home/mloskot/dev/wktraster/_svn/trunk/test/core'
>>> make[1]: *** [check] Error 2
>>> make[1]: Leaving directory `/home/mloskot/dev/wktraster/_svn/trunk/test'
>>> make: *** [check] Error 2
>>>
>>> The assertion is serious and happens in crucial function.
>>> I checked and the last healthy revision seems to be r5811.
>>>
>>> Pierre, Jorge, could you re-validate your recent commits?
>>> You do run "make check" before every commit, don't you?
>>>
>>> Best regards,
>>> --
>>> Mateusz Loskot, http://mateusz.loskot.net
>>> _______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. Thanks for the fix, Pierre. But I'm getting a Segmentation Fault. caused by

memcpy(raster->bands[i], oldbands[oldi++], sizeof(rt_band));

(rt_core/rt_api.c, line 1351)

in Ubuntu Linux. Anyone else?

On Mon, Aug 23, 2010 at 4:53 PM, Pierre Racine
<> wrote:
> fixed in r5864
>
> Sorry for that. Probably forgot to make check.
>
> Pierre
>
>>-----Original Message-----
>>From: postgis-devel- [mailto:postgis-devel-
>>] On Behalf Of Pierre Racine
>>Sent: 23 août 2010 09:24
>>To: PostGIS Development Discussion
>>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>>
>>Probably my fault. Double check...
>>
>>Pierre
>>
>>>-----Original Message-----
>>>From: postgis-devel- [mailto:postgis-devel-
>>>] On Behalf Of Jorge Arévalo
>>>Sent: 23 août 2010 07:39
>>>To: PostGIS Development Discussion
>>>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>>>
>>>On Mon, Aug 23, 2010 at 1:04 PM, Mateusz Loskot <> wrote:
>>>> Hi,
>>>>
>>>> I've noticed current revision of WKT Raster is broken.
>>>> Running the core tests for r5841 ends up with assertion and
>>>> load of warnings:
>>>>
>>>> ./testapi
>>>> 1111 pixtype = 2
>>>> Raster starts with 0 bands
>>>> First point on convexhull ring is 0.5,0.5
>>>> Second point on convexhull ring is 256.5,1280.5
>>>> Third point on convexhull ring is 1280.5,1536.5
>>>> Fourth point on convexhull ring is 1024.5,256.5
>>>> Fifth point on convexhull ring is 0.5,0.5
>>>> Testing polygonize function
>>>> Testing 1BB band
>>>> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 2
>>>> to 0
>>>> WARNING: rt_band_set_nodata: NODATA value for 1BB band got truncated from 3
>>>> to 1
>>>> WARNING: Pixel value for 1BB band got truncated from 2 to 0
>>>> WARNING: Pixel value for 1BB band got truncated from 3 to 1
>>>> Testing 2BB band
>>>> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 4
>>>> to 0
>>>> WARNING: rt_band_set_nodata: NODATA value for 2BUI band got truncated from 5
>>>> to 1
>>>> WARNING: Pixel value for 2BUI band got truncated from 4 to 0
>>>> WARNING: Pixel value for 2BUI band got truncated from 5 to 1
>>>> Testing 4BUI band
>>>> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
>>>> 16 to 0
>>>> WARNING: rt_band_set_nodata: NODATA value for 4BUI band got truncated from
>>>> 17 to 1
>>>> WARNING: Pixel value for 4BUI band got truncated from 35 to 3
>>>> Testing 8BUI band
>>>> WARNING: rt_band_set_nodata: NODATA value for 8BUI band got truncated from
>>>> 256 to 0
>>>> WARNING: Pixel value for 8BUI band got truncated from 256 to 0
>>>> Testing 8BSI band
>>>> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
>>>> -129 to 127
>>>> WARNING: rt_band_set_nodata: NODATA value for 8BSI band got truncated from
>>>> 129 to -127
>>>> WARNING: Pixel value for 8BSI band got truncated from -129 to 127
>>>> WARNING: Pixel value for 8BSI band got truncated from 129 to -127
>>>> Testing 16BSI band
>>>> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
>>>> -32769 to 32767
>>>> WARNING: rt_band_set_nodata: NODATA value for 16BSI band got truncated from
>>>> 32769 to -32767
>>>> WARNING: Pixel value for 16BSI band got truncated from -32769 to 32767
>>>> WARNING: Pixel value for 16BSI band got truncated from 32769 to -32767
>>>> ERROR: Coordinates ouf of range
>>>> Testing 16BUI band
>>>> WARNING: rt_band_set_nodata: NODATA value for 16BUI band got truncated from
>>>> 65536 to 0
>>>> WARNING: Pixel value for 16BUI band got truncated from 65536 to 0
>>>> ERROR: Coordinates ouf of range
>>>> Testing 32BUI band
>>>> WARNING: rt_band_set_nodata: NODATA value for 32BUI band got truncated from
>>>> 4.29497e+09 to 0
>>>> WARNING: Pixel value for 32BUI band got truncated from 4.29497e+09 to 0
>>>> ERROR: Coordinates ouf of range
>>>> Testing 32BSI band
>>>> WARNING: rt_band_set_nodata: NODATA value for 32BSI band got truncated from
>>>> 2.14748e+09 to -2.14748e+09
>>>> WARNING: Pixel value for 32BSI band got truncated from 2.14748e+09 to
>>>> -2.14748e+09
>>>> ERROR: Coordinates ouf of range
>>>> Testing 32BF band
>>>> Testing 64BF band
>>>> Testing band hasnodata flag
>>>> testapi: rt_api.c:545: rt_band_get_data: Assertion `((void *)0) != band'
>>>> failed.
>>>> make[2]: *** [check] Aborted
>>>> make[2]: Leaving directory
>>>> `/home/mloskot/dev/wktraster/_svn/trunk/test/core'
>>>> make[1]: *** [check] Error 2
>>>> make[1]: Leaving directory `/home/mloskot/dev/wktraster/_svn/trunk/test'
>>>> make: *** [check] Error 2
>>>>
>>>> The assertion is serious and happens in crucial function.
>>>> I checked and the last healthy revision seems to be r5811.
>>>>
>>>> Pierre, Jorge, could you re-validate your recent commits?
>>>> You do run "make check" before every commit, don't you?
>>>>
>>>> Best regards,
>>>> --
>>>> Mateusz Loskot, http://mateusz.loskot.net
>>>> _______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. On 23/08/10 17:23, Jorge Arévalo wrote:
> Thanks for the fix, Pierre. But I'm getting a Segmentation Fault. caused by
>
> memcpy(raster->bands[i], oldbands[oldi++], sizeof(rt_band));
>
> (rt_core/rt_api.c, line 1351)
>
> in Ubuntu Linux. Anyone else?

I've quickly checked running make check and I confirm this issue.
Getting segmentation fault too.

Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. On Mon, Aug 23, 2010 at 11:11 PM, Pierre Racine
<> wrote:
> Could you test the last one. Thanks. Sorry for that my C is a bit rusty.
>
> Pierre
>

OK. make check is working fine for me now.

Jorge

>>-----Original Message-----
>>From: postgis-devel- [mailto:postgis-devel-
>>] On Behalf Of Mateusz Loskot
>>Sent: 23 août 2010 12:50
>>To: postgis-
>>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>>
>>On 23/08/10 17:23, Jorge Arévalo wrote:
>>> Thanks for the fix, Pierre. But I'm getting a Segmentation Fault. caused by
>>>
>>> memcpy(raster->bands[i], oldbands[oldi++], sizeof(rt_band));
>>>
>>> (rt_core/rt_api.c, line 1351)
>>>
>>> in Ubuntu Linux. Anyone else?
>>
>>I've quickly checked running make check and I confirm this issue.
>>Getting segmentation fault too.
>>
>>Best regards,
>>--
>>Mateusz Loskot, http://mateusz.loskot.net
>>_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. On 24/08/10 10:39, Jorge Arévalo wrote:
> On Mon, Aug 23, 2010 at 11:11 PM, Pierre Racine
> <> wrote:
>> Could you test the last one. Thanks. Sorry for that my C is a bit rusty.
>
> OK. make check is working fine for me now.

Works for me too, however regression test is failing:L


mloskot@vb-ubuntu910-x64:~/dev/wktraster/_svn/trunk$ make post-install-check

...
Creating spatial db rtpostgis_reg
TMPDIR is /tmp/rtpgis_reg_4435

PostgreSQL 8.4.4 on x86_64-pc-linux-gnu, compiled by GCC gcc-4.4.real
(Ubuntu 4.4.3-4ubuntu5) 4.4.3, 64-bit
Postgis 2.0.0SVN - 2010-08-04 11:37:17
GEOS: 3.3.0-CAPI-1.7.0
PROJ: Rel. 4.7.1, 23 September 2009
WKTRaster 0.1.6d - 2010-08-24 09:14:21

Running tests

check_raster_columns. ok
check_raster_overviews. ok
rt_io. ok
create_rt_bytea_test. ok
rt_bytea. ok
create_rt_box2d_test. ok
rt_box2d. ok
rt_addband. failed (diff expected obtained:
/tmp/rtpgis_reg_4435/test_8_diff)
create_rt_properties_test. ok
rt_dimensions. ok
rt_pixelsize. ok
rt_upperleft. ok
rt_rotation. ok
rt_georeference. ok
rt_set_properties. ok
create_rt_band_properties_test. ok
rt_band_properties. ok
rt_set_band_properties. ok
rt_pixelvalue. ok
create_rt_utility_test. ok
rt_utility. ok
create_rt_gist_test. ok
rt_above. ok
rt_below. ok
rt_contained. ok
rt_contain. ok
rt_left. ok
rt_overabove. ok
rt_overbelow. ok
rt_overlap. ok
rt_overleft. ok
rt_overright. ok
rt_right. ok
rt_same. ok
rt_spatial_relationship. ok
bug_test_car5. ok

Run tests: 36
Failed: 1
make[2]: Leaving directory
`/home/mloskot/dev/wktraster/_svn/trunk/test/regress'
make[1]: Leaving directory `/home/mloskot/dev/wktraster/_svn/trunk/test'
mloskot@vb-ubuntu910-x64:~/dev/wktraster/_svn/trunk$ cat
/tmp/rtpgis_reg_4435/test_8_diff
*** rt_addband_expected 2010-08-23 16:51:59.000000000 +0100
--- /tmp/rtpgis_reg_4435/test_8_out 2010-08-24 10:15:19.000000000 +0100
***************
*** 45,52 ****
154
WARNING: Initial pixel value for 8BUI band got truncated from
256.000000 to 255
255
! WARNING: Initial pixel value for 16BSI band got truncated from
-32769.000000 to -32768
! -32768
-32768
0
32767
--- 45,52 ----
154
WARNING: Initial pixel value for 8BUI band got truncated from
256.000000 to 255
255
! WARNING: Initial pixel value for 16BSI band got truncated from
-32769.000000 to 32767
! 32767
-32768
0
32767
***************
*** 54,61 ****
-32768
WARNING: Initial pixel value for 16BSI band got truncated from
21.460000 to 21
21
! WARNING: Initial pixel value for 16BSI band got truncated from
210000.460000 to -32768
! -32768
WARNING: Initial pixel value for 16BUI band got truncated from
-1.000000 to 65535
65535
0
--- 54,61 ----
-32768
WARNING: Initial pixel value for 16BSI band got truncated from
21.460000 to 21
21
! WARNING: Initial pixel value for 16BSI band got truncated from
210000.460000 to 13392
! 13392
WARNING: Initial pixel value for 16BUI band got truncated from
-1.000000 to 65535
65535
0
mloskot@vb-ubuntu910-x64:~/dev/wktraster/_svn/trunk$


Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. make post-install-check works for me too... Maybe is a problem with
PostGIS/GEOS/PROJ versions... here my versions

PostgreSQL 8.4.4 on i486-pc-linux-gnu, compiled by GCC gcc-4.4.real
(Ubuntu 4.4.1-4ubuntu8) 4.4.1, 32-bit
Postgis 1.4.2 - 2010-08-05 17:36:12
GEOS: 3.3.0-CAPI-1.6.1
PROJ: Rel. 4.7.1, 23 September 2009
WKTRaster 0.1.6d - 2010-08-18 13:49:03

I'll do the test with a newer version of postgis (2.0.0SVN, like you,
for example).

A minor issue: the rtpostgis_reg database created for postinstall
check is not deleted by default. Mateusz, did you change it for any
reason? (r5822 was the previous version)

2010/8/24 Mateusz Loskot <>:
> On 24/08/10 10:39, Jorge Arévalo wrote:
>>
>> On Mon, Aug 23, 2010 at 11:11 PM, Pierre Racine
>> <>  wrote:
>>>
>>> Could you test the last one. Thanks. Sorry for that my C is a bit rusty.
>>
>> OK. make check is working fine for me now.
>
> Works for me too, however regression test is failing:L
>
>
> mloskot@vb-ubuntu910-x64:~/dev/wktraster/_svn/trunk$ make post-install-check
>
> ...
> Creating spatial db rtpostgis_reg
> TMPDIR is /tmp/rtpgis_reg_4435
>
>  PostgreSQL 8.4.4 on x86_64-pc-linux-gnu, compiled by GCC gcc-4.4.real
> (Ubuntu 4.4.3-4ubuntu5) 4.4.3, 64-bit
>  Postgis 2.0.0SVN - 2010-08-04 11:37:17
>   GEOS: 3.3.0-CAPI-1.7.0
>   PROJ: Rel. 4.7.1, 23 September 2009
>  WKTRaster 0.1.6d - 2010-08-24 09:14:21
>
> Running tests
>
>  check_raster_columns. ok
>  check_raster_overviews. ok
>  rt_io. ok
>  create_rt_bytea_test. ok
>  rt_bytea. ok
>  create_rt_box2d_test. ok
>  rt_box2d. ok
>  rt_addband. failed (diff expected obtained:
> /tmp/rtpgis_reg_4435/test_8_diff)
>  create_rt_properties_test. ok
>  rt_dimensions. ok
>  rt_pixelsize. ok
>  rt_upperleft. ok
>  rt_rotation. ok
>  rt_georeference. ok
>  rt_set_properties. ok
>  create_rt_band_properties_test. ok
>  rt_band_properties. ok
>  rt_set_band_properties. ok
>  rt_pixelvalue. ok
>  create_rt_utility_test. ok
>  rt_utility. ok
>  create_rt_gist_test. ok
>  rt_above. ok
>  rt_below. ok
>  rt_contained. ok
>  rt_contain. ok
>  rt_left. ok
>  rt_overabove. ok
>  rt_overbelow. ok
>  rt_overlap. ok
>  rt_overleft. ok
>  rt_overright. ok
>  rt_right. ok
>  rt_same. ok
>  rt_spatial_relationship. ok
>  bug_test_car5. ok
>
> Run tests: 36
> Failed: 1
> make[2]: Leaving directory
> `/home/mloskot/dev/wktraster/_svn/trunk/test/regress'
> make[1]: Leaving directory `/home/mloskot/dev/wktraster/_svn/trunk/test'
> mloskot@vb-ubuntu910-x64:~/dev/wktraster/_svn/trunk$ cat
> /tmp/rtpgis_reg_4435/test_8_diff
> *** rt_addband_expected 2010-08-23 16:51:59.000000000 +0100
> --- /tmp/rtpgis_reg_4435/test_8_out     2010-08-24 10:15:19.000000000 +0100
> ***************
> *** 45,52 ****
>  154
>  WARNING:  Initial pixel value for 8BUI band got truncated from 256.000000
> to 255
>  255
> ! WARNING:  Initial pixel value for 16BSI band got truncated from
> -32769.000000 to -32768
> ! -32768
>  -32768
>  0
>  32767
> --- 45,52 ----
>  154
>  WARNING:  Initial pixel value for 8BUI band got truncated from 256.000000
> to 255
>  255
> ! WARNING:  Initial pixel value for 16BSI band got truncated from
> -32769.000000 to 32767
> ! 32767
>  -32768
>  0
>  32767
> ***************
> *** 54,61 ****
>  -32768
>  WARNING:  Initial pixel value for 16BSI band got truncated from 21.460000
> to 21
>  21
> ! WARNING:  Initial pixel value for 16BSI band got truncated from
> 210000.460000 to -32768
> ! -32768
>  WARNING:  Initial pixel value for 16BUI band got truncated from -1.000000
> to 65535
>  65535
>  0
> --- 54,61 ----
>  -32768
>  WARNING:  Initial pixel value for 16BSI band got truncated from 21.460000
> to 21
>  21
> ! WARNING:  Initial pixel value for 16BSI band got truncated from
> 210000.460000 to 13392
> ! 13392
>  WARNING:  Initial pixel value for 16BUI band got truncated from -1.000000
> to 65535
>  65535
>  0
> mloskot@vb-ubuntu910-x64:~/dev/wktraster/_svn/trunk$
>
>
> Best regards,
> --
> Mateusz Loskot, http://mateusz.loskot.net
>



--
Jorge Arévalo
DEIMOS Space
Internet & Mobilty Division
Ronda de Poniente 19. Edificio Fiteni VI, portal 2, 2º
28760 Tres Cantos (Madrid)


http://gis4free.wordpress.com
_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. On 24/08/10 11:08, Jorge Arévalo wrote:
> make post-install-check works for me too... Maybe is a problem with
> PostGIS/GEOS/PROJ versions... here my versions
>
> PostgreSQL 8.4.4 on i486-pc-linux-gnu, compiled by GCC gcc-4.4.real
> (Ubuntu 4.4.1-4ubuntu8) 4.4.1, 32-bit
> Postgis 1.4.2 - 2010-08-05 17:36:12
> GEOS: 3.3.0-CAPI-1.6.1
> PROJ: Rel. 4.7.1, 23 September 2009
> WKTRaster 0.1.6d - 2010-08-18 13:49:03
>
> I'll do the test with a newer version of postgis (2.0.0SVN, like you,
> for example).

OK, thanks.

> A minor issue: the rtpostgis_reg database created for postinstall
> check is not deleted by default. Mateusz, did you change it for any
> reason? (r5822 was the previous version)

Which changeset you mean exactly. The following is r5823
and some changes in test/regress/run_test.in happened.

Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. 2010/8/24 Mateusz Loskot <>:
> On 24/08/10 11:08, Jorge Arévalo wrote:
>>
>> A minor issue: the rtpostgis_reg database created for postinstall
>> check is not deleted by default. Mateusz, did you change it for any
>> reason? (r5822 was the previous version)
>
> Which changeset you mean exactly. The following is r5823
> and some changes in test/regress/run_test.in happened.
>

Yes, sorry, my mistake. I mean the last change on
test/regress/run_test.in. A little change:

http://trac.osgeo.org/postgis/changeset/5823/spike/wktraster/test/regress/run_test.in

May I change the DROP option again, or is a bad idea?

> Best regards,
> --
> Mateusz Loskot, http://mateusz.loskot.net
>



--
Jorge Arévalo
DEIMOS Space
Internet & Mobilty Division
Ronda de Poniente 19. Edificio Fiteni VI, portal 2, 2º
28760 Tres Cantos (Madrid)


http://gis4free.wordpress.com
_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. On 24/08/10 11:32, Jorge Arévalo wrote:
> 2010/8/24 Mateusz Loskot<>:
>> On 24/08/10 11:08, Jorge Arévalo wrote:
>>>
>>> A minor issue: the rtpostgis_reg database created for postinstall
>>> check is not deleted by default. Mateusz, did you change it for any
>>> reason? (r5822 was the previous version)
>>
>> Which changeset you mean exactly. The following is r5823
>> and some changes in test/regress/run_test.in happened.
>>
>
> Yes, sorry, my mistake. I mean the last change on
> test/regress/run_test.in. A little change:
>
> http://trac.osgeo.org/postgis/changeset/5823/spike/wktraster/test/regress/run_test.in
>
> May I change the DROP option again, or is a bad idea?

IMO, we should follow PostGIS' approach:

http://trac.osgeo.org/postgis/changeset/5823/spike/wktraster/test/regress/run_test.in

AFAIU, it is yes, I'd re-enable the drop option.

Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. Mateusz,

Could you get your regression test to work?

I reverted the drop option to "yes".

Pierre

>-----Original Message-----
>From: postgis-devel- [mailto:postgis-devel-
>] On Behalf Of Mateusz Loskot
>Sent: 24 août 2010 06:48
>To: Jorge Arévalo
>Cc: PostGIS Development Discussion
>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>
>On 24/08/10 11:32, Jorge Arévalo wrote:
>> 2010/8/24 Mateusz Loskot<>:
>>> On 24/08/10 11:08, Jorge Arévalo wrote:
>>>>
>>>> A minor issue: the rtpostgis_reg database created for postinstall
>>>> check is not deleted by default. Mateusz, did you change it for any
>>>> reason? (r5822 was the previous version)
>>>
>>> Which changeset you mean exactly. The following is r5823
>>> and some changes in test/regress/run_test.in happened.
>>>
>>
>> Yes, sorry, my mistake. I mean the last change on
>> test/regress/run_test.in. A little change:
>>
>> http://trac.osgeo.org/postgis/changeset/5823/spike/wktraster/test/regress/run_test.in
>>
>> May I change the DROP option again, or is a bad idea?
>
>IMO, we should follow PostGIS' approach:
>
>http://trac.osgeo.org/postgis/changeset/5823/spike/wktraster/test/regress/run_test.in
>
>AFAIU, it is yes, I'd re-enable the drop option.
>
>Best regards,
>--
>Mateusz Loskot, http://mateusz.loskot.net
>_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. On 24/08/10 13:48, Pierre Racine wrote:
> Mateusz,
>
> Could you get your regression test to work?

Pierre,

Where does this expected value of -32768 come from in the following
messages in the rt_addband_expected file?

WARNING: Initial pixel value for 16BSI band got truncated from
-32769.000000 to -32768
-32768

WARNING: Initial pixel value for 16BSI band got truncated from
210000.460000 to -32768
-32768

Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. From thoses two lines in the rt_addband.sql file:

SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '16BSI', -32769, NULL), 3, 3);

and further:

SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '16BSI', 210000.46, NULL), 3, 3);

Pierre

>-----Original Message-----
>From: postgis-devel- [mailto:postgis-devel-
>] On Behalf Of Mateusz Loskot
>Sent: 31 août 2010 13:14
>To: PostGIS Development Discussion
>Cc: Pierre Racine; =?UTF-8?B?Sm9yZ2UgQXLDqXY=?=@lists.refractions.net
>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>
>On 24/08/10 13:48, Pierre Racine wrote:
>> Mateusz,
>>
>> Could you get your regression test to work?
>
>Pierre,
>
>Where does this expected value of -32768 come from in the following
>messages in the rt_addband_expected file?
>
>WARNING: Initial pixel value for 16BSI band got truncated from
>-32769.000000 to -32768
>-32768
>
>WARNING: Initial pixel value for 16BSI band got truncated from
>210000.460000 to -32768
>-32768
>
>Best regards,
>--
>Mateusz Loskot, http://mateusz.loskot.net
>_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. On 31/08/10 21:14, Pierre Racine wrote:
>>From thoses two lines in the rt_addband.sql file:
>
> SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '16BSI', -32769, NULL), 3, 3);
>
> and further:
>
> SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '16BSI', 210000.46, NULL), 3, 3);


Pierre,

I'm still confused why you are getting such strange values.
The value -32768 is invalid and unexpected, obviously.
It would indicate a bug.

Fortunately, I do not get such value, but I get the correct ones:

r1=# SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10,
2, 2, 0, 0, -1), 1, '16BSI', -32769, NULL), 3, 3);
WARNING: Initial pixel value for 16BSI band got truncated from
-32769.000000 to 32767
st_value
----------
32767
(1 row)

r1=# SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10,
2, 2, 0, 0, -1), 1, '16BSI', 210000.46, NULL), 3, 3);
WARNING: Initial pixel value for 16BSI band got truncated from
210000.460000 to 13392
st_value
----------
13392
(1 row)



Nevertheless, I've updated the expected output with correct values:

http://trac.osgeo.org/postgis/changeset/5907

Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
Charter Member of OSGeo, http://osgeo.org
_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. Jorge, Regina,

I get a fresh build of PostGIS raster and the regress test in rt_addband.sql fail on my machine. It was modified by Mateusz which was obtaining different results.

In the first case:

SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '16BSI', -32769, NULL), 3, 3);

Mateusz gets 32767 and I get -32768

In the second case:

SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '16BSI', 210000.46, NULL), 3, 3);

Mateusz gets 13392 and I get -32768

I suspect this is a Windows/Linux difference. Do the test works/fails for you? What results do you get?

Pierre

>-----Original Message-----
>From: Mateusz Loskot [mailto:]
>Sent: 4 septembre 2010 14:28
>To: PostGIS Development Discussion
>Cc: Pierre Racine
>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>
>On 31/08/10 21:14, Pierre Racine wrote:
>>>From thoses two lines in the rt_addband.sql file:
>>
>> SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '16BSI', -
>32769, NULL), 3, 3);
>>
>> and further:
>>
>> SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '16BSI',
>210000.46, NULL), 3, 3);
>
>
>Pierre,
>
>I'm still confused why you are getting such strange values.
>The value -32768 is invalid and unexpected, obviously.
>It would indicate a bug.
>
>Fortunately, I do not get such value, but I get the correct ones:
>
>r1=# SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10,
>2, 2, 0, 0, -1), 1, '16BSI', -32769, NULL), 3, 3);
>WARNING: Initial pixel value for 16BSI band got truncated from
>-32769.000000 to 32767
> st_value
>----------
> 32767
>(1 row)
>
>r1=# SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10,
>2, 2, 0, 0, -1), 1, '16BSI', 210000.46, NULL), 3, 3);
>WARNING: Initial pixel value for 16BSI band got truncated from
>210000.460000 to 13392
> st_value
>----------
> 13392
>(1 row)
>
>
>
>Nevertheless, I've updated the expected output with correct values:
>
>http://trac.osgeo.org/postgis/changeset/5907
>
>Best regards,
>--
>Mateusz Loskot, http://mateusz.loskot.net
>Charter Member of OSGeo, http://osgeo.org
_______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. On Wed, Jan 12, 2011 at 7:47 PM, Pierre Racine
<> wrote:
> Jorge, Regina,
>
> I get a fresh build of PostGIS raster and the regress test in rt_addband.sql fail on my machine. It was modified by Mateusz which was obtaining different results.
>
> In the first case:
>
> SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '16BSI', -32769, NULL), 3, 3);
>
> Mateusz gets 32767 and I get -32768
>
> In the second case:
>
> SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '16BSI', 210000.46, NULL), 3, 3);
>
> Mateusz gets 13392 and I get -32768
>
> I suspect this is a Windows/Linux difference. Do the test works/fails for you? What results do you get?
>
> Pierre
>

Hi,

In my Linux (Ubuntu 9.10) box:

From SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10,
2, 2, 0, 0, -1), 1, '16BSI', -32769, NULL), 3, 3);

I'm getting -32768

And from SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10,
10, 2, 2, 0, 0, -1), 1, '16BSI', 210000.46, NULL), 3, 3);

I'm getting -32768 too

Using last version from trunk (r6604).

Best regards,

--
Jorge Arévalo
Internet & Mobilty Division, DEIMOS

http://mobility.grupodeimos.com/
http://gis4free.wordpress.com
http://geohash.org/ezjqgrgzz0g


>>-----Original Message-----
>>From: Mateusz Loskot [mailto:]
>>Sent: 4 septembre 2010 14:28
>>To: PostGIS Development Discussion
>>Cc: Pierre Racine
>>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>>
>>On 31/08/10 21:14, Pierre Racine wrote:
>>>>From thoses two lines in the rt_addband.sql file:
>>>
>>> SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '16BSI', -
>>32769, NULL), 3, 3);
>>>
>>> and further:
>>>
>>> SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '16BSI',
>>210000.46, NULL), 3, 3);
>>
>>
>>Pierre,
>>
>>I'm still confused why you are getting such strange values.
>>The value -32768 is invalid and unexpected, obviously.
>>It would indicate a bug.
>>
>>Fortunately, I do not get such value, but I get the correct ones:
>>
>>r1=# SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10,
>>2, 2, 0, 0, -1), 1, '16BSI', -32769, NULL), 3, 3);
>>WARNING:  Initial pixel value for 16BSI band got truncated from
>>-32769.000000 to 32767
>> st_value
>>----------
>>    32767
>>(1 row)
>>
>>r1=# SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10,
>>2, 2, 0, 0, -1), 1, '16BSI', 210000.46, NULL), 3, 3);
>>WARNING:  Initial pixel value for 16BSI band got truncated from
>>210000.460000 to 13392
>> st_value
>>----------
>>    13392
>>(1 row)
>>
>>
>>
>>Nevertheless, I've updated the expected output with correct values:
>>
>>http://trac.osgeo.org/postgis/changeset/5907
>>
>>Best regards,
>>--
>>Mateusz Loskot, http://mateusz.loskot.net
>>Charter Member of OSGeo, http://osgeo.org
> _______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. 2011/1/12 Jorge Arévalo <>:
> On Wed, Jan 12, 2011 at 7:47 PM, Pierre Racine
> <> wrote:
>> Jorge, Regina,
>>
>> I get a fresh build of PostGIS raster and the regress test in rt_addband.sql fail on my machine. It was modified by Mateusz which was obtaining different results.
>>
>> In the first case:
>>
>> SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '16BSI', -32769, NULL), 3, 3);
>>
>> Mateusz gets 32767 and I get -32768
>>
>> In the second case:
>>
>> SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '16BSI', 210000.46, NULL), 3, 3);
>>
>> Mateusz gets 13392 and I get -32768
>>
>> I suspect this is a Windows/Linux difference. Do the test works/fails for you? What results do you get?
>>
>> Pierre
>>
>
> Hi,
>
> In my Linux (Ubuntu 9.10) box:
>
> From SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10,
> 2, 2, 0, 0, -1), 1, '16BSI', -32769, NULL), 3, 3);
>
> I'm getting -32768
>
> And from SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10,
> 10, 2, 2, 0, 0, -1), 1, '16BSI', 210000.46, NULL), 3, 3);
>
> I'm getting -32768 too
>
> Using last version from trunk (r6604).
>
> Best regards,
>
> --
> Jorge Arévalo
> Internet & Mobilty Division, DEIMOS
>
> http://mobility.grupodeimos.com/
> http://gis4free.wordpress.com
> http://geohash.org/ezjqgrgzz0g
>
>


Sorry, I forgot to say the result of that test was an error too. So,
rt_addband.sql fails in my machine.



>>>-----Original Message-----
>>>From: Mateusz Loskot [mailto:]
>>>Sent: 4 septembre 2010 14:28
>>>To: PostGIS Development Discussion
>>>Cc: Pierre Racine
>>>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>>>
>>>On 31/08/10 21:14, Pierre Racine wrote:
>>>>>From thoses two lines in the rt_addband.sql file:
>>>>
>>>> SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '16BSI', -
>>>32769, NULL), 3, 3);
>>>>
>>>> and further:
>>>>
>>>> SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '16BSI',
>>>210000.46, NULL), 3, 3);
>>>
>>>
>>>Pierre,
>>>
>>>I'm still confused why you are getting such strange values.
>>>The value -32768 is invalid and unexpected, obviously.
>>>It would indicate a bug.
>>>
>>>Fortunately, I do not get such value, but I get the correct ones:
>>>
>>>r1=# SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10,
>>>2, 2, 0, 0, -1), 1, '16BSI', -32769, NULL), 3, 3);
>>>WARNING:  Initial pixel value for 16BSI band got truncated from
>>>-32769.000000 to 32767
>>> st_value
>>>----------
>>>    32767
>>>(1 row)
>>>
>>>r1=# SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10,
>>>2, 2, 0, 0, -1), 1, '16BSI', 210000.46, NULL), 3, 3);
>>>WARNING:  Initial pixel value for 16BSI band got truncated from
>>>210000.460000 to 13392
>>> st_value
>>>----------
>>>    13392
>>>(1 row)
>>>
>>>
>>>
>>>Nevertheless, I've updated the expected output with correct values:
>>>
>>>http://trac.osgeo.org/postgis/changeset/5907
>>>
>>>Best regards,
>>>--
>>>Mateusz Loskot, http://mateusz.loskot.net
>>>Charter Member of OSGeo, http://osgeo.org
>> _______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe. Good! So I'll fix them back and wait to see why Mat gets a different result if he still do so.

Pierre

>-----Original Message-----
>From: postgis-devel- [mailto:postgis-devel-
>] On Behalf Of Jorge Arévalo
>Sent: 12 janvier 2011 14:04
>To: PostGIS Development Discussion
>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>
>2011/1/12 Jorge Arévalo <>:
>> On Wed, Jan 12, 2011 at 7:47 PM, Pierre Racine
>> <> wrote:
>>> Jorge, Regina,
>>>
>>> I get a fresh build of PostGIS raster and the regress test in rt_addband.sql fail on my machine. It
>was modified by Mateusz which was obtaining different results.
>>>
>>> In the first case:
>>>
>>> SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '16BSI', -
>32769, NULL), 3, 3);
>>>
>>> Mateusz gets 32767 and I get -32768
>>>
>>> In the second case:
>>>
>>> SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '16BSI',
>210000.46, NULL), 3, 3);
>>>
>>> Mateusz gets 13392 and I get -32768
>>>
>>> I suspect this is a Windows/Linux difference. Do the test works/fails for you? What results do you
>get?
>>>
>>> Pierre
>>>
>>
>> Hi,
>>
>> In my Linux (Ubuntu 9.10) box:
>>
>> From SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10,
>> 2, 2, 0, 0, -1), 1, '16BSI', -32769, NULL), 3, 3);
>>
>> I'm getting -32768
>>
>> And from SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10,
>> 10, 2, 2, 0, 0, -1), 1, '16BSI', 210000.46, NULL), 3, 3);
>>
>> I'm getting -32768 too
>>
>> Using last version from trunk (r6604).
>>
>> Best regards,
>>
>> --
>> Jorge Arévalo
>> Internet & Mobilty Division, DEIMOS
>>
>> http://mobility.grupodeimos.com/
>> http://gis4free.wordpress.com
>> http://geohash.org/ezjqgrgzz0g
>>
>>
>
>
>Sorry, I forgot to say the result of that test was an error too. So,
>rt_addband.sql fails in my machine.
>
>
>
>>>>-----Original Message-----
>>>>From: Mateusz Loskot [mailto:]
>>>>Sent: 4 septembre 2010 14:28
>>>>To: PostGIS Development Discussion
>>>>Cc: Pierre Racine
>>>>Subject: Re: [postgis-devel] [wktraster] Core tests failure for r5841
>>>>
>>>>On 31/08/10 21:14, Pierre Racine wrote:
>>>>>>From thoses two lines in the rt_addband.sql file:
>>>>>
>>>>> SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '16BSI', -
>>>>32769, NULL), 3, 3);
>>>>>
>>>>> and further:
>>>>>
>>>>> SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10, 2, 2, 0, 0, -1), 1, '16BSI',
>>>>210000.46, NULL), 3, 3);
>>>>
>>>>
>>>>Pierre,
>>>>
>>>>I'm still confused why you are getting such strange values.
>>>>The value -32768 is invalid and unexpected, obviously.
>>>>It would indicate a bug.
>>>>
>>>>Fortunately, I do not get such value, but I get the correct ones:
>>>>
>>>>r1=# SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10,
>>>>2, 2, 0, 0, -1), 1, '16BSI', -32769, NULL), 3, 3);
>>>>WARNING: Initial pixel value for 16BSI band got truncated from
>>>>-32769.000000 to 32767
>>>> st_value
>>>>----------
>>>> 32767
>>>>(1 row)
>>>>
>>>>r1=# SELECT St_Value(ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 10, 10,
>>>>2, 2, 0, 0, -1), 1, '16BSI', 210000.46, NULL), 3, 3);
>>>>WARNING: Initial pixel value for 16BSI band got truncated from
>>>>210000.460000 to 13392
>>>> st_value
>>>>----------
>>>> 13392
>>>>(1 row)
>>>>
>>>>
>>>>
>>>>Nevertheless, I've updated the expected output with correct values:
>>>>
>>>>http://trac.osgeo.org/postgis/changeset/5907
>>>>
>>>>Best regards,
>>>>--
>>>>Mateusz Loskot, http://mateusz.loskot.net
>>>>Charter Member of OSGeo, http://osgeo.org
>>> _______________________________________________
___________________________________________________

Posted on the PostGIS : postgis-devel mailing list. Go to http://postgis.refractions.net/mailman/listinfo/postgis-devel to subscribe.





NewsArc Lists  |  Culture Pages   |  Computing Archive  |  Media-Pages
Link to this page on your blog or website by copying the HTML code below and pasting it into your site: