Git Product home page Git Product logo

Comments (3)

chrisveness avatar chrisveness commented on July 3, 2024

My apologies for the late response – it's been some time since I've been able to devote any time to my open-source projects. I expect you've probably sorted this by now, but if not...

When I try converting 651409, 313177 to lat/lon with my code, it appears to be correct:

new OsGridRef(651409, 313177).toLatLon().toString('d', 6)
 => 52.657977° N, 001.716038° E

Are you converting back from OSGB36 to WGS84 after converting the OS grid ref to LatLon?

geodesy/osgridref.js

Lines 137 to 142 in 761587c

if (datum != LatLonEllipsoidal.datums.OSGB36) {
// if point is required in datum other than OSGB36, convert it
point = point.convertDatum(datum);
// convertDatum() gives us a LatLon: convert to LatLon_OsGridRef which includes toOsGrid()
point = new LatLon_OsGridRef(point.lat, point.lon, point.height, point.datum);
}

from geodesy.

magnas35 avatar magnas35 commented on July 3, 2024

Hi Chris - no worries. Like you I've been forced away from my side project and for the life of me I can't find/remember the specifics. I'll be returning to this when I'm done with my current project and will come back (if necessary) with a better specified question.

from geodesy.

magnas35 avatar magnas35 commented on July 3, 2024

Closed.

from geodesy.

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.