Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm ERR! missing script: start #73

Open
mutantNeko opened this issue Nov 22, 2018 · 4 comments
Open

npm ERR! missing script: start #73

mutantNeko opened this issue Nov 22, 2018 · 4 comments

Comments

@mutantNeko
Copy link

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

@DanielJDufour
Copy link
Contributor

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!

@mutantNeko
Copy link
Author

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

@DanielJDufour
Copy link
Contributor

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 :-)

@mutantNeko
Copy link
Author

@DanielJDufour thank you so much Daniel!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants