GithubHelp home page GithubHelp logo

Comments (2)

nickrttn avatar nickrttn commented on September 18, 2024 1

I've replied over at inexorabletash/text-encoding#67. Just wanted to mention that downgrading text-encoding seems to have fixed the problem so it's likely a regression on their end.

from shapefile.

mbostock avatar mbostock commented on September 18, 2024

Unfortunately, I am not able to reproduce this error, so I don’t know how to investigate. I have filed inexorabletash/text-encoding#67 as this appears to be an issue with the text-encoding polyfill. I have also reverted shapefile to an earlier version of text-encoding (0.6.1) that hopefully does not exhibit this issue, as this appears to be a bug in a more recent release of text-encoding.

Questions for you:

  1. Did you install shp2json locally (npm install shapefile) or globally (npm install -g shapefile)?

  2. If you installed it locally, what is the output of npm ls? If globally, npm ls -g?

  3. How are you invoking shp2json? Are you specifying the --encoding argument? Are you passing a shapefile as the first argument, or are you piping a shapefile via stdin?

  4. Do you have anything unusual in your Node setup, such as an alias that would pass default arguments to Node (say --use-strict)?

If you can reply over on inexorabletash/text-encoding#67 that would be helpful for debugging, or you can reply here and I will relay the information.

from shapefile.

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.