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
Please refer to http://www.gdal.org/gdal_tutorial.html
2010/4/6 weixj2003ld weixj200...@163.com
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.
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
Create() does need all the info. Just pass NULL for the last argument *
papszParmList.*
On Wed, Apr 7, 2010 at 8:39 AM, weixj2003ld weixj200...@163.com 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
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
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