Skip to content

Instantly share code, notes, and snippets.

View IReese's full-sized avatar

Ian Reese IReese

  • Land Information New Zealand (LINZ)
  • Wellington, New Zealand
View GitHub Profile
var shapefile = require("shapefile");
const cover = require('@mapbox/tile-cover');
const fs = require('fs');
async function main() {
const shp = await shapefile.read("~lds-nz-imagery-surveys-SHP/nz-imagery-surveys_wgs.shp")
console.log(shp)
var limits = {
const csvWriter = require('csv-write-stream')
const shapefile = require("shapefile");
const cover = require('@mapbox/tile-cover');
const fs = require('fs');
async function main() {
const shp = await shapefile.read('~/nz-imagery-surveys_wgs.shp');
//console.log(shp)