Comments (8)
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.
The shapefile appears to be valid... so it's problems one, three, or mystery problem.
from geospatial.
the code runs fine for me, so we're going to have to trouble shoot your system.
Changed issue type to question.
from geospatial.
Thanks Greg. I get this when running from the terminal:
[~/www/dev/free]# which ogr2ogr
/usr/bin/ogr2ogr
from geospatial.
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.
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.
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.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from geospatial.