antistatique/swisstopo
Composer 安装命令:
composer require antistatique/swisstopo
包简介
Convert GPS (WGS84) to Swiss (LV03 and LV95) coordinates (and vice versa)
README 文档
README
Super-simple PHP library to transpose GPS (WGS84) coordinates to/from the Swiss military and civilian coordinate systems CH1903/LV03 (MN03) or CH1995/LV95 (MN95).
In this library, the approximate formulas have been used for the direct conversion of ellipsoidal WGS84 coordinates to Swiss plane coordinates.
These formulas are primarily for navigation purposes and may not be used for official or geodetic survey applications!
Getting started
You can install swisstopo using Composer:
composer require antistatique/swisstopo
Usage
Convert GPS (WGS84) to Swiss (LV03 and LV95) coordinates - and vice versa.
GPS (WGS84) to CH1903/LV03 (MN03)
$swiss_converter = new Antistatique\Swisstopo\SwisstopoConverter(); $coordinates = $swiss_converter->fromWGSToMN03(46.462057617639, 6.8486736590762); // Coordinates -> ['x' => 145807.4339423232, 'y' => 554679.5530031546].
CH1903/LV03 (MN03) to GPS (WGS84)
$swiss_converter = new Antistatique\Swisstopo\SwisstopoConverter(); $coordinates = $swiss_converter->fromMN03ToWGS(554680, 145807); // Coordinates -> ['lat' => 46.462057617639346, 'long' => 6.848673659076181].
GPS (WGS84) to CH1995/LV95 (MN95)
$swiss_converter = new Antistatique\Swisstopo\SwisstopoConverter(); $coordinates = $swiss_converter->fromWGSToMN95(46.46312579498212, 6.8534397262208095); // Coordinates -> ['east' => 2555046.5560538797, 'north' => 1145923.4267763223].
CH1995/LV95 (MN95) to GPS (WGS84)
$swiss_converter = new Antistatique\Swisstopo\SwisstopoConverter(); $coordinates = $swiss_converter->fromMN95ToWGS(2555047, 1145923); // Coordinates -> ['lat' => 46.46312579498212,'long' => 6.8534397262208095]
Alternative
Open Source Repository
-
ValentinMinder/Swisstopo-WGS84-LV03 programmatic computer scripts to transpose GPS WGS-84 coordinates to/from the swiss military and civilian coordinate system (LV-03/CH-1903). Converter scripts in many languages: C, GO, Java, JavaScript, PHP, Python, R, SQL.
-
idris-maps/swiss-projection Typescript library to convert from LV03(EPSG:21781) and LV95(EPSG:2056) to WGS84(EPSG:4326) Typescript library that supports both LV03 and LV95.
-
hansroland/swissgeo Haskell library to transpose GPS (WGS84) coordinates to/from the Swiss military and civilian coordinate systems CH1903/LV03 (MN03) or CH1995/LV95 (MN95). Haskell library that supports both LV03 and LV95.
REST Services
- REST web geoservices (REFRAME Web API). swisstopo offers different REST ("REpresentational State Transfer") services which allow you to embed coordinates transformations in your own software products or web services. REST geoservices for reference frame changes WGS84-LV95-LV03/Bessel-LHN95-LN02
Online documentation & Converters
-
Reference systems of surveying geodesy.
-
NAVREF allows you to transform Swiss projection coordinates into global WGS84 coordinates (GPS) and vice versa. It supports both LV03 and LV95.
-
REFRAME allows you to perform coordinates transformations in planimetry and/or altimetry. Supported file formats: text with separator, LTOP, DXF, ESRI Shape, INTERLIS 1, Adalin OneOne, Topobase .K
Software & DLL
-
GIS tools and applications (FME). swisstopo has developed transformers for the transition of reference frames in position an /or height with FME software. All files which can be read by the FME software (many GIS, CAD and text formats) can be easily processed with this transformer. The CHENyx06 dataset (LV03->LV95 ou LV03->ETRS89) is also available as NTv2 regular grid.
-
Developer resources (DLL / JAR). Swisstopo provides shared libraries (DLL or JAR) for software developers which allows transformation of coordinates and heights.
These transformations can be easily integrated into existing applications (.NET, C++, Visual Basic, Java), websites (Java, MONO, Silverlight) or macros (e.g. VBA). -
GeoSuite (REFRAME/TRANSINT) consists in a suite of calculation, file editing and data visualizing tools, grouped in one modern and efficient application. It is also optimized for the latest computers and operating systems.
Resources
-
Approximate formulas for the transformation between Swiss projection coordinates and-WGS84 - (PDF, 4 pages, 72 KB, English).
-
Formulas and constants for the calculation of the Swiss conformal cylindrical projection and for the transformation between coordinate systems - (PDF, 20 pages, 428 KB, English) .
antistatique/swisstopo 适用场景与选型建议
antistatique/swisstopo 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 81.22k 次下载、GitHub Stars 达 14, 最近一次更新时间为 2020 年 06 月 12 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 antistatique/swisstopo 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 antistatique/swisstopo 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 81.22k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 14
- 点击次数: 9
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-06-12