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

2010-05-19 Thread Jason Roberts
19, 2010 7:55 AM To: 'mail2vajram'; gdal-dev@lists.osgeo.org Subject: RE: [gdal-dev] Re: Hoe to convert ERDAS imagine(.img) files to ARC info ASCII files viceversa I'm not sure what you mean by getting the metadata information from the source dataset to the destination dataset. If you are referring

[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] 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:

[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:

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 i...@sanchezortega.es: El 18/05/2010 10:39, mail2vajram escribió: I

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

[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:

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 typeogrinfo /? to see the possible formats. OGR is for vector; GDAL is for raster. And Vajram is working with raster

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

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

2010-05-18 Thread Jason Roberts
] On Behalf Of Vincent Schut Sent: Tuesday, May 18, 2010 5:19 AM To: gdal-dev@lists.osgeo.org Subject: Re: [gdal-dev] Re: Hoe to convert ERDAS imagine(.img) files to ARC info ASCII files viceversa I've never used C#, mainly use python, but guess the process will be similar. The idea is that you: 1) open

[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