<< Click to Display Table of Contents >>

 

RasterBandProp

 

 

網格影像基本描述資料

RasterBandProp物件屬性

參數

說明

參數類型

extension (唯讀)

檔案副檔名

字串

file (唯讀)

檔案名稱

字串

path (唯讀)

檔案路徑

字串

height (唯讀)

raster高度

雙精度浮點數

width (唯讀)

Raster寬度

雙精度浮點數

meanCellHeight (唯讀)

Cell平均高度

雙精度浮點數

meanCellWidth (唯讀)

Cell平均寬度

雙精度浮點數

pixelType (唯讀)

網格資料類型,

為下列任一種

字串

noDataValue (唯讀)

代表沒有網格資料的值

雙精度浮點數

primaryField (唯讀)

網格資料檔案路徑

字串

RasterBandProp使用範例

import sgpy

#讀取jpg檔案(網格資料)描述屬性

fc =sgpy.Describe("D:/temp/0001095.jpg")

#取得”影像長度”,”影像寬度”等屬性,並列印

print fc.height

print fc.width

del fc

 


©2015 Supergeo Technologies Inc. All rights reserved.