[Qgis-user] field calculator add field to .csv layer

Janneke van Dijk janneke.qgis at gmail.com
Sat Jun 3 10:39:57 PDT 2017


Thanks, Stéphane.
That at least confirms it - the capabilities are then a bit misleading, 
if the layer is not meant to be editable.

regards,
Janneke

On 31-May-17 12:31, Stéphane Henriod wrote:
> 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 
> <mailto: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 <mailto:s at henriod.info>
> W http://www.stat.kg
> W3W: nightfall.into.bucket 
> <https://map.what3words.com/nightfall.into.bucket>  // 
> запас.союз.дружный 
> <https://map.what3words.com/%D0%B7%D0%B0%D0%BF%D0%B0%D1%81.%D1%81%D0%BE%D1%8E%D0%B7.%D0%B4%D1%80%D1%83%D0%B6%D0%BD%D1%8B%D0%B9>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20170603/ad15dce0/attachment.html>


More information about the Qgis-user mailing list