Questions tagged [list]

Linear collection of items

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

Creating python list of feature classes or layers using ArcPy [closed]

Step 1: I will generate a series of point feature classes. Each will have half the distance between points as its predecessor. Step 2: I then want to cycle over those point feature classes, but in ...
0
votes
1answer
21 views

Adding list of values in ModelBuilder using ArcGIS Pro

I'm searching for the option to use lists in a model of the ModelBuilder under ArcGIS Pro. In ArcMap 10.X, I could right-click on the variable - properties - and under "this variable contains&...
0
votes
1answer
18 views

Changing Field that Attribute Window orders Layers in using ArcMap

How do I change the field that orders the attributes? As you can see, STRUCT_TYP has the same value for each attribute. I would like to change it to STRUCT_ID. Is this possible using ArcMap? I've ...
1
vote
1answer
22 views

Create a list/sequence of numbers from two DOY in Google Earth Engine

I would like to create a list of numbers from a DOY to another DOY every 7 days, dependent on a specific date that I set. This then matches an imageCollection I have, which I then use to create a ...
1
vote
0answers
22 views

IndexError: list index out of range - item report ArcGIS API for Python

I'm quite new to Python and ArcGIS API for Python. I'm trying to create a report of all the items owned by one of my ArcGIS online organization user. For each item owned by the user I want to record ...
0
votes
0answers
31 views

Google Earth Engine: mapping a FeatureCollection to a list of dates

I have some code that creates FeatureCollection for SST a specific date range, which I combined and export as a csv. A link to which can be found here. I would like to map the FeatureCollection to a ...
1
vote
0answers
12 views

Clever way of calculating and storing cumulative rainfall for each polygon of a MULTIPOLYGON sf-object

What I have is this sf-object: Simple feature collection with 50 features and 8 fields geometry type: POLYGON dimension: XY bbox: xmin: 611398.7 ymin: 5122699 xmax: 745144.8 ymax: ...
-1
votes
2answers
83 views

Creating composite band image with Sentinel 2 data using ArcPy

As we know sentinel satellite data have many sub folder. I want to create composite band of each datasets with the band 2, band 3, band 4, band 8 which are located in one folder(10m) and band 11, band ...
2
votes
1answer
41 views

Create a List of All Webmaps within a Portal

I'm trying to do some spring cleaning and in the plans of organizing and archiving older webmaps. We have several hundred maps, so I'm looking for a way to create a simple CSV that will list all ...
3
votes
1answer
47 views

Drawing line from variable number of points stored in two lists

I have two Python list latitude and longitude which stores the coordinates, and I want to draw a single line from the list coordinates. I can draw the line if I know the number of latitude/longitude. #...
-1
votes
1answer
32 views

How to Replace List of Values in Google Earth Engine?

The below code returns -infinity and I'm going to replace that with 0 using repplaceAll in Google Earth Engine but it does not work. https://code.earthengine.google.com/...
0
votes
1answer
37 views

Replace String With Number In List, Google Earth Engine?

How can I replace '-infinity' with 0 number using a function in Google Earth Engine? I'm gonna to replace string with 0 value in the list automatically. https://code.earthengine.google.com/...
7
votes
1answer
66 views

Convert a list to string in QGIS

I have edited a field into the attribute form of a QGIS project as a "Value Relation" to create a checkbox where I can choose few possibilities. I have a tree sickness and the field I am ...
1
vote
6answers
47 views

List of ID's of all selected features as default-value

I would like to get a array with id's of all selected features of layer 'LayerB' (field-name: "id_of_layerB") as a default-value in a qgis-attribute-form of 'LayerA'. I tried something like ...
1
vote
1answer
58 views

Listing all Feature Classes being used in ArcGIS Pro project using ArcPy [closed]

I am trying to work out how to list all feature classes in ArcGIS Pro and ArcGIS Pro files. I have used this script in the past which works for .mxd but recently I have started using ArcGIS Pro which ...
2
votes
2answers
53 views

Listing layers with or without geometries using PyQGIS

I need to list all layers with geometries but not those without. Can I be sure geometryType = 4 always are tables without geometries? I cannot find the documentation explaining which number is which ...
3
votes
1answer
102 views

Converting list into field with PyQGIS

I am trying to convert a few lists into fields. I have no problem creating the fields. I just don't have any idea on how to fill them. if result: layer = self.dlg.comboLayerLine.currentData() ...
1
vote
2answers
58 views

FME list index number as attribute value

I have created list which has same road name but several separated segment. These has sorted using length of road lines (ListSorter). The list index inside () shows length order which road segment has ...
2
votes
1answer
198 views

Accessing item in list of lists using Google Earth Engine

How do I access an item in a list of lists in GEE? I know that using the method get() returns the element at the specified position in list. But the result of list.get(0) is [1, 2, 3], and I want the ...
0
votes
1answer
38 views

Adding a property while converting a table into a list in GEE

Is there a way to add a property when converting from a table to a list? I have a table of lat and long points uploaded from a .csv (locTable), and found a GEE code that changed the format of my table ...
0
votes
1answer
124 views

Calculating column mean of array or list using Google Earth Engine

I want to calculate the column mean of the following set of data as the result of 1 row and 7 columns. Which functions should I use in Google Earth Engine or should I write an extra function? var data=...
0
votes
1answer
162 views

Multiply image collection by a list of numbers (pairwise)

I want to know how to multiply every single image of a collection against its respective coefficient allocated in a list. It means to multiply the image 5 with the element 5, image 6 with element 6, ...
1
vote
1answer
41 views

GeometryCollections do not have coordinate lists

I have code that suppose to break multipart geometry into single part by generating list of coordinates for each polygon. The code works perfectly for small amount of polygons, but today when I tried ...
1
vote
1answer
34 views

Delete all files in a directory, except files with a specific string

At the end of my script I want to delete all my temporarily created files in a directory. For this purpose I write all files into a list and look in the elements to see if it has the string "final.shp"...
2
votes
1answer
57 views

Pairing more than two lists using Google Earth Engine

I would like to know how to pair more than two lists. I know this is easy to do using .zip function, but how do I pair a third or more lists? var list1 = ee.List(['...
0
votes
2answers
431 views

Google Earth Engine: How to Create A Table From Lists

I want to create table-format feature collection from a couple of lists. These lists only have 4 elements in it. My objective is to create a feature collection with a column per list and a row per ...
1
vote
1answer
68 views

How to create a FeatureCollection with the values stored in an Array on Earth Engine?

I applied an unsupervised classification to a collection of Sentinel 2 images and used ReducetoVector() within a loop to obtain each class of the Unsupervised classification as a different object. ...
0
votes
1answer
17 views

Optimize the code for one command with only one different parameter

I am not too familiar with ArcPy/Python, but since some commands are only available in ArcGIS, I try to implement my idea using ArcPy. I want to use a command several times, but each time only with a ...
1
vote
1answer
48 views

Iteration in GEE (List Error)

I am writing a code that calculates the number of burned patches in a study area. The process is based on iterating over a list of numbers. Code: Link var country = ['ZA']; var geometry = ee....
0
votes
1answer
46 views

Unlist into a single Object - Google Earth Engine

I'm new to GEE and Java scripts. I'm trying to do something that seems simple, but cannot find any way to do it. I’ve an image (which is not that big, say 100 km * 100 km) with ~ 12 bands (and a 30 ...
0
votes
0answers
20 views

Sorting a list of list in Earth Engine

I'm trying to sort this data set lowest to highest. I have a list of 4 elements, each element is comprised of another list of two element pairs.  I need to sort by the first element in each list and ...
1
vote
1answer
41 views

Dissolve ArcGIS Pro Python doesn't take string variable for field list

I try to dissolve layer having multiple fields statistics calculated. I prepared a string variable which has all the information in it. When I paste printed variable into dissolve it works. However I'...
0
votes
2answers
167 views

Using writeOGR on a list of SpatialPolygons

This question has been asked before, but I find the answer confusing since there are no reproducible examples that link the question and the answer, and the answer doesn't actually use the writeOGR ...
1
vote
1answer
77 views

How to accumulate in the image collection in Google Earth Engine

Here is an image collection [img1,img2,img3,img4,img5]. I want to get List or image collection [img1, img1+img2,img1+img2+img3, img1+img2+img3+img4, img1+img2+img3+img4+img5]. I tried to complete the ...
4
votes
1answer
229 views

Create a new list from a raster list in R

I am very new to R, so this is tough for me to explain. But, I have a raster list made up of 3872 elements (or separate rasters, I am guessing) and I am hoping to make a new smaller raster list by ...
1
vote
1answer
116 views

How to make the data in the list add up in Google Earth Engine

I am new in Earth Engine. Here is an image collection [img1,img2,img3,img4,img5]. I want to get List or image collection [img1+img2 , img2+img3, img3+img4, img4+img5]. I tried to complete the ...
3
votes
1answer
78 views

Insert Cursor Having an Issue With Reading the Syntax of a List

In my code below, how do I get the Desired Output? # Get a list of all 'SITE_NFID' in the dashboard_site_summary table that don't have a match in the nfid_fqn_associations table ...
1
vote
2answers
69 views

Difficulty with select by attributes using list fields in for loop

I am trying to add fields to a table and then populate the fields with text values (Yes/No). The text values are based on whether or not a species was found in a specific block. If the species was ...
1
vote
0answers
89 views

Using Python dictionary as parameter and variable in Python Toolbox tool of ArcPy [closed]

I'm building a feature class merging and comparing toolbox in arcpy, ArcGIS 10.7. I have a working command line utility with fixed featureclass values, and now I'm building this toolbox, I just copy ...
0
votes
1answer
153 views

Rasterize vector based on list values in Google Earth Engine

I would like to convert polygon (as featurecollection) that has the attribute 'Name' which contains string value of plantation types, namely 'Rubber', 'Mango', 'Coffee'. However, the .reduceToImage ...
0
votes
2answers
125 views

Using list of file paths in function arcpy.ListFields to create multiple lists of field names for each shapefile

I have a list object that contains file paths as text. I named the list object filepathlist. An example of a file path within the list is C:\TestFolder\Folder1\A\address_pt.shp. The file paths lead to ...
1
vote
1answer
53 views

Copy feature class from multiple gdb to a single gdb

I need to write a Python script that is copying. I want to copy a common feature class of these gdb to a single gdb import os import arcpy arcpy.env.workspace = ("D:/Planchas") workspaces = arcpy....
1
vote
1answer
61 views

Calculate field with a value in a list based on field [closed]

I don't want to write an if statement for every field. I want to know if there is another way to field calculate each field with the values related to it in this example table: Fields (X,Y,...
2
votes
1answer
39 views

Error in create list of the images new names

I have code that calculates NDVI and then give each image name based on the date.I want to create list after that that will contain the names-dates of each image, but I keep getting the following ...
2
votes
2answers
36 views

Is there any way to force a loop to go until the last list object in R?

I am running a loop in R to rasterize a list of data frames and for comparison purposes I have to keep the same list length in the output. I am facing some problems with NULL objects on the list. I ...
1
vote
0answers
306 views

Export landcover area after classification - Google Earth Engine

I want to make a time series analysis of landcover change with Landsat 7 images. After I classified them using MODIS land cover classification, I want to export the change in land use. For this, I ...
1
vote
1answer
155 views

Getting attributes from features in list of another table using expressions in QGIS

The goal seems simple, the explanation not, but I try to: On the one hand, I have a table with several objects ("objects_layer"). On the other hand is a table with a list-field ("list_layer"). I wan'...
7
votes
2answers
689 views

Get all related attribute values from features in list (QGIS)

According to this question: Get Attributes from 1:n relation in QGIS as Expression to use in Atlas I try to bulid waysigns for a hiking-GIS using the QGIS Atlas. The user should be able, to choose the ...
1
vote
1answer
105 views

Spatial reference data from all layers in MXD

I have a MXD with many group which has many layers. I have tried to get coordinate system data from all layers with the code from Iterating through layers in mxd and describing coordinate system. So ...
2
votes
1answer
301 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 ...