Giter VIP home page Giter VIP logo

Comments (3)

constantinius avatar constantinius commented on June 7, 2024

I think I need some more information. What version have you tried? What is the line causing the exception?

from geotiff.js.

ThatcherC avatar ThatcherC commented on June 7, 2024

I'm using version 0.0.5, the most recent one on NPM. Since that doesn't include the patch that allows it work with node, I'm applying that myself to ...../node_modules/geotiff/src/globals.js. I uninstalled geotiff.js on my local machine as well as on my server this morning and then reinstalled on both using npm. I then pasted in the five or so lines at line 215.

Running locally, everything worked great. Running on the server, I get this:
TypeError: Cannot call method 'call' of undefined at Object.GeoTIFFImage._readRaster (/home/thatcher/node_modules/geotiff/src/geotiffimage.js:294:87) at Object.GeoTIFFImage.readRasters (/home/thatcher/node_modules/geotiff/src/geotiffimage.js:344:10) at Object.getElevations (/home/thatcher/node-servers/Moon2STL/elevationgetter.js:26:45) at /home/thatcher/node-servers/Moon2STL/moonstlserver.js:51:13 at Layer.handle [as handle_request] (/home/thatcher/node_modules/express/lib/router/layer.js:95:5) at next (/home/thatcher/node_modules/express/lib/router/route.js:131:13) at Route.dispatch (/home/thatcher/node_modules/express/lib/router/route.js:112:3) at Layer.handle [as handle_request] (/home/thatcher/node_modules/express/lib/router/layer.js:95:5) at /home/thatcher/node_modules/express/lib/router/index.js:277:22 at Function.process_params (/home/thatcher/node_modules/express/lib/router/index.js:330:12)

from geotiff.js.

ThatcherC avatar ThatcherC commented on June 7, 2024

Well I actually just solved this - completely an error on my part. My server was a few versions of node behind my local computer. I updated node and everything works. For reference that's node v0.12.9.

from geotiff.js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.