Re: [gdal-dev] Re: TIFF write and comparison

2010-09-13 Thread Akhil Jaggarwal
Hi, Thank you for the reply. Calls to GDALRasterIO() are OK. Which I assume in a line interleaved format look like this: GDALRasterIO(hBand, GF_Read, 0,0, i, j, pafScanline, nBlockXSize, nBlockYSize, GDT_Int16, 0, 0); Is t

[gdal-dev] Re: GML 3.1.1

2010-09-13 Thread eros
likewise here... we are adopting 3.2.1 and trying to create GML 3.2.1 validation tool but getting hard to it.. thanks a lot guys for making our life easier.. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/GML-3-1-1-tp3124401p5528649.html Sent from the GDAL - Dev mailing

[gdal-dev] Re: TIFF write and comparison

2010-09-13 Thread Akhil Jaggarwal
Hi, I've shortened my questions to exactly this part of the code: // read datasets, compare data and write if ( (pafScanline2[j] > 6 || pafScanline3[j] > 950) && pafScanline[j] == 2) { GDALRasterIO( hDes

RE: [gdal-dev] OGR MS SQL Spatial driver has been added

2010-09-13 Thread David Lowther
doh! thanks! David Lowther Coordinate Solutions, Inc. _ From: Abhay [mailto:abhay.me...@gmail.com] Sent: Monday, September 13, 2010 1:09 PM To: David Lowther Cc: Tamas Szekeres; gdal-dev Subject: Re: [gdal-dev] OGR MS SQL Spatial driver has been added Try using "MSS

Re: [gdal-dev] OGR MS SQL Spatial driver has been added

2010-09-13 Thread Abhay
Try using "MSSQL:" instead of "MSSMSSQL:" On Mon, Sep 13, 2010 at 9:31 PM, David Lowther < dlowt...@coordinatesolutions.com> wrote: > MSSQL:server ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev

RE: [gdal-dev] OGR MS SQL Spatial driver has been added

2010-09-13 Thread David Lowther
Tamas, Thanks for this great addition. I pulled the latest working binaries and can connect using ogrinfo and read datasets, but when trying to create I receive the following: D:\Utility\release-1600-x64-gdal-mapserver\bin\gdal\apps>ogr2ogr -f MSSQLSpatial "MSSMSSQL:server=...;database=...

Re: [gdal-dev] Re: Copy only georeference between two images

2010-09-13 Thread christian . mueller
I see your image is LZW compressed, AFAIK this is the same for png images. Try the following 1) use gdal_translate to create a png file and a corresponding world file from your shifted image. 2) Open the world file with an editor and adjust the values 3) use gdal_translate to create a geotiff

Re: [gdal-dev] Re: Copy only georeference between two images

2010-09-13 Thread Ivan Lucena
- Using gdal_translate -a_srs you can make a copy of your second image with the assigned georeferece EPSG:32631. - Using Python or other API you could Open the image in update mode and call SetProjectionRef with the WKT from the first image. http://spatialreference.org/ref/epsg/32631/ http://gd

Re: [gdal-dev] Copy only georeference between two images

2010-09-13 Thread Ralf Suhr
Use listgeo -tfw FILE and rename the new worldfile to the filename without georeferentiation. listgeo is from geotiff. Gr Ralf Am Montag 13 September 2010 16:45:30 schrieb canduc17: > One simple question: > > I have two identical images, exept for their their georeferentiation. They > represent

[gdal-dev] Re: Copy only georeference between two images

2010-09-13 Thread canduc17
It is the same, but the georef information is a little bit shifted. So I have to copy the first georef into the second image. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Copy-only-georeference-between-two-images-tp5526582p5526728.html Sent from the GDAL - Dev mailing

Re: [gdal-dev] Re: Copy only georeference between two images

2010-09-13 Thread christian . mueller
And what is the output of the second image ? Quoting canduc17 : My case is the first one: with gdalinfo on one of my images I obtain: Driver: GTiff/GeoTIFF Files: AVN_CLS57_ALAV2A127252720_20080614_20100906.tif Size is 8505, 8378 Coordinate System is: PROJCS["WGS 84 / UTM zone 31N", GEOGCS

[gdal-dev] Re: Copy only georeference between two images

2010-09-13 Thread canduc17
My case is the first one: with gdalinfo on one of my images I obtain: Driver: GTiff/GeoTIFF Files: AVN_CLS57_ALAV2A127252720_20080614_20100906.tif Size is 8505, 8378 Coordinate System is: PROJCS["WGS 84 / UTM zone 31N", GEOGCS["WGS 84", DATUM["WGS_1984", SPHEROID["WGS 84",6

Re: [gdal-dev] Copy only georeference between two images

2010-09-13 Thread christian . mueller
Do you have the georeference information included in your image file (geotiff for example) or do you have an extra world file containing 6 lines of numbers. In the second case, it is easy. Quoting canduc17 : One simple question: I have two identical images, exept for their their georefere

[gdal-dev] Copy only georeference between two images

2010-09-13 Thread canduc17
One simple question: I have two identical images, exept for their their georeferentiation. They represent the same scene, their sizes are identical, but one of them has a correct UTM georeferentiation and the second one hasn't. In which way can I copy and paste the correct georeferentiation from