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] GDAL, ESRI Shapefiles and nested polygons

2014-08-07 Thread Even Rouault
Le jeudi 07 août 2014 22:20:34, Graeme Wilkie a écrit : > Hi, > > I'm trying to use GDAL to read ESRI shapefiles. I've got it working for > points, lines, polygons, polylines and multipoint but I'm having problems > with polygons that contain polygons in the same feature. > > > > The following

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

[gdal-dev] GDAL, ESRI Shapefiles and nested polygons

2014-08-07 Thread Graeme Wilkie
Hi, I'm trying to use GDAL to read ESRI shapefiles. I've got it working for points, lines, polygons, polylines and multipoint but I'm having problems with polygons that contain polygons in the same feature. The following is a cut down code sample of the code I'm using. The problem I have is th

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] GPKG application_id

2014-08-07 Thread Even Rouault
Hi Paul, > As we found when developing gpkg, setting the PRAGMA application_id can be > tricky given the general state of installed sqlite libraries on a randomly > chosen system: generally, the libraries are old enough to not support that > pragma! For reference: old sqlite lib can be a problem

[gdal-dev] GPKG application_id

2014-08-07 Thread Paul Ramsey
As we found when developing gpkg, setting the PRAGMA application_id can be tricky given the general state of installed sqlite libraries on a randomly chosen system: generally, the libraries are old enough to not support that pragma! We ended up hacking around it by directly editing the bytes in

Re: [gdal-dev] Problems using the OCI plugin with ogr2ogr

2014-08-07 Thread David R. Robison
Looking at wireshark it appears that it never attempts a TCP connection to the database. David David R Robison Open Roads Consulting, Inc. 103 Watson Road, Chesapeake, VA 23320 phone: (757) 546-3401 e-mail: david.robi...@openroadsconsulting.com web: http://openroadsconsulting.com blog: http://the

[gdal-dev] Problems using the OCI plugin with ogr2ogr

2014-08-07 Thread David R. Robison
I am trying to use ogr2ogr to copy data from Oracle spatial to PostgreSQL. My command line is: OGR2OGR -overwrite -f "PostgreSQL" -s_srs 141122 -t_srs 4326 PG:"host=localhost user=Postgres password=xx dbname=penngis" OCI:"GEOADMIN/geoadmin@(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.1