Questions tagged [list]

Linear collection of items

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

Adding list to Image Properties using Google Earth Engine JavaScript API

I am trying to iterate through an image collection and add a property to each image that is taken from a list. For example I want image 1 in the collection to have the property list item 1. I first ...
1 vote
1 answer
31 views

Get specific rasters (with date string in rasternames) from FGDB in to the list

I have a FGDB with many rasters. The raster name contains date at the end(YYYYMMDD). See example rasters bellow. I can get all rasters in to the list with wildcard. That is not the issue. I want to ...
  • 91
-1 votes
1 answer
248 views

Convert list of XY-coordinates into GeoJSON/Polygon geometry [closed]

From API-responce I get a long list of XY-coordinates of vertices where each coordinate is separated by comma. How can I transform this list into GeoJSON/Polygon geometry? ,"shape":[52....
  • 499
1 vote
1 answer
56 views

Why arcpy.ListRasters() returns three lists?

My folder has three TIFFs. But when I use arcpy.ListRasters, it gives three lists that contain nine TIFFs. Why it doesn't give one list containing three TIFFs? import arcpy arcpy.env.workspace = &...
  • 115
1 vote
0 answers
32 views

Find the average of pairs with the same first element in FME

I have a list of pairs in FME: and need to calculate the average of each set of pairs with the same first element. I came up with this code, but it takes a lot of time to paste and copy the list. Is ...
1 vote
1 answer
201 views

Convert a List into Feature Collection in Google Earth Engine

I'm trying to convert a list into a Feature Collection in Google Earth Engine in order to export as CSV file. I'm getting this error FeatureCollection (Error) Collection, argument 'features': Invalid ...
5 votes
2 answers
161 views

Getting list of values from column in QGIS

I have one "column D" with a b c values for my entities (1-2-3-4). Something like that : 1. b 2. c 3. c 4. e 5. j 6. b I would like to generate a list of each different value of "...
  • 407
6 votes
3 answers
604 views

Extracting latitude and longitude pairs as list from LineString in GeoPandas

I have a GeoPandas GeoDataFrame that looks like this: shape_id geometry 1000252 LINESTRING (4.91790 52.34725, 4.91797 52.34715... 1000254 LINESTRING (4.80382 52.34495, 4.80413 52.34500... ...
0 votes
1 answer
43 views

Using values of a groups of objects to create an image in GEE

I have calculated the 90th percentile for each class of land cover using the reducer ee.Reducer.percentile([90]).group The result is a group of objects and I don’t know how to use it. I would like to ...
0 votes
1 answer
32 views

How can I solve MemoryError if I have big list in my Arcpy code?

I have a script and I have a huge list. Because of this list, I got memory error in line 93 when the value of scale variable is 10000 in line 45. This list is empty_list in line 28. I tried to convert ...
  • 1
0 votes
1 answer
66 views

projectRaster on a list of rasters

I have two raster layers in a list format called myrasterlist that differ in extent and crs. The list looks like this: [[1]] class : RasterLayer dimensions : 540, 537, 289980 (nrow, ncol, ncell)...
2 votes
1 answer
90 views

Array (Error) Array: Unrecognized type, may only use numbers or lists, found type Array

I am getting this error when trying to subtract the array with its mean value in Google Earth Engine JavaScript API var from = ee.Array([2,3]) var meann = from.reduce(ee.Reducer.mean(),[0]) var to = ...
3 votes
2 answers
457 views

How to use a list with spatial dataframes in a for loop? - R

I have three spatial dataframes (polygons), created via this tutorial. The three spatial dataframes must be exported as shapefiles via a for loop. I created a list polygons containing the three ...
1 vote
0 answers
38 views

Report a listing of some fields from attribute table

QGIS 3.22.4 For working purposes, I want to have a listing of some attributes in a shapefile (line), and have those information as a listing (multiple line per page). No geographic dat (maps,...) ...
  • 438
4 votes
2 answers
161 views

Writing list as attribute field in PyQGIS

This answer got me close https://gis.stackexchange.com/a/286780/204059, but I only get the last value of my list for all object fields. Example: My list = [REL_1, REL_2, REL_3]. My layer has three ...
  • 65
1 vote
1 answer
254 views

How to open a list of images from an asset as an Image Collection?

I need to create an Image collection from a list of images that I import from an asset in GEE. This is the code I am using: //THE CREATION OF A IMAGECOLLECTION WORKS WITH TWO IMAGES LOADED HERE var ...
0 votes
0 answers
18 views

how to extract all pixel value from mask area in Google earth engine [duplicate]

Can I extract all pixel values as a list for the masked area (the white area in the figure below) in GEE. I need to know all the pixel values and its indices for the area.
0 votes
1 answer
537 views

Trying to Call a List From a Function within one Class to Another Class

I have an Python Toolbox script that contains two classes/tools. I want it so that the user inputs the data into the first class and then the second class will handle the processing. How can I write ...
2 votes
1 answer
221 views

How can I select features in the attribute table of a layer in QGIS from a list? [closed]

I have ~5000 features in a layer in QGIS. Each feature has a unique ID. I have a list of ~800 features (with corresponding IDs) I would like to select and remove from the layer. Which expression ...
1 vote
0 answers
50 views

A long domain list in QField

I am using QField for an urban tree survey with a domainlist containing a couple of 100 tree (sub)species. Is there a way to 'jump' to the desired tree in the list. For example, I want to select ...
  • 41
4 votes
4 answers
277 views

Creating list from field values with PyQGIS

How is it possible to create a list from the values of a single field in a shp using PyQGIS? Example: field_capital_name London Paris Rome list1 = [London, Paris, Rome]
  • 348
1 vote
1 answer
25 views

Get list mapped over featureCollection for multiple regions

I am attempting to convert my normal GEE GUI JavaScript code over to Python using a Colab environment. In JavaScript I had successfully been able to display and use in calculations multiple regions (...
0 votes
2 answers
171 views

List datasets in the memory workspace in ArcPy

I have some sensitive data which I would prefer to only exist in memory that I wish to use in ArcGIS Pro. Loading the data into the "memory" workspace is no problem, and so is deleting it, ...
  • 187
0 votes
0 answers
45 views

ArcPy merge output only has the first feature class in list

I have a script that generates several feature classes. I use a function to create the feature classes within a loop. The loop outputs a dictionary with a name string as key and the feature class path ...
0 votes
1 answer
33 views

How to create a list of unique strings, and print that list in a field using ArcGIS Pro field calculator

I have a landcover polygon that I spatially joined to a soils polygon. This left me with many duplicate soil types in each row of the landcover polygon. I would like to summarize the soil types to ...
0 votes
1 answer
111 views

Why reduceColumns is not working at all in Google Earth Engine?

I have tried to extract the data in a specific column of my featureCollection using .reduceColumns, but got nothing. Other columns work, but the column "Image_ID" is not working. I thought ...
0 votes
1 answer
55 views

Why does list.remove() not remove all items that meet the condition?

I have a bunch of feature classes in a geodatabase, and some of them are empty. I want to generate a list of all feature class names, and then remove the names of any feature classes that are empty. ...
0 votes
1 answer
159 views

problem with list.files() in R

here you have my data https://www.eea.europa.eu/data-and-maps/data/corine-land-cover-accounting-layers. I downloaded "CLC2000 Accounting Layer " file and "CLC2018 Accounting Layer" ...
0 votes
1 answer
37 views

Calling shapefiles as inputs and creating a list

I am working on writing my first script (Im a noob) to automate a task where we combine data from a hydrology dataset stored in a database and clip it to the project area boundary which is a shapefile....
  • 1
0 votes
0 answers
54 views

Create new feature class from tuple by changing Object Id

I have feature class with 49 records. OID = [0,...,48]. I created 2 random non-repetitive feature classes containing 9 OIDs. in_FC = "E:/gis payannameh/TABU search/data/90spring_new.shp" ...
0 votes
0 answers
81 views

Cropping and masking rasterstack to a list of shapefiles

I have a raster stack (nlayers = 366, ncells~10 million). I am hoping to crop and mask this raster stack to a data.frame of coordinates for which I have made a series of concentric circle shapefiles ...
  • 33
0 votes
1 answer
258 views

How to combine two objects in an ee.List() Earth Engine

I have this type of list in Google Earth Engine: var list = ee.List([[{'class': 1, 'sum': 27188.96}, {'code': 'Cloud'}], [{'class': 2, 'sum': 1190.15}, {'code': 'Soil'}]]) and ...
0 votes
1 answer
290 views

How to separate in two lists the coordinates of a 2D list

I have created a program that calculates the intersection of two regions on the surface of the Earth based on 2D coordinates given by the user. It asks if the user wants to add more coordinates and ...
1 vote
0 answers
211 views

Subtracting each image in two image collections in Google Earh Engine

I have two image collections with 14 images each. I need to subtract the first image of the first collection to the first image of the second collection, the second image of the first collection to ...
  • 126
1 vote
0 answers
153 views

Calculating the area on the surface of the Earth from the intersection of two polygons using Python

I have made a program that calculates area and perimeter based on 2D coordinates (latitude and latitude) given by the user, asking if they want to include more coordinates from the third pair, and ...
4 votes
1 answer
193 views

Comparing polygons from zip lists inside a loop, whose data comes from user in Python

I have made a program that calculates area and perimeter based on 2D coordinates (latitude and latitude) given by the user, asking if they want to include more coordinates from the third pair, and ...
4 votes
1 answer
101 views

Printing zip lists whose data comes from input user in a loop

Printing zip lists whose data comes from input user in a loop I have made a program that calculates area and perimeter based on 2D coordinates (latitude and latitude) given by the user, asking if they ...
7 votes
3 answers
838 views

Selecting multiple features by ID-attribute from list using PyQGIS

With PyQGIS I would like to use several "ID"s (in a list) to select certain objects in order to make them available later in a temporary layer. I know how to select one or a few more objects,...
0 votes
2 answers
141 views

Select layer by attribute based on multiple field attribute values in a list

I have a list of street_names ['SH-701', 'SH-67', ' ABC', 'Dharampur Road', 'Kailash Road', 'Tithal Road', 'SH-6', 'Halar Road', 'SH-183', 'Ramji Tekra Road', 'Mahatma Gandhi Road', 'Bandar Road', 'M ...
0 votes
1 answer
42 views

Assigning element from first list to it's respective element in second list

I have a list of months(strings) & a list of image collections. I'd like to assign the value of each month's corresponding image collection to itself. How can I achieve this neatly without ...
0 votes
0 answers
184 views

QGIS 3 Select by Location - How to get map results as a list?

Can I and if so how can I get a list of QGIS 3 "Select by location" results in a list? For example, I did an "Intersect" "Select by location"query of two data sets (about ...
2 votes
0 answers
97 views

Iterate through list with numbers (as text)

I want to iterate through a list of coordinates and see it the last coordinate matches the first coordinate. The coordinates are stored in have a GeoJSON string: '''{"type":"...
1 vote
2 answers
454 views

Change projection of list of rasters in R

I am handed down some RData that contain a list of of raster stacks. The file structure is pretty challenging to manipulate. After doing load(), the data looks like this: [[1]] class : ...
  • 161
0 votes
1 answer
156 views

Searching a value from lists, get repeated results and append results to list in Google Earth Engine

Before, I asked that for search or filter values in two-segment list in Google Earth Engine at this link(Search or filter values in two-segment list in Google Earth Engine) and this question is ...
1 vote
0 answers
24 views

Create a .csv of list of number of non null cell from raster in a mapset

How can I create a .csv file (maybe output of a function) of number of non null cells of raster from a given list in GRASS (e.g. rasters could be: myraster#1... myraster#500)? Unfortunately g.list ...
1 vote
1 answer
175 views

How to make a linked-list in Google Earth Engine?

Now, after Noel Gorelick's very helpfull code, i have a sorted list with two-segment: var list = ee.List([ [101, 103], [102, 103], [103, 109], [109, 122], [117, 156], [122, 133], [133, ...
3 votes
1 answer
285 views

How to sort multi-column lists by first or second column in Google Earth Engine

I have a list with two-segment. var list = ee.List([ [101, 102], [102, 103], [103, 104], [106, 100], [104, 105], [105, 106], ]) How can sort this list by first or second column?
2 votes
1 answer
226 views

Search or filter values in two-segment list in Google Earth Engine

i have a two-segment list; var list =ee.List([[101,12155],[102,12157],[103,12158]]) i want to search or filter for 102 and get result (12157), for 103 and get result(12158) How can i do it ? i find a ...
1 vote
1 answer
63 views

Getting values from two-segment list in Google Earth Engine

i have a two-segment list; var list =ee.List([ [101,12155], [102,12157], [103,12158]]) I can print this list with: print(list) And get values for row (0) like this command: print(list.get(0)) ...
1 vote
0 answers
158 views

Select area in Maps and get List of all Addresses

I am looking for a way to select a residential subdivision online maps and get a list of all addresses in that selection. What do you think? I think this thread might lead in the direction of what I ...
  • 11

1
2 3 4 5