如何从POINT中找到lat long值 [英] How to find lat long values from the POINT

查看:104
本文介绍了如何从POINT中找到lat long值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的Point值是POINT(24.3 80.2),它存储在变量pnt中

i have Point value which is POINT(24.3 80.2) which is stored in variable pnt

我想要单独使用lat和long值。是否有任何简单的方法来获取使用python

I want to have the lat and long values seperately. is there any simple way to get that using python

POINT这里是地理位置,这意味着POINT(经度纬度)

推荐答案


您正在使用geos django。

You are using geos django.

查看 docs

>>> pnt = Point(5, 23)
>>> [coord for coord in pnt]
[5.0, 23.0]
>>> pnt.coords
(5.0, 23.0)

以下是不相关的,可以使用。保留其他参考资料。

查看以下项目: pyproj

  • http://pypi.python.org/pypi/pyproj/
  • http://code.google.com/p/pyproj/

模块可以执行制图变换和大地测量计算。

Module can performs cartographic transformations and geodetic computations.

Proj类可以从地理(经度,纬度)转换为本地地图投影(x,y)坐标,反之亦然,或从一个地图投影坐标系直接转换到另一个。

The Proj class can convert from geographic (longitude,latitude) to native map projection (x,y) coordinates and vice versa, or from one map projection coordinate system directly to another.

等等。

另请查看: geojson

  • http://pypi.python.org/pypi/geojson/1.0.1
  • http://sgillies.net/blog/815/geojson-and-pyproj-interop/

这篇关于如何从POINT中找到lat long值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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