Comments (3)
I think I need some more information. What version have you tried? What is the line causing the exception?
from geotiff.js.
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.
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)
- The exports `package.json` needs a new paint job HOT 3
- How do I use compression? HOT 3
- Typescript compilation error in BaseClient HOT 14
- Writing GeoTiffs HOT 3
- Reading files larger than 4gb? HOT 1
- image.readRasters() HOT 3
- Exceeds max_safe_integer. Precision may be lost. HOT 2
- Type error at build time HOT 1
- Abort signal should be extended to `getImage` when performing slice's fetch action
- Property 'headers' does not exist on type '{}'
- Pool workers lead to memory leak? HOT 3
- using geotiff.js with react-native HOT 6
- 请升级一下lerc依赖 HOT 2
- credentials option is ignored HOT 3
- idenify does not work on GeoTiff float (Digitales Höhenmodell Oberfläche NRW) HOT 2
- Generating a geotiff from an image and a list of ground control points.
- readRGB() does not always return an interleaved array HOT 2
- Support also CommonJS HOT 4
- BlockedSource: Duplicated HTTP range requests
- capturing world coordinates form the tiff imaegs using geotiff.js HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from geotiff.js.