[gdal-dev] Copy coordinate system and corner coordinates

2010-06-22 Thread canduc17
I have an input dataset like this:Driver: GTiff/GeoTIFF Files: aot.2007154.0950.geo.tif Size is 5657, 2287 Coordinate System is: GEOGCS[WGS 84, DATUM[WGS_1984, SPHEROID[WGS 84,6378137,298.2572235630016, AUTHORITY[EPSG,7030]], AUTHORITY[EPSG,6326]],

Re: [gdal-dev] Copy coordinate system and corner coordinates

2010-06-22 Thread Chaitanya kumar CH
Alessandro, Refer to http://www.gdal.org/gdal_tutorial.html for a tutorial on how to do handle raster data with GDAL. Look closely at GDALCreateCopy() or GDALDriver::CreateCopy(). On Tue, Jun 22, 2010 at 1:33 PM, canduc17 cand...@meeo.it wrote: I have an input dataset like this:Driver:

[gdal-dev] Re: Copy coordinate system and corner coordinates

2010-06-22 Thread canduc17
Well ok, but I don't have to merely copy the dataset. I have to eleborate it and after the elaboration I have to add all the information i can get from gdalinfo. So CreateCopy() doesn't fit for me. How to extrac ONLY these info and put them inside the new dataset? -- View this message in

Re: [gdal-dev] Re: Copy coordinate system and corner coordinates

2010-06-22 Thread Chaitanya kumar CH
The GDALDataSet class has methods to get and set such info. ( http://www.gdal.org/classGDALDataset.html) The corner coordinates can be obtained using GDALDataset::GetGeoTransform() On Tue, Jun 22, 2010 at 2:17 PM, canduc17 cand...@meeo.it wrote: Well ok, but I don't have to merely copy the

[gdal-dev] OGRSpatialReference justify

2010-06-22 Thread atubar
hello, everyone. I need to justify whether one geotiff and one shapefile are in the same projection with IsSame function from OGR, which will compare the wkt info of OGRSpatialReference , like below. bool CompareWktIsUniform(const char* pszWkt1, const char* pszWkt2) { OGRSpatialReference

[gdal-dev] OGR-OCI (Oracle) Interface

2010-06-22 Thread Peter J Halls
Dear All, I have an application that has need of the use of an Oracle 'collection' (aka array) as a column type. The OGR OCI driver does not currently support this. Would I be better pre-defining the table and then using SQL_Execute to manipulate the array column or to consider

Re: [gdal-dev] OGR-OCI (Oracle) Interface

2010-06-22 Thread Frank Warmerdam
On Tue, Jun 22, 2010 at 8:19 AM, Peter J Halls p.ha...@york.ac.uk wrote: Dear All,    I have an application that has need of the use of an Oracle 'collection' (aka array) as a column type.  The OGR OCI driver does not currently support this.  Would I be better pre-defining the table and then

[gdal-dev] Can VRT be used to control display order of images in mosaic?

2010-06-22 Thread Roger André
Hi All, I'd like to control the order in which overlapping images are displayed in a mosaic. Is it possible to do that by using a VRT, and altering the order in which the files are defined in it? The online doc for gdalbuildvrt states, If there is some amount of spatial overlapping between

Re: [gdal-dev] Can VRT be used to control display order of images in mosaic?

2010-06-22 Thread Frank Warmerdam
Roger André wrote: Hi All, I'd like to control the order in which overlapping images are displayed in a mosaic. Is it possible to do that by using a VRT, and altering the order in which the files are defined in it? The online doc for gdalbuildvrt states, If there is some amount of spatial

[gdal-dev] GDAL, WinCE dll error when using in my own simple project

2010-06-22 Thread Zermeno, Robert J CIV NAVAIR, 472100D
I hope someone has remembered the capability issues concerning WinCE and GDAL (since its not really being maintained right now). My issue is I am able to use the provided MSVC++ 2005 gdal project files and build the project to obtain a gdalce_i.lib and gdalce.dll files. I created two

[gdal-dev] I am trying to run gdal_polygonize.py and I get the following error: gdal.Polygonize() not available.

2010-06-22 Thread John Mitchell
Hi, I am trying to run gdal_polygonize.py and I get the following error: gdal.Polygonize() not available. You are likely using old gen bindings or an older version of the next gen bindings. Anyone have any idea how I can get gdal_polygonize to run within FWTools 2.4.7? Below is the command and

[gdal-dev] How to use CPLPrintTime ?

2010-06-22 Thread Eduardo Ramalho
Hi! I am trying to print timestamps in WMS driver. I would like to use GDAL CPLPrintTime to do that. I searched for use samples and found pcidskdataset.cpp but I don't understand the magic numbers that appears sztemp + XXX: Line 1396: CPLPrintStringFill( szTemp + 384,GDAL: Image band

Re: [gdal-dev] Can VRT be used to control display order of images in mosaic?

2010-06-22 Thread Roger André
Hi Frank, Thanks for the reply. It might be worth keeping the option to control layer ordering somehow in a mosaic. The reason I'm exploring this is to see if it's possible to emulate the ArcGIS 10 closest to center behavior. I'm thinking that if I dynamically write the VRT, I can control how

Re: [gdal-dev] How to use CPLPrintTime ?

2010-06-22 Thread EduRam
Hi again! I found that gdalhttp.cpp logs messages with CPLDebug() function. Inside that I found that if CPL_TIMESTAMP is set, then a time stamp is also printed. But the time does not have milliseconds precision. Is it possible to change that time format ? Thanks, Edu -- View this message in

[gdal-dev] RE:GDAL, WinCE dll error when using in my own simple project

2010-06-22 Thread Zermeno, Robert J CIV NAVAIR, 472100D
: application/x-pkcs7-signature Size: 4926 bytes Desc: not available Url : http://lists.osgeo.org/pipermail/gdal-dev/attachments/20100622/804e4ab3/smime-0001.bin -- Message: 2 Date: Tue, 22 Jun 2010 12:10:53 -0400 From: John Mitchell mitchellj...@gmail.com Subject: [gdal

Re: [gdal-dev] How to use CPLPrintTime ?

2010-06-22 Thread Chaitanya kumar CH
Eduardo, In line 1398, 'szTemp + 448' is the pointer to the buffer, '16' is the maximum length to be written by CPLPrintTime, next is the the format. Don't bother about the numbers 384, 448, 464, etc. On Tue, Jun 22, 2010 at 9:49 PM, Eduardo Ramalho eduardo.rama...@gmail.comwrote: Hi! I am

Re: [gdal-dev] I am trying to run gdal_polygonize.py and I get the following error: gdal.Polygonize() not available.

2010-06-22 Thread Frank Warmerdam
John Mitchell wrote: Hi, I am trying to run gdal_polygonize.py and I get the following error: gdal.Polygonize() not available. You are likely using old gen bindings or an older version of the next gen bindings. Anyone have any idea how I can get gdal_polygonize to run within FWTools 2.4.7?

[gdal-dev] Multithreading with OGR

2010-06-22 Thread Martin Dobias
Hi all, in my GSoC project [1] I'm trying to employ multithreading to make rendering in QGIS both faster (on multi-core machines) and more pleasant to use (not blocking GUI thread while rendering). I've been successful with making that work in ideal conditions (no concurrent reads/writes) and now

Re: [gdal-dev] Multithreading with OGR

2010-06-22 Thread Ari Jolma
Martin, Just a comment. In Geoinformatica, which uses GTK+, I've begun to address the same kind of problem using the functions provided by GTK+. So far I've not used this on rendering and I've not thought about all the consequencies. In some expectedly lengthly GDAL operations it provides a