请教关于band方法的问题

5 views
Skip to first unread message

GeoSun

unread,
May 5, 2009, 3:32:34 AM5/5/09
to gdal+python+GIS+geosings论坛
1.首先因未在相关主题下发帖表示歉意,再请问李老大,前面帖子中我colormap=band.GetRasterColorTable()
dir(colormap),只显示['__class__', '__delattr__', '__doc__',
'__getattribute__','__hash__', '__init__', '__new__', '__reduce__',
'__reduce_ex__','__repr__', '__setattr__', '__str__'] ,而没有GetCount等方法,您
说“你那个可能是空”不知是什么意思,烦请再解释下,谢谢,
2.我在gdal_priv.h文件中看到band类下的许多函数,包括GetColorTable等,在dir(band)中并没有,而
GetRasterColorTable方法,在dir中有,.h文件下又找不到,请点拨一下这二者间的关系,c++写成的库,在python下发生什
么变化呢,问得模棱两可,不专业,还请见谅,只因确实不懂!!

linux23...@gmail.com

unread,
May 5, 2009, 9:49:05 AM5/5/09
to gdal+python+GIS+geosings论坛
你print colormap一下看看这是啥

linux23...@gmail.com

unread,
May 5, 2009, 9:51:36 AM5/5/09
to gdal+python+GIS+geosings论坛
在C++中有的Python中不一定有,Python中有的C++也不一定有。这要看作者怎么包装。

呵呵,问的不专业没什么啊,从不专业到专业有个过程的。谁都一样,有问题就提,我懂的一定会告诉大家。

On 5月5日, 下午3时32分, GeoSun <guochengx...@gmail.com> wrote:

GeoSun

unread,
May 5, 2009, 9:57:20 AM5/5/09
to gdal+python+GIS+geosings论坛
>>> print colormap
None

On 5月5日, 下午9时49分, "linux23maill...@gmail.com"

linux23...@gmail.com

unread,
May 6, 2009, 12:11:30 AM5/6/09
to gdal+python+GIS+geosings论坛
该图像没有颜色表

GeoSun

unread,
May 6, 2009, 1:37:54 AM5/6/09
to gdal+python+GIS+geosings论坛
哦,是了。。。
关于图像结构的东西,就像这颜色表什么的,应该是哪方面的资料讲述啊,计算机图形学吗?

linux23...@gmail.com

unread,
May 6, 2009, 3:47:06 AM5/6/09
to gdal+python+GIS+geosings论坛
呵呵,有实力的话自己写个小东西,解析下GTiff就知道得很清楚了

要不然就是数字图像处理类的书籍

Reply all
Reply to author
Forward
0 new messages