Code Monkey home page Code Monkey logo

geocoordconversion's People

Contributors

adathedev avatar

geocoordconversion's Issues

Inaccurate coordinate conversion due to incorrect conversion from javascript

This code introduces errors when coordinates are converted.

This code was converted from javascript originally (see project credits).
However, some of the expressions have not been converted correctly.

In javascript:
5/4 = 1.25

In C#:
5/4 = 1
since C# has two different operators for divide depending upon whether it is 
operating on integers or non-integers.

Where division on literal integers is performed in C#, the literals must be 
converted to doubles via cast or otherwise, e.g.
5d/4d = 1.25

Original issue reported on code.google.com by [email protected] on 17 Mar 2011 at 9:07

I am getting a 1.5 meter error when converting WGS84 GPS Longitude to OSGB36 easting

What steps will reproduce the problem?
1. Convert as GPS longitude with only 4 places after the decimal
2. Add 0.00000001 to the above latitude and try again (works)
3. Exact figures I used are: Lat: 51.59405969 Lon: -2.9867

What is the expected output? What do you see instead?

I do not know what the expected output is. I do know that it is incorrect - see 
attached data file.

What version of the product are you using? On what operating system?

"1.0.1.0"

Please provide any additional information below.

It appears to be somewhere in the 'AlignSigFigs' method of class 
'GridReference'.

It is fairly rare (I had one instance when converting a GPS trace of 11000+ 
points) - most GPS co-ordinates have 6 or more digits after the decimal point.

I only noticed it when I created a 3d line-string, in Bentley Microstation, 
base on a GPS trace of a rail train journey. The train suddenly shifts sideways 
by 1.5 meters (i.e. jumped off the rails).

I have attached the data I was working on as tab separated text file.
Load this into Excel and examine rows 830 to 834 column D-East.

As a by and by why are you using the 'AlignSigFigs' function?

Regards

Nigel Hatchett

Software Consultant
Aristoline Limited

Original issue reported on code.google.com by [email protected] on 13 Mar 2014 at 8:06

Attachments:

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.