Re: [gdal-dev] create a png file

2010-04-27 Thread Roger André
Have you looked at http://www.gdal.org/gdal_tutorial.html? Attached is a Python code snippet that shows how to assign values to pixels in an image. To do what you're asking, you need to create the output raster, and then write out the values in your array into the correct pixel position. I assume

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

2010-04-08 Thread Jorge Arevalo
Hello, On Wed, Apr 7, 2010 at 5:09 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 not > contains metadata, a coordinate system, a georeferencing transform, size of >

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

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