How do you convert a bing maps quad key, such as "03200320023" to coordinates in mercator virtual earth (epsg 3857) coordinate system?
I've got an algorithm to convert to coordinates in latitude longitude (e.g. the quad key above comes to "-84.19921875,33.7243385314941,-84.0234375,33.8704147338867"). I could then convert from latitude longitude to mercator coordinate, but that smells far too expensive in processing power.
The mercator virtual earth result I'm looking for given the above quadkey is: "-9373014,4011415,-9353446,4030983"
Some more context. I'm using bing maps and adding layers that I'm serving using mapserver from IIS using fastcgi. I basically want to convert the bing maps quadkey request for 256x256 tiles to a mapserver wms query in epsg 3857. It works in epsg 4326 (wgs84) and also when I convert from wgs84 to epsg 3857. However the performance is not what I want due to the two stage conversion.
I've also asked the question on gis.stackexchange.com which has now been answered