Questions tagged [fields-attributes]

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

Filter by
Sorted by
Tagged with
1
vote
1answer
325 views

Computing long expression in ArcGIS field calculator?

I am trying to compute the following expression with the Field Calculator of ArcMap. The input table values are around the size of this value: 562643580,7843, and the field name (the field of ...
1
vote
2answers
2k views

Using ArcPy to Rename Feature Class by Field?

I made a little model and at the end I want to rename the feature class file to something based on the fields in that feature class. I want to rename that feature class by the date the data was ...
4
votes
2answers
367 views

Input field not showing up in Distance Matrix In QGIS 2.0?

I tried to perform a Distance Matrix analysis of building centroids. I have a two building centroid layers. The attributes in both the tables are name, osm_id, perimeter and area. In the Distance ...
0
votes
1answer
21 views

Get field value: JSON response from feature service [on hold]

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://...
1
vote
1answer
77 views

Add fields from a feature to a feature in another layer

I have a criteria to select the features from a layer that overlap the features of another layer, but i do not know how to copy the fields at the same time: Tyhe code does: - two layers (1 and 2) of ...
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
1answer
58 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 ...
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
72 views

Matching up fields in different tables using ArcGIS Desktop?

I work for a University, and we have some utility/site people go out with their GPS and shoot points pretty often when there are new projects, construction, etc. The data dictionary that they have ...
2
votes
1answer
54 views

LiDAR Data captured, unsure what units or format this time field is in?

I haven't been able to figure out or find out from searching around what units or format this time field is in my LiDAR data that was collected?
0
votes
1answer
204 views

Adding attributes to each vertex of shapefile using shapely?

I have two polygons in Python: poly1 = shapely.geometry.polygon.Polygon([(3,4), (2,4),(2,2),(3,2)]) poly2 = shapely.geometry.polygon.Polygon([(4,4), (3,4),(3,2),(4,2)]) that look like this: ...
1
vote
0answers
38 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/...
26
votes
7answers
17k views

Identifying duplicate attributes in field using QGIS?

I have a point shapefile with thousands of points. It has an ID code field that is supposed to be unique. Every now and then the data entry clerk wrongly type the ID creating duplicates. Right now I'm ...
4
votes
1answer
148 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 ...
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', { ...
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 ...
2
votes
1answer
2k views

Building raster with multiple attributes based on 3 input rasters?

I am trying to make a new raster based on three input rasters which have the same cell size and the grids align perfectly. I now want to construct a new raster, which for each cell, has three ...
2
votes
1answer
30 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
164 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, ...
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
3answers
131 views

Making one field/values equal to another field/values

I have created a new field called "SFX" in a shapefile called "myshape.shp": input = r"C:\files\myshape.shp" arcpy.AddField_management(input, "SFX", "TEXT", field_length=100) There is now a field ...
1
vote
1answer
50 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 "...
4
votes
3answers
8k views

Showing only selected features from attribute table on layer using QGIS?

One of the layers has around 5000 attribute entries, based on a CSV file of species records. All the features are of course shown on the map layer. How can I select a specific class of features so ...
2
votes
2answers
159 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
1answer
40 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
2answers
37 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
56 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
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 ...
0
votes
1answer
119 views

Using attributes of polygon in one layer to identify polygons in another? [closed]

I am in the process of developing a web application, I am using open source tools so qgis, postgis, play framework for the web app. And I have come across an interesting problem that I'm trying to ...
2
votes
1answer
1k views

How to create dynamic maps based on updated attributes in SHP file

I am novice GIS'er. I can create maps and do basic transformation of the SHP file using QGIS. I also succesfully applied formatting based on attributes. I am able to add new attributes to SHP file in ...
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 ...
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 ...
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)...
6
votes
2answers
129 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
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 ...
3
votes
2answers
737 views

Change shapefile field names using ogr AlterFieldDefn

I need to change field names of a shapefile to upper case using ogr. I want to do this automatically, versus calling out each field and replacing the name with upper case. When I try to implement ...
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, ...
3
votes
1answer
207 views

Crosstable two fields of pointfile using ArcMap?

I'd like to produce a simple crosstabulation from two fields of a point feature class. These fields contain land use class information which I'd like to compare. One option is to export a dbf and do ...
1
vote
0answers
51 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
76 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 ...
3
votes
1answer
118 views

Unable to create field for PostGIS layer. PYQGIS [duplicate]

I'm having some troubles to create a new field in a postgis layer.This is the code I'm trying to use, but nothing happens, no field is created: from PyQt4.QtCore import * dbnam = "pruebapython" uri =...
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
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 (...
2
votes
3answers
227 views

ArcGIS-Calculate field : Give the first value to the others

I'm making a model builder to automatize some linear referencing projects but I have some problems with the field calculator tool. My table contains 3 fields : ID | NOM | LIGNE and I'd like to ...
4
votes
3answers
6k views

Accessing attribute data type in PyQGIS?

I've been developing a plugin on QGIS platform using PyQGIS. So far plugin does the following: You can select any feature of the already loaded vector layer in QGIS. After selection, plugin displays ...
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
62 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 ...
0
votes
1answer
101 views

Setting new value into field created by PyQGIS?

I'd like to create a new field named "vctcn93", loop the features of active layer, if string "metro" in feature name, I'd like to add a value string "get" into the field "vctcn93". But when I check ...