you can better use this expression: array_get(string_to_array(
"Koordinater" ),0) for the first coordinate
Mit freundlichen Grüßen
Stefan Giese
Projektleiter/Consultant
****************************************************************************
FOSS Academy Kompaktkurs "Winterschule 2019"
Grundwissen zum Aufbau von Geodateninfrastrukturen mit Open-Source-Software
https://foss-academy.com/kompaktkurse
****************************************************************************
WhereGroup GmbH & Co. KG
Schwimmbadstr. 2
79100 Freiburg
Germany
Fon: +49 (0)761 / 519 102 - 61
Fax: +49 (0)761 / 519 102 - 11
[email protected]
www.wheregroup.com
Amtsgericht Bonn, HRA 6788
-------------------------------
Komplementärin:
WhereGroup Verwaltungs GmbH
vertreten durch:
Olaf Knopp, Peter Stamm
-------------------------------
Am 10.01.2019 um 10:59 schrieb johnrobot:
Hi
I have an attribute (named "Koordinater") with coordinate pairs, such as
"6417192.227, 326926.702", and I would like to exctract the two coordinates
into separate attributes. Using the field calculator seems to be the way to
do this, for example:
left( "Koordinater", strpos( "Koordinater" , ','))
When I runt this in the field calculator from the attribute table, I get
"6417192.227", but when I run the field calculator in Processing with the
same configuration, I get "6417192.227,". Note the extra "," at the end. Am
I missing something or could this be a bug? I use QGIS 3.4.3, 64 bit, on
Windows 10.
Regards,
Magnus
--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-User-f4125267.html
_______________________________________________
Qgis-user mailing list
[email protected]
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
_______________________________________________
Qgis-user mailing list
[email protected]
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user