[Qgis-user] Selecting a part of an attribute
Stefan Giese
Stefan.Giese at wheregroup.com
Thu Jan 10 02:06:26 PST 2019
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
stefan.giese at wheregroup.com
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
> 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
More information about the Qgis-user
mailing list