[Qgis-user] field calculator add field to .csv layer
Stéphane Henriod
s at henriod.info
Wed May 31 02:31:05 PDT 2017
Hi Janneke
If I'm not mistaking, the csv files are read-only in Qgis. So I guess it's
not a bug
I just tested here and all I can do is to add a virtual field to the csv,
but not actually write in the file.
Cheers
Stéphane
Le lundi 29 mai 2017, Janneke van Dijk <janneke.qgis at gmail.com> a écrit :
> Dear all,
>
> Using Qgis 2.18.9 on Windows (OSGeo4W64) I'm trying to import a .csv file
> and adding a text field. This is what I do:
> 1. add the .csv using add vector layer
> 2. open attribute table then use the field calculator
> 3. add text field, OK
> 4. toggle editing, save edits when asked.
> I then get the following error messages:
>
> Could not commit changes to layer test_fieldcalculator1
>
>
> Errors: ERROR: 1 new attribute(s) not added
>
> SUCCESS: 1 attribute value(s) changed.
>
> Provider errors:
>
> OGR error creating field txt:
>
> Feature 1 for attribute update not found.
>
> OGR error syncing to disk:
>
>
> The capabilities of this layer show:
>
> Add Features, Delete Features, Change Attribute Values, Add Attributes,
> Delete Attributes, Rename Attributes, Change Geometries, Curved Geometries
>
> which makes me think it should be possible to add attributes to this
> layer. Is this a bug or am I missing something? If a bug, is it in OGR or
> QGIS?
>
>
> Thanks for any insight,
>
> Janneke
>
>
>
--
Stéphane Henriod
CIM-Expert for GIS and Green Economy Statistics
Национальный статистический комитет Кыргызской Республики
Кыргыз Республикасынын Улуттук статистика комитети
National Statistical Committee of the Kyrgyz Republic
374 Фрунзе ул. / Frunze str.
720033 Бишкек / Bishkek
T +996 778 46 99 02 (KG)
T +49 176 280 11 050 (DE)
E s at henriod.info
W http://www.stat.kg
W3W: nightfall.into.bucket
<https://map.what3words.com/nightfall.into.bucket> // запас.союз.дружный
<https://map.what3words.com/запас.союз.дружный>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20170531/0ddbc8f9/attachment.html>
More information about the Qgis-user
mailing list