[gdal-dev] GSoC 2014 Weekly Report 11 : GDAL PostGIS Raster driver

Even Rouault even.rouault at spatialys.com
Thu Aug 7 13:28:22 PDT 2014


Le jeudi 07 août 2014 22:26:07, Varun Saraf a écrit :
> Hello,
> 
> Thanks. I will use that.
> 
> When the PostGISRasterDataset::SetProjection method returns, a segmentation
> fault is being shown. The methods I have made changes to IWriteBlock,
> IRasterIO are not being called. What is the following flow of methods that
> are called? What could be the issue?

You're in the best position to know ;-) More seriously without looking at the 
code, I can only suggest you attaching a debugger or running Valgrind to 
identify the flaw. (assuming you are developing on Linux)

> 
> Regards,
> Varun Saraf
> 
> 
> On Fri, Aug 8, 2014 at 1:22 AM, Even Rouault <even.rouault at spatialys.com>
> 
> wrote:
> > Le jeudi 07 août 2014 21:26:31, Varun Saraf a écrit :
> > 
> > http://trac.osgeo.org/gdal/browser/trunk/gdal/frmts/postgisraster/postgis
> > ra
> > 
> > > sterdataset.cpp#L3024
> > 
> > I suggested you to look at OGRPGDataSource::FetchSRSId() (
> > 
> > http://trac.osgeo.org/gdal/browser/trunk/gdal/ogr/ogrsf_frmts/pg/ogrpgdat
> > asource.cpp )
> > . It contains everything you need. You could/should actually reuse it
> > directly
> > in PostgisRaster.
> > 
> > --
> > Spatialys - Geospatial professional services
> > http://www.spatialys.com

-- 
Spatialys - Geospatial professional services
http://www.spatialys.com


More information about the gdal-dev mailing list