Questions tagged [fields-attributes]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
18 views

Get field value: JSON response from feature service

I have JavaScript in work order management software: load("nashorn:mozilla_compat.js"); importPackage(java.util) importPackage(Packages.psdi.server) var ctx = new HashMap(); ctx.put("url","https://...
0
votes
1answer
30 views

Python batch script to delete Attributes

I currently have a script that will select and delete all the values less than 0.1 in a column. The script below works, however it specifies a specific .shp, I want to batch this so it runs through ...
1
vote
0answers
18 views

Getting attribute from intersecting polylines using ArcGIS Desktop?

I am using ArcMap 10.2.2 I've got 1 polyline feature class, which includes aprox. 500 lines with attributes (streets). To fill out certain documentation, I need to know which streets cross each of ...
1
vote
0answers
34 views

UnboundLocalError: local variable 'attributes' referenced before assignment [closed]

When trying to 'Geocode' a CSV file I receive this answer: UnboundLocalError: local variable 'attributes' referenced before assignment Traceback (most recent call last): File "/home/user/...
2
votes
1answer
29 views

Retrieving startpoint and endpoint (from/To list) of polyline layer from point layer using QGIS?

I am using QGIS 3.8 and I have a polyline layer with the attribute below And a point layer with the attribute below So I wonder if there is an expression to get the field 'Name' of the point layer ...
0
votes
0answers
18 views

Maintaining attributes in feature class in memory using ArcPy? [duplicate]

i am trying to feature to line conversion that are not multipart lines and Merge output feature class but its loses the attributes. Here is my code: arcpy.env.workspace="in_memory/" with arcpy.da....
1
vote
1answer
49 views

Copy selected attributes from one field to another using PyQGIS

QGIS version 3.4 I need to copy all selected attributes from the field 'HomePostcode' into the field 'Postcode' through PyQGIS. Using the field calculator I would simply use the expression "...
2
votes
1answer
27 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 |______________|
3
votes
3answers
162 views

Programmatic logic ArcGIS uses to determine added fields from geoprocessing when inputs have duplicate field names

ArcGIS has a confusing method for updating field names when combining tables with duplicate field names. For example, I have two tables containing the field Id. If I run JoinField_management, ...
2
votes
1answer
50 views

How to change the field value of a specific feature in a Shapefile using GDAL/OGR?

I am trying to change the field value of a shapefile, but only in some specific features. However the code I have changes the value for all features in the shapefile. Is there any way of accessing the ...
1
vote
1answer
38 views

Row_number with create virtual field in QGIS

How can using @row_number option or similar together the command "Create virtual field". It works very well with "Create new field", but doens't work with "Create virtual field".
1
vote
1answer
55 views

Missing window in QGIS 3.4.9 Madeira

I am working with the latest stable version QGIS 3.4.9 Madeira. Unfortunately, I cannot find the window relating to projected coordinate system properties (see the picture), so I cannot change the ...
1
vote
2answers
36 views

Use ArcPy for finding value throughout all fields and export to new layer

I need to find a way to find a specific value in the attribute table and then export all rows with said value to a new feature class. Below is the code that I have managed to come up with (using ...
1
vote
1answer
51 views

Defining grid-names: Setting up a 1m2 grid over a 100x100 meter area

I'm working on an old archaeological field-survey dataset from the 1960's. I'm trying to create a polygon grid (fishnet) over a specific area where I can give the individual 'tiles'of the grid an ...
1
vote
1answer
25 views

Add Field disabled on Excel file in ArcMap?

I am a new user to ArcGIS Desktop 10.7. I imported data table from Excel 97-2003 format in the Table of Content. Then with XY recognition the layer was created with the defined coordinate system. The ...
2
votes
1answer
41 views

Adding fields to temporary layer using PyQGIS?

I want to add some fields in a temporary layer in order to use it in another process. What I tried to do is below : shp_result = processing.run( 'native:pixelstopoints', { ...
1
vote
0answers
40 views

Calculating latitude and longitude fields using PostGIS? [duplicate]

I have a shape in PostGIS that has 2,658,061 records (points). I need to create a field that is called "Latitude" and another that is called "longitude" and calculate a position in WGS84 (SRID: 4326)...
1
vote
1answer
27 views

Shapefile containing several fields with the same variable at different times. How to group them into a single field?

I have a point shapefile that includes several (e.g 160) of fields with the mean temperature and wind speed [at each location] for different days. Ideally, I want to reduce the number of fields to ...
1
vote
1answer
37 views

OSM Export attributes of streets

Hi I am beginner at QGIS. I am trying to export the attributes "surface" and "parking lane" of every street of the city Dresden. I tried it with "overpassturbo", but it doesn't give me every street, ...
1
vote
0answers
50 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
26 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
48 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
19 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
58 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
24 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
40 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
74 views

OGR SetAttributeFilter with multiple fields?

I am trying to open a layer using OGR in Python and filter the features using SetAttributeFilter() where two fields are greater than zero. from osgeo import ogr driver = ogr.GetDriverByName('ESRI ...
1
vote
1answer
32 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
24 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
48 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
86 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
151 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
27 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
22 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
60 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
209 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
172 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
63 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
121 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
387 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
35 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
20 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
21 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
37 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
59 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
68 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
38 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
55 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 ...