Re: [gdal-dev] gdal Info Options Python

2017-03-29 Thread lorenzoNais
You can try subprocess.check_output with -json option. It will save a structure with your desidered information. https://docs.python.org/2/library/subprocess.html 2017-03-29 16:18 GMT+02:00 Even Rouault-2 [via OSGeo.org] < ml-node+s1560n5314820...@n6.nabble.com>: > On mercredi 29 mars 2017 06:51

Re: [gdal-dev] gdal Info Options Python

2017-03-29 Thread Even Rouault
On mercredi 29 mars 2017 06:51:11 CEST Johan de Braak wrote: > Hi all, > > Using gdal.Info in Python, I would like to have my result as a dictionary > instead of a string. I found that in gdal.InfoOptions I am able to specify > 'format'. By default, this is set to 'text', however changing this to

Re: [gdal-dev] Building GDAL on linux with minimal drivers

2017-03-29 Thread Ari Jolma
Gane, The reason for the errors below are because you left out MapInfo and JSON driver. Parts of them are used by other drivers. I tried some time ago to try to build a minimal GDAL but it seemed to be not so simple and I did not succeed. If you succeed, please update the Wiki page. Best re

[gdal-dev] gdal Info Options Python

2017-03-29 Thread Johan de Braak
Hi all, Using gdal.Info in Python, I would like to have my result as a dictionary instead of a string. I found that in gdal.InfoOptions I am able to specify 'format'. By default, this is set to 'text', however changing this to 'dict' (or anything really) does still result in a string. Is there a

Re: [gdal-dev] Select an area from a table OGR

2017-03-29 Thread Ahmed Tolba
I found the problem. The problem is the name = "thömas" is a widestring. It seems that gdal doesn't work with it ? is there a solution ? From: Ahmed Tolba Sent: Wednesday, March 29, 2017 1:51 PM To: 'gdal-dev@lists.osgeo.org' Subject: Select an area from a table OGR Hi All, I'm trying to selec

Re: [gdal-dev] Interpolation questions

2017-03-29 Thread Even Rouault
On mercredi 29 mars 2017 10:07:07 CEST Daniele Romagnoli wrote: > Hi, > While investigating on some rendering issues we have with java JAI based > operations involving interpolations, I have found the topic of bicubic > interpolation introducing values outside of the input dynamic, as well as > neg

Re: [gdal-dev] Interpolation questions

2017-03-29 Thread SIMON Nicolas
Daniele, For your first question, you should operate with a no_data value outside the range of pixel generated by interpolation. So you should do a preprocessing to change no_data value outside of this range. Alternatively, if you want to keep 0 as no_data, you should clamp negative value

[gdal-dev] Select an area from a table OGR

2017-03-29 Thread Ahmed Tolba
Hi All, I'm trying to select a specific field in the table area, and I want to retrieve that layer, which has the features, I got a correct layer, but the layer has no features to look for Here is what I'm doingOGRLayer * layer = m_wfs_t->ExecuteSQL("SELECT * from areas WHERE name= 'thöma

[gdal-dev] Building GDAL on linux with minimal drivers

2017-03-29 Thread Gane R
Hi all, I am looking for building gdal with minimal set of drivers like gdal with geotiff, jpg, png and sqlite gpkg so it should do basic warp geotiff and work with geopkg raster. I don't need OGR part I need the core, alg and raster tif, gpkg, jpg and png alone is enought. the problem is I get a

[gdal-dev] Interpolation questions

2017-03-29 Thread Daniele Romagnoli
Hi, While investigating on some rendering issues we have with java JAI based operations involving interpolations, I have found the topic of bicubic interpolation introducing values outside of the input dynamic, as well as negative values and overshooting. The problem we had was with a grayscale Ge