Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/307.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/powerbi/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用Python解析.shp文件时转换坐标系_Python_Coordinates_Coordinate Systems_Coordinate Transformation - Fatal编程技术网

使用Python解析.shp文件时转换坐标系

使用Python解析.shp文件时转换坐标系,python,coordinates,coordinate-systems,coordinate-transformation,Python,Coordinates,Coordinate Systems,Coordinate Transformation,当我解析.shp文件(使用Python模块pyshp)时,点坐标存储在英尺坐标系(ftUS)中。如何将此数据转换为度、纬度和经度格式 import shapefile sf = shapefile.Reader("test") shapes = sf.shapes() print(shapes[0].points) 结果:[[1447887.395856008,552512.2958560139]这可能很有用,但如果您能找到更清洁的解决方案,我会非常感兴趣。谢谢,非常有用!我的解决方案更复

当我解析.shp文件(使用Python模块pyshp)时,点坐标存储在英尺坐标系(ftUS)中。如何将此数据转换为度、纬度和经度格式

import shapefile

sf = shapefile.Reader("test")
shapes = sf.shapes()
print(shapes[0].points) 

结果:[[1447887.395856008,552512.2958560139]

这可能很有用,但如果您能找到更清洁的解决方案,我会非常感兴趣。谢谢,非常有用!我的解决方案更复杂,包括使用js实现proj模块+python。