0.0.6 • Published 2 years ago

geojson-seg v0.0.6

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

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);
0.0.5

2 years ago

0.0.6

2 years ago

0.0.3

2 years ago

0.0.4

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago