[UWP] [C#]请帮我示例代码来计算地图上的半径 [英] [UWP][C#]Please help me sample code to calculate radius on map

查看:147
本文介绍了[UWP] [C#]请帮我示例代码来计算地图上的半径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好!


您能否给我一些示例代码来计算Kilomet或Meter中地图上圆圈的半径,谢谢!


解决方案

< blockquote>

嗨Nguyen_Thanh_Liem,


圈子是什么?你创造它吗?如果你可以得到圆的半径像素,我们可以使用像素和MapControl.ZoomLevel来获得半径的距离。


你应该能够使用地面分辨率(米/像素)乘以像素来获得米。


有一份关于地面分辨率和地图比例的官方文件,请参考以下链接:
https://msdn.microsoft.com/library/bb259689.aspx




最好的问候,


Jayden Gu



Hi everybody!

Can you give me sample code to calculate radius of a circle on map in Kilomet or Meter, Thank you!

解决方案

Hi Nguyen_Thanh_Liem,

What is the circle? Do you create it? If you can get the pixels of radius of the circle, we can use the pixel and the MapControl.ZoomLevel to get distance of the radius.

You should able to use the Ground Resolution (meters / pixel) multiply by pixel to get meters.

There is an official document about Ground Resolution and Map Scale, please refer it in this link: https://msdn.microsoft.com/library/bb259689.aspx.


Best Regards,

Jayden Gu


这篇关于[UWP] [C#]请帮我示例代码来计算地图上的半径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆