qgis - 创建层 - 看不到经纬度值

ere*_*rez 0 qgis

I'm using qgis 3 and generate a lot of layers types, but in any case I don't find the lat lon values of the points. I have tried to use the attributes table calculator (added fields $x and $y but it showed me big value, I guess in meters and not the lat lon).

  • I want to see the lat-lon without using the plugin of lat-lon tools.

Tho*_*ier 6

您可以使用图层的字段计算器创建虚拟字段并完成经度

 x(transform($geometry,  layer_property( 'CHEF_LIEU20160610124929878', 'crs'), 'EPSG:4326'))
Run Code Online (Sandbox Code Playgroud)

和纬度

y(transform($geometry,  layer_property( 'CHEF_LIEU20160610124929878', 'crs'), 'EPSG:4326'))
Run Code Online (Sandbox Code Playgroud)

其中“CHEF_LIEU20160610124929878”是您的图层标识符

您将看到一个完整的演示来演示如何做到这一点

QGIS x, y 到 lon, lat

  • 我想你可能是指纬度线的`y(transform...`)。 (2认同)