Map 使用Bing地图Api生成的地图的图像质量问题
我正在开发一个应用程序,从我的Web服务开始使用[BingAPI]检索“Bing地图”的图像。 我的问题是图像的渲染。 如果我将缩放设置为大于11,或者如果我将大小设置为太大,,则恢复图像的结果就像将图像“剪切”为多个加载,给人的印象是图像未完全下载 下面的示例图片… 你知道为什么图像看起来像它的背面吗 这是我在Web服务中使用的代码Map 使用Bing地图Api生成的地图的图像质量问题,map,localization,geolocation,bing-maps,bing-api,Map,Localization,Geolocation,Bing Maps,Bing Api,我正在开发一个应用程序,从我的Web服务开始使用[BingAPI]检索“Bing地图”的图像。 我的问题是图像的渲染。 如果我将缩放设置为大于11,或者如果我将大小设置为太大,,则恢复图像的结果就像将图像“剪切”为多个加载,给人的印象是图像未完全下载 下面的示例图片… 你知道为什么图像看起来像它的背面吗 这是我在Web服务中使用的代码 //call function GetImageMap(46,6,800,800,17); //Get Bing map Image
//call function
GetImageMap(46,6,800,800,17);
//Get Bing map Image from the web
public string GetImageMap(double latitude,double longitude,int mapSizeHeight, int mapSizeWidth, int zoomLevel)
{
string key = "asoidfz9aos78fa9w3hf9w3fh9hf7ha9wfw37fhblablablablablabla";
MapUriRequest mapUriRequest = new MapUriRequest();
// Set credentials using a valid Bing Maps key
mapUriRequest.Credentials = new ImageryService.Credentials();
mapUriRequest.Credentials.ApplicationId = key;
// Set the location of the requested image
mapUriRequest.Center = new ImageryService.Location();
mapUriRequest.Center.Latitude = latitude;
mapUriRequest.Center.Longitude = longitude;
// Set the map style and zoom level
MapUriOptions mapUriOptions = new MapUriOptions();
mapUriOptions.Style = MapStyle.Aerial;
mapUriOptions.ZoomLevel = zoomLevel;
mapUriOptions.PreventIconCollision = true;
// Set the size of the requested image in pixels
mapUriOptions.ImageSize = new ImageryService.SizeOfint();
mapUriOptions.ImageSize.Height = mapSizeHeight;
mapUriOptions.ImageSize.Width = mapSizeWidth;
mapUriRequest.Options = mapUriOptions;
//Make the request and return the URI
ImageryServiceClient imageryService = new ImageryServiceClient();
MapUriResponse mapUriResponse = imageryService.GetMapUri(mapUriRequest);
return mapUriResponse.Uri;
}
// ### END Function getImageMap
和url查询:
http://api.tiles.virtualearth.net/api/GetMap.ashx?c=46,6&dcl=1&w=800&h=800&b=a,mkt.en-US&z=17&token={token}
结果图像..:
它似乎与航空图像有关,而与技术无关。 我将向适当的团队报告 顺便说一下,您应该使用REST图像API,这是使用Bing图像的官方方式,请参见MSDN: 以下是基于您的示例的示例URL:
http://dev.virtualearth.net/REST/v1/Imagery/Map/Aerial/46,6/17?mapSize=800,800&key=YOURKEY
非常感谢你!我真的需要用缩放参数和大小来保持高质量的图像。但是你给我打电话说问题不是我出的?所以我现在什么都做不了?这不在你这边,你现在也无能为力。我会向团队报告,如果您是企业客户,您可以联系技术支持来报告此问题。如果您能为我这样做,非常感谢。不,不幸的是没有。在支付许可证之前,我昨天开了一个账户,试图在我的bing项目中使用技术。我没有使用谷歌地图,因为我所有的工作都集中在微软技术上。我可以先看看微软是否会解决这个恼人的问题,然后再转向其他服务^^^我怀疑你能做多少。请记住,对于卫星图像,必应/谷歌使用来自不同来源的图像,并使用算法将图像缝合到一个“无缝”面板中。因此,在某些地方,来自不同来源的图像会发生碰撞,你会看到这一点。也就是说,对于特定的缩放级别,两个相邻的图像块将来自不同的来源,并且将以不同的方式显示。实际上,Bing和Google都有内部流程来进行图像校正和校正,因此可以将不同的卫星图像源集成到单个管道中,并调整不同的属性和渲染效果。对于航空图像(如此处),过程略有不同,但主要原则仍然存在,最近出现的此类错误与上次图像升级有关。如前所述,我已经在内部进行了报告,因此团队知道这个特定位置的问题。