GithubHelp home page GithubHelp logo

Comments (8)

gregseb avatar gregseb commented on July 1, 2024

That looks to me like it's failing to process the shapefile outright for some reason. the reasons that come to mind are either ogr2ogr is actually not being found, the shapefile is invalid for some reason, or something's changed since I wrote this code.

What happens if you run the following from a terminal on the server your site is running on?: which ogr2ogr

I'll look into the other two possibilities and get back to you as soon as I can.

from geospatial.

gregseb avatar gregseb commented on July 1, 2024

The shapefile appears to be valid... so it's problems one, three, or mystery problem.

from geospatial.

gregseb avatar gregseb commented on July 1, 2024

the code runs fine for me, so we're going to have to trouble shoot your system.

Changed issue type to question.

from geospatial.

kblattmann avatar kblattmann commented on July 1, 2024

Thanks Greg. I get this when running from the terminal:

[~/www/dev/free]# which ogr2ogr
/usr/bin/ogr2ogr

from geospatial.

gregseb avatar gregseb commented on July 1, 2024

For information:

Spoke with Karl on skype and found that the version of ogr2ogr on the server hosting his site doesn't interpret /vsistdout/ as a sign to write output to StdOut and instead throws an error.

from geospatial.

gregseb avatar gregseb commented on July 1, 2024

long term solution is to see if the shared hosting guys will update gdal (dtarc says 1.8+ is required). In the mean time I'll spin out an lternative ogr2ogr version as a temperary solution.

Changed title of issue to: Outdated ogr2ogr doesn't implement /vsistdout/ to StdOut

from geospatial.

gregseb avatar gregseb commented on July 1, 2024

Pushed a branch to GJdan/ogr2ogr.git called tmpdir. It will write to the temp directory instead of StdOut and should work on your site while the shared hosting guys still keep the old gdal library around.

git clone --branch=tmpdir [email protected]/GJdan/ogr2ogr.git

from geospatial.

kblattmann avatar kblattmann commented on July 1, 2024

So here is what my site is running:
They are CentOS 5.x and 6.x (but I'm fuzzy on which one we had this problem, but I think the 6.x). Both are x64

from geospatial.

Related Issues (1)

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.