Teradata GeoImportプロセス - Geospatial Utilities

Teradata® Geospatial Utilitiesユーザー ガイド

Product
Geospatial Utilities
Release Number
17.10
Published
2021年6月
Language
日本語
Last Update
2021-09-23
dita:mapPath
ja-JP/ngj1608578450889.ditamap
dita:ditavalPath
ja-JP/ngj1608578450889.ditaval
dita:id
B035-2519
Product Category
Teradata Tools and Utilities

Teradata GeoImportユーティリティを使用してインポートする方法を以下の手順と例に示します。

  1. データベースからcustomersというテーブルを削除します。

    DROP TABLE customers;

  2. TDGeoImportを実行して、ESRIシェープファイルをデータベースにインポートします。
    クラスパスに、terajdbc4.jartdgssconfig.jar、およびtdgeospatial.jarを含めます。
    • 32ビットのパス:
      cd c:\temp\TdGeoImportExport\bin
      java -Xms256m -Xmx512m -classpath
      .;"c:\Program Files\Teradata\Tdat\LTDBMS\bin\terajdbc4.jar";
      "c:\Program Files\Teradata\Tdat\LTDBMS\bin\tdgssconfig.jar";
      "C:\Program Files(x86)\Teradata\Client\<version>\bin\tdgeospatial.jar"; 
      com.teradata.geo.TDGeoImport -l hyvm20/ geouser, geouser -s geouser
      -f c:\temp\geodata -n customers
      
    • 64ビットのパス:
      cd c:\temp\TdGeoImportExport\bin
      java -Xms256m -Xmx512m -classpath
      .;"c:\Program Files\Teradata\Tdat\LTDBMS\bin\terajdbc4.jar";
      "c:\Program Files\Teradata\Tdat\LTDBMS\bin\tdgssconfig.jar";
      "C:\Program Files\Teradata\Client\<version>\bin\tdgeospatial.jar"; 
      com.teradata.geo.TDGeoImport -l hyvm20/ geouser, geouser -s geouser
      -f c:\temp\geodata -n customers 
      
  3. シェープファイルがcustomersという表にロードされたことを検証します:
    SEL pkey, point (FORMAT 'X(20)'), cust_name (FORMAT 'X(20)'), 
    cust_zipco
FROM customers 
ORDER BY 1;