Code Monkey home page Code Monkey logo

Comments (3)

dazuma avatar dazuma commented on May 28, 2024

Hi Greg,

Yes, this is a general source of headache. When implementing simple_mercator, I tried to bury most of the issues and develop a system that generally "just works" for the common cases:

  • I chose to use SRID 3785, even though EPSG wants to deprecate it in favor of 3857. This was done because I can verify that 3785 is known by all spatial reference databases supported by RGeo (spatialreference.org, PostGIS, and Proj4). 3857 is missing from some databases.
  • The actual transform implementation for simple_mercator uses custom (Ruby) code that performs the same actual transform that Google performs. It does not use the OGC parameters, precisely for the reasons given in the article you cite: it is not possible to express the actual Google transform using the OGC format. Therefore, the parameters are provided merely for informational purposes.

If we think the parameters are "wrong", we can make changes to them. Although I'm not sure it matters much, given that they aren't used by the factory to perform transforms, and given that, regardless of what we do to them, they'll be "wrong" anyway, in that they will never actually express the correct transform.

from rgeo.

ghazel avatar ghazel commented on May 28, 2024

I see. Well, maybe one for the docs then. I just wanted to verify that this wasn't going to shift by 20km some day when it was addressed.

from rgeo.

eddietejeda avatar eddietejeda commented on May 28, 2024

Is there a plan to shift over to EPSG:3857 at some point?

from rgeo.

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.