New answers tagged


I just had the same problem. In my case i work with Libreoffice and QGIS. I exported a table from R to .CSV with two columns: "id" and "veh". "id" is Integer and "veh" Real. write.csv(tab2,file='/path/table.csv',row.names = F) When i open the table.csv in Libreoffice the field veh was read it as "string". So i created another coulmn "vehh" as the ...


I'm assuming your habitats are regions, too. In that case you might need to split the habitat regions with your admin regions in order to get the exact area within each region. The good thing is that you can do all this in a single SQL Select statement: Select ADMIN_NAME, Sum(CartesianArea(Overlap(ADMIN.obj, HABITATS.obj), "hectare")) "Summed_Areas_Ha" ...


Default values are accessible via the data provider, so this may work for simple cases: provider = activeLayer.dataProvider() newFeature.setAttribute(0, provider.defaultValue(0))


As in my comment, simply rename the .dbf file, so it will not be recognised as part of the shapefile, and therefore will not be loaded.


I would suggest opening a bug report. In the mean time, try performing the buffer using the QGIS Geoalgorithms -> Vector geometry tools -> Fixed distance buffer in the processing toolbox, or from some other provider/plugin.


Have a look at the interface IFieldInfo3 it has a property called ReadOnly, you can get to this object via the ITableFields interface. As I understand the object model you are getting the FieldInfo object from say a FeatureLayer and not a FeatureClass. So turning ReadOnly to True is changing how the field is presented when as a layer object and not the ...

Top 50 recent answers are included