geotiff.js icon indicating copy to clipboard operation
geotiff.js copied to clipboard

npm ERR! missing script: start

Open mutantNeko opened this issue 7 years ago • 4 comments
trafficstars

Hi everyone,

I still can't get npm run normally. I've tried so many things. But I keep getting error when I run npm start. This is the error I get when I run npm start.

npm ERR! missing script: start

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/cairo/.npm/_logs/2018-11-22T02_08_49_301Z-debug.log

I tried to put start in package.json as suggested by many

"scripts": {
    "start": "node geotiff.js"
}

but still it doesn't work

mutantNeko avatar Nov 22 '18 02:11 mutantNeko

Hi, @mutantNeko . How would you like to use the geotiff.js library? There is no start script to run and that's okay. There isn't supposed to be one. geotiff.js is not an app to run, but a GeoTIFF file reader you use in your own app or script. I think that most people use the geotiff.js library by importing it and running one of the functions like fromArrayBuffer, readRasters. If you go into your use case, I might be able to help you better. Here's a link to how you use it: https://github.com/geotiffjs/geotiff.js#usage. Here's one example of how we've used it with georaster.

Happy to help if you describe your objectives. Thanks!

DanielJDufour avatar Nov 22 '18 02:11 DanielJDufour

Hi @DanielJDufour , I'm working on a portal for farmer to monitor their farm. I have stitched the images taken from DJI drone, and my main objective right now is to overlay the tiff images onto the map. Im using open street map and leaflet 1.3.4

mutantNeko avatar Nov 22 '18 03:11 mutantNeko

Hi, @mutantNeko . That sounds very interesting! I would recommend checking out georaster-layer-for-leaflet. It's a simple library that display raster files (including GeoTIFF's) on a leaflet map. It uses geotiff.js. You can also view an example here. I'd also recommend closing this issue because it doesn't seem like there is a problem with the geotiff.js library. Feel free to email me at daniel.j.dufour@gmail if you have any more questions :-)

DanielJDufour avatar Nov 22 '18 03:11 DanielJDufour

@DanielJDufour thank you so much Daniel!

mutantNeko avatar Nov 22 '18 03:11 mutantNeko