geojson-seg

0.0.6 • Public • Published

geojson-seg

CDN

 <script type="text/javascript" src="https://unpkg.com/geojson-seg/dist/geojson-seg.min.js"></script>

 <script>

     fetch('./isoline.geojson').then(res=>res.json()).then(geojson=>{

          // the count of coordiante one geojson file
          const coordinateCount=12000;
          const geojsons=geojsonseg.seg(geojson,coordinateCount);
     })

</script>

NPM

npm i geojson-seg
# or
yarn add geojson-seg
  //ESM
  import {seg} from 'geojson-seg';

  // the count of coordiante one geojson file
  const coordinateCount=12000;
  const geojsons=seg(geojson,coordinateCount);


  //node
  const geojsonseg=require('geojson-seg');
  // the count of coordiante one geojson file
  const coordinateCount=12000;
  const geojsons=geojsonseg.seg(geojson,coordinateCount);

/geojson-seg/

    Package Sidebar

    Install

    npm i geojson-seg

    Weekly Downloads

    4

    Version

    0.0.6

    License

    ISC

    Unpacked Size

    20.9 kB

    Total Files

    7

    Last publish

    Collaborators

    • hudeyi