Questions tagged [fields-attributes]

Fields, also known as attributes, contain information about features.

161 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4
votes
0answers
73 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 built Buffer with variegating radius. The Buffer also have data about the demand for Parking spots for each building....
4
votes
1answer
174 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 ...
4
votes
0answers
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
0answers
104 views

Is it possible to rename a table column with an expression in the field calcultor of QGIS?

I want to be able to rename a few column names with an expression in the field calculator in order to be able reproduce this action with the QGIS graphical modeler. I tried to do this with the ...
3
votes
0answers
42 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: ...
3
votes
0answers
284 views

Extract derived data fields from Shapefiles

I've uploaded shapefiles with professionally supplied survey data into QGIS and it all plots fine, then when I export the attributes table into Excel I see that the XYZ values are all zeros. I know ...
3
votes
0answers
113 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
0answers
56 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
0answers
74 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
0answers
384 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
0answers
379 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
0answers
57 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
0answers
169 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
0answers
734 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
0answers
86 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
0answers
179 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
0answers
243 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-...
3
votes
0answers
172 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
0answers
703 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
0answers
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
0answers
363 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
0answers
110 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
0answers
30 views

Dropdown option in QGIS 3 processing modeler input?

I have an Excel spreadsheet with multiple sheets of different XY database. I made a processing model in QGIS 3.10, in which I have used 'make points from table' tool to create a point shapefile. But ...
2
votes
0answers
37 views

One polygon layer for an area with different projects in the same layer?

I was wondering if it is possible (maybe not ?) to make a structure so that I can have diffrient information (projekts) over the same area/point in the same layer. This would be for an overview of the ...
2
votes
0answers
86 views

Form Value Relation Dropdown QGIS

I want to create an attribute-form that displays some fields in value-related dropdowns. The goal is to limit the options in the second dropdown dependent upon the selection in the first dropdown. In ...
2
votes
1answer
100 views

Setting value to defaults Layer properties using PyQGIS 3

I have a vector layer, how to set defaults value in fields from the Python console. Layer Properties / Attributes Form / Defaults | In option: Default value |______________|
2
votes
0answers
41 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 ...
2
votes
0answers
329 views

Copy polygons to another layer with different attribute

I am working in QGIS 3.0.2-Girona. I am digitizing images in which there are rocks that can be encrusted, totally or partially, by algae. I want to have a polygon for the rock and one for the algae. ...
2
votes
0answers
68 views

What characters are not acceptable in an ArcGIS text field (File Geodatabase)?

Trying to join a table to my feature and it keeps leaving out a field. The field is a legal description of a property, it has all sorts of funky characters: : ; / \ () ' " and more The field is ...
2
votes
0answers
44 views

Attributing Points based on Direction

Using QGIS 2.18.16 I am looking at "renaming" or changing the attributes of points to a unique attribute based on the direction of the points. For example A1, A2, A3, then next row starts over as B1, ...
2
votes
0answers
63 views

Adding script tool to ModelBuilder in ArcMap?

I have create a script and want to add it to the model I have provided. The code is: import sys, string, os import arcpy import numpy Table = arcpy.GetParameterAsText(0) Field1 = arcpy....
2
votes
0answers
183 views

QGIS - Default Date Formats

I manage a fairly large estate of QGIS installs in the UK and am looking to set the default date formats to the uk dd/mm/yyyy format from our MSSQL data warehouse. Its set and works correctly in the ...
2
votes
0answers
1k 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.
2
votes
0answers
670 views

Copy attributes from features in one layer in QGIS to another layer

I am building lake bottom topology maps for Lowrance HDS depth finders. Each iteration of map building (addition of new data) generates a new .shp file. To utilize the Lowrance tool that merges .shp ...
2
votes
0answers
49 views

Populate b.field into a.field when 2 vector points not always coincident but should be coincident

Using QGIS/pgAdmin3, I have a situation where two vector points, should be coincident but I can't guarantee they always are, I need to take feature a.field and populate a field in feature b, upon both ...
2
votes
0answers
318 views

Add/Remove 1000 separator (Comma) From Integer Field In ArcGIS Collector?

I have a team of inspectors using ArcGIS collector to collect and edit data. When I set up the web map in AGOL I obviously wasn't thinking clearly and checked some fields to Use 1000 Separator (Years,...
2
votes
0answers
662 views

Local variable 'value' referenced before assignment: qgis function editor

I customized a function to edit my attribute table. It was working well but now when I used it again my QGIS crash or I receive a bad answer. The answer of QGIS: My code: from qgis.core import * @...
2
votes
0answers
362 views

PostGis - st_union polygons, keep sum of attribute

There are multiple My current query is: SELECT (ST_Dump( ST_Union( way ) )).geom AS way, 10000 AS way_pixels FROM ( SELECT way, way_pixels, ...
2
votes
0answers
17 views

How to create one attribute containing multiple adjacent parcels?

I'm trying to upload town parcel data to my Garmin GPS from Esri. Garmin registers each attribute as an entirely different file, and requires you to 'turn on' each file to display it on the GPS. This ...
2
votes
0answers
199 views

QGIS - Split a line having attributes with UNIQUE constraint

I am using QGIS with a PostgreSQL/PostGIS database, where the lines table (named 'segments'), besides the integer serial primary key, has a UUID column having a UNIQUE constraint. Trying to split a ...
2
votes
0answers
448 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 ...
2
votes
0answers
131 views

Reading feature class attributes with or without quotes in ArcPy?

I'm working on a script that clips a batch of feature classes by a selection made in another feature class. The way it works is by reading the clip feature fields, then allowing the user to select the ...
2
votes
0answers
186 views

Creating new empty vector layer that has same set of atributes as another layer and then copying subset of features into it

I am new to both Python and QGIS. Here's a sample of my code: unique = layer.uniqueValues(index) attributes = layer..dataProvider().fields().toList() assistant_layer = QgsVectorLayer("Point", "...
2
votes
0answers
51 views

QGIS how to make unedited data?

I have a table in QGIS (using QGIS 2.4). I have created a form for adding attributes. When I add new objects on the layer, I also create it's attributes. Can I make attributes that I have added non-...
2
votes
0answers
348 views

Can I use a cursor to select two rows and compare attributes

Can I use the cursor search function to look at the first two rows in a table and select them so I can compare attributes and possibly merge them or change attributes? I am using ArcGIS 10.0
2
votes
0answers
52 views

Why is ArcMap deleting data from a field when I add a new one?

My copy of ArcMap 10 is acting pretty strangely. I have a shapefile and all I've done is added a new field as a FLOAT and for some reason all data in another one of my fields is being deleted! Does ...
2
votes
0answers
50 views

Generating composite values ( MAPFID numbers) for previously duplicated vales based on 2 different fields

Good day everyone! I have lurked around here for info preiously, but this is my first post, so please be gentle if I commit any faux pas. Okay, let me try to break this down so we can all understand....
2
votes
0answers
330 views

Divide polygon layer by point layer in QGIS?

I have two layers - one polygon layer that is a buffer of a road layer, and one point layer that shows certain locations along that road. What I want to do is to divide/split the polygon layer at the ...
1
vote
0answers
35 views

To Iterate through all layers and all attributes for each layer

I am working in the Python console in QGIS 3.10. I want to iterate through all layers and for each layer iterate through all attributes and set them all to 'Hidden'. I want to do this in ...
1
vote
0answers
58 views

Composition of features into attributes field using QGIS

For every feature of my map, I have to: I localize the feature with its coordinate X-Y I zoom into the canvas in order to center the feature and to obtain the scale wanted (depending of every ...