JSPM

geometadata

0.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q12431F
  • License CC0-1.0

Parse Geographic MetaData (GMD) XML

Package Exports

  • geometadata

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (geometadata) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

⚠️ This is a work in progress

geometadata

Parse Geographic MetaData (GMD) XML

install

npm install geometadata

usage

const fs = require("fs");
const parse = require("geometadata/parse");

const text = fs.readFileSync("metadata.xml", "utf-8");
const results = parse(text);
/*
{
    language: 'Italian',
    projection: 4326,
    xmin: 10.2822923743907,
    xmax: 13.3486486092171,
    ymin: 44.418521542726054,
    ymax: 47.15260827566466
}    
*/