Re: [gdal-dev] Get list of all available SRS

2012-09-26 Thread Nik Sands
Thanks Frank. Sorting/organisation is not a big deal in this case. They will be presented in a list which dynamically changes according to search text as it is typed. So a simple alphabetical sort should be fine if I can't come up with any better scheme. On 21/09/2012, at 12:49 PM, Frank Wa

Re: [gdal-dev] GDAL Python bindings disables setting a non-zero exit code

2012-09-26 Thread Luke Pinner
Thanks Jason, it's definitely GDAL. The order doesn't matter and I've checked ERRORLEVEL v. %ERRORLEVEL% (see below). I don't think it's related to the batch file which is just a minimal test script. The issue occurs with every Windows python script I've written that imports gdal - i.e sys.exit(an

[gdal-dev] ogr2ogr -nlt PROMOTE_TO_MULTI (use case: converting shapefiles to PostGIS)

2012-09-26 Thread Even Rouault
Hi, Have you ever been frustrated about shapefiles mixing polygons/multipolygons (or linestrings/multilinestrings) in the same layer and issues when converting them to PostGIS ? I was, until a few minutes ago, where I've just added in GDAL trunk "-nlt PROMOTE_TO_MULTI" as an accepted option of

Re: [gdal-dev] driver.GetMetadataItem in Java

2012-09-26 Thread Ivan Lucena
Hi Even, I figured that I could use *driver.GetMetadataItem("DCAP_CREATECOPY")* but it is nice to have that bug fixed. Thanks, Ivan > ---Original Message--- > From: Even Rouault > To: gdal-dev@lists.osgeo.org, Ivan Lucena > Subject: Re: [gdal-dev] driver.GetMetadataItem in Java

Re: [gdal-dev] driver.GetMetadataItem in Java

2012-09-26 Thread Even Rouault
Le mercredi 26 septembre 2012 07:44:57, Ivan Lucena a écrit : > Hi there, > > Is there any particular reason why that this code in Java results nulls > > Driver driver = gdal.GetDriver(1); > String a = driver.GetMetadataItem(gdalconstConstants.DCAP_CREATE); > String b = driver.GetMetadataItem(gda

[gdal-dev] GDAL at FOSS4G-India

2012-09-26 Thread Chaitanya kumar CH
Hi all, I am conducting a workshop[1] on GDAL at the first FOSS4G conference of India. I even got some requests from some developers in India for more GDAL stuff. I am also preparing a paper on GDAL. It will include everything. It's inspiration, history, usability, features, design and future wor

Re: [gdal-dev] gdal 1.8 and ERDAS ECW Read-Write SDK problem

2012-09-26 Thread Even Rouault
Selon netcadturgay : > Hi Even Rouault > I have builded both Gdal 1.8 library and Gdal 1.9 library including ERDAS > read-write sdk. Results: > > Gdal 1.9 > --- > ReadOnly-> OK > Update -> OK (update capabilities are restricted to header information, not imagery) > CreateCopy -> OK >

Re: [gdal-dev] gdal 1.8 and ERDAS ECW Read-Write SDK problem

2012-09-26 Thread netcadturgay
Hi Even Rouault I have builded both Gdal 1.8 library and Gdal 1.9 library including ERDAS read-write sdk. Results: Gdal 1.9 --- ReadOnly-> OK Update -> OK CreateCopy -> OK Create -> NOT OK Gdal 1.8 ReadOnly-> OK Update -> NOT OK CreateCopy -> OK Create

Re: [gdal-dev] gdal 1.8 and ERDAS ECW Read-Write SDK problem

2012-09-26 Thread Even Rouault
Selon netcadturgay : > I have builded Gdal 1.8 library with "ERDAS ECWJP2 SDK Desktop Read-Write" > and build is ended with a successfull. But when I try to open a ECW file in > update mode, I have an error. > > Error: The ECW driver does not support update access to existing datasets. > > Any sug

[gdal-dev] gdal 1.8 and ERDAS ECW Read-Write SDK problem

2012-09-26 Thread netcadturgay
I have builded Gdal 1.8 library with "ERDAS ECWJP2 SDK Desktop Read-Write" and build is ended with a successfull. But when I try to open a ECW file in update mode, I have an error. Error: The ECW driver does not support update access to existing datasets. Any suggesstion about this problem ? I ha

Re: [gdal-dev] how to create an image with a colortable?

2012-09-26 Thread Chaitanya kumar CH
Sam, datatype is handled by gdal. Can you provide the gdalinfo output of the GeoTiff? On Wed, Sep 26, 2012 at 4:28 PM, Samantha Goodchild-Brown < samant...@geograph.co.za> wrote: > After using gdal info to confirm my input image is a greyscale, using the > FAQRaster intructions I used gdal_tran

Re: [gdal-dev] how to create an image with a colortable?

2012-09-26 Thread Samantha Goodchild-Brown
After using gdal info to confirm my input image is a greyscale, using the FAQRaster intructions I used gdal_translate to create a VRT. I then opened it in crimson editor to edit the colorinterp and add in the colortable. I used Palette <11 c1="181" c2="69" c3="15"/> <12 c1="224"

Re: [gdal-dev] how to create an image with a colortable?

2012-09-26 Thread Chaitanya kumar CH
Sam, What did you do? What errors did you get? On Wed, Sep 26, 2012 at 12:23 PM, Samantha Goodchild-Brown < samant...@geograph.co.za> wrote: > I need to change a greyscale image to Palette and specify the colors to > use for specific values. > > However I am getting very confused with all the 'c

Re: [gdal-dev] WFS_TurnSQLFilterToOGCFilter has too many parameters in OGRWFSDataSource::ExecuteSQL

2012-09-26 Thread Even Rouault
Selon Odd Ragnar Lydersen : > According to the definition WFS_TurnSQLFilterToOGCFilter() should have 6 > arguments, but this one place it has 7. > I guess the definition is correct, and I have deleted one of the arguments on > my computer. > In addition I had to make one more adjustment to make gd

[gdal-dev] how to create an image with a colortable?

2012-09-26 Thread Samantha Goodchild-Brown
I need to change a greyscale image to Palette and specify the colors to use for specific values. However I am getting very confused with all the 'comments' and references and instructions eg. In " http://trac.osgeo.org/gdal/wiki/FAQRaster#Howtocreateormodifyanimagecolortable"; it is explain

[gdal-dev] WFS_TurnSQLFilterToOGCFilter has too many parameters in OGRWFSDataSource::ExecuteSQL

2012-09-26 Thread Odd Ragnar Lydersen
According to the definition WFS_TurnSQLFilterToOGCFilter() should have 6 arguments, but this one place it has 7. I guess the definition is correct, and I have deleted one of the arguments on my computer. In addition I had to make one more adjustment to make gdal compile, I had to comment out the