Re: [gdal-dev] Call for discussion on RFC 50: OGR field subtypes

2014-11-19 Thread Dmitriy Baryshnikov
Hi Even, And what about string list field subtype? I.e. I need restricted String field to accept only predefined strings from the list? Also for integer or dates fields the value range(s) or time period(s) set will be worth adding. I.e. the tube_width (Integer) can only be in range 100-183 an

[gdal-dev] Call for discussion on RFC 50: OGR field subtypes

2014-11-19 Thread Even Rouault
Hi, This is a call for discussion on RFC 50: OGR field subtypes http://trac.osgeo.org/gdal/wiki/rfc50_ogr_field_subtype Below the summary : """ This RFC aims at adding the capability of specifying sub-types to OGR fields, like boolean, 16 bit integers or 32 bit floating point values. The sub-ty

Re: [gdal-dev] Define Virtual Format for a remote GeoJSON file

2014-11-19 Thread aborruso
Hi hrz, hrz wrote > The VRT is an XML format and hence you need to ensure the content is XML > compliant: your URL contained `&` characters that need to be escaped to > `&`. The following VRT works for me: I'm stupid :) It works good. Thank you very much, Andrea -- View this message in

Re: [gdal-dev] Define Virtual Format for a remote GeoJSON file

2014-11-19 Thread Homme Zwaagstra
Hi Andrea, The VRT is an XML format and hence you need to ensure the content is XML compliant: your URL contained `&` characters that need to be escaped to `&`. The following VRT works for me: http://www.provincia.caltanissetta.sitr.it/ArcGIS/rest/services/Immobili/MapServer/0/query?wher

Re: [gdal-dev] gdal_calc.py and NoData issues

2014-11-19 Thread Andreas Neumann
Hi Simen, <> means not - same as != Andreas Am 2014-11-19 15:09, schrieb Simen Langseth: I saw the symbol <> first time in gdal calc what is meaning of it? Thanks On Wed, Nov 19, 2014 at 10:21 PM, Even Rouault wrote: Le mercredi 19 novembre 2014 14:16:05, Andreas Neumann a écrit : Hi Eve

Re: [gdal-dev] gdal_calc.py and NoData issues

2014-11-19 Thread Simen Langseth
I saw the symbol <> first time in gdal calc what is meaning of it? Thanks On Wed, Nov 19, 2014 at 10:21 PM, Even Rouault wrote: > Le mercredi 19 novembre 2014 14:16:05, Andreas Neumann a écrit : > > Hi Even, > > > > Thank you for trying to help. Unfortunately, the --overwrite option does > > no

Re: [gdal-dev] gdal_calc.py and NoData issues

2014-11-19 Thread Andreas Neumann
oh - sorry. This helps. Correct syntax is: gdal_calc.py -A test.tif --overwrite --NoDataValue=99 --outfile=testcalc.tif --calc="(A==249)*255+(A<>249)*A" Thanks a lot! Andreas Am 2014-11-19 14:21, schrieb Even Rouault: Le mercredi 19 novembre 2014 14:16:05, Andreas Neumann a écrit : Hi Even

Re: [gdal-dev] Define Virtual Format for a remote GeoJSON file

2014-11-19 Thread aborruso
Hi Even, thank you. Even Rouault-2 wrote > Yes, you can use the URL as the datasource name expected by the VRT > format. I have tried with: http://www.provincia.caltanissetta.sitr.it/ArcGIS/rest/services/Immobili/MapServer/0/query?where=objectid+%3D+objectid&outfields=*&f=json

Re: [gdal-dev] gdal_calc.py and NoData issues

2014-11-19 Thread Even Rouault
Le mercredi 19 novembre 2014 14:16:05, Andreas Neumann a écrit : > Hi Even, > > Thank you for trying to help. Unfortunately, the --overwrite option does > not help. > > I have a very small test file at http://webgis.uster.ch/temp/test.tif > > I used the following options: > > gdal_calc.py -A te

[gdal-dev] Fwd: Re: gdal_calc.py and NoData issues

2014-11-19 Thread Andreas Neumann
forgot to send this to the list. Sorry. see below: Originalnachricht Betreff: Re: [gdal-dev] gdal_calc.py and NoData issues Datum: 2014-11-19 14:16 Von: Andreas Neumann An: Even Rouault Hi Even, Thank you for trying to help. Unfortunately, the --overwrite option does not h

Re: [gdal-dev] gdal_calc.py and NoData issues

2014-11-19 Thread Even Rouault
Le mercredi 19 novembre 2014 13:49:48, Andreas Neumann a écrit : > Hi, > > I have an issue with gdal_calc.py and nodata values. > > My input data contains a lot of white pixels. After running gdal_calc.py > with the following parameters > > gdal_calc.py -A test.tif --outfile=testcalc.tif > --cal

[gdal-dev] gdal_calc.py and NoData issues

2014-11-19 Thread Andreas Neumann
Hi, I have an issue with gdal_calc.py and nodata values. My input data contains a lot of white pixels. After running gdal_calc.py with the following parameters gdal_calc.py -A test.tif --outfile=testcalc.tif --calc="(A==249)*255+(A<>249)*A" it turns out that all pixel values with 255 are n

Re: [gdal-dev] Define Virtual Format for a remote GeoJSON file

2014-11-19 Thread Even Rouault
Le mercredi 19 novembre 2014 12:40:03, aborruso a écrit : > Hi all, > is it possible to define a Virtual Format of a remote GeoJSON file? > > I would like to built a VRT file in example using this GeoJSON remote URL: > "http://www.provincia.caltanissetta.sitr.it/ArcGIS/rest/services/Immobili/M > a

[gdal-dev] Define Virtual Format for a remote GeoJSON file

2014-11-19 Thread aborruso
Hi all, is it possible to define a Virtual Format of a remote GeoJSON file? I would like to built a VRT file in example using this GeoJSON remote URL: "http://www.provincia.caltanissetta.sitr.it/ArcGIS/rest/services/Immobili/MapServer/0/query?where=objectid+%3D+objectid&outfields=*&f=json"; Th

Re: [gdal-dev] gdalnumeric issue

2014-11-19 Thread Even Rouault
Andreas, try setting PYTHONPATH=/usr/local/lib/python2.7/dist-packages as environment variable. Even > Hi, > > I wanted to run gdal_calc.py > > When I run it, it complains about an import error: > > - > Traceback (most recent call last): >File "/usr/local/bin/gdal_calc.py

[gdal-dev] gdalnumeric issue

2014-11-19 Thread Andreas Neumann
Hi, I wanted to run gdal_calc.py When I run it, it complains about an import error: - Traceback (most recent call last): File "/usr/local/bin/gdal_calc.py", line 50, in from gdalnumeric import * ImportError: No module named gdalnumeric - However, it seems

[gdal-dev] georeferencing raster data using vector polygon

2014-11-19 Thread Simen Langseth
I wanted to georeference the raster image in UTM coordinates into the boundry of red polygon with geographic coordinate system. https://drive.google.com/file/d/0B2RqG9tSAAIUc3J5ZDN6V01IcG8/view?usp=sharing I tried as follows: gdalwarp,-t_srs wgs84 -srcnodata 0 -dstnodata 0 -r near -te -96.75234