Re: [gdal-dev] Query regarding using gdalwarp with cutlineSQL

2020-08-01 Thread CainĂ£ K . Campos
I believe that you should use either the cutlineWhere or the cutlineSQL. When I want a single field selection, I use the cutlineWhere, when it is more complex I use the cutlineSQL On Fri, Jul 31, 2020 at 6:40 PM Luke wrote: > You need single quotes around your string literal: > >

Re: [gdal-dev] GetSpatialRef, OGRSpatialReference and memory leaks ?

2020-08-01 Thread Andrew C Aitchison
On Sat, 1 Aug 2020, Andrew Bell wrote: Thanks for the hint. I had assumed that the caller was taking responsibility for it. Seems like it would depend on what you're doing with the pointer after you return it. On Sat, Aug 1, 2020, 5:50 AM Andrew C Aitchison wrote: I would like to define

Re: [gdal-dev] GetSpatialRef, OGRSpatialReference and memory leaks ?

2020-08-01 Thread Andrew Bell
Seems like it would depend on what you're doing with the pointer after you return it. On Sat, Aug 1, 2020, 5:50 AM Andrew C Aitchison wrote: > > I would like to define GetSpatialRef() for my raster driver as something > like: > > const OGRSpatialReference* GetSpatialRef() const override {

[gdal-dev] GetSpatialRef, OGRSpatialReference and memory leaks ?

2020-08-01 Thread Andrew C Aitchison
I would like to define GetSpatialRef() for my raster driver as something like: const OGRSpatialReference* GetSpatialRef() const override { OGRSpatialReference* poSRS = new OGRSpatialReference(); if (poSRS->importFromEPSGA(27700)!=OGRERR_NONE) { delete