Coder Social home page Coder Social logo

Comments (7)

calvinmetcalf avatar calvinmetcalf commented on May 22, 2024

first off you can rewrite that as

var firstProjection = "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +units=m +k=1.0 +nadgrids=@null +no_defs"
proj4(firstProjection).inverse([4156404,7480076.5])

as for why ... so far I've ruled out issues with sphere vs ellipses as it is too small a difference to account for that.

from proj4js.

calvinmetcalf avatar calvinmetcalf commented on May 22, 2024

oh right ESPG:3857 is the projection that every uses a different number for. For parsing it from WKT I seem to remember having to put a manual fix in related to it claiming to be a sphere abut also having a reverse flattening specified.

from proj4js.

ql avatar ql commented on May 22, 2024

Um, I'm not that good in projections =
Did you mean fix in the library code or just setting proper Proj.4 string?

from proj4js.

calvinmetcalf avatar calvinmetcalf commented on May 22, 2024

sorry for the confusion I haven't figured out the what the issue yet is, in the first comment I was telling you an easier way you could specify the exact same thing, in the second comment I was more or less thinking out loud,

from proj4js.

madair avatar madair commented on May 22, 2024

The issue has to do with parsing the nadgrids parameter correctly to set datumCode=none. I have a fix for this, is there a way to make a pull request and associate it with this issue? GIthub aways seems to want to create a new issue for me.

from proj4js.

calvinmetcalf avatar calvinmetcalf commented on May 22, 2024

@madair create a new issue, and reference this one in it by mentioning it's number (#65) pulls are always separate from the issues in case we need to close the pull for reasons unrelated to the issue.

from proj4js.

calvinmetcalf avatar calvinmetcalf commented on May 22, 2024

looks like #66 closes this one

from proj4js.

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.