gdalsrsinfo
指定された SRS に関する情報をいくつかの形式 (WKT, PROJ.4 など) でリストします
概要
Usage: gdalsrsinfo [--help] [--help-general]
[--single-line] [-V] [-e][-o <out_type>] <srs_def>
説明
gdalsrsinfo ユーティリティは, 次のいずれかから指定された SRS に関する情報を報告します:
GDAL/OGR でサポートされているデータセットのファイル名で, SRS 情報を含みます
通常の GDAL/OGR 形式のいずれか (完全な WKT, PROJ.4, EPSG:n または SRS を含むファイル)
- --help
このヘルプメッセージを表示して終了します
- --help-general
一般的な GDAL コマンドラインオプションの使用方法を簡単に表示して終了します.
- --single-line
1 行で WKT を表示します
- -V
SRS を検証します
- -e
SRS に対応する EPSG 番号を検索します
- -o <out_type>
出力タイプ:
default
: proj4 と wkt (デフォルトオプション)all
: 利用可能なすべてのオプションwkt_all
: 利用可能なすべてのwktオプションPROJJSON
: PROJJSON 文字列 (GDAL >= 3.1 と PROJ >= 6.2)proj4
: PROJ.4 文字列wkt1
: OGC WKT 形式 (フル)wkt_simple
: OGC WKT 1 (簡略化)wkt_noct
: OGC WKT 1 (OGC CT パラメータ無し)wkt_esri
: ESRI WKT 形式wkt
: WKTでサポートされている最新版, 現在 wkt2_2019wkt2
: WKT2でサポートされている最新版, 現在 wkt2_2019wkt2_2015
: OGC WKT2:2015wkt2_2019
: OGC WKT2:2019 (for GDAL < 3.6 ではwkt2_2018
を使用してください)mapinfo
: Mapinfo スタイル CoordSys 形式xml
: XML 形式 (GML ベース)
- <srs_def>
GDAL/OGR でサポートされているデータセットから SRS 情報を抽出するためのファイル名であるか, 通常の GDAL/OGR 形式のいずれか (完全な WKT, PROJ.4, EPSG:n または SRS を含むファイル)です
例
$ gdalsrsinfo EPSG:4326
PROJ.4 : +proj=longlat +datum=WGS84 +no_defs
OGC WKT :
GEOGCS["WGS 84",
DATUM["WGS_1984",
SPHEROID["WGS 84",6378137,298.257223563,
AUTHORITY["EPSG","7030"]],
AUTHORITY["EPSG","6326"]],
PRIMEM["Greenwich",0,
AUTHORITY["EPSG","8901"]],
UNIT["degree",0.0174532925199433,
AUTHORITY["EPSG","9122"]],
AUTHORITY["EPSG","4326"]]
$ gdalsrsinfo -o proj4 osr/data/lcc_esri.prj
'+proj=lcc +lat_1=34.33333333333334 +lat_2=36.16666666666666 +lat_0=33.75 +lon_0=-79 +x_0=609601.22 +y_0=0 +datum=NAD83 +units=m +no_defs '
$ gdalsrsinfo -o proj4 landsat.tif
PROJ.4 : '+proj=utm +zone=19 +south +datum=WGS84 +units=m +no_defs '
$ gdalsrsinfo -o wkt "EPSG:32722"
PROJCRS["WGS 84 / UTM zone 22S",
BASEGEOGCRS["WGS 84",
DATUM["World Geodetic System 1984",
ELLIPSOID["WGS 84",6378137,298.257223563,
LENGTHUNIT["metre",1]]],
PRIMEM["Greenwich",0,
ANGLEUNIT["degree",0.0174532925199433]]],
CONVERSION["UTM zone 22S",
METHOD["Transverse Mercator",
ID["EPSG",9807]],
PARAMETER["Latitude of natural origin",0,
ANGLEUNIT["degree",0.0174532925199433],
ID["EPSG",8801]],
PARAMETER["Longitude of natural origin",-51,
ANGLEUNIT["degree",0.0174532925199433],
ID["EPSG",8802]],
PARAMETER["Scale factor at natural origin",0.9996,
SCALEUNIT["unity",1],
ID["EPSG",8805]],
PARAMETER["False easting",500000,
LENGTHUNIT["metre",1],
ID["EPSG",8806]],
PARAMETER["False northing",10000000,
LENGTHUNIT["metre",1],
ID["EPSG",8807]]],
CS[Cartesian,2],
AXIS["(E)",east,
ORDER[1],
LENGTHUNIT["metre",1]],
AXIS["(N)",north,
ORDER[2],
LENGTHUNIT["metre",1]],
USAGE[
SCOPE["unknown"],
AREA["World - S hemisphere - 54°W to 48°W - by country"],
BBOX[-80,-54,0,-48]],
ID["EPSG",32722]]
$ gdalsrsinfo -o wkt_all "EPSG:4322"
OGC WKT 1:
GEOGCS["WGS 72",
DATUM["World_Geodetic_System_1972",
SPHEROID["WGS 72",6378135,298.26,
AUTHORITY["EPSG","7043"]],
TOWGS84[0,0,4.5,0,0,0.554,0.2263],
AUTHORITY["EPSG","6322"]],
PRIMEM["Greenwich",0,
AUTHORITY["EPSG","8901"]],
UNIT["degree",0.0174532925199433,
AUTHORITY["EPSG","9122"]],
AXIS["Latitude",NORTH],
AXIS["Longitude",EAST],
AUTHORITY["EPSG","4322"]]
OGC WKT2:2015 :
BOUNDCRS[
SOURCECRS[
GEODCRS["WGS 72",
DATUM["World Geodetic System 1972",
ELLIPSOID["WGS 72",6378135,298.26,
LENGTHUNIT["metre",1]]],
PRIMEM["Greenwich",0,
ANGLEUNIT["degree",0.0174532925199433]],
CS[ellipsoidal,2],
AXIS["geodetic latitude (Lat)",north,
ORDER[1],
ANGLEUNIT["degree",0.0174532925199433]],
AXIS["geodetic longitude (Lon)",east,
ORDER[2],
ANGLEUNIT["degree",0.0174532925199433]],
AREA["World"],
BBOX[-90,-180,90,180],
ID["EPSG",4322]]],
TARGETCRS[
GEODCRS["WGS 84",
DATUM["World Geodetic System 1984",
ELLIPSOID["WGS 84",6378137,298.257223563,
LENGTHUNIT["metre",1]]],
PRIMEM["Greenwich",0,
ANGLEUNIT["degree",0.0174532925199433]],
CS[ellipsoidal,2],
AXIS["latitude",north,
ORDER[1],
ANGLEUNIT["degree",0.0174532925199433]],
AXIS["longitude",east,
ORDER[2],
ANGLEUNIT["degree",0.0174532925199433]],
ID["EPSG",4326]]],
ABRIDGEDTRANSFORMATION["WGS 72 to WGS 84 (1)",
METHOD["Position Vector transformation (geog2D domain)",
ID["EPSG",9606]],
PARAMETER["X-axis translation",0,
ID["EPSG",8605]],
PARAMETER["Y-axis translation",0,
ID["EPSG",8606]],
PARAMETER["Z-axis translation",4.5,
ID["EPSG",8607]],
PARAMETER["X-axis rotation",0,
ID["EPSG",8608]],
PARAMETER["Y-axis rotation",0,
ID["EPSG",8609]],
PARAMETER["Z-axis rotation",0.554,
ID["EPSG",8610]],
PARAMETER["Scale difference",1.0000002263,
ID["EPSG",8611]],
AREA["World"],
BBOX[-90,-180,90,180],
ID["EPSG",1237]]]
OGC WKT2:2019 :
BOUNDCRS[
SOURCECRS[
GEOGCRS["WGS 72",
DATUM["World Geodetic System 1972",
ELLIPSOID["WGS 72",6378135,298.26,
LENGTHUNIT["metre",1]]],
PRIMEM["Greenwich",0,
ANGLEUNIT["degree",0.0174532925199433]],
CS[ellipsoidal,2],
AXIS["geodetic latitude (Lat)",north,
ORDER[1],
ANGLEUNIT["degree",0.0174532925199433]],
AXIS["geodetic longitude (Lon)",east,
ORDER[2],
ANGLEUNIT["degree",0.0174532925199433]],
USAGE[
SCOPE["unknown"],
AREA["World"],
BBOX[-90,-180,90,180]],
ID["EPSG",4322]]],
TARGETCRS[
GEOGCRS["WGS 84",
DATUM["World Geodetic System 1984",
ELLIPSOID["WGS 84",6378137,298.257223563,
LENGTHUNIT["metre",1]]],
PRIMEM["Greenwich",0,
ANGLEUNIT["degree",0.0174532925199433]],
CS[ellipsoidal,2],
AXIS["latitude",north,
ORDER[1],
ANGLEUNIT["degree",0.0174532925199433]],
AXIS["longitude",east,
ORDER[2],
ANGLEUNIT["degree",0.0174532925199433]],
ID["EPSG",4326]]],
ABRIDGEDTRANSFORMATION["WGS 72 to WGS 84 (1)",
METHOD["Position Vector transformation (geog2D domain)",
ID["EPSG",9606]],
PARAMETER["X-axis translation",0,
ID["EPSG",8605]],
PARAMETER["Y-axis translation",0,
ID["EPSG",8606]],
PARAMETER["Z-axis translation",4.5,
ID["EPSG",8607]],
PARAMETER["X-axis rotation",0,
ID["EPSG",8608]],
PARAMETER["Y-axis rotation",0,
ID["EPSG",8609]],
PARAMETER["Z-axis rotation",0.554,
ID["EPSG",8610]],
PARAMETER["Scale difference",1.0000002263,
ID["EPSG",8611]],
USAGE[
SCOPE["unknown"],
AREA["World"],
BBOX[-90,-180,90,180]],
ID["EPSG",1237]]]
OGC WKT 1 (simple) :
GEOGCS["WGS 72",
DATUM["World_Geodetic_System_1972",
SPHEROID["WGS 72",6378135,298.26],
TOWGS84[0,0,4.5,0,0,0.554,0.2263]],
PRIMEM["Greenwich",0],
UNIT["degree",0.0174532925199433]]
OGC WKT 1 (no CT) :
GEOGCS["WGS 72",
DATUM["World_Geodetic_System_1972",
SPHEROID["WGS 72",6378135,298.26]],
PRIMEM["Greenwich",0],
UNIT["degree",0.0174532925199433]]
ESRI WKT :
GEOGCS["GCS_WGS_1972",
DATUM["D_WGS_1972",
SPHEROID["WGS_1972",6378135.0,298.26]],
PRIMEM["Greenwich",0.0],
UNIT["Degree",0.0174532925199433]]