GithubHelp home page GithubHelp logo

Comments (6)

humphd avatar humphd commented on July 17, 2024 2

@mbostock I didn't realize there were two, so was using substack's. I've retested the above failing case with shapefile instead and it worked perfectly! Sorry for the confusion.

from shapefile.

mbloch avatar mbloch commented on July 17, 2024

You might want to take this problem to the shp2json issue tracker. It looks like this error has already been reported there: https://github.com/substack/shp2json/issues/23

from shapefile.

humphd avatar humphd commented on July 17, 2024

Ah, thanks. Sorry I filed here vs. there in the first place. Thanks for the link.

from shapefile.

mbostock avatar mbostock commented on July 17, 2024

@mbloch This library also exports a shp2json binary. @humphd Are you using this library’s shp2json or substack’s shp2json?

from shapefile.

mbloch avatar mbloch commented on July 17, 2024

Gosh, sorry about that. @mbostock...

I took a look at the file (because I'm always looking for tricky Shapefiles).

The file is unusual for a POINT type Shapefile, in that the features that lack valid coordinates use -1.7976931348623157e+308 for their x and y coordinate values. The Shapefile format uses large negative values to indicate null values in attribute data, but I haven't seen this convention used for coordinate data before.

The usual way to store Shapefile features without valid geometry is as a NULL type feature.

This might cause errors in some tools.

from shapefile.

mbostock avatar mbostock commented on July 17, 2024

Great!

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.