[gdal-dev] OGR2OGR seem lost the field with primary key . ex [OGR2OGR seem last ...]

2012-01-13 Thread aperi2007
Hi, I notice that try-ing exporting from Postgres using ogr2ogr.exe It lost completely the primary key filed if that is a integer field. Instead it don't lost the same primary key field if it is a varchar type. Is a know bug this ? I'm use the gdal 1.9. I try exporting to a spatialite or to a

[gdal-dev] OGR2OGR seem last the field with primary key

2012-01-13 Thread aperi2007
Hi, I notice that try-ing exporting from Postgres using ogr2ogr.exe It lost completely the primary key filed if that is a integer field. Instead it don't lost the same primary key field if it is a varchar type. Is a know bug this ? I'm use the gdal 1.9. I try exporting to a spatialite or to a

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

2012-01-13 Thread Brian Case
Anton, you can get the extents of the modis swath file from the metadata. you have to use the the geolocation arrays to create a grid from the swath file. the further left and right from the center of the image the more area the single pixel in the swath file covers. also modis is a pushbroom sen

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

2012-01-13 Thread AksakTimur
Martin, This code below seems to work well: ... checking if the band is a paletted one ... else if (bandPalette) { // Paletted map int pixelSpace=1*numBytesPerPixel; int lineSpace=destWidth * pixelSpace; unsigned char *rawImageData; rawImageData = new unsigned char[destWidt

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

2012-01-13 Thread Anton Korosov
Dear Brian, thank you very much for your reply! The '-geoloc' switch does produce the error about points failing to transform but the principal limitation is that I cannot use the '-te' switch because I cannot know the extent in advance. My task is to overlay one image (either projected like