All Questions
Tagged with fields or fields-attributes
328 questions with no upvoted or accepted answers
6
votes
0
answers
91
views
Creating Raster that sums up input polygons using QGIS?
I am using QGIS and I have a shapefile with buildings. From these buildings, I have made a Buffer with variegating radius. The Buffer also have data about the demand for Parking spots for each ...
6
votes
1
answer
252
views
Sharing properties for SQL Server table in QGIS
I have a project where most of the layers come from a SQL Server. Most of the layers contain pointers to, and/or drop down list for, attributes so that there is consistency in data entry. This project ...
5
votes
0
answers
4k
views
QGIS Field Calculator NaN error messages dependent upon variable type?
I have a layer which contains roads. I am using the Field Calculator to compute some statistics based on different attributes. Using QGIS 3.10.14
I am running into an issue using lengths. I have ...
5
votes
0
answers
621
views
QGIS export to shapefile inflates real field size and value
At 3.8.3, when I Export > Save As a Geopackage point layer to a shapefile, fields with type = double are output with 15(!!!) significant digits. Here are the before and after field widths:
Input:
...
4
votes
1
answer
2k
views
QGIS Naming Model Outputs using attribute from input layer
This is the first QGIS Process Model I have ever attempted to build (and I am still on a learning curve with QGIS generally).
THE ASSIGNMENT:
I need to build a model that will take an input vector and ...
4
votes
1
answer
311
views
Attributes Form -> show description-column but write value-column
Concerning value Relation Forms:
I'd like to show the content of a description field in the dropdown menu, but write the content of the value field.
Sure, with the mouse-over effect, it will show me ...
4
votes
0
answers
231
views
How to use WFS to update the value of a field to an empty string '', not Null?
I tried to set a field value of a feature to an empty string '' via WFS, but I didn't find a way to make it happen. I use the WFS protocol to send to Geoserver.
I tried the following three methods:
1.
...
4
votes
0
answers
253
views
Deleting picture taken in QField
I'm using QField all day and one thing kept bothering me which is that I am unable to delete a picture I take within the app.
When I'm doing cartography, I like to take pictures so that I have a ...
4
votes
1
answer
1k
views
Edit field schema of web layer in ArcGIS Pro
I would like to edit the field schema of a web layer in ArcGIS Pro via Design --> Fields but I get the error message "the table or feature class corresponding to this view is read-only".
To clarify, ...
4
votes
0
answers
361
views
PyQgis - Adding attributes to a POSTGIS layer
After reading @underdark's answer to this question on creating a new vector layer and @Matthias Kuhn's to this one on field calculation, I wrote a script that allows me to calcultate the mean arrival-...
4
votes
0
answers
4k
views
How to edit Attributes on WFS Layer through Popup?
I am working on a project for university. So far I have displayed WfsLayers which can be select from a panel, also I can click on my points whereupon a Popup will show up with some information which ...
3
votes
0
answers
39
views
Creating/updating fields without create temporary files in QGIS Model Designer
So I'm starting with an "add layer" input, then a "refactor fields"
and I need the output to update the original layer I added in the "add layer" at the beginning.
So I ...
3
votes
0
answers
145
views
Saving attribute field comments when making memory layer permanent in QGIS Plugin
My QGIS plugin creates a vector layer (memory) with attribute fields that include comments. Comments are not saved when I "Make Permanent" the layer.
I have been able to build a QGIS Python ...
3
votes
0
answers
124
views
Different settings for form & table views in QGIS
In QGIS 3.18. Layer properties-->Attributes Form allows changing various aspects of attribute visualization and entry/editing, including aliases, widgets (for drop-down menus, checkboxes, etc), and ...
3
votes
0
answers
527
views
Editable default values in QGIS
In QGIS 3.22. For a vector layer, I would like to have a certain attribute (Field_A) be both
editable by a user, AND
automatically filled in by an expression for features that are not user-edited.
...
3
votes
1
answer
7k
views
Adding easting and northing points in ArcGIS
I am trying to add coordinates into ArcGIS 10.6.1. Below are the Northing and Easting I have been given.
I have added these Northing and Eastings into an Excel sheet and saved them as a CSV File (The ...
3
votes
0
answers
123
views
Adding attribute of polygon orientation depending on neighbors in QGIS
I have a shapefile with buildings as polygons. Is it possible to add attribute columns referring if the polygon boundary is "other polygon" or "outdoors" for a certain orientation (...
3
votes
0
answers
657
views
Editing shapefile adding fields with values with pyshp
I'm trying to add some fields to a shapefile using pyshp. The code I have to far is:
import shapefile
# Read in our existing shapefile
r = shapefile.Reader(r"C:\...\Edit_SHP\TracksLines.shp"...
3
votes
0
answers
840
views
QGIS: Using Filter expression for Drop Down Lists in Value Relation Widget
I have a vector layer and want to enable the user to pick values from drop-down lists. The values of the drop-down list change depending on the chosen value of the previous field(s). It works ...
3
votes
0
answers
89
views
Creating Custom Expresion for Field Calculations and the Model Builder
I am currently exploring Model Builder and I have some trouble setting a custom expression up for certain vector fields of a layer feature collection (points, line and polygons). This is the kind of ...
3
votes
1
answer
84
views
Columns order mixed up by style
I have a point layer for wich I've set the order of columns while using field calculator and Refactor fields instruments. But the order of colums is different when I'm choosing point by Identify ...
3
votes
0
answers
95
views
How to impose constraints on drop lists of two fields of the same layer?
Is it possible to impose with pyqgis3.0 some constraints on a drop list of a field attribute in order to govern the drop list attributes of another linked field?
To better clarify this issue, I attach ...
3
votes
0
answers
215
views
Grouping neighbor points based on field sum in QGIS
I have about 14,000 points. These points have a specific field "time", an integer value, mainly between 1, 2 or 3.
I would like to split these 14,000 points into groups based on the "time" field ...
3
votes
0
answers
858
views
Selective Dropdown menus in QGIS
I am using QGIS 3.0.
So far I can create a dropdown menu but in the shown example I could still choose 'coins' in "type" and '5$' in "value" which is wrong.
Are there rules I can ...
3
votes
0
answers
91
views
Use vector layer attributes as edge properties of a QgsGraphArc with PyQGIS
With PyQGIS 2.18 I created a QgsGraph as describe in the PyQGIS developer cookbook, Release 2.18, ch. 21.2, pp. 95-97. In the cookbook it says
"Vector layer attributes and length of an edge can be ...
3
votes
0
answers
101
views
Using QGIS comboManager to access attributes from PostGIS
I have been tasked with creating a plugin in QGIS that would connect to a PostGiS database, then let the user (based on its user ID) read the attributes of a table for a particular field, then choose ...
3
votes
0
answers
586
views
Getting working hyperlinks in the feature attributes of a WMS in Qgis
I have a Geoserver WMS of point locations with urls in one of its attribute fields. If I do a getFeatureInfo request on this in Qgis, using identify, it just returns a string without hyperlink ...
3
votes
0
answers
836
views
Why is my attribute table only showing one row of values?
I have 68280 features in my QGIS layer which I have loaded from SQL, however when I open my attributes table it only shows 1 'filtered' row. Why? The rest of the values are not showing.
3
votes
0
answers
6k
views
Reducing decimal places in QGIS?
I'm using QGIS 2.18 (Las Palmas).
I want to change the length of the decimal place, I tried the approach in How to change length to 2 decimal places? however, it still displays 13 decimal places.
3
votes
0
answers
88
views
Calculating a new attribute for a polygon based on its corners
i have a pointlayer with a real number as attribute named amount.
I want to calculate and visualize the difference of amount between neighbourhood points. So first I made a delaunay triangulation ...
3
votes
0
answers
193
views
Adding field to shp subset layer using PyQGIS?
This is an independent followup from my previous question: QGIS Python generate index field
I have two files (points.shp, polylines.shp), each with a variable amount of sublayers of the given ...
3
votes
0
answers
982
views
QGIS Refactor fields error
I am using the Refactor fields in the Processing Toolbox to change order of attribute columns. 3 of the fields have red text in the Expression column and when I Run the changes I get an error:
...
3
votes
0
answers
106
views
Reading row values instead of field values with PyQGIS
I use this piece of code to read the values of fields:
lyr = iface.activeLayer()
features = lyr.getFeatures()
for feat in features:
attrs = feat.attributes()
print attrs[1]
How can I read ...
3
votes
0
answers
109
views
Data structure for analysis of relationship between rainfall and vegetation indices?
I have several hundred raster files (NDVI) of the same area dating back to the 1980’s, as well as daily rainfall observations from a nearby weather-station over the same period. The raster files are ...
3
votes
0
answers
650
views
PostGis - st_union polygons, keep sum of attribute
My current query is:
SELECT
(ST_Dump( ST_Union( way ) )).geom AS way,
10000 AS way_pixels
FROM (
SELECT
way,
way_pixels,
FROM polygons
...
3
votes
0
answers
555
views
Command line join attributes by location using OGR
I have two overlapping vector files (polygons and sample) and want to do a spatial join from the command line to extract all features in polygons that intersect with sample. Essentially I want to have ...
3
votes
0
answers
235
views
Displaying attribute values in IntraMaps Roam?
I am having troubles with displaying attribute values in IntraMaps Roam. Let me give you more details:
My QGIS project is based on an SQLite database
The attribute table in QGIS is displaying the ...
3
votes
0
answers
191
views
Save WFS layers multiple records with geoext editor grid
How can I save multiple records after modification with geoext editor grid?
The saving is working fine if I modify only one of the records, but it fails when I try to save multiple modifications.
I ...
3
votes
0
answers
751
views
View attachments in popup when using the editor widget
I am using ArcGIS javascript API to construct an editor app for a layer. I am using the default out of the box editor widget to edit and display data for an app. The layers I am editing contain ...
3
votes
0
answers
1k
views
How to create a custom Attribute Inspector for mobile app using the ESRI JS API
I am making a mobile version of a JS web application I developed. I'm noticing though that the AttributeInspector widget by default uses standard dojo/form controls. This means that the form within ...
3
votes
0
answers
376
views
Edit Widget Add attachments only shows when is made, not when making
So i post my question here because it didnt recieved any answers on Stackoverflow.
Hello i have some difficulties,
Let me see what i want to do with some pictures and code:
I want to add some ...
3
votes
0
answers
125
views
Are there any common field names for the FGDC street address standard fields?
I have been looking into implementing the FGDC street address data standards so that my address data is potentially consistent with other US data I obtain in the future. However, the FGDC ...
2
votes
1
answer
96
views
Adding attribute values to existing GeoPackage with PyQGIS
I have an existing GeoPackage and want to copy Features from another layer to this one using PyQGIS and execute it inside a QGIS Macro. For that, I have the following code:
from qgis.core import ...
2
votes
0
answers
54
views
Calculating the end km with reference to the start km of road in QGIS
Note the labelling on the picture to be the lengths of the link segments and have been selected from Right to Left.
Start KM = KM at the beginning of the link
End KM = KM at the end of the link. (...
2
votes
0
answers
102
views
How to change field type using PyQGIS?
I can change the field type (e.g. string to integer) via:
Processing > Refactor fields
How can I do it purely using PyQGIS via a script or the Python Console (I do not want to call the algorithm ...
2
votes
0
answers
134
views
Appending/translating CSV data to GeoPackage with drop drown attribute Fields
I will preface this with some context. I've created a data collection Project that I use in QField, comprised of multiple Geopackage layers that have been heavily modified in the Attribute Forms ...
2
votes
0
answers
137
views
Returning field value based on expression on another field using QGIS expression
I want to return the value from one field ("Number") for the feature with the most recent timestamp ("Time") from within the current layer ('mylayer'). Or what's the number of the ...
2
votes
0
answers
91
views
Copying attribute table for each layer in QGIS
In QGIS I'm trying to edit attribute tables for a corn planting prescription. I have 50 layers (fields) that all need to have the same attribute table layout. Is there any way to create a template ...
2
votes
0
answers
65
views
Joining attributes from more polygons into one
I have a polygon shapefile containing 1047 cities. In the attribute table I have population, area, and population density for each city.
My job is to merge all of the neighbouring cities (their ...
2
votes
0
answers
102
views
Adding auto-updating expressions to legend in QGIS
I am trying to add an expression to a legend item in my print layout that auto-updates when values in the field change.
Essentially, I have a layer with a field which calculates the length of each ...