Questions tagged [list]
Linear collection of items
252
questions
5
votes
0
answers
37
views
Exporting list-type field using GeoPandas
I have a GeoDataFrame whose a column is list-type.
import geopandas as gpd
gdf = gpd.GeoDataFrame({'list': [[0,1]]}, geometry=[Point(0, 0)])
print(gdf)
# OUT:
# list geometry
# ...
0
votes
1
answer
36
views
Creating list of yearly collections in GEE (Python API)
I'm using GEE (Python API): I have a multi-year image collection and I'm trying to simply create a list, in which each element contains a yearly Image Collection. I've prototyped it with one year, and ...
0
votes
1
answer
22
views
List the field contents of manually selected rows in a table, Arcpy [closed]
I use ArcGis Desktop 10.8 and I try to create a tool with arcpy, but I got stuck on a part:
There are several shp files with several date column names, the column names vary depending on which shp ...
1
vote
1
answer
34
views
Formatting data so it can appear as a List indicator in AGOL Dashboard
Below is an example of what My List element looks like in AGOL Dashboards
My data exists in individual cells and is seperated by ';'. I am trying to get the List indicator to show that after every ';'...
0
votes
1
answer
51
views
List the fields for every shapefile I have stored in a list
I am trying to list the fields for every shapefile in 2 lists I have created to prove that each shapefile with the correct projection/feature type within one of the lists got X, Y coordinates added to ...
2
votes
2
answers
79
views
Identify and move data containing special characters to a separate column
My dataset contains special characters. I want to identify the data which contains special characters and separate it into a new column.
List of special characters :
`~!@#$%^&*_{}[]<>?/
...
0
votes
0
answers
63
views
Multiple line Chart from lists in Google Earth Engine
I have three Lists x1, x2 and y of equal lengths. I want to compare different values of x2 corresponding to a y-x1 graph. So far, I have tried is using the ui.Chart.array.values(). The arguments need ...
1
vote
3
answers
109
views
Listing feature classes from multiple feature datasets in GDB
I am trying to list all feature classes from multiple datasets with single GDB. I have tried with below code
import arcpy
from arcpy import env
env.workspace = r"C:\GDB\Base.gdb"
fdlist = ...
0
votes
1
answer
50
views
Double indexing and looping over raster lists in R
I have a list of 63 rasters. They are the same extent, resolution, projection, etc. Because I extended 62 rasters to the maximum extent of the 63rd, I introduced NA values. However, these are relative ...
2
votes
0
answers
32
views
QField - how to show features list in alphabetical order?
I created a project in QGIS and synced it to QField. When I ask qfield to show a features list of a point layer from the project the names are not in alphabetical order. Is there a way to ...
4
votes
1
answer
120
views
Translating array into list or map and back in QGIS
Arrays in QGIS look like:
[ 'WID00037-LDB', 'WID00027-LDB', 'WID00026-LDB' ]
This kind of List or Map generated by QGIS Value-Relation Widget look like this:
{ "WID00037-LDB", "...
0
votes
1
answer
212
views
Extract coordinates out of list() in R
I have a data.frame with a column called geo. In this column, there are lists with coordinates that used to represent bounding boxes. I would like to grab the coordinates that are inside each list and ...
0
votes
1
answer
249
views
How to set a property for an image in a list in Google Earth Engine?
Based on the answer here: How to set multiple values in list in Google Earth Engine?
I'm trying to change the property of images in a list that had been an image collection before converting to list.
...
1
vote
0
answers
76
views
How to fix list brackets for list of coordinates [closed]
I am trying to populate an empty list with pairs of coordinates taken from a dictionary of pairs of coordinates.
Here is my code that is creating this list:
#Skip shorter rows
if ...
0
votes
0
answers
319
views
Shapely 2.0 from list of polygons to multipolygons
I have a geoJson file that contains some Regions boundaries. Based on this answer I made the following code to transform the boundaries coordinates into a MultiPolygon Shapely object.
import json
from ...
2
votes
1
answer
235
views
Filtering points appearing in list of convex hull polygons
I have two DataFrames df & df1:
df: containing latitude, longitude, and binary cluster (0 or 1)
latitude Longitude cluster
30.400091 -100.722830 0
30.500091 -100.762830 0
30.600091 ...
1
vote
0
answers
48
views
List Feature Classes print blank
I will write a script that must iterate through the subfolders in the PPA folder, and to iterate through the subfolders, I need to reset and list workspaces (there are two folders under PPA named ...
0
votes
1
answer
132
views
Iterating over GEE cloud assets in JavaScript produces "undefined"
I'm trying to to make my javascript Google Earth Engine code iterable, in the sense that I run the code once and it iterates through all of my cloud assets in a given folder. Each cloud asset ...
0
votes
1
answer
152
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
36
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 ...
-1
votes
1
answer
1k
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....
1
vote
1
answer
99
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 = &...
1
vote
0
answers
53
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
572
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
484
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 "...
6
votes
3
answers
2k
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
110
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
80
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 ...
0
votes
1
answer
185
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
162
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
922
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
59
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,...) ...
6
votes
2
answers
202
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 ...
2
votes
1
answer
570
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
23
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
1k
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
430
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
75
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 ...
4
votes
4
answers
466
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]
1
vote
1
answer
111
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
380
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, ...
0
votes
0
answers
76
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
49
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
224
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
62
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
284
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
44
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....
0
votes
0
answers
71
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
1
answer
439
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
498
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 ...