Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [fields-attributes]

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

1
vote
0answers
38 views

Datetime on attribute tables

I have written a script to add, among other stuff, a datetime column. I have used the arcpy.AddField_managementcommand, but it didn't have a 'Datetime' type, so I used the 'Date' type : arcpy....
1
vote
1answer
19 views

Adding information of a shapefile to a GPS coordinate

I am using ArcMap 10.6.1 and I am currently trying to add information to a GPS coordinate. This coordinate (red) lies within a shape from a shapefile, and the shapefile as some attributes (yellow box)....
1
vote
2answers
42 views

QGIS layer export to KML limited to 2 fields

I'm successfully exporting my layer to KML using the Right click > Export > Save Features As.. window. I then check the 13 fields I want to export, and proceed without problem. But when I import this ...
1
vote
0answers
16 views

Calculating areas and joining attributes between overlapping features

I am working with QGIS 3.4.8 and Python 3.6.8 on OSX El Capitan 10.11.6. I have two shapefilea, one which is a grid of cells (each cell a feature) and the other one which is urban settlements as ...
2
votes
1answer
33 views

QGIS: Cannot add negative numbers in a field

I am using QGIS 3.4 and when I finish drawing a feature (line), I try to add a negative value (-1) in the attribute dialog and it is automatically changed to NULL. The field is integer. Even if I ...
1
vote
1answer
14 views

How to enter text into attribute tables with QGIS graphical model?

I am using QGIS 2.14 to open NC files for chlorophyll satellite data with the end goal of compiling chlorophyll values for many dates (each its own initial file) in a spreadsheet. I know how to do the ...
1
vote
0answers
33 views

QGIS 3: Get all Attributes and Objects / Features in View

I use attribute tables to store informations about a object/feature on a layer. I have multiple Layers => multiple attribute tables. Now I want to have a report about all displayed objects/features (...
1
vote
1answer
26 views

How can QGIS 3.X create atlas by a group field?

I have a line layer with 8 features and a field TYPE (5 features is type_A and 5 features is type_B). I want to create a atlas which output is two single image (one is grouped by typ_A with 5 features,...
0
votes
1answer
19 views

Trying to get Multiple Tabs to display in Attributes Table in CMV viewer javascript file

My first tab displays correctly.. This is my code in my viewer: Both the service URLS display the attributes table in ArcMap correctly and both the URLS work in a browser This is the error message ...
2
votes
2answers
45 views

Merge shapefiles with unequal field lengths

I have several shapefiles in ArcMap that I want to merge together into one shapefile so I don't have to keep juggling them all. However, I can't use the Merge geoprocessing tool because it gives me a ...
2
votes
2answers
72 views

Replace empty values with the next available one using FME

how can be replaced empty attributes with the next available values ? I tried NullAttributeMapper but somehow I dont get desired results! What I have: attribute1, , ,attribute4 ,attribute2,...
3
votes
1answer
147 views

Is it possible to view all the attribute data in QGIS

I use QGIS to map and store local history data. Because of this my point attribute data contains a lot of text. Since the textbox are so small it's hard to use and present the information. Is it ...
0
votes
0answers
22 views

Lost/disappeared shape_length an shape_area fields

I have a vast database which includes a shape length and shape area field. One day, after doing some fc to fc layers from said feature class, I opened the attribute table and the shape length and ...
1
vote
1answer
21 views

Assigning attribute based on selection points on a graph?

I have a bunch of points on a map on a river that branches. I want an easy way to select one branch from the other and was hoping I could just somehow "grab" those points on the map and add a column ...
0
votes
0answers
32 views

Retain field name alias in feature class when exporting to shapefile

I have a feature class in a geodatabase which I've joined a table to. The table which was joined has field names >10 chars. I will then need to export the feature class to SHP and once completed, ...
2
votes
1answer
195 views

Splitting polygons and dividing attribute value proportionally using ArcGIS Pro?

I am using ArcGIS Pro 2.3.0. I have two feature classes (pictured below), RED polygons and BLUE polygons. The RED polygons have a numeric attribute, Value1. How can I split the RED polygons with ...
2
votes
2answers
146 views

What is the unit of the area when geometry attributes are calculated in QGIS?

My CRS is WGS 84. I intersected two files containing polygons. Each file has an attribute table stating the area of each of the polygons (in m2). After intersecting them I navigate to: Vector >> ...
1
vote
0answers
61 views

Collecting features from multiple layers, with different attribute fields, in one layer using PyQGIS?

I am developing a plugin for Qgis. I have three layers that contain polygon geometries, and that need to be combined in one layer. During this process, I also collect all the attributes from the input ...
6
votes
2answers
90 views

How to change form content dynamically in QGIS 3.6

By using "Identify Features" QGIS shows a form for viewing and editing attributes in the canvas. Now I want to change the visible form elements dynamically by attribute value. An example in ...
1
vote
1answer
41 views

Select by attribute not working [closed]

I created a point shapefile by converting a raster into points. The default fields generated were FID, Shape, POINT_ID, and GRID_CODE. I added two new fields "X_location" and "Y_location". I ...
2
votes
2answers
386 views

SQL Query not selecting all points that it should?

I am working on a map of 60+ monitoring wells and I plotted them through an excel data sheet and a few tools. In that data sheet, I have Benzene concentrations associated with almost each point. I ...
0
votes
1answer
33 views

Expression returning wrong value in QGIS Field Calculator?

My QGIS Field Calculator expression: case when "field_value" = '' or "field_value" <> NULL then (if( "field_value" = '', 'N', 'Y')) end returns null value even if "field_value" has something ...
1
vote
0answers
19 views

Controlling field names with arcpy.Combine?

If I run the arcpy.Combine command as such: result = arcpy.Combine(["CDL/raster07", "NHD/raster07", "OtherRaster"]) The resulting raster has an attribute table with fields [f.name for f in arcpy....
1
vote
0answers
17 views

Determine the most frequent value for an attribute based on another attribute [closed]

I need to determine the most frequent value of one attribute based on another. For example: Field 1 Field 2 Cat Tabby Cat White Cat White Dog Brown Dog ...
3
votes
1answer
33 views

Isolating and exporting specific sections of a shapefile in QGIS?

If I have a shapefile layer in QGIS showing the spatial boundaries of subsections of a larger area (e.g. counties within a state, or countries within a continent), how would I selectively crop out one ...
3
votes
1answer
50 views

Dissolve (merge) polygons QGIS based on attribute values only when are adjacent

I am a fairly new user of QGIS having a question regarding dissolve functionality. I am working with the NUTS-2 shapefiles provided by EU, which I have imported in QGIS. I have created a new layer ...
2
votes
1answer
65 views

Dissolve (merge) polygons QGIS based on (non exact) attribute values

I am a fairly new user of QGIS having a question regarding dissolve functionality. I am working with the NUTS-2 shapefiles provided by EU, which I have imported in QGIS. To ease the discussion, I ...
1
vote
0answers
26 views

How to get the TEXT from a layers attributes to display on my map [duplicate]

I'm totally new with GIS software, so I apologize if this is a question that's already been answered! I'm working with the Texas Landgrid. It's composed of Leagues, Labors, Blocks, Townships, ...
0
votes
0answers
36 views

Attributes missing from geodatabase in QGIS

I have been trying to load a gdb file into QGIS, but one of the layers do not show the attributes mentioned in the metadata. The data can be downloaded here. https://pubs.er.usgs.gov/publication/...
0
votes
0answers
46 views

Writing only one of the input vector fields to output vector using Fiona/ Python?

I'm working on a function to perform operations on folders of vector files. These files might have differing attribute fields but there will be a common field between them. I'm using fiona in python ...
1
vote
0answers
46 views

QGIS 3, Expression to address ranges in the symbology [closed]

I noticed many new entries in the list of expressions in the QGIS3-Version. Is there an expression that I can use to address the symbology of a Layer? It would be of particular interest to get the ...
1
vote
1answer
49 views

Creating points with attributes from coordinates in ArcPy

I know how to create points by coordinates with arcpy using the following code: import arcpy ptList =[[20.000,43.000],[25.500, 45.085],[26.574, 46.025], [28.131, 48.124]] pt = arcpy.Point() ptGeoms =...
3
votes
1answer
17 views

Calculate a field using text from another field separated with comma

I have an address field containing the following text: "64,ramkoti,hyderabad,500070" I need to copy hyderabad to another field. What would be the code used in the field calculator tool to achieve ...
3
votes
0answers
109 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 ...
2
votes
1answer
54 views

Unable to select interpolation attributes from my shapefile?

My point shapefile has four fields, three of which are numerical: longitude, latitude, and homicides. However, the homicides field does not appear for me to select it as an interpolation attribute (...
3
votes
1answer
103 views

Getting field type in ArcPy?

I've got back into Python after a long break. I'm creating a simple data validation script at the moment. I am just trying to return the field type of a field input by the user. I'm using arcpy....
1
vote
0answers
19 views

QGIS 2.12 How can I assign the attributes of the polygons of the layer A containing the geometry of layer B?

In other words, I have two shapefiles: Layer A: not-intersected Areas (1 attribute: ID); Layer B: Buildings (Several attributes). I want to identified by the related ID attribute all the buildings ...
0
votes
0answers
12 views

Attribute table QGIS [duplicate]

I have a attribute table with different columns. I have to add one more column and then copy paste the values from a different column, but both columns are in the same table attribute. How can I do ...
2
votes
1answer
72 views

Populating new field in shapefile with values from list?

I'm looking to populate a newly created field in a shapefile that from a list using basic python and osgeo tools. The values are integers and in a python list that is the length of the number of ...
0
votes
1answer
41 views

arcpy.da.SearchCursor storing data in a list with a query

I am currently working with a database that hold street names, x and y coordinates and many more fields. I would like, through a search cursor, to store the x,y coordinates in a separate list for ...
2
votes
1answer
157 views

How to create a polygon from a data CSV file with coordinates using QGIS? [duplicate]

Having the following information in a CSV file: I want to build a polygon with all the points where the Group name is the same. For example I want to join all the points where the group is T101 and ...
2
votes
1answer
392 views

QGIS 3: How to rename attribute/field names for Geopackage Layer

Issue: I need to rename several attributes/fields in a geopackage layer. How to do this? Linked Issue: there are numerous pages on how to rename the attributes/fields of a shapefile. However there do ...
2
votes
2answers
44 views

Selecting features of a shapefile using attributes of another shapefile

A newbie here trying to learn QGIS for work. How can I select specific features of a polyline with the same values as the attributes of the buffer polygons I generated? I have a layer of polylines ...
2
votes
1answer
128 views

How to permanently change attribute values using PyQGIS?

I'm trying to iterate through all the features of a layer to change the value of some of its attributes. I'm using the following code: from qgis.core import * import os working_folder = r'C:\...
1
vote
0answers
75 views

How to set a default attribute value based on the feature being created

This question expands on, and updates for QGIS 3, the answers found here. I have a layer with attributes called "Name" and "Label". I would like to set to default value of "Label" to be the same as ...
0
votes
0answers
19 views

How to connect point layers through their attributes/relations?

I have a project to use QGIS to track fishing activities (product goes from boat to fisheries to processors to factories...). All layers have coordinates and I managed to map them but now I´m trying ...
0
votes
0answers
23 views

field information lost when importing geojson file into qgis

I have an attribute in the geojson file which contains a list of elements (usually 3). The attribute has 700-1000 characters. I learned that for shape files, qgis can only have fields with less than ...
1
vote
3answers
55 views

Deleting blank fields in multiple shapefiles in folder using ArcPy?

I have some shapefiles and each shapefile is having some blank or zero value fields. My task is to delete blank/zero value fields for all shapefiles in the folder. I have searched for solution in ...
0
votes
3answers
75 views

Using ArcPy to ListFields inside SearchCursor?

The current code I have simply lists ALL fields in the feature class and seems to ignore my logic of if row[0] is not None: Why does it do this? fields = arcpy.ListFields('\\\\Bvweb104draco\\e\\...
3
votes
2answers
74 views

Running arcpy.AlterField_management 2,000 times takes too long?

I am trying to replace field names of a table stored in a file geodatabase using a dictionary as a lookup table. My field names got cut off from the Tabulate Area tool (Tabulate Area Truncates Field ...