【问题标题】:Difficulty with the image quality of the map generated with Bing Map Api使用 Bing Map Api 生成的地图的图像质量存在问题
【发布时间】:2013-03-01 14:48:37
【问题描述】:

我正在开发一个应用程序,它使用 [Bing Api] 检索“Bing 地图”的图像,因为我的 webService。 我的问题是图像的渲染。 如果我将缩放设置为大于大于 11,或者如果我设置的尺寸太大,恢复我的图像的结果就像“切”成几个加载并给人的印象图像未完全下载。

下面的示例图片...

你知道为什么这张图片看起来像它的背面吗?

这是我的 webService 中使用的代码。

    //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}

结果图像..:

【问题讨论】:

    标签: map localization geolocation bing-maps bing-api


    【解决方案1】:

    这似乎与航拍图像有关,但与技术无关。 我会向相应的团队报告。

    顺便说一句,你应该使用 REST Imagery API,这是使用 Bing 图像的官方方式,请参阅 MSDN:

    http://msdn.microsoft.com/en-us/library/ff701724.aspx

    这是基于您的示例的示例 URL:

    http://dev.virtualearth.net/REST/v1/Imagery/Map/Aerial/46,6/17?mapSize=800,800&key=YOURKEY
    

    【讨论】:

    • 非常感谢!我真的需要使用缩放参数和大小来保持高质量的图像。但是你打电话给我说问题不在于我?所以我现在什么都做不了?
    • 它不在你身边,你现在几乎无能为力。我会向团队报告,如果您是企业客户,可以联系技术支持报告此问题。
    • 非常感谢您能为我做这件事。不,不幸的是没有。我昨天开了一个账户,在支付许可证之前尝试在我的 bing 项目中使用技术。我没有使用谷歌地图,因为我所有的工作都集中在微软技术上。我可以等着看微软是否会在转向另一个服务之前解决这个烦人的问题^^
    • 我怀疑你能做的还有很多。请记住,对于卫星图像,Bing/Google 使用来自不同来源的图像并采用算法将图像拼接到一个“无缝”面板中。因此,会有来自不同来源的图像发生碰撞的地方,你会看到这一点。 IE。对于某些缩放级别,两个相邻的图块将来自不同的来源并且会以不同的方式显示。
    • 实际上,Bing 和 Google 都有内部流程来进行图像校正和校正,因此可以将各种来源的卫星图像集成到一个管道中,并调整不同的属性和渲染的方面。对于航拍图像(如这里),该过程略有不同,但主要原则仍然存在,最近出现的此类错误与上次图像升级有关。如前所述,我已在内部报告此问题,因此团队在此特定位置知道此问题。
    猜你喜欢
    • 2018-11-12
    • 1970-01-01
    • 2021-10-27
    • 2017-06-22
    • 1970-01-01
    • 2010-09-30
    • 1970-01-01
    • 2013-10-27
    • 1970-01-01
    相关资源
    最近更新 更多