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 m

[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 no

[gdal-dev] Maintenance report

2010-06-22 Thread Lucena, Ivan
Apr 1, 2010 to Jun 20, 2010 Tickets #3526: MG4 Lidar Driver contribution #3486: Russian and Portuguese translation are missing the css #3597: HDF4 - Cannot read HDF-SD TRMM 3B42 and 3B43 #3619: Polygonize should have a connectedness parameter #3623: UTM Zone Computation Stability Issue #196

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?

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 wrote: > Hi! > > I am trying to print timestam

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

2010-06-22 Thread Zermeno, Robert J CIV NAVAIR, 472100D
>referenced in function "public: virtual void * __cdecl 1>GDALDriver::`scalar deleting destructor'(unsigned int)" 1>(??_GGDALDriver@@uaap...@z) WinCE_G.obj : error LNK2019: unresolved 1>external symbol "public: virtual __cdecl 1>GDALDriverManager::~GDALDriverManager

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 i

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

[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 b

[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 an

[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 projects,

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] 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 file

RE: [gdal-dev] How to represent multi-dimensional array

2010-06-22 Thread Jason Roberts
> Jason: are there plans for full multi-dimensional / curvilinear / > multiband grid support in MGET? What do you think of the rasdaman > project - any ties with MGET? The work we are doing in MGET relates to the problem that there are many interesting gridded datasets with dimensions xyz or xyz

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 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 using SQL_Exec

[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 extending

[gdal-dev] Defining spatial resolution with gdalwarp

2010-06-22 Thread Nikos Dumakis
Hi there I'm using gdalwarp, through GRASS; to do some reprojection of Globcover images from WGS84 for a specific UTM EPSG. The thing is that gdalwarp's changed my Spatial resolution. Shall I use -tr? if so, I just need to add the units? e.g. -tr 300 300 ? Thanks Nikos ___

[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 S

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 wrote: > > Well ok, but I don't have to merely copy the dataset. > I have

[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 context

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 wrote: > > I have an input dataset like this:Driver: GTiff/GeoTIFF > File

[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"]],