Git Product home page Git Product logo

Comments (6)

MaxwellCanton avatar MaxwellCanton commented on June 3, 2024 1

Thanks Tronald , you will help me a lot if you do it.

from coordinatesharp.

Tronald avatar Tronald commented on June 3, 2024

UTM/MGRS cannot convert back to lat/long at this time. This feature needs to be added, it just hasn’t been a priority due to demand for celestial additions.

I’m finishing up 1.1.1.6. In the next few days. Let me research this issue and see if it’s something I can quickly include in the release.

If not I will add it to the enhancement request tracker (1.1.1.6 branch).

from coordinatesharp.

Tronald avatar Tronald commented on June 3, 2024

It got it working with some slight accuracy issues. I had started writing these conversion before, I just never finished them. I am going to release a BETA version of this function with 1.1.1.6. I am going to see how much I can clean it up over the next couple days before I release. I will let you know it's status in a few days.

from coordinatesharp.

Tronald avatar Tronald commented on June 3, 2024

@MaxwellCanton I just pushed version 1.1.2.1 (changed from 1.1.1.6 due to some larger than anticipated changes) to Nuget. It may take a bit to index, so give it a while if you don't see it in your search.

The feature you need is described in the documentation, but here is an example of what you need.

UniversalTransverseMercator utm = new UniversalTransverseMercator("T", 32, 233434, 234234);
Coordinate c = UniversalTransverseMercator.ConvertUTMtoLatLong(utm);

Your lat/long values will be contained in your Coordinate object.

If you use NATO UTM, use the MilitaryGridReference object instead of the UniversalTransverMercator.

If you use a UTM with a Southern/Northern hemisphere format instead of a zone letter format, just throw a "C" in for southern hemisphere and "T" for northern. The formulas will figure out what you mean.

You may refer to documentation for accuracy of conversions. Let me know if you have any issues with it.

from coordinatesharp.

MaxwellCanton avatar MaxwellCanton commented on June 3, 2024

@Tronald thanks you just helped me so much !, Everything is working fine! .

from coordinatesharp.

Tronald avatar Tronald commented on June 3, 2024

Glad to hear it. Thanks for letting me know πŸ‘

from coordinatesharp.

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.