Re: [gdal-dev] A question of eficiency

2023-07-31 Thread Abel Pau
OOh, ok!!! Thanks!! De: Laurențiu Nicola Enviado el: dilluns, 31 de juliol de 2023 15:24 Para: Abel Pau CC: gdal-dev@lists.osgeo.org, Asunto: Re: [gdal-dev] A question of eficiency Hi, GetFeatureCount() exists for GDAL users, not for driver writers. For example, in QGIS, you can right-click

Re: [gdal-dev] A question of eficiency

2023-07-31 Thread Laurențiu Nicola via gdal-dev
Hi, GetFeatureCount() exists for GDAL users, not for driver writers. For example, in QGIS, you can right-click on a layer, choose "Show Feature Count" and you'll see the number of features next to the layer name. Or, to give another example, a hypothetical application could use it to display a

Re: [gdal-dev] A question of eficiency

2023-07-31 Thread Abel Pau
Hi, here I am again. Then, after all that information I have the next doubt: for what GetFeatureCount() is used for?? Thanks! De: gdal-dev En nombre de Abel Pau Enviado el: divendres, 21 de juliol de 2023 19:38 Para: Even Rouault ; gdal-dev@lists.osgeo.org Asunto: Re: [gdal-dev] A question of

Re: [gdal-dev] A question of eficiency

2023-07-21 Thread Abel Pau
tialys.com> Enviat: divendres, 21 de juliol de 2023 19:32 Per a: Abel Pau<mailto:a@creaf.uab.cat>; gdal-dev@lists.osgeo.org<mailto:gdal-dev@lists.osgeo.org> Tema: Re: [gdal-dev] A question of eficiency Abel, OK, I now better understand what you meant. Well, no, there's no

Re: [gdal-dev] A question of eficiency

2023-07-21 Thread Even Rouault
tting strategy with change radically. Thankss! *De:*gdal-dev *En nombre de *Abel Pau *Enviado el:* divendres, 7 de juliol de 2023 12:44 *Para:* Even Rouault ; gdal-dev@lists.osgeo.org *Asunto:* Re: [gdal-dev] A question of eficiency Hi again, I can totally give this number in GetFeatureCoun

Re: [gdal-dev] A question of eficiency

2023-07-21 Thread Abel Pau
! De: gdal-dev En nombre de Abel Pau Enviado el: divendres, 7 de juliol de 2023 12:44 Para: Even Rouault ; gdal-dev@lists.osgeo.org Asunto: Re: [gdal-dev] A question of eficiency Hi again, I can totally give this number in GetFeatureCount(). No problem from my driver to other. Then I understand

Re: [gdal-dev] A question of eficiency

2023-07-07 Thread Norman Vine via gdal-dev
With some formats sizeof, fseek and ftell can be most useful > On Jul 7, 2023, at 5:33 AM, Abel Pau wrote: > > Hi, > I would like to know if when we use the code of GDAL to program a driver (or > whatever) in vectors (so, ogr) we can assume that we can know the number of > elements we are go

Re: [gdal-dev] A question of eficiency

2023-07-07 Thread Abel Pau
... Thanks for your kind anwser! De: Even Rouault Enviado el: divendres, 7 de juliol de 2023 12:32 Para: Abel Pau ; gdal-dev@lists.osgeo.org Asunto: Re: [gdal-dev] A question of eficiency Abel, At the minimum for the reading side of a vector driver, you need to implement GetNextFeature(). If

Re: [gdal-dev] A question of eficiency

2023-07-07 Thread Even Rouault
Abel, At the minimum for the reading side of a vector driver, you need to implement GetNextFeature(). If there is an efficient way of knowing the number of features without iterating over the whole file (typically a field in a header giving that number), you may implement GetFeatureCount().

[gdal-dev] A question of eficiency

2023-07-07 Thread Abel Pau
Hi, I would like to know if when we use the code of GDAL to program a driver (or whatever) in vectors (so, ogr) we can assume that we can know the number of elements we are going to import in any way or it would be possible not knowing that until NextFeature is empty (or something like that). So

Re: [gdal-dev] A question related to your recent post "Dropping Windows-CE support?"

2015-10-16 Thread Mateusz Loskot
Mateusz Loskot wrote > On 15 October 2015 at 22:33, Tim Crook < > tim.crook@ > > wrote: >> I will be working on bugs (and eventually >> features) of GDAL, so I want to do things like set breakpoints, maybe do >> profiling of GDAL. > > You still can do it. > ... I have enabled the "jump to warni

Re: [gdal-dev] A question related to your recent post "Dropping Windows-CE support?"

2015-10-15 Thread Mateusz Loskot
On 15 October 2015 at 22:33, Tim Crook wrote: > I am trying to build a development environment for Windows desktop. I have > already run makegdal_gen.bat and the created project files don't load/get > converted with Visual Studio 2015. I have just checked: 1) Launch cmd.exe and run makegdal_gen.

Re: [gdal-dev] A question related to your recent post "Dropping Windows-CE support?"

2015-10-15 Thread Mateusz Loskot
On 15 October 2015 at 20:57, Tim Crook wrote: > Hello there Mateusz. > > I am trying to set up a GDAL build environment using Visual Studio 2015 for > development, not nightly builds. Are there a bunch of project files and a > solution file archived somewhere that I can use? Do you mean you are t

[gdal-dev] a question about GDALDataset::RasterIO

2008-10-23 Thread Qingfeng (Gene) Guan
Hi,   I am trying to use the GDALDataset::RasterIO method to read all the bands into a chunk of memory, and be able to access a pixel's values in all bands by using a [] operator on the memory.   I got the sizes of the data types in all the bands, sum up to get the total data type size, then

Re: [gdal-dev] a question

2008-09-17 Thread Tamas Szekeres
You can refer to the corresponding sample application in the source tree: http://trac.osgeo.org/gdal/browser/trunk/gdal/swig/csharp/apps/GDALOverviews.cs Best regards, Tamas 2008/9/17 guo cheng <[EMAIL PROTECTED]>: > how to use dataset.buildoverviews in C#.net. > It seems there are only two par

[gdal-dev] a question

2008-09-16 Thread guo cheng
how to use dataset.buildoverviews in C#.net. It seems there are only two parameters that are not enough. I hope you can give me an example. Thank you very much! ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gda