Tag: 地理位置

JMapViewer,将栅格加载到某个位置

我想在JMapViewer中的地图上加载并显示光栅文件。 光栅文件: 应该装在特定的位置, 使用缩放操作动态更改大小, 我希望JMapViewer支持这些操作。 目前,我正在使用从MapMarkerCircle派生的类: public class ImageViewer extends MapMarkerCircle implements MapMarker { private BufferedImage img; public ImageViewer(Coordinate position, BufferedImage img) { this(position, 1, img);} public ImageViewer(Coordinate position, double radius, BufferedImage img) { super(position, radius); this.img = img; } public void paint(Graphics g, Point position, int sc) { int w = (int) (img.getWidth() * […]

如何计算给定点(经度,纬度)给定半径内的所有点(经度,纬度)?

我有一个给定的点(经度,纬度),我希望得到所有的点范围,让我们说在给定点5英里半径?

如何将数据发送到android中的服务器

我想在我的应用程序中循环发送纬度和经度。 这是使用GPS获取此参数的function private void showLocation(Location location) { String latitude = “Latitude: “; String longitude = “Longitude: “; if (location != null) { latitude += location.getLatitude(); longitude += location.getLongitude(); } } 我正在寻找网络上的方法,我找到了一些,但它不起作用,它已被弃用 public void sendData(double latitude, double longitude){ HttpClient httpclient = new DefaultHttpClient(); HttpPost httppost = new HttpPost(“http://192.xxx:8080/run/mypage.php”); try { List nameValuePairs = new ArrayList(2); nameValuePairs.add(new […]

在android中实现三角测量

嗨大家好:我是android新手。 我正在开发Android 2.2中的应用程序,以通过任何可用资源(GPS,网络等)识别用户的位置。 我已经通过GPS和使用SIM网络和互联网找到了位置。 现在问题是想要在没有GPS和没有互联网的情况下找到设备。 在这种情况下,我必须实现三角测量。 我知道三角测量概念的理论,但实施对我来说真的是一个大问题。 是否有人会引导我解决问题? 我在网上搜索过但找不到任何解决方案。

如何在Android中获取经纬度

如果GPS不可用,如何从移动设备获取经度和纬度……我的手机通过wifi和gprs连接进行互联网连接….我们可以获得拉特和长期吗?

如何获得Android的纬度和经度?

如何在android2.3.3中获取当前的纬度和经度? 我尝试遵循这个但我无法运行程序。 我的代码 LatView = (TextView)findViewById(R.id.LatText); LngView = (TextView)findViewById(R.id.LngText); LocationManager lm = (LocationManager)getSystemService(Context.LOCATION_SERVICE); Location location = lm.getLastKnownLocation(LocationManager.GPS_PROVIDER); double longitude = location.getLongitude(); double latitude = location.getLatitude(); 在android清单中我把它。 请帮忙。 谢谢。

将网络位置保存为.txt文件(不使用GPS)

我是android编程的初学者。 我的研究生项目是关于跟踪移动设备,我需要代码来保存位置(不使用GPS)作为文本文件。 有人建议我这样做的代码。 这对我来说是一个很大的帮助。