Jan
4
Written by:
Soul Solutions
Thursday, 4 January 2007
In Virtual Earth we use lat/lon pairs everywhere, for pushpins, polylines and polygons but also for map bounds like the current view. This article aims to look at a better way to store and transmit these values. The encoding algorithm used is from Google maps. You will find an explanation of how and why we use it for Virtual Earth.
Read the article here.
Tags:
9 comments so far...
Re: Virtual Earth - Encoding for performance - new article
Hello,
I tried to translate the code from c# to VB.NET and I got some errors.
/// /// Encode an unsigned number in the encode format. /// /// the unsigned number /// the encoded string private static string encodeNumber(int num) { StringBuilder encodeString = new StringBuilder(); while (num >= 0x20) { //while another chunk follows encodeString.Append((char)((0x20 | (num & 0x1f)) + minASCII)); //OR value with 0x20, convert to decimal and add 63 num >>= binaryChunkSize; //shift to next chunk } encodeString.Append((char)(num + minASCII)); return encodeString.ToString(); } Is there someone who can translate this function to VB.NET, I don't know what type of variables are "binaryChunkSize" and "minASCII".
Thanks a lot for help Dirk
By Dirk on
Tuesday, 15 May 2007
|
Re: Virtual Earth - Encoding for performance - new article
Hi -
Great article. I am going to pull your code into a sample site I am building.
Thanks, Matt Berseth - http://mattberseth.com
By Matt Berseth on
Sunday, 20 May 2007
|
Re: Virtual Earth - Encoding for performance - new article
What are the value for "binaryChunkSize" and "minASCII"?
By Gunnar on
Thursday, 7 June 2007
|
Re: Virtual Earth - Encoding for performance - new article
binaryChunkSize = 5 minASCII = 63
By T on
Tuesday, 3 July 2007
|
Re: Virtual Earth - Encoding for performance - new article
Hi, Thanks for the steer. Am i allowed to use these code snippets in a production system i am building for a client?
Cheers
By Ash on
Thursday, 3 January 2008
|
Re: Virtual Earth - Encoding for performance - new article
Have you noticed the JS decoding algorithm to be slow in browsers other than FF? I have found out that charCodeAt on a long-ish string to be about 300x slower in Safari and 1000x slower in Opera 9.2
By Leonya on
Saturday, 8 March 2008
|
Re: Virtual Earth - Encoding for performance - new article
EncodeLatLong(List points) the List gives an error... (type or namespace not found)
By G. Bezemer on
Friday, 4 April 2008
|
Re: Virtual Earth - Encoding for performance - new article
My previous Comment is not shown correctly:
EncodeLatLong(List points)
By G. Bezemer on
Friday, 4 April 2008
|
Re: Virtual Earth - Encoding for performance - new article
EM .. your website is very good, like you like this style of the website, which is very good. ---------------- Welcome to WOWPOWER-LEVELING.COM,WOWPOWER-LEVELING.COM is professional power leveling website, we have the WOW US POWER LEVELING, WOW EU POWER LEVELING,Age of Conan Power leveling the 1-70 Power leveling, there are more professional, more cost-effective packages powerleveling, For example: WOW POWER LEVELING PACKAGES US POWERLEVELING PACKAGES EU POWERLEVELING PACKAGES. We sincerely hope that WOWPOWER-LEVELING.COM services can make your satisfaction, but also hope you will enjoy the experience of the real fun game, you loyal WOWPOWER-LEVELING.COM
By wowpower-leveling on
Friday, 20 June 2008
|