您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
GeoGMLer is a JavaScript library for converting GML data into GeoJSON. It translates FeatureMembers with Points, LineStrings, and Polygons, handling coordinates via gml:coordinates and gml:posList. Supports multi-geometries to ensure conversion to GeoJSON's FeatureCollection.
此脚本不应直接安装,它是供其他脚本使用的外部库。如果您需要使用该库,请在脚本元属性加入:// @require https://update.gf.qytechs.cn/scripts/526229/1537672/GeoGMLer.js
GeoGMLer is a JavaScript library designed to efficiently convert GML (Geography Markup Language) data into GeoJSON format. It supports a wide range of GML geometries, making it ideal for integrating GML spatial data into web mapping applications and geographic data visualization tools.
This project is licensed under the MIT License. See the LICENSE file for more details.
GeoGMLer offers a comprehensive API to parse GML files and convert them into a GeoJSON FeatureCollection
. It is suitable for use in geographic data visualization and web mapping applications, providing support for various geometry types and coordinate reference systems.
gml:MultiCurve
and gml:MultiSurface
into GeoJSON.To use GeoGMLer, create an instance of GeoGMLer
and utilize its methods to perform conversions from GML strings to GeoJSON objects.
var geoGMLer = new GeoGMLer(); // Create a new instance of GeoGMLer
// Sample GML data input
const gmlData = `...GML data string...`;
// Parse the GML data
const { xmlDoc, crsName } = geoGMLer.read(gmlData);
// Convert to GeoJSON
const geoJson = geoGMLer.toGeoJSON({ xmlDoc, crsName });
console.log(geoJson);
The structure and logic for this project are based on established methods for converting XML to GeoJSON, utilizing modern JavaScript practices for handling geographic data.
Project was inspired by the work of gml2geojson (MIT licensed) and builds upon the concepts and implementations found there.
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址