Code Monkey home page Code Monkey logo

Comments (5)

wavded avatar wavded commented on September 3, 2024

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.

bgschiller avatar bgschiller commented on September 3, 2024

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.

wavded avatar wavded commented on September 3, 2024

You are right, ogr2ogr should really be reading the projection file.. I'll take a peak

from ogre.

wavded avatar wavded commented on September 3, 2024

@bgschiller this change has been made, now ogr2ogr will look for the .prj file if no sourceSrs is provided

from ogre.

bgschiller avatar bgschiller commented on September 3, 2024

Thanks so much! Passes my test case -- I'll try a couple others tomorrow morning.

from ogre.

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.