Ondrej,

I don't see any obviously related fixes since 1.9.1 in the history for
the NTv2 writer:

  http://trac.osgeo.org/gdal/log/trunk/gdal/frmts/raw/ntv2dataset.cpp

Perhaps you could translate the data to a GeoTIFF and then go from
that to NTv2.  Assuming the problem persists on the translation to
GeoTIFF that would give you something easy you could file a ticket on.

I suspect there is something odd about your data configuration that is
confusing the NTv2 driver which is pretty new and rarely used.

Best regards,
Frank

On Thu, Mar 28, 2013 at 8:49 AM, Ondrej Chlup <[email protected]> wrote:
> Hi,
>
> I was using GDAL version 1.9.1 to get NTv2 grid from raster in PostGIS using
> gdal_translate. I got the error: 0*** buffer overflow detected ***:
> gdal_translate terminated
> I was trying to use GDAL version 1.9.2 but with the same error. Is there any
> way how to fix it?
>
> Thanks,
>
> Ondrej
>
> Code:
> gdal_translate -of NTv2 "PG:dbname='dataz' schema='public'
> table='rast_ntv_b' column='rast_ntv' mode='2'" rast_ntv4.gsb
> Input file size is 20, 20
> 0*** buffer overflow detected ***: gdal_translate terminated
> ======= Backtrace: =========
> /lib/i386-linux-gnu/libc.so.6(__fortify_fail+0x45)[0xb6b09045]
> /lib/i386-linux-gnu/libc.so.6(+0x102e1a)[0xb6b07e1a]
> /lib/i386-linux-gnu/libc.so.6(+0x10214d)[0xb6b0714d]
> /usr/lib/libgdal.so.1(_ZN20PostGISRasterDataset9IRasterIOE10GDALRWFlagiiiiPvii12GDALDataTypeiPiiii+0x3a8)[0xb708eef8]
> /usr/lib/libgdal.so.1(_ZN11GDALDataset8RasterIOE10GDALRWFlagiiiiPvii12GDALDataTypeiPiiii+0x5b1)[0xb715d581]
> /usr/lib/libgdal.so.1(GDALDatasetCopyWholeRaster+0x4ef)[0xb7187b1f]
> /usr/lib/libgdal.so.1(_ZN10GDALDriver17DefaultCreateCopyEPKcP11GDALDatasetiPPcPFidS1_PvES6_+0x67d)[0xb71622ed]
> /usr/lib/libgdal.so.1(_ZN10GDALDriver10CreateCopyEPKcP11GDALDatasetiPPcPFidS1_PvES6_+0x173)[0xb7162683]
> /usr/lib/libgdal.so.1(GDALCreateCopy+0x53)[0xb7162703]
> gdal_translate[0x804ca0c]
> gdal_translate[0x8049b41]
> /lib/i386-linux-gnu/libc.so.6(__libc_start_main+0xf3)[0xb6a1e4d3]
> gdal_translate[0x8049b65]
>
>
> _______________________________________________
> gdal-dev mailing list
> [email protected]
> http://lists.osgeo.org/mailman/listinfo/gdal-dev



-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, [email protected]
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Software Developer
_______________________________________________
gdal-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to