Questions tagged [list]

Linear collection of items

23 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3
votes
0answers
119 views

Resolve getting a sorted list when using 'getFeatures()' method

I have this code which allows to insert features in a list: liste = [] for b in layer2.getFeatures(): for a in layer1.getFeatures(): if a.geometry().intersects(b.geometry()): ...
2
votes
0answers
43 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":"...
2
votes
0answers
100 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 ...
1
vote
0answers
19 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
0answers
55 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 ...
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
vote
0answers
446 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
0answers
181 views

Filtering elements of FeatureCollection using fusion table that contains list?

I'm new to Google Earth Engine. I am trying to filter all countries in the Americas from a Fusion Table that contains all countries in the World: // Load countries var countries = ee....
1
vote
0answers
338 views

setAttributes() with list values

In a script on PyQGIS, after a for cycle, I obtain a list like: LIST:, [[[0], 0.035, [0], [0], [0], [0], 0.036, 0.031]]) I need to put that values in the column of Shapefile Attribute Table, but I'm ...
1
vote
0answers
154 views

Remove/hide selected layer and display new layer after click on button

I´m trying to create two drop-down lists: <select id= "select1"> <option value="layer1">layer 1</option> <...
1
vote
0answers
26 views

Append object from another layer to the new layer through form (drop-down list)

I'm trying to get to know is it possible to append object from another layer to the new layer through form (drop-down list)? Do I need to create an application? If yes please tell me what language ...
0
votes
0answers
31 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
0answers
17 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 ...
0
votes
0answers
38 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 ...
0
votes
0answers
50 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 ...
0
votes
0answers
58 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 ...
0
votes
0answers
23 views

Google Earth Engine: Classifier (Error) Classifier.spectralRegion

I am using the spectralRegion classifier for classification, but I am having problems setting the parameters. I get the coordinates by .geometry() & .coordinates(), but this data structure is ...
0
votes
0answers
270 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 ...
0
votes
0answers
230 views

numpy array coordinates to polyline in shapefile Python

I am calculating the shortest path in a numpy array which was converted from a raster (.tif). I have a list representing a path like [(1,3),(2,3)(3,3)]. How can I transform this into a polyline in ...
0
votes
0answers
1k views

Extracting multiple values from list and storing them in data frame using R?

I have a list of 3 SpatialPolygonsDataFrames. Every element has a number which is the perimeter. I want through a loop to store the numbers into one cell of a data frame like: 154,526,442. I tried to ...
0
votes
0answers
528 views

Layer Tree Collapse Alongside OpenLayers3

I have the following JSFiddle that includes a layer tree for my OpenLayers3 map. It is currently set up so that when you click on the branch 'parent', the layers collapse. I'm looking to make it so ...
0
votes
0answers
372 views

Convert raster_stats list output to array / csv file

I usually program in R, but recently I have started to use python for most of my spatial programming. My python skills are still limited, and please excuse the simplicity of the question. I am ...
-1
votes
1answer
89 views

Adding property while converting table into list in Google Earth Engine

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 ...