Skip to main content

Questions tagged [list]

Linear collection of items

Filter by
Sorted by
Tagged with
2 votes
1 answer
67 views

Sorting Recently Used Coordinate Reference Systems list in QGIS

I want to sort alphabetically all CRSs in the Recently Used Coordinate Reference Systems list in QGIS. But I can't find a way to do this using the user interface. How one can sort them using PyQGIS?
Comrade Che's user avatar
  • 8,208
0 votes
1 answer
25 views

GEE type casting / list creation and access to list-of-lists

I have difficulty in working (interchangeably) between client-side and server-side variables in GEE. I have two lists (defined as client-side variables) : var color_lst = ['604791', 'F648F1', '39a8a7']...
Sina NAKHOSTIN's user avatar
0 votes
1 answer
39 views

GEE: casting confusionmatrix as list

After reading this question and the corresponding answer, I tried to get a confusion matrix produced by GEE random forrest classifier and turn it into a good looking table. I realized that GEE has a ...
Sina NAKHOSTIN's user avatar
0 votes
1 answer
150 views

Transforming R data.frame with column of GeoJSON strings into sf object

Suppose I have a data.frame object that has a column called geojson with GeoJSON strings in each row. How can I transform this data.frame into an sf object that would allow me to perform geospatial ...
Felipe D.'s user avatar
  • 2,749
0 votes
0 answers
32 views

How to create a field with a list of neighboring residential lots in QGIS?

I need to create a field with a list containing the 'name' information of the geometries that intersect each of the existing geometries. They are residential lots, and I need to list the adjacent ones....
Victor Diniz's user avatar
-1 votes
1 answer
40 views

GEE: List operation and conditioning

I have a list of features containing two Polygons that belong to a MultiPolygon feature: var polygon_lst = ee.Feature(MP_feat).geometry().coordinates(); //MP_feat is a MultiPolygon I want to take ...
Sina NAKHOSTIN's user avatar
0 votes
1 answer
29 views

Error exporting the mean of an Image List (of 173 Elements)

I am trying to export the LST mean for a period of time. I converted the Image collection I had to a List, but I cannot calculate the mean of all the elements within the List so there is only 1 image ...
si.patsalidis's user avatar
1 vote
1 answer
30 views

Indexing error in list in gee [is not a function)

how do I access an element from a index. I have created a list with feature and I want to access them and I am using .get function. However after getting .get it is returning error that it is not a ...
ryan's user avatar
  • 11
0 votes
1 answer
44 views

Exporting pixel value of a dataset

I'm trying to export the value of a dataset for each pixel. I made it this way : var chloa_4kmOnly = chloa_4km.select("Chloa_OC3").clip(geometry) print(chloa_4kmOnly) var chloaFeatures = ee....
Aurélien Lengrand's user avatar
0 votes
1 answer
157 views

Expected type : List<element> Actual type ; List<Float>

I'm facing an issue while extracting each pixel value of a band: And here's the code I'm using : var chloaFeatures = ee.FeatureCollection(ee.List(chloa_4kmOnly .reduceRegion({ reducer : ee....
Aurélien Lengrand's user avatar
1 vote
1 answer
254 views

Raster is being saved with no bands names despite defining them using Rasterio

I have an ndarray which I would like to save as rasterio raster. I have all the information I needed (image size, transform, band names etc.). The problem is that when I try to save the image as ...
ReutKeller's user avatar
  • 2,215
3 votes
1 answer
156 views

AttributeError when creating list field with QVariant in QgsVectorLayer using PyQGIS

I am trying to create a list-type field for the active layer using the code below, which is not working. Is there any other way to create a list-type field and update the list([1,2,3]) as an attribute ...
Ganesh S's user avatar
1 vote
2 answers
205 views

Export List of lists as a FeatureCollection (CSV) in GEE

I need to export CSV but my input is a list of lists so I have an error "FeatureCollection (Error) List.get: Parameter 'list' is required." How can I change my input data? Or the export mode?...
Anastasiia's user avatar
2 votes
1 answer
254 views

Fastest way to retrieve raster layers for a given year from a list of SpatRaster objects and to calculate the mean across these layers

I am creating a function to retrieve raster layers for a given year from a list of SpatRaster objects and to calculate the mean across these layers. Each SpatRaster has 94 raster layers. The problem ...
user224041's user avatar
0 votes
1 answer
57 views

Insert missing features by comparing multiple fields

I have two separate layers, I need to update one layer if the features are not in the other layer. I was thinking of using two fields to compare both features and if missing use insert, to insert it. ...
2Quiker's user avatar
  • 11
9 votes
1 answer
951 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 # ...
Kadir Şahbaz's user avatar
0 votes
1 answer
241 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 ...
Peter Kamal's user avatar
0 votes
1 answer
107 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 ...
GisT's user avatar
  • 91
1 vote
1 answer
158 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 ';'...
Rex_01's user avatar
  • 83
0 votes
1 answer
315 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 ...
hanbone's user avatar
  • 33
2 votes
2 answers
346 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 : `~!@#$%^&*_{}[]<>?/ ...
Bruno B's user avatar
  • 849
1 vote
3 answers
797 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 = ...
Arb's user avatar
  • 165
0 votes
2 answers
337 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 ...
Nick Masto's user avatar
3 votes
1 answer
84 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 ...
Shane's user avatar
  • 31
4 votes
1 answer
446 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", "...
MartinMap's user avatar
  • 8,396
0 votes
1 answer
931 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 ...
Daniel AG's user avatar
  • 117
0 votes
1 answer
1k 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. ...
John Polo's user avatar
  • 377
1 vote
0 answers
175 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 ...
GreggUnited's user avatar
0 votes
0 answers
653 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 ...
Nicolaesse's user avatar
2 votes
1 answer
418 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 ...
JEG's user avatar
  • 51
1 vote
0 answers
105 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 ...
Chowdhury's user avatar
0 votes
1 answer
301 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 ...
user5858's user avatar
  • 425
0 votes
1 answer
475 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 ...
user209381's user avatar
1 vote
1 answer
50 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 ...
Ram's user avatar
  • 111
-1 votes
1 answer
2k 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....
Mapos's user avatar
  • 607
1 vote
1 answer
203 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 = &...
jackywang's user avatar
  • 319
1 vote
0 answers
86 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 ...
Ellen Wu's user avatar
1 vote
1 answer
1k 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 ...
Việt Nguyễn Đức's user avatar
5 votes
2 answers
1k 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 "...
tonyduky's user avatar
  • 577
6 votes
3 answers
6k 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... ...
sampeterson's user avatar
0 votes
1 answer
230 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 ...
Anto260783's user avatar
0 votes
1 answer
236 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 ...
B.J.'s user avatar
  • 1
1 vote
1 answer
424 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)...
FlyingDutch's user avatar
2 votes
1 answer
328 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 = ...
Việt Nguyễn Đức's user avatar
3 votes
2 answers
2k 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 ...
Foeke Boersma's user avatar
1 vote
0 answers
125 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,...) ...
ClaudeVer's user avatar
  • 630
6 votes
2 answers
332 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 ...
Simon's user avatar
  • 89
2 votes
1 answer
1k 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 ...
thiagoveloso's user avatar
0 votes
1 answer
2k 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 ...
Mdebella's user avatar
2 votes
1 answer
1k 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 ...
PeanutMap's user avatar

1
2 3 4 5 6