[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.___

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

2010-04-06 Thread Chaitanya kumar CH
weixj2003ld, DEM = Digital Elevation Model .img = Irdas Imagine Format DEM can be represented in most raster formats. Refer to http://en.wikipedia.org/wiki/Digital_elevation_model 2. There is only one band because there is only the elevation data to store. The colour table takes care of the col

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

2010-04-06 Thread Chaitanya kumar CH
Create() does need all the info. Just pass NULL for the last argument * papszParmList.* On Wed, Apr 7, 2010 at 8:39 AM, weixj2003ld wrote: > Thk u for your reply. > I read the tuorail.but I think that will not satisfy my need. > I want to create a .png file,and it only contains height data and n

[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
Thk u for your reply. I read the tuorail.but I think that will not satisfy my need. I want to create a .png file,and it only contains height data and not contains metadata, a coordinate system, a georeferencing transform, size of raster and various other information,I find that the Create() and C

Re: [gdal-dev] GDAL and JPEG2000 (Kakadu specially), manually reading image data

2010-04-06 Thread Frank Warmerdam
Zermeno, Robert J CIV NAVAIR, 472100D wrote: Can anyone let me know how to properly read a 24bpp JPEG2000 image data? This image has 1 Band overview. I am using the C API. I have a few questions. Please respond even if you know something about any of the questions I have. 1. Can someone refe

Re: [gdal-dev] vrt removes transparent pixels?

2010-04-06 Thread Wendell Turner
On Wed, Apr 07, 2010 at 01:59:35AM +0530, Chaitanya kumar CH wrote: > Wendell, > > Can you provide the exact commands you used? wget http://radar.weather.gov/ridge/Conus/RadarImg/centgrtlakes_radaronly.gif gdal_translate -of VRT centgrtlakes_radaronly.gif foo.vrt cp centgrtlakes_radaronly.g

Re: [gdal-dev] vrt removes transparent pixels?

2010-04-06 Thread Chaitanya kumar CH
Wendell, Can you provide the exact commands you used? On Wed, Apr 7, 2010 at 12:52 AM, Wendell Turner wrote: > I want to change the color palette on a gif file. The > instructions on the wiki here: > > http://trac.osgeo.org/gdal/wiki/FAQRaster#Howtocreateormodifyanimagecolortable > explain how

Re: [gdal-dev] Segmentation Fault with gdal_fillnodata.py

2010-04-06 Thread Chaitanya kumar CH
Paul, I cannot much much regarding the first question. Since the data is large you have to find out the reason for segfault yourselves. Try running it with gdb as "gdb --args python gdal_fillnodata.py ..." and examine the call stack after the segfault with the command "bt" in the gdb console. For

[gdal-dev] Segmentation Fault with gdal_fillnodata.py

2010-04-06 Thread Paul Delamater
A couple of questions... 1. I'm getting a Segmentation Fault when using gdal_fillnodata.py on an .img file that I created in GDAL. I'm running GDAL 1.7.1 on Ubuntu 9.10 (64bit). The file is big (1.2Gb). Here's my command: $ gdal_fillnodata.py -md 1 zone10_albers.img -nomask zone10_test.img -of

[gdal-dev] vrt removes transparent pixels?

2010-04-06 Thread Wendell Turner
I want to change the color palette on a gif file. The instructions on the wiki here: http://trac.osgeo.org/gdal/wiki/FAQRaster#Howtocreateormodifyanimagecolortable explain how to do it: gdal_translate -of VRT your.tif your.vrt gdal_translate your.vrt your_fixedup.tif but doing this (without

[gdal-dev] GDAL and JPEG2000 (Kakadu specially), manually reading image data

2010-04-06 Thread Zermeno, Robert J CIV NAVAIR, 472100D
Can anyone let me know how to properly read a 24bpp JPEG2000 image data? This image has 1 Band overview. I am using the C API. I have a few questions. Please respond even if you know something about any of the questions I have. 1. Can someone reference me to where I can acquire what Band ov

Re: [gdal-dev] List of Supported EPSG's

2010-04-06 Thread Gilles Bassière
Pedro Roma wrote: > How can I know which EPSG's codes/systems are supported by GDAL for > gdal_info, translate and warp? Hi Pedro I believe GDAL relies on Proj for everything related to projections. Within the Proj installation directory, there is a set of files which hold code/SRS description p

Re: [gdal-dev] create a png file

2010-04-06 Thread Chaitanya kumar CH
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 the height > map value of each point from the DEM file. > Thk u. > > > >

Re: [gdal-dev] List of Supported EPSG's

2010-04-06 Thread Sean Hills
I've found this site pretty useful : http://spatialreference.org/ Hope it helps! Sean On Tue, Apr 6, 2010 at 9:27 AM, Pedro Roma wrote: > Greetings > How can I know which EPSG's codes/systems are supported by GDAL for > gdal_info, translate and warp? > Thank you

Re: [gdal-dev] Converting contour lines (Shape files) into DEM

2010-04-06 Thread Chaitanya kumar CH
Kishore, You can adjust the geotiff's dimensions and extents from within the script. Then use the -te option in gdal_rasterize to limit the extents of the vector data. Other way is to create parts of the shape file using ogr2ogr with the option -clipsrc (http://gdal.org/ogr2ogr.html). On Tue, Ap

[gdal-dev] List of Supported EPSG's

2010-04-06 Thread Pedro Roma
Greetings How can I know which EPSG's codes/systems are supported by GDAL for gdal_info, translate and warp? Thank you Best Regards Pedro ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev

[gdal-dev] Getting an WMS without XML file.

2010-04-06 Thread Manolo Padron Martinez
Hi: I'm trying to use gdal to get images from a WMS server, I got a simple code to do it (using GDALOpen and RasterIO methods). But I need to make the petition without create previously a XML file, I've been looking into documentation but I didn't find a way to do it. Anyone knows how to do it? R

Re: [gdal-dev] vrt performance with 1000's of tiles?

2010-04-06 Thread Vincent Schut
FWIW, I've done something similar (worldwide vrt of all cgiar srtm4 tiles), which is working flawlessly and performance is good. However, I am not using it for direct viewing, just to be able to extract arbitrary subsets of specific regions with gdalwarp. If I would think of viewing the entire