Kettle (PDI)添加geometry插件支持

爲了能夠處理geometry類型的數據,PDI需要安裝pentaho-gis-plugins

該插件下載地址:atolcd / pentaho-gis-plugins

不同PDI版本對應選擇下載不同版本,比如我的PDI是8.2,那我就下載:

pentaho-gis-plugins-1.3.0-bin-8

***按照README.MD的指引:****
***Method 2 : Manual installation***

Extract the content of pentaho-gis-plugins-VERSION-bin.zip in ${PENTAHO_HOME}/plugins.
Example of extraction from the root directory of the project :

wget https://github.com/atolcd/pentaho-gis-plugins/releases/download/v1.2.1/pentaho-gis-plugins-1.2.1-bin-5.zip 
unzip pentaho-gis-plugins-1.2.1-bin-5.zip -d ${PENTAHO_HOME}/plugins

To upgrade the plugin, delete files you added before and start a fresh installation.

重啓spoon之後,可以發現核心對象多了 一個geospatial

當打開相關的空間表格的時候,geometry字段可以正常顯示了:

---進行空間表的表輸入、表輸出時候,

----表輸出的建表語句大概是這樣:
Create table xq (
	Id ,
	Name,
    Type,
    wkt geometry
)

 

 

 

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章