全部產品
Search
文件中心

ApsaraDB RDS:ST_RasterDrivers

更新時間:Jun 19, 2024

獲得所有Ganos Raster支援的資料來源驅動列表。

文法

setof record ST_RasterDrivers(out idx integer,
            out short_name text,
          out long_name text,
          out can_read boolean,
              out can_export boolean,
          out can_asfile boolean,
              out create_options text);

參數

參數名稱描述
idx驅動序號。
short_name驅動名稱縮寫。
long_name驅動名稱全稱。
can_read傳回值:
can_export傳回值:
  • true:表示檔案類型可以在ST_ExportTo函數中使用。
  • false:表示檔案類型在ST_ExportTo函數中使用會報錯。
can_asfile傳回值:
create_options可以使用在ST_ExportToST_AsDatasetFile時建立參數。

樣本

-- 查詢netCDF驅動相關資訊。
SELECT * FROM
st_rasterdrivers()
where short_name='netCDF';

 idx | short_name |         long_name          | can_read | can_export | can_asfile | 
create_options    

-----+------------+----------------------------+----------+------------+-----------

 36 | netCDF     | Network Common Data Format | t        | t          | t          
| <CreationOptionList>   <Option name='FORMAT' type='string-select' 
default='NC'>     <Value>NC</Value>     <Value>NC2</Value> 
    <Value>NC4</Value>     <Value>NC4C</Value>   </Option>   <Option 
name='COMPRESS' type='string-select' default='NONE'>     <Value>NONE</Value>     
<Value>DEFLATE</Value>   </Option>   <Option name='ZLEVEL' ty
pe='int' description='DEFLATE compression level 1-9' default='1'/>   <Option 
name='WRITE_BOTTOMUP' type='boolean' default='YES'>   </Option>   <Option 
name='WRITE_GDAL_TAGS' type='boolean' default='YES'>   </Opt
ion>   <Option name='WRITE_LONLAT' type='string-select'>     <Value>YES</Value>     
<Value>NO</Value>     <Value>IF_NEEDED</Value>   </Option>   <Option 
name='TYPE_LONLAT' type='string-select'>     <Value>float<
/Value>     <Value>double</Value>   </Option>   <Option name='PIXELTYPE' 
type='string-select' description='only used in Create()'>       
<Value>DEFAULT</Value>       <Value>SIGNEDBYTE</Value>   </Option>   <Opti
on name='CHUNKING' type='boolean' default='YES' description='define chunking 
when creating netcdf4 file'/>   <Option name='MULTIPLE_LAYERS' type='string-
select' description='Behaviour regarding multiple vector l
ayer creation' default='NO'>       <Value>NO</Value>       
<Value>SEPARATE_FILES</Value>       <Value>SEPARATE_GROUPS</Value>   </Option>   
<Option name='CONFIG_FILE' type='string' description='Path to a XML con
figuration file (or content inlined)'/></CreationOptionList>

-- 查詢所有 ST_ImportFrom和ST_CreateRast支援的驅動名稱。
select short_name from 
st_rasterdrivers()  
where can_read =true;

-- 查詢所有 ST_ExportTo 支援的驅動名稱。
select short_name from 
st_rasterdrivers()  
where can_export =true;

-- 查詢所有 ST_AsDatasetFile 支援的驅動名稱。
select short_name from 
st_rasterdrivers()  
where can_asfile =true;