question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot import geotiff

See original GitHub issue

First thanks for the work done with this library. The code base looks great.

I’m trying to install the module either doing npm install -g geotiff or with the source (as mentioned in the documentation) but still not succeed to import geotiff in my script.

> const GeoTIFF = require('geotiff');
/Users/vincentsarago/.nvm/versions/node/v8.11.2/lib/node_modules/geotiff/src/main.js:1
(function (exports, require, module, __filename, __dirname) { export * from './geotiff';
                                                              ^^^^^^

Is there something obvious I’m missing ?

Thanks

Node version: v8.11.2 (via nvm)

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
constantiniuscommented, May 19, 2018

Hi @vincentsarago,

I fixed the issue, by adding a new source using nodes http API. Please upgrade to v1.0.0-beta.3, and you should be good to go.

Thanks for the beta-testing and sorry for the inconvenience!

1reaction
constantiniuscommented, May 18, 2018

Hi @vincentsarago! Thanks for reporting this issue. Throughout the project I’m using the new ES module syntax (import/export), which can be easily translated to something more widely supported using babel. I’ve planned to do this anyhow but it simply dropped under the table, thanks for reminding me.

I’ll include this in the next beta (doing this now, should just take a couple of minutes).

Read more comments on GitHub >

github_iconTop Results From Across the Web

GeoTiff format - 'Unable to read file' . Can I convert for Civil 3D?
Go to Solution. Mike, Can you open and re-save the GeoTiff in QGIS or GeoViewer or Global Mapper? Please post the GeoTiff, using...
Read more >
Error in importing GeoTiff files - R RASTER package
I am trying to create a loop for automatically upload some GEOTiff datasets using the raster{raster}. Firstly, ...
Read more >
How do I import a GeoTIFF custom chart? - ForeFlight Support
Import via Finder using drag and drop; Import via the FIles app; Import via an online direct link. NOTE: Individual GeoTIFF files cannot...
Read more >
FAQ: Is there a way to add a GeoTIFF file to ArcGIS Online?
Due to certain limitations, GeoTIFF files cannot be added directly to a web map. However, there are ways to add GeoTIFF files to...
Read more >
Importing GeoTiff files - Google Groups
Importing TIFF/TFW combi's are no problem. But I can't get the GeoTiff-header rasters imported in MI (12.5). When I try opening the file...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found