RE: [gdal-dev] How can I do to load into a Bitmap an ECW image from GDAL?

2011-04-18 Thread Francisco José Reyes Peralta
Dear friend, I got it finally Dim gdal_bin_path As String = "c:\myGdalFolder\GDAL\"Dim gdal_driver_path As String = "c:\myGdalFolder\GDAL\gdalplugins"Dim path = Environment.GetEnvironmentVariable("PATH")If Not (path.Contains(gdal_bin_path)) Then Envir

[gdal-dev] Modis data level1b

2011-04-18 Thread Nikolaos Hatzopoulos
Hi, I have modis level1b data and I have two hdf files a mod03 with the georeference and a mod02 with the bands how I can combine these files to make a nice geotif in gdal? note: hdfeos files are files with the georeference and the bands but for disk space reasons I have two files --Nikos Hatzop

Re: [gdal-dev] How can I do to load into a Bitmap an ECW image from GDAL?

2011-04-18 Thread Jean-Claude Repetto
On 04/19/11 08:00, Francisco José Reyes Peralta wrote: Dear friends, anybody can help me to setup the GDAL_DRIVER_PATH environment and GDAL_DATA_PATH and others variables? I don't know how can I do. You can find these informations in the Windows XP documentation. __

RE: [gdal-dev] How can I do to load into a Bitmap an ECW image from GDAL?

2011-04-18 Thread Francisco José Reyes Peralta
Dear friends, anybody can help me to setup the GDAL_DRIVER_PATH environment and GDAL_DATA_PATH and others variables? I don't know how can I do. Thanks.Francisco J. > Date: Mon, 18 Apr 2011 19:35:07 +0200 > From: jrepe...@free.fr > To: gistd...@hotmail.es; gdal-dev@lists.osgeo.org > Subject: Re:

[gdal-dev] modis level1b files

2011-04-18 Thread Nikolaos Hatzopoulos
Hi, I have a mod03 hdf file which has the geolocation of level1b modis file and I have a mod02 hdf file which has the bands how it's possible to combine this two files in order to have a nice geotif? an hdfeos file has the bands and the geolocation, in my case the data are separate. --Nikos Hatz

Re: [gdal-dev] How can I do to load into a Bitmap an ECW image from GDAL?

2011-04-18 Thread Jean-Claude Repetto
On 04/18/11 18:17, Francisco José Reyes Peralta wrote: I put this commadn in my cmd and it returns ecw plugins. But how can I setup into my CSharp application? Have you set the GDAL_DRIVER_PATH environment variable ? I dont know if it is necessary for C# bindings, but it is for Python binding

RE: [gdal-dev] How can I do to load into a Bitmap an ECW image from GDAL?

2011-04-18 Thread Francisco José Reyes Peralta
I put this commadn in my cmd and it returns ecw plugins. But how can I setup into my CSharp application? I installed all GDAL installers in c:\archivos de programa\gdal folder. Thanks in advanced.Francisco J. > Date: Mon, 18 Apr 2011 18:12:36 +0200 > From: jrepe...@free.fr > To: gistd...@ho

RE: [gdal-dev] How can I do to load into a Bitmap an ECW image from GDAL?

2011-04-18 Thread Francisco José Reyes Peralta
Dear Jean-Claude, How can I put this command? If i run a for loop for all drivers, I cannot find the ECW plugin. I put another post to learn how can I install into my application the GDAL plugins to recognize all formats. Thanks for your help. Francisco J. > Date: Mon, 18 Apr 2011 18:12:36 +0200

Re: [gdal-dev] How can I do to load into a Bitmap an ECW image from GDAL?

2011-04-18 Thread Jean-Claude Repetto
Le 18/04/2011 17:01, Francisco José Reyes Peralta a écrit : Dear friend, Using, to try gdal 1.8, the following code i cannot find the ECW driver in the list of drivers. Have you checked if the command : gdalinfo --formats reports that the ECW format is supported ? _

[gdal-dev] How to reference the GDAL downloaded folder into my CSharp application?

2011-04-18 Thread Francisco José Reyes Peralta
Dear friends, I downloaded the files from http://vbkto.dyndns.org/sdk/PackageList.aspx?file=release-1600-gdal-1-8-0-mapserver-5-6-6.zip I install in C:\Archivos de Programa\GDAL folder. Later I create a CSharp program and add the gdal_csharp.dll, ogr_csharp.dll and osr_csharp.dll into my referenc

RE: [gdal-dev] How can I do to load into a Bitmap an ECW image from GDAL?

2011-04-18 Thread Francisco José Reyes Peralta
Dear friend, Using, to try gdal 1.8, the following code i cannot find the ECW driver in the list of drivers. Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.LoadDim GDAL As String = ";" GDAL &= Application.StartupPath & "\GDA

RE: [gdal-dev] How can I do to load into a Bitmap an ECW image from GDAL?

2011-04-18 Thread Francisco José Reyes Peralta
Many thanks Jean-Claude, I will try it and comment here. Francisco J. > Date: Mon, 18 Apr 2011 14:19:42 +0200 > From: jrepe...@free.fr > To: gdal-dev@lists.osgeo.org > CC: gistd...@hotmail.es > Subject: Re: [gdal-dev] How can I do to load into a Bitmap an ECW image from > GDAL? > > Le 18/04/201

Re: [gdal-dev] How can I do to load into a Bitmap an ECW image from GDAL?

2011-04-18 Thread Jean-Claude Repetto
Le 18/04/2011 12:26, Francisco José Reyes Peralta a écrit : I'm using GDAL 1.8.0, with the csharp dlls loaded into my project. I can load another images but ECW I cannot load into my project. Is needed another dll as the*libecwj2.dll*? Is supported by GDAL this images actually? In the support

Re: [gdal-dev] GeoTiff and the 4th band

2011-04-18 Thread Nicolas Mayer
OK. Thank you very much. Nicky 2011/4/18 Even Rouault > Selon Nicolas Mayer : > > > Even, Thank you very much ! > > > > With the two creation options : PHOTOMETRIC=RGB and ALPHA=NO, I obtain > the > > same behaviour I whish. > > > > Can you explain me where you found this answer ? (to help me t

Re: [gdal-dev] GeoTiff and the 4th band

2011-04-18 Thread Even Rouault
Selon Nicolas Mayer : > Even, Thank you very much ! > > With the two creation options : PHOTOMETRIC=RGB and ALPHA=NO, I obtain the > same behaviour I whish. > > Can you explain me where you found this answer ? (to help me to become more > autonomous with GDAL) > Well, for an advanced question lik

[gdal-dev] How can I do to load into a Bitmap an ECW image from GDAL?

2011-04-18 Thread Francisco José Reyes Peralta
Dear Jean-Claude,I'm using GDAL 1.8.0, with the csharp dlls loaded into my project.I can load another images but ECW I cannot load into my project.I copy the gdal folder into my bin project folder, I reference the gdal_csharp.dll in it, and activate the gdal in the code:Dim gdal As

[gdal-dev] How can I do to load into a Bitmap an ECW image from GDAL?

2011-04-18 Thread Francisco José Reyes Peralta
Dear Jean-Claude,I'm using GDAL 1.8.0, with the csharp dlls loaded into my project.I can load another images but ECW I cannot load into my project.I copy the gdal folder into my bin project folder, I reference the gdal_csharp.dll in it, and activate the gdal in the code:Dim gdal As

Re: [gdal-dev] How can I do to load into a Bitmap an ECW image from GDAL?

2011-04-18 Thread Jean-Claude Repetto
Le 18/04/2011 11:45, Francisco José Reyes Peralta a écrit : Dear friends, I'm reading the GDAL documentation, and I'm trying to represent a ECW image into a Bitmap in C#. The problem is that when I try to load it, it give me an error of Image not recognized or bad extension. Do I need anything

Re: [gdal-dev] GeoTiff and the 4th band

2011-04-18 Thread Nicolas Mayer
Even, Thank you very much ! With the two creation options : PHOTOMETRIC=RGB and ALPHA=NO, I obtain the same behaviour I whish. Can you explain me where you found this answer ? (to help me to become more autonomous with GDAL) Thank you again Nicky 2011/4/18 Even Rouault > Selon Nicolas Maye

Re: [gdal-dev] GeoTiff and the 4th band

2011-04-18 Thread Even Rouault
Selon Nicolas Mayer : > Even, thank you very much for answering me so quicly > > With the PHOTOMETRIC creation option to MINISBLACK, I get now : > Band 1 Block=100x20 Type=Byte, ColorInterp=Gray > Band 2 Block=100x20 Type=Byte, ColorInterp=Undefined > Band 3 Block=100x20 Type=Byte, ColorInterp=Und

[gdal-dev] How can I do to load into a Bitmap an ECW image from GDAL?

2011-04-18 Thread Francisco José Reyes Peralta
Dear friends, I'm reading the GDAL documentation, and I'm trying to represent a ECW image into a Bitmap in C#. The problem is that when I try to load it, it give me an error of Image not recognized or bad extension. Do I need anything else to load this images using GDAL? Thanks in advanced. Fran

Re: [gdal-dev] GeoTiff and the 4th band

2011-04-18 Thread Nicolas Mayer
Even, thank you very much for answering me so quicly With the PHOTOMETRIC creation option to MINISBLACK, I get now : Band 1 Block=100x20 Type=Byte, ColorInterp=Gray Band 2 Block=100x20 Type=Byte, ColorInterp=Undefined Band 3 Block=100x20 Type=Byte, ColorInterp=Undefined Band 4 Block=100x20 Type=By

Re: [gdal-dev] GeoTiff and the 4th band

2011-04-18 Thread Even Rouault
Selon Nicolas Mayer : Retry by setting the PHOTOMETRIC creation option to MINISBLACK. Otherwise, by default, without specifying it, GDAL assumes that the PHOTOMETRIC is RGB and that the 4th band is an alpha band. You should get : Band 1 Block=100x20 Type=Byte, ColorInterp=Gray Band 2 Block=100x20

[gdal-dev] GeoTiff and the 4th band

2011-04-18 Thread Nicolas Mayer
Hello I have a problem with the geotiff (GTiff) driver. I create a 4-bands raster image in a c++ program. The fourth band was considered as an alpha band in the geotiff image (actually, it is near infrared : NIR) $ gdalinfo new_geotiff.tif Driver: GTiff/GeoTIFF Files: new__geotiff.tif Size is 10