Giter Site home page Giter Site logo

Comments (4)

simonw avatar simonw commented on May 24, 2024

https://github.com/simonw/shapefile-to-sqlite solved this like so:

$ shapefile-to-sqlite my.db features.shp --spatial-index

I'm torn. On the one hand I feel like setting up spatial indexes should be the default behaviour, not something you have to opt-in to.

But on the other hand, having geojson-to-sqlite and shapefile-to-sqlite behave differently is inconsistent.

Consistency wins: I'm going to implement --spatial-index.

from geojson-to-sqlite.

simonw avatar simonw commented on May 24, 2024

This isn't quite working:

% geojson-to-sqlite test.db quakes tests/quakes.ndjson --spatial-index --nl
CreateSpatialIndex() error: either "quakes"."geometry" isn't a Geometry column or a SpatialIndex is already defined

from geojson-to-sqlite.

simonw avatar simonw commented on May 24, 2024

Weird: that test passes, but it still fails when I run the above command.

from geojson-to-sqlite.

simonw avatar simonw commented on May 24, 2024

Opening a new issue for this.

from geojson-to-sqlite.

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.