Comments (5)
Thanks for the detailed report! I was able to fix a bug in the underlying ogr2ogr module which made the results inconsistent. However, in order to get the right translation in your case, you will also need to specify the sourceSrs param:
curl -v -X POST -F sourceSrs=EPSG:32630 -F targetSrs=EPSG:4326 -F upload=@ogre_issue_example.zip http://ogre.adc4gis.com/convert
from ogre.
Great, thanks for all your work!
Regarding sourceSrs: Is it enough to include a .prj file as part of the shapefile .zip? I'm using your service as a fallback for when GIS libraries aren't installed on the host computer. It's sort of error-prone to try to detect the coordinate system from the .prj file, so I'd rather pass the whole thing along if possible.
Just checked, and the results are now consistent, but it looks like ogre is ignoring the .prj file.
from ogre.
You are right, ogr2ogr should really be reading the projection file.. I'll take a peak
from ogre.
@bgschiller this change has been made, now ogr2ogr will look for the .prj file if no sourceSrs is provided
from ogre.
Thanks so much! Passes my test case -- I'll try a couple others tomorrow morning.
from ogre.
Related Issues (20)
- Features from all layers get thrown into 1 layer HOT 2
- Random response structure in GeoJson format. HOT 1
- Convert to GeoJSON HOT 2
- Error on conversion to DXF HOT 4
- /convert endpoint broken HOT 12
- Export to DGN HOT 9
- Stdout maxbuffer length exceeded while converting to geojson HOT 3
- HTTP Post Unexpected Field HOT 2
- /convert unable to convert .zip files HOT 2
- outputName param is not working HOT 1
- Issue while converting a shapefile to geojson HOT 3
- Converting from CSV: Geometry not being structured correctly HOT 2
- /convertJson returning 400 HOT 3
- DeprecationWarning: Invalid 'main' field in HOT 6
- stdout maxBuffer length exceeded HOT 3
- spawn ogr2ogr ENOENT HOT 1
- Questions about KMZ conversion and Polar Projections HOT 3
- using fetch in typescript returns {"error":true,"message":"Unexpected field"} HOT 1
- Build OGRE with latest version of GDAL/ogr2ogr to extend abilities, including support for KMZ files HOT 3
- Error converting to shz (EISDIR)
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 ogre.