Re: [gdal-dev] How to exploit the spatial index (*.qix) file for spatial filtering?

2014-02-14 Thread Dmitriy Baryshnikov
Hi, The Shape driver work with qix file internally (speed up spatial filters). You can find if qix file exist with cpl function: CPLCheckForFile Also you can create own QuadTree with: CPLQuadTreeCreate Best regards, Dmitry 14.02.2014 9:39, Chaitanya kumar CH ?: Chuiqing, You can

Re: [gdal-dev] R bindings

2014-02-14 Thread Roger Bivand
Even Rouault even.rouault at mines-paris.org writes: Le jeudi 13 février 2014 22:17:40, Tim Keitt a écrit : On Thu, Feb 13, 2014 at 12:55 PM, Tim Keitt tkeitt at utexas.edu wrote: I've been updating my R bindings to GDAL/OGR. The repo is at https://github.com/thk686/rgdal2.

Re: [gdal-dev] Gdal_translate won't crop VRT-file

2014-02-14 Thread Siebe Bosch
Dear Joost, Yes, the extents are as follows: upper left: 136000, 541250 lower right: 198000, 473750 So as you can see, my crop extent falls within the boundaries of the VRT file Kind regards, Siebe On 13-02-14 16:49, Andre Joost wrote: Am 13.02.2014 12:31, schrieb Siebe Bosch: Any

[gdal-dev] Crash when using custom error handler

2014-02-14 Thread Thomas Sevaldrud
Hi, I am having a very strange issue when trying to use a custom error handler in GDAL on windows. The following simple example illustrates it: #include cpl_error.h #include iostream using namespace std; static void logGDALError(CPLErr eErrClass, int err_no, const char *msg) { cerr

Re: [gdal-dev] Crash when using custom error handler

2014-02-14 Thread Even Rouault
Thomas, static void logGDALError(CPLErr eErrClass, int err_no, const char *msg) -- try inserting CPL_STDCALL, so : static void CPL_STDCALL logGDALError(CPLErr eErrClass, int err_no, const char *msg) Even ___ gdal-dev mailing list

Re: [gdal-dev] Crash when using custom error handler

2014-02-14 Thread Thomas Sevaldrud
Ah, genious! It worked perfectly :-) Thanks a lot! - Thomas On Fri, Feb 14, 2014 at 12:51 PM, Even Rouault even.roua...@mines-paris.org wrote: Thomas, static void logGDALError(CPLErr eErrClass, int err_no, const char *msg) -- try inserting CPL_STDCALL, so : static void CPL_STDCALL

Re: [gdal-dev] GSoC'14

2014-02-14 Thread Jukka Rahkonen
Even Rouault even.rouault at mines-paris.org writes: I upgrade GSoC page in WiKi: http://trac.osgeo.org/gdal/wiki/SummerOfCode We need some new ideas and mentors/co-mentors. It seems to me this is very urgent. Thanks Dmitriy for taking the lead on this ! I've added a few precisions

Re: [gdal-dev] GSoC'14

2014-02-14 Thread Dmitriy Baryshnikov
Hi Jukka, I think this is a good idea for GSoC. Does the raster driver for Geopackage differs from rasterlite (http://gdal.org/frmt_rasterlite.html)? Best regards, Dmitry 14.02.2014 17:12, Jukka Rahkonen пишет: Even Rouault even.rouault at mines-paris.org writes: I upgrade GSoC page

Re: [gdal-dev] GSoC'14

2014-02-14 Thread Even Rouault
Selon Dmitriy Baryshnikov bishop@gmail.com: Hi Jukka, I think this is a good idea for GSoC. Does the raster driver for Geopackage differs from rasterlite (http://gdal.org/frmt_rasterlite.html)? Yes, there are differencies in the data model, but that could serve as an inspiration.

Re: [gdal-dev] Gdal_translate won't crop VRT-file

2014-02-14 Thread Andre Joost
Am 14.02.2014 10:37, schrieb Siebe Bosch: Dear Joost, Yes, the extents are as follows: upper left: 136000, 541250 lower right: 198000, 473750 So as you can see, my crop extent falls within the boundaries of the VRT file I would agree for a normal raster. But a vrt can contain data in

Re: [gdal-dev] R bindings

2014-02-14 Thread Tim Keitt
On Thu, Feb 13, 2014 at 3:20 PM, Even Rouault even.roua...@mines-paris.orgwrote: Le jeudi 13 février 2014 22:17:40, Tim Keitt a écrit : On Thu, Feb 13, 2014 at 12:55 PM, Tim Keitt tke...@utexas.edu wrote: I've been updating my R bindings to GDAL/OGR. The repo is at

[gdal-dev] GDAL WMS In C#

2014-02-14 Thread jwill222
I'm currently trying to grab a map image from a wms using gdal and save it to my local machine. The call that I'm trying to replicate inside of my wms xml file is -

Re: [gdal-dev] GSoC'14

2014-02-14 Thread John Twilley
One idea I would like to see considered for GSoC would be completing the GDAL API for Python to include all the functionality that currently exists for C. I wish I were experienced enough with the code base to mentor it, though, so if it doesn't have a mentor I imagine that it can't happen.

Re: [gdal-dev] GSoC'14

2014-02-14 Thread Even Rouault
Le vendredi 14 février 2014 21:20:30, John Twilley a écrit : One idea I would like to see considered for GSoC would be completing the GDAL API for Python to include all the functionality that currently exists for C. I wish I were experienced enough with the code base to mentor it, though, so

Re: [gdal-dev] GSoC'14

2014-02-14 Thread John Twilley
The specific C API that I am thinking about is the Warp API: http://www.gdal.org/warptut.html That page includes a number of performance enhancements which might also make for potentially interesting work for a summer student. Jack. -- mathuin at gmail dot com On Fri, Feb 14, 2014 at 12:23

Re: [gdal-dev] GSoC'14

2014-02-14 Thread Even Rouault
Le vendredi 14 février 2014 21:33:36, John Twilley a écrit : The specific C API that I am thinking about is the Warp API: http://www.gdal.org/warptut.html Actually this is C++ API, not C. So a first step would be to C'ify it. That page includes a number of performance enhancements which

Re: [gdal-dev] GSoC'14

2014-02-14 Thread John Twilley
On Fri, Feb 14, 2014 at 12:54 PM, Even Rouault even.roua...@mines-paris.org wrote: Le vendredi 14 février 2014 21:33:36, John Twilley a écrit : The specific C API that I am thinking about is the Warp API: http://www.gdal.org/warptut.html Actually this is C++ API, not C. So a first step

[gdal-dev] What happens to pixel values src_max under -scale?

2014-02-14 Thread Sean Gillies
Hi all, It seems that when gdal_translate scales e.g. -scale 0 6000 0 255, the values above 6000 also get set to 255. Can anyone confirm this for me? I don't see the destiny of those pixels explained in http://www.gdal.org/gdal_translate.html. Thanks, -- Sean Gillies s...@mapbox.com

Re: [gdal-dev] What happens to pixel values src_max under -scale?

2014-02-14 Thread Even Rouault
Le vendredi 14 février 2014 23:37:53, Sean Gillies a écrit : Hi all, It seems that when gdal_translate scales e.g. -scale 0 6000 0 255, the values above 6000 also get set to 255. Can anyone confirm this for me? It depnds. If the output type is Byte, then yes values will be clamped to 255