Giter Site home page Giter Site logo

anjenram / geojson-to-gml-3.2.1 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from skalt/geojson-to-gml-3.2.1

0.0 1.0 0.0 409 KB

A node module to convert geojson geometries to GML 3.2.1

License: GNU General Public License v3.0

JavaScript 100.00%

geojson-to-gml-3.2.1's Introduction

geojson-to-gml-3

npm version Build Status

A package to translate geojson geometries to GML 3.2.1.


Geography Markup Language (GML) is an OGC Standard.

More information may be found at http://www.opengeospatial.org/standards/gml

The most current schema are available at http://schemas.opengis.net/ .


Policies, Procedures, Terms, and Conditions of OGC(r) are available at http://www.opengeospatial.org/ogc/legal/ .

OGC and OpenGIS are registered trademarks of Open Geospatial Consortium.

Installation

npm install geojson-to-gml-3

Use

// convert any geometry
import turf from '@turf/helpers';
import {geomToGml} from 'geojson-to-gml-3';
geomToGml(turf.point([0,0]).geometry);

// or for ultra-slim builds, import only what you need.
import {point, lineString, makeTranslator} from 'geojson-to-gml-3';
const geomToGml = makeTranslator({point, lineString});
// returns (geom, gmlId, params) => {
//  return {Point:point, LineString:lineString}[geom.type](geom, gmlId, params);
// }
geomToGml(turf.point([0,0]).geometry);
geomToGml(turf.linString([[0,0], [1,1]]));

For more details, see the API docs

Contribute

Contributions are welcome! Please submit issues, reference them in your PR, and make sure to add tests for any contributions you make.

geojson-to-gml-3.2.1's People

Contributors

chewn avatar dependabot[bot] avatar jessyst avatar skalt avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.