Questions tagged [fields-attributes]

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

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

Building expression related to Attribute Rules using ArcGIS Pro

Referencing Creating Attribute Rules using ArcPy in ArcGIS Pro Now I am trying to build an expression. First it does not give me the option to choose the type of syntax in the expression builder GUI....
1
vote
1answer
116 views

Create New field equal to existing field - convert to integer - PyQGIS 3.4

I'm using PyQGIS 3.4, I am trying to add a new field and set the values equal to an existing field. The existing field are population totals but are in string format, I want to convert these to ...
0
votes
0answers
11 views

Does GPS tools plugin change attribute table?

I am using QGIS 3.4.14. To inport a GPX file I usually just drag it on QGIS surface, and there I have my GPX layer with a complete attributes table (ID, elevation, time etc., plus some empty columns). ...
1
vote
1answer
359 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
1answer
90 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
259 views

Extract Raster to Multiple Rasters by List of Values in R?

I'd like to use the Raster package in R to process a single DEM. I'd like to use a pre-determined list of elevation values to extract multiple raster datasets from this DEM. Not all values are of ...
1
vote
1answer
62 views

Creating descriptor out of other Descriptors Using ArcGIS Network Analyst

I created a Network Analyst route, and I just added a few descriptors in it. I want to know if there is a way of create a descriptor based on other descriptor. The equation is : Descriptor 4 = ...
1
vote
1answer
40 views

Sort and create attribute field to the shapefile

I am creating a shapefile layer and adding an 'Area' attribute field using the following script: # Create shapefile layer drv = ogr.GetDriverByName("ESRI Shapefile") dst_ds = drv.CreateDataSource(...
1
vote
2answers
33 views

RAT and cell values in R's raster-objects

I really struggle to understand some basic concepts in the structure of how R's raster-objects save values. Namely the RasterLayer, the RasterBrick and the RasterStack. I understand that the values (...
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 ...
1
vote
1answer
106 views

Establishing attribute order in table using ArcPy with ArcGIS Pro?

I have the following piece of code hoping to have a table with a set of fields on a specific order: #Removing the fields we do NOT want to show in the output arcpy.MakeFeatureLayer_management(...
0
votes
0answers
21 views

Maintaining attributes when adding noise to X, Y coordinates that are in same place using ArcGIS Pro [closed]

I am trying almost exactly to replicate what is being asked in Adding "noise" to overlapping X,Y coordinates so no longer in EXACT same place? However, I need a few more details to solve my ...
0
votes
2answers
32 views

Getting field names in PyQGIS [closed]

How do I get field names in PyQGIS 3.x?
3
votes
0answers
114 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 ...
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 ...
0
votes
1answer
67 views

How to create a Value Map widget type to select multiple values (checklist) from the dropdown?

I have a polygon layer that represents tree/shrub planting sites that were done. As part of the attribute table, I have fields representing things like tree density, species, soil work, tree size, etc....
1
vote
1answer
287 views

Build Radio Button in QGIS Edit Widget Properties

My question is similar to Choosing multiple options from QGIS Check Box or Value Map for feature attribute? I have 3 categories in a row, i want to make this selection in form of radio button so that ...
0
votes
0answers
25 views

Spatial Join in QGIS and update column

I have a layer of lines and another layer of polygons. I would like to update the lines with the unique reference of the polygon they are within. I am able to complete the spatial process of ...
2
votes
1answer
101 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 |______________|
1
vote
1answer
29 views

List fields in parameters from Fc list in script validation using arcpy in arcgis

I am trying to list fields from a feature class list in script tool validation. First user selects the data frame from the list then FC populates in next box and fields of the FC in next box. I have ...
1
vote
1answer
343 views

Extend polygon to polyline feature (keeping attributes)

I am looking to extend the polygon feature to the to the coastline polyline (blue line) while keeping the attributes of the polygon features (Figure below). What I am looking to do is find the ...
0
votes
1answer
194 views

Where is data coming from Tilevector or mapstyle

I'm struggling to use the data that's in a vector tileset source (PortalsWithOrderNr) I commented out the add.source and add.layer but when I click on a portal I get most of the data that's in the ...
1
vote
1answer
46 views

Creating Attribute Rules using ArcPy in ArcGIS Pro

I am attempting to create attribute rules for a signalized intersection asset inventory, so when features are addded using collector they are automatically updated in the database. I am also working ...
1
vote
2answers
70 views

Add Attribute field and change value in PyQGIS

I'm building my first script purposed to : Create fields if they doesn't already exist Fill value in this fields The code works, but I have to perform it 2 times when the case requierts to Add ...
0
votes
2answers
6k views

ArcGIS Attribute table appears empty until features are selected

I have a multiple layers that show features in the data frame and the layers are editable and labeled, but when you open the attribute table for these layers, it's empty. The only way to get the ...
2
votes
4answers
2k views

QGIS not always recognizing the field name from excel files

I'm importing multiple excel files into QGIS (version 2.18.7) by dragging and dropping them into QGIS. The excel files don't contain any coordinates but data that I need to join to vector layers. My ...
2
votes
1answer
215 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 ...
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 ...
1
vote
1answer
26 views

Features disappear from layer

I have a problem with my newly created layers. I have drawn a lot of features and most of them disappeared during the weekend while the pc was turned off. They are not visible in the drawing, in the ...
3
votes
1answer
104 views

Deleting field using cursor in ArcPy

Is there any way to use a cursor to delete a field using ArcPy? I understand there are ways to use a cursor to delete records but I'm looking for a way to delete a field using a cursor.
0
votes
1answer
21 views

Getting unexpected field name from ArcPy

Why does the code below come up with different field data names? When I save in a GDB it comes up with underscore() on the end of the field name & when saved as .shp it comes up with no ...
2
votes
1answer
1k views

Reading response of GetFeature request with OpenLayers

I am using OpenLayers to send a GetFeature request to GeoServer. With the help of Firebug I can see that the response contains some of the attribute data I need. I am interested in showing some ...
3
votes
1answer
113 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
77 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
235 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: ...
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 ...
2
votes
1answer
64 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
54 views

How to copy attributes from many columns to one, QGIS3

I have many columns, about 30 and each of those has some attributes. I want to merge those columns to one and collect all attributes in a row of columns. I tried with this post but it is not for I am ...
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
2answers
57 views

Dissolving layer with two or more fields in QGIS 3

I want to dissolve the layer based on two or more fields through "Processing modeler". How to set and where to set those fields? When I use "Dissolve" tool separately I can choose fields that I want, ...
6
votes
3answers
8k views

Merge lines with the same 'name' attribute on QGIS?

I have a shapefile with a few thousand lines, each is a street segment. I'd like to merge all features with the same 'streetName' attribute into a single attribute. I only really care about the name ...
0
votes
0answers
17 views

Possible to make an import raster in attribute field in Qgis?

I was wondering if it is possible to make a link/action so when i click on this in the attribute it will import the georeferenced raster? I don't know if it is possible to make an action/link so when ...
2
votes
1answer
16 views

Add an attribute name as parameter in refact - QGIS 3 modeler

I'd like make a model where I can change an attribute name to a predefined one using refact tool. How can I get that "attribute" by a parameter from a vectoral field ?
-1
votes
1answer
27 views

Cadastral data data.gouv.fr

Someone has already worked with cadastral data on the data.gouv.fr website I need to have information about the attributes of the "Buildings" layer. Is there any information among the data provided ...
1
vote
1answer
107 views

ArcPy - List layers and list fields in one code

I am trying to combine ListDataframes, ListLayers and ListFields in one ArcPy code. I can do it one by one (first list layers in one code, and then list fields in second code), but I am trying to do ...
31
votes
5answers
17k views

Change style properties of several layers simultaneously?

I'm working on bulk data. I have a few hundred GeoTIFF images imported into a QGIS project, and I'd like to modify their layer properties - things like the no-data-value, transparency of certain pixel ...
0
votes
0answers
15 views

Join fields from multiple shapefile in a folder to one shapefile

I have 39 shapefiles in a folder with each shp having 368 attributes. Every shapefile has the same attribute name (FID, pointid, grid code and 365/366 others; depending on them being leap year). I ...
2
votes
1answer
43 views

Impossible to Add geometry attributes on a .shp file with QGIS

I am using QGIS version 3.8.3-Zanzibar I have a shapefile and I want to compute the area by using Vector/Geometry tool/Add Geometry attributes. Runnig this tool I get : Feature (11) has invalid ...
1
vote
2answers
46 views

Numerical fields decimals limited by default

I'm using ArcMap 10.5.1 and working from a geodatabase. I just want to limit the number of decimal numbers shown to 1. Currently 6 decimals are shown, and I know I can reduce them manually by opening ...
6
votes
2answers
59 views

Assign values to points according to a pattern

I'm making a map of trees in QGIS (3.10). Each point represents a tree and the attribute table has a column that should contain the tree species. For now this column is empty, but I would like to fill ...