Coder Social home page Coder Social logo

Comments (6)

wavded avatar wavded commented on June 19, 2024

This means that you don't have gdal installed on your system or the ogr2ogr tool is not accessible in your PATH. See https://github.com/wavded/ogr2ogr#requirements

from ogr2ogr.

yippee2015 avatar yippee2015 commented on June 19, 2024

Yes,you are right. I didn't install gdal.
After installing gdal, how to configure paths of ogr2ogr tool?
Thanks for your help! I'm looking forward to your reply.

from ogr2ogr.

casperfibaek avatar casperfibaek commented on June 19, 2024

For windows, check step three of this tutorial: https://sandbox.idre.ucla.edu/sandbox/tutorials/installing-gdal-for-windows

from ogr2ogr.

yippee2015 avatar yippee2015 commented on June 19, 2024

Hi @wavded @casperfibaek Thanks a lot. It helped.
I install OGRE project, ogr2ogr can work
But when I use the example node geojson-obj.js , I get
spawn ogr2ogr ENOENT Error. when i try to convert a file
I don't know what's wrong In the process,hopes your help

from ogr2ogr.

wavded avatar wavded commented on June 19, 2024

Closing due to age, reopen if issue persists.

from ogr2ogr.

zachsa avatar zachsa commented on June 19, 2024

I get the same error. If I fork the code, and follow the instructions at https://stackoverflow.com/a/27883443/3114742, Then the output is this:

[Arguments] {
  '0': '/usr/bin/docker run --rm osgeo/gdal:alpine-small-latest ogr2ogr',
  '1': [
    '-f',
    'GeoJSON',
    '/vsistdout/',
    '/tmp/catalogue-api/pJMXmL/HST_indicators_2007-2019.shp'
  ],
  '2': undefined
}

If I try using cp.exec instead of cp.spawn, I get the error FAILURE: no target datasource provided

from ogr2ogr.

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.