【发布时间】:2021-10-12 21:28:31
【问题描述】:
我想将一些坐标从 EPSG 21781 转换为 EPSG 2056。如果我在这些坐标上运行 projinfo 到投影,我会得到需要某个网格但在系统上找不到的信息(见下文)。
$ projinfo -o PROJ -s EPSG:21781 -t EPSG:2056
Candidate operations found: 1
-------------------------------------
Operation No. 1:
unknown id, Inverse of Swiss Oblique Mercator 1903M + CH1903 to CH1903+ (1) + Swiss Oblique Mercator 1995, 0.2 m, Europe - Liechtenstein and Switzerland, at least one grid missing
PROJ string:
+proj=pipeline +step +inv +proj=somerc +lat_0=46.9524055555556 +lon_0=7.43958333333333 +k_0=1 +x_0=600000 +y_0=200000 +ellps=bessel +step +proj=hgridshift +grids=CHENyx06a.gsb +step +proj=somerc +lat_0=46.9524055555556 +lon_0=7.43958333333333 +k_0=1 +x_0=2600000 +y_0=1200000 +ellps=bessel
Grid CHENyx06a.gsb needed but not found on the system. Can be obtained from the proj-datumgrid-europe package at https://download.osgeo.org/proj/proj-datumgrid-europe-1.5.zip
我下载了指定的文件(proj-datumgrid-europe-1.5.zip)后,我需要用它做什么?这似乎没有在docs 中描述。 我正在开发 Ubuntu 20.04 和 proj 6.3.1
$ pkg-config --modversion proj
6.3.1
【问题讨论】:
-
对于那个版本,the docs 说您只需将文件解压缩到 PROJ 数据目录,即 /usr/local/share/proj 或 /usr/share/proj
-
成功了!想要将其添加为答案?
-
很高兴听到它@Ratnanil!我会这样做...
标签: gis geospatial spatial proj