[gdal-dev] Re: Hoe to convert ERDAS imagine(.img) files to ARC info ASCII files viceversa

2010-05-18 Thread mail2vajram
Hai, Jason thanks for your reply Createcopy method works fine.When i am using create copy method at that instance only a file is created in the specified path. But the format of the file is different what i want and another thing is how to get the metadata information from the source dataset

Re: [gdal-dev] gdaldem hillshade directions / GRASS r.shaded.relief

2010-05-18 Thread Even Rouault
Vincent, I'm CC'ing the grass-dev list as gdaldem shares the same formula with the GRASS r.shaded.relief utility and I also think they are affected (I've only compared the code, not tested r.shaded.relief, so I could be wrong of course) I think your analysis is right. To check, I've created an

Re: [gdal-dev] RasterIO(GF_Write, ...) has no effect on copied dataset

2010-05-18 Thread Tim Keitt
Oops. Sorry folks. It works after a small bug fix in the algorithm. THK On Tue, May 18, 2010 at 11:40 AM, Frank Warmerdam wrote: > Tim Keitt wrote: >> >> I have some GDAL code that does: >> >> open input dataset >> create copy to output dataset >> close input dataset >> get raster band from outp

Re: [gdal-dev] RasterIO(GF_Write,...) has no effect on copied dataset

2010-05-18 Thread Frank Warmerdam
Tim Keitt wrote: I have some GDAL code that does: open input dataset create copy to output dataset close input dataset get raster band from output call RasterIO(GF_Read,...) on band update buffer in place call RasterIO(GF_Write,...) on band close output dataset exit The program runs, but the ou

[gdal-dev] RasterIO(GF_Write,...) has no effect on copied dataset

2010-05-18 Thread Tim Keitt
I have some GDAL code that does: open input dataset create copy to output dataset close input dataset get raster band from output call RasterIO(GF_Read,...) on band update buffer in place call RasterIO(GF_Write,...) on band close output dataset exit The program runs, but the output dataset contai

Re: [gdal-dev] Unknown base item type : 4+error occurs when open a *.img file

2010-05-18 Thread Frank Warmerdam
mail2vajram wrote: When i am using the fillowing code i got theerror:Unknown base item type : 4 DataSet ds=GDal.Open(".\File1.IMG",Access.GA_ReadOnly); why this error ocuurs. thank you. Vajram, It means a node in the .img file has a BASEDATA object with an unknown data t

[gdal-dev] Re: GDAL_retile slowdown at next level

2010-05-18 Thread acangi
I moved my level 1 tiles to a machine with big hard disk, many processors and a lot of memory. Then I restarted the process taking the level 1 tiles as source : gdal_retile.py -targetDir subpyramid/ -levels 11 -pyramidOnly -v -s_srs /mnt/webgisdata/geoserver/config/3812.prj -ps 512 512 -r biline

[gdal-dev] Notes on reality of C++ and ABI compatibility

2010-05-18 Thread Mateusz Loskot
Hi, Perhaps Robert Ramey's notes will be of some interested here. Originally posted to Boost devel list: http://article.gmane.org/gmane.comp.lib.boost.devel/204164 Original Message Subject: Re: [boost] [Booster] Or boost is useless for library developers Date: Sat, 15 May 2010

RE: [gdal-dev] Re: Hoe to convert ERDAS imagine(.img) files to ARC info ASCII files viceversa

2010-05-18 Thread Jason Roberts
On possible problem in this particular example is that the ArcInfo ASCII Grid (AAIGrid) driver does not support the Create method of the GDAL API, only the CreateCopy method, correct? (Please correct me if I am wrong about this.) Therefore the procedure for converting IMG to ArcInfo ASCII Grid with

[gdal-dev] gdaldem hillshade directions

2010-05-18 Thread Vincent Schut
Is it just me, or is the result/documentation for gdaldem hillshade off by 90 degrees? While the docs state "azimuth of the light, in degrees. 0 if it comes from the top of the raster, 90 from the east, ..." (so: clockwise from north), I find that a sun azimuth of 0 degrees is west, 90 is sout

[gdal-dev] Unknown base item type : 4+error occurs when open a *.img file

2010-05-18 Thread mail2vajram
When i am using the fillowing code i got theerror:Unknown base item type : 4 DataSet ds=GDal.Open(".\File1.IMG",Access.GA_ReadOnly); why this error ocuurs. thank you. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Unknown-base-item-type-4-error-occ

Re: [gdal-dev] Re: Hoe to convert ERDAS imagine(.img) files to ARC info ASCII files viceversa

2010-05-18 Thread Vincent Schut
I've never used C#, mainly use python, but guess the process will be similar. The idea is that you: 1) open your source dataset (the img file) 2) instantiate the arcinfo ascii driver (gdal.GetDriverByName in python to get a driver instance) 3) use the driver instance to create a new file with th

Re: [gdal-dev] Re: Hoe to convert ERDAS imagine(.img) files to ARC info ASCII files viceversa

2010-05-18 Thread Iván Sánchez Ortega
El 18/05/2010 11:05, mail2vajram escribió: I saw that utility in the fwtools\bin folder. *Use* the utility. If you really must do this using C#, do read the documentation and examples: http://trac.osgeo.org/gdal/wiki/GdalOgrInCsharp You can skip C# altogether and use batch scripts, powersh

Re: [gdal-dev] Re: Hoe to convert ERDAS imagine(.img) files to ARC info ASCII files viceversa

2010-05-18 Thread Iván Sánchez Ortega
El 18/05/2010 10:57, Imran Rajjad escribió: Did you try ogr2ogr? it is also command line simple, I used it oftent convert between different formats. After installing GDAL type>ogrinfo /? to see the possible formats. OGR is for vector; GDAL is for raster. And Vajram is working with raster file

[gdal-dev] Re: Hoe to convert ERDAS imagine(.img) files to ARC info ASCII files viceversa

2010-05-18 Thread mail2vajram
yeah.. I saw that utility in the fwtools\bin folder. But it gives some error,when i added the reference to my C# project. Actually i need to do this task programatically. This class is available in any other dll can u tell me please. thank you -- View this message in context: http://osg

Re: [gdal-dev] Re: Hoe to convert ERDAS imagine(.img) files to ARC info ASCII files viceversa

2010-05-18 Thread Iván Sánchez Ortega
El 18/05/2010 10:55, mail2vajram escribió: Which class i have to instantaite to call gdal_translate() Just ran it as an external program. Use Process.Start(), or WshShellClass, or whatever. But please, please, run gdal_translate alone to get a feel of how it works. Don't rush into the code.

Re: [gdal-dev] Re: Hoe to convert ERDAS imagine(.img) files to ARC info ASCII files viceversa

2010-05-18 Thread Imran Rajjad
hi, Did you try ogr2ogr? it is also command line simple, I used it oftent convert between different formats. After installing GDAL type >ogrinfo /? to see the possible formats. regads, Imran 2010/5/18 Iván Sánchez Ortega : > El 18/05/2010 10:39, mail2vajram escribió: >> >> I don't know how to u

[gdal-dev] Re: Hoe to convert ERDAS imagine(.img) files to ARC info ASCII files viceversa

2010-05-18 Thread mail2vajram
Thanks agian... Already i downloaded Fwtools and installed. I read the link u gave me. Which class i have to instantaite to call gdal_translate() and from which dll i have to take the reference. can u tell me please. -- View this message in context: http://osgeo-org.1803224.n2.nabble

Re: [gdal-dev] Re: Hoe to convert ERDAS imagine(.img) files to ARC info ASCII files viceversa

2010-05-18 Thread Iván Sánchez Ortega
El 18/05/2010 10:39, mail2vajram escribió: I don't know how to use GDal_translate. Can u explain me how to do this You need to download the GDAL utilities, or some bundle that includes them (such as osgeo4w or fwtools). Then, open up a console and refer to the documentation: http://www.

[gdal-dev] Re: Hoe to convert ERDAS imagine(.img) files to ARC info ASCII files viceversa

2010-05-18 Thread mail2vajram
Thanks for ur reply. I don't know how to use GDal_translate.Can u explain me how to do this thank u... -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Hoe-to-convert-ERDAS-imagine-img-files-to-ARC-info-ASCII-files-viceversa-tp5068801p5069012.html Sent from the GDAL -

Re: [gdal-dev] Hoe to convert ERDAS imagine(.img) files to ARC info ASCII files viceversa

2010-05-18 Thread Iván Sánchez Ortega
El 18/05/2010 9:19, mail2vajram escribió: Can any body help me how to convert ERDAS imagine(.img) files to ARC info ASCII files and ASCII files to .Img files? Have you tried gdal_translate? -- Iván Sánchez Ortega ___ gdal-dev mailing list gdal-dev@l

[gdal-dev] Hoe to convert ERDAS imagine(.img) files to ARC info ASCII files viceversa

2010-05-18 Thread mail2vajram
Hai , I am very new to use this GDAL libraries. I feel very difficulty to work with this libraries particulaly using C#.Because very less documentation is available for C#.Can any body help me how to convert ERDAS imagine(.img) files to ARC info ASCII files and ASCII files to .Img files. If anybo