Re:Re: [gdal-dev] get different result when use different parameters

2010-05-16 Thread weixj2003ld
0.0) Lower Right ( 4800.0, 6000.0) Center ( 2400.0, 3000.0) Band 1 Block=4800x1 Type=Byte, ColorInterp=Gray 1. I want to know that when I should use '-ot Byte ' and when use ' -ot UInt16 '? 2. when I use -ot UInt16 ',Must I perform histogram equalization on it? wei

[gdal-dev] get different result when use different parameters

2010-05-10 Thread weixj2003ld
I download a elevation data (SRTM,GTOPO30) from http://glcfapp.glcf.umd.edu:8080/esdi/index.jsp use gdal_translate -b 1 -of PNG -ot Byte source.tif des.png and gdal_translate -b 1 -of PNG -ot UInt16 source.tif des.png differently, with parameter 'UInt16',I get a black picture,with Byte,get a

[gdal-dev] Hi,how to translate many files to a file

2010-04-15 Thread weixj2003ld
Hi, I have 6 .tif files,and want to get a JPEG file or a tif file. How to realize it with command gdal_translate? Thk u in advance.___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev

[gdal-dev] write tif error

2010-04-14 Thread weixj2003ld
I use the following code to read data from a geotiff file and do some computing and write it into a new one.the bands number is 6; ... GDALDataset *poSrcDS,*poDstDS;//poSrcDs:the source file,poDstDS:the goal source GDALRasterBand *poSrcBand,*poDstBand;//poSrcBand:the source band,poDstBand:the

Re:Re: [gdal-dev] write error

2010-04-11 Thread weixj2003ld
holeRaster( >GDALDatasetH hSrcDS, GDALDatasetH hDstDS, char **papszOptions, >GDALProgressFunc pfnProgress, void *pProgressData ); > >Le Sunday 11 April 2010 08:32:51 weixj2003ld, vous avez écrit : >> I use the following code to read data from a geotiff file and write it into >&

[gdal-dev] write error

2010-04-10 Thread weixj2003ld
I use the following code to read data from a geotiff file and write it into a new one.the bands number is 6; ... GDALDataset *poSrcDS,*poDstDS;//poSrcDs:the source file,poDstDS:the goal source GDALRasterBand *poSrcBand,*poDstBand;//poSrcBand:the source band,poDstBand:the goal band GDALDriver *

[gdal-dev] DEM file and Goetiff file

2010-04-09 Thread weixj2003ld
I have two base question: 1.the satellte photo height map file is always dem file?and the number of it is always 1? 2.Now I download 7 bands goetiff file,how to translate them into a RGB picture with GDAL?___ gdal-dev mailing list gdal-dev@lists.osgeo.o

[gdal-dev] download free DEM data

2010-04-08 Thread weixj2003ld
Where could I download DEM data,please give me a web address.. Thanks for help in advance.___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev

[gdal-dev] write error

2010-04-07 Thread weixj2003ld
I use the following code to read data from a geotiff file and write it into a new one.the bands number is 6; ... GDALDataset *poSrcDS,*poDstDS; GDALRasterBand *poSrcBand,*poDstBand; GDALDriver *poDstDriver; double *m_AdGeoTransform=new double[6]; ... poDstDriver=GetGDALDriverManager()->GetDriver

Re:Re: [gdal-dev] getcolortable is null

2010-04-07 Thread weixj2003ld
Int16.Only eight bit' and sixteen bit bands supported.Defaulting to Byte. 2.When I use 'gdal_translate -b 1 -of JPEG old.img new.jpg',the error 'JPEG doesn't support data type Int16. Only eight and twelve bit bands supported' happy every day. >weixj2003ld wrote:

Re:Re: [gdal-dev] getcolortable is null

2010-04-07 Thread weixj2003ld
Thk u very much. I have two questions. 1.If I want to use the following combination, Red=Band3 Green=Band2*0.8+band4*0.2; Blue=band1 2. what is the general combination for good look jpeg file? >weixj2003ld wrote: >> I read a geotiff file, and find that >> poBand->GetColorTa

[gdal-dev] getcolortable is null

2010-04-06 Thread weixj2003ld
I read a geotiff file, and find that poBand->GetColorTable()==NULL But I use ERDAS IMAGINE9.2 (a software that deal with geotiff), I find that it is not grey,but I use "gdal_translate -b 6 -of JPEG old.tif net.jpg", find that is is grey. why? Thk u.___

[gdal-dev] DEM format and what difference between dem and geotiff

2010-04-06 Thread weixj2003ld
1.I use GDAL to read a DEM file,and its extension is .img ,what other extensions for DEM file? 2.When I reand a geotff file and a dem file,I find that the dfference between them as follows:

Re:Re: [gdal-dev] create a png file

2010-04-06 Thread weixj2003ld
CreateCopy(). is will create a file that contains all the things. Kind regards. Please refer to http://www.gdal.org/gdal_tutorial.html 2010/4/6 weixj2003ld I read data from a DEM file, and want to create a .png .Now I have read data, but I do not know how to create a png file that contains

[gdal-dev] create a png file

2010-04-05 Thread weixj2003ld
I read data from a DEM file, and want to create a .png .Now I have read data, but I do not know how to create a png file that contains the height map value of each point from the DEM file. Thk u.___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://

[gdal-dev] create a png file

2010-04-05 Thread weixj2003ld
Now,I can read data from a DEM file into an array,but I do not know how to use it to create a png file? Thk u. BTW,Some one tell me that freeimage can do it,but I do not know. ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/ma

[gdal-dev] max y is less than min y

2010-04-04 Thread weixj2003ld
I read a .tif file ,and use the following code to get the MinX,MinY,MaxX and MaxY of the coordation of the tif image. ... double *m_AdGeoTransform=new double[6]; poDataset->GetGeoTransform(AdGeoTransform); nX=poDataset->GetReasXsize(); nY=poDataset->GetReasYsize(); MinX=AdGeoTransform[0]; MinY=A

[gdal-dev] read DEM

2010-04-02 Thread weixj2003ld
Hi, Now I have a dem file (.img),I want to read it with gdal,how to do?I find that gdal only read ascii dem,what is means? Thk u in advance.___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev

[gdal-dev] display picture in colorful mode

2010-04-02 Thread weixj2003ld
Hi, I open two files,and they have the same bands number(that is ,6),one is .img ,the other is .tif.Now,I find that the .img file is almost red,and the .tif file is grey. I want to display it in colorful, for example,grass is green,water is blue,etc.What should I do with GDAL? Kind regards.

[gdal-dev] software can display geotiff file in 3D viewer.

2010-04-01 Thread weixj2003ld
Hi Could you tell me some open source softwares(base on windows) that can display geotiff files in 3D mode not in 2D mode? wei___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev

[gdal-dev] convert geotiff to jpg

2010-04-01 Thread weixj2003ld
Hi,how to convert a geotiff file to a jpg file? BTW,I read two .tif files.and to get the count of raster through getRastercount().one is 3 and the other is 6,what is means of 3 and 6? Thk u in advance.___ gdal-dev mailing list gdal-dev@lists.osgeo.org h

[gdal-dev] get the x and y coordinate of geotiff

2010-04-01 Thread weixj2003ld
1. How could I get the x and y of world coordinate ,or the longitude and the latitude of it by GDAL? 2. How could get the height of it with GDAL? Thk u in advance.___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinf

[gdal-dev] how to get heightmap

2010-02-08 Thread weixj2003ld
Hi, Now,I have a .tif file(it is a satallite photo),How to get the heightmap of it? Kind regards. ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev

[gdal-dev] how to get heightmap

2010-02-03 Thread weixj2003ld
Hi, Now,I have a .tif file(it is a satallite photo),How to get the heightmap of it? Kind regards. ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev

[gdal-dev] the format of satellite photo file

2009-12-28 Thread weixj2003ld
Hi, 1.I get a satellite photo file,and its extention is .tif,and how get the (x,y,z) and the value of each poiont? 2.Could you tell me the article which introduces the format of satellite photo file in detail? 3.Is tif the only format of satellite photo file? Best regards. Wei __

[gdal-dev] ogre3d and gdal

2009-12-15 Thread weixj2003ld
1.I am a newer to gdal,I want to know that can gdal and ogre3d be integrated? 2.How could I get the value of (x,y,z) of the Satellite photos file through gdal? Kind regards. Wei___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/m

[gdal-dev] compile qgis

2009-11-26 Thread weixj2003ld
Hi, I want to display satellite photos in my program(developmented by Qt+VC2005),Must I use GDAL(Does it only read/write geotiff data?)+QSIS(does it only display geotiff data?)? Must I compile QGIS from scratch? Kind regards? ___ gdal-dev mailing list

[gdal-dev] how to display vector/raster data

2009-11-26 Thread weixj2003ld
Hi, 1.I know that OpenEv can display satellite photos,what other opensource software can display it? 2.what is the main format of satellite photos?such .tif,what other? Kind regards. Wei ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osg

[gdal-dev] display picture

2009-11-08 Thread weixj2003ld
Hi, Thank you for your answer. I want to know how to display the picture file which GDAL generates,that is,Does GDAL only generate RASTER or VECTOR file and not display it? Kind regards. 网易历六年耗亿资打造,3D国韵网游《天下贰》,免费领光盘___ gdal-dev mailing list gdal-de