[Qgis-user] seeing coordinates in the data table

Andreas Neumann a.neumann at carto.net
Mon Sep 2 12:53:46 PDT 2024



Hi Greg,

You can create a virtual column that shows the geometry values in a 
human readable form. For points it is trivial. Just use $x and $y as 
expressions, for other geometry types you can write out the WKT string.

https://docs.qgis.org/3.34/en/docs/user_manual/working_with_vector/attribute_table.html#creating-a-virtual-field

Hope this helps,

Andreas

On 2024-09-02 21:37, Greg Troxel via QGIS-User wrote:

> When I open the data table, I can't find a way to see the geometry
> object, in either layer CRS or project CRS.
> 
> I do see a way to generate a layer which has the attributes as fields:
> 
> https://docs.qgis.org/3.34/en/docs/user_manual/processing_algs/qgis/vectorgeometry.html#add-geometry-attributes
> 
> But I don't really  want to make a layer (which is a copy not a view).
> I just want the data table to show me the geometry, because it is a
> column and has a value.  (I don't mind that it is read only.)
> 
> Perhaps I should be using postgis and views to make a layer with extra
> fields.  Any other advice?
> 
> _______________________________________________
> QGIS-User mailing list
> QGIS-User at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20240902/89516af8/attachment.htm>


More information about the QGIS-User mailing list