berimor66 / geocoordconversion Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/geocoordconversion
Automatically exported from code.google.com/p/geocoordconversion
What steps will reproduce the problem?
1.Import the assembly into SQL Server
What is the expected output? What do you see instead?
Function should import in safe mode but SQL Server complains that static
functions need to be set as readonly
Modified code attached.
Original issue reported on code.google.com by [email protected]
on 4 Feb 2011 at 10:25
Attachments:
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:
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.