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

2014-08-08 Thread Jorge Arevalo
Hello, On Fri, Aug 8, 2014 at 10:40 AM, Even Rouault wrote: > Le vendredi 08 août 2014 10:26:27, Jorge Arevalo a écrit : > > On Thu, Aug 7, 2014 at 10:28 PM, Even Rouault < > even.roua...@spatialys.com> > > > > wrote: > > > Le jeudi 07 août 2014 22:26:07, Varun Saraf a écrit : > > > > Hello, >

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

2014-08-08 Thread Even Rouault
Le vendredi 08 août 2014 10:26:27, Jorge Arevalo a écrit : > On Thu, Aug 7, 2014 at 10:28 PM, Even Rouault > > wrote: > > Le jeudi 07 août 2014 22:26:07, Varun Saraf a écrit : > > > Hello, > > > > > > Thanks. I will use that. > > > > > > When the PostGISRasterDataset::SetProjection method retur

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

2014-08-08 Thread Jorge Arevalo
On Thu, Aug 7, 2014 at 10:28 PM, Even Rouault wrote: > 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

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

2014-08-07 Thread Even Rouault
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 followi

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

2014-08-07 Thread Varun Saraf
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? Regard

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

2014-08-07 Thread Even Rouault
Le jeudi 07 août 2014 21:26:31, Varun Saraf a écrit : > http://trac.osgeo.org/gdal/browser/trunk/gdal/frmts/postgisraster/postgisra > sterdataset.cpp#L3024 I suggested you to look at OGRPGDataSource::FetchSRSId() ( http://trac.osgeo.org/gdal/browser/trunk/gdal/ogr/ogrsf_frmts/pg/ogrpgdatasource.

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

2014-08-07 Thread Varun Saraf
Hello, When I execute the following query [1], the return value is NULL as there is no exact match. What query should I use, instead of this one. [1] http://trac.osgeo.org/gdal/browser/trunk/gdal/frmts/postgisraster/postgisrasterdataset.cpp#L3024 Regards, Varun Saraf On Fri, Aug 8, 2014 at 12:5

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

2014-08-07 Thread Even Rouault
Le jeudi 07 août 2014 21:11:13, Varun Saraf a écrit : > Hello, > > After Create() exists, SetProjection is called. For my given input, the > variable pszProjectionRef has a value : > PROJCS["WGS 84 / UTM zone 44N",GEOGCS["WGS > 84",DATUM["WGS_1984",SPHEROID["WGS > 84",6378137,298.257223563,AUTHORI

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

2014-08-07 Thread Varun Saraf
Hello, After Create() exists, SetProjection is called. For my given input, the variable pszProjectionRef has a value : PROJCS["WGS 84 / UTM zone 44N",GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS 84",6378137,298.257223563,AUTHORITY["EPSG","7030"]],AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich",0],U

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

2014-08-04 Thread Even Rouault
Le lundi 04 août 2014 22:53:03, Varun Saraf a écrit : > Hello, > > Commenting poDriver->pfnCreateCopy doesn't seem to work. It is still > calling the CreateCopy() method. Check twice... How could GDAL call PostgisRasterDataset::CreateCopy() is nothing points to it ? > I will try doing the testi

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

2014-08-04 Thread Varun Saraf
Hello, Commenting poDriver->pfnCreateCopy doesn't seem to work. It is still calling the CreateCopy() method. I will try doing the testing with a script and get back to you. Regards, Varun Saraf On Tue, Aug 5, 2014 at 2:12 AM, Even Rouault wrote: > Le lundi 04 août 2014 22:38:20, Varun Saraf a

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

2014-08-04 Thread Even Rouault
Le lundi 04 août 2014 22:38:20, Varun Saraf a écrit : > Hello, > > Thank you for this information. I will explicitly call Create() using a > script. Is the IWriteBlock method to be tested in a similar manner? Note > that pData buffer is passed to this method as an argument, which I will > have to

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

2014-08-04 Thread Varun Saraf
Hello, Thank you for this information. I will explicitly call Create() using a script. Is the IWriteBlock method to be tested in a similar manner? Note that pData buffer is passed to this method as an argument, which I will have to generate and pass to it. Any suggestions how I should generate thi

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

2014-08-04 Thread Even Rouault
Le lundi 04 août 2014 21:38:36, Varun Saraf a écrit : > Hello, > > Yes, the code on the github repository is the latest state. I was trying > the following input queries : > > (1) Assuming that my Create() will be called. > gdal_translate --debug ON -of PostGISRaster ~/GSoC/ap_clip5x5.tif > PG:"

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

2014-08-04 Thread Varun Saraf
Hello, Yes, the code on the github repository is the latest state. I was trying the following input queries : (1) Assuming that my Create() will be called. gdal_translate --debug ON -of PostGISRaster ~/GSoC/ap_clip5x5.tif PG:"host=localhost port=5432 user=postgres password=postgres dbname=test12

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

2014-08-04 Thread Even Rouault
Le lundi 04 août 2014 14:39:52, Varun Saraf a écrit : > Hi, > > Below is my eleventh weekly report. > > *What did I do this week?* > >- There are some issues with the calling of different methods. My method >PostGISRasterDataset::Create() is not being called. Tried to resolve > that. V

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

2014-08-04 Thread Varun Saraf
Hi, Below is my eleventh weekly report. *What did I do this week?* - There are some issues with the calling of different methods. My method PostGISRasterDataset::Create() is not being called. Tried to resolve that. - Fixed some small bugs and removed unnecessary variables that were