RE: [gdal-dev] Possible bug in OGRSpatialReference:: importFromWkt()

2012-01-12 Thread Martin Chapman
Frank, Ok, I'm cool with that, I just wanted to make sure it wasn't a bug. Thanks for the quick response! Best regards, Martin -Original Message- From: fwarmer...@gmail.com [mailto:fwarmer...@gmail.com] On Behalf Of Frank Warmerdam Sent: Thursday, January 12, 2012 8:17 PM To: Martin Cha

Re: [gdal-dev] Possible bug in OGRSpatialReference:: importFromWkt()

2012-01-12 Thread Frank Warmerdam
On Thu, Jan 12, 2012 at 6:30 PM, Martin Chapman wrote: > Frank, > > > > I think there is a bug in OGRSpatialReference::importFromWkt().  I did the > following: > > > > char* wkt = NULL; > > sourceSRS.exportToWkt(&wkt); > > targetSRS.importFromWkt(&wkt); > > CPLFree(wkt); > > > > It blows up on the

RE: [gdal-dev] Problem w\images with one raster band

2012-01-12 Thread Martin Chapman
Sorry, I said four bands when I meant three. Marty -Original Message- From: gdal-dev-boun...@lists.osgeo.org [mailto:gdal-dev-boun...@lists.osgeo.org] On Behalf Of Martin Chapman Sent: Thursday, January 12, 2012 8:11 PM To: 'Joaquim Luis'; 'Timur Chabayev' Cc: gdal-dev@lists.osgeo.org Sub

RE: [gdal-dev] Problem w\images with one raster band

2012-01-12 Thread Martin Chapman
An easy way to handle this would be to create a 3 band bitmap using the windows gdi, in other words the bitmapinfo bits should be 24 (8 bits for each band). Then use the single band from the source image for every band . Red, green and blue. Otherwise you will have to handle palletted like Joaqu

Re: [gdal-dev] Warping onto an image with only GCPs with Python

2012-01-12 Thread Brian Case
Anton EOS_SWATH has 2 geolocation arrays, you might try the -geoloc switch to gdalwarp, otherwise it creates a handfull of gcps from the arrays, if you get a error about points failing to transform, set the output extent with the -te switch. also you could try the swath2grid application in https:

[gdal-dev] Possible bug in OGRSpatialReference:: importFromWkt()

2012-01-12 Thread Martin Chapman
Frank, I think there is a bug in OGRSpatialReference::importFromWkt(). I did the following: char* wkt = NULL; sourceSRS.exportToWkt(&wkt); targetSRS.importFromWkt(&wkt); CPLFree(wkt); It blows up on the CPLFree(). Why you might ask. Because it looks like the importFromWkt() incre

Re: [gdal-dev] Loading data in MSSQL using ogr2ogr

2012-01-12 Thread Tamas Szekeres
Jeremy, This seems to be a reasonable requirement. You should create a ticket for this issue at: http://trac.osgeo.org/gdal/newticket Best regards, Tamas 2012/1/12 Jeremy Palmer > Hi, > > I'm trying to load a CSV file into an existing MSSQL 2008 table using > ogr2ogr: > > ogr2ogr -preserve_

[gdal-dev] Re: Are these WFS issues worth filing tickets?

2012-01-12 Thread Jukka Rahkonen
Even Rouault mines-paris.org> writes: > > > > I don't want to deny there is a problem when issuing ogrinfo, but I'm not > > > sure that setting a default MAXFEATURES on client side is appropriate. > > > The issue is more with GetExtent() and the fact that the reported extent > > > in GetCapabili

[gdal-dev] Warping onto an image with only GCPs with Python

2012-01-12 Thread Anton Korosov
Hello everyone! Some time ago I've asked about problems with gdalwarp (the e-mails below). I tried to utilize Python binding instead but got the same results. This brief script overlays the Europe map (GeoTIFF with geotransform) onto a MERIS images (PDS file with GCPs). But the result looks