Skip to main content

Questions tagged [feature-collection]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
19 views

GEE Featurecollection sorting problem

I have problem with the order of featurecollection. I found the order of featurecollection changed when uploading csv or exporting featurecollection to Assets, even if an ee.FeatureCollection.Sort ...
李思佳's user avatar
0 votes
1 answer
31 views

Randomly sample points for each feature within a feature collection in Google Earth Engine

I am using Google Earth Engine to randomly sample points within each feature (multi-polygon) within a feature collection. However, I cannot figure out how to do it. For now, I only manage to randomly ...
k_m's user avatar
  • 3
2 votes
2 answers
46 views

Checking if object is still cached in Google Earth Engine

I'm using the Python API of GEE and I'm building a mechanism to avoid re-exporting the data to GCS twice when the Python kernel dies in the middle of the transfer process (as a reminder: local -> ...
Pierrick Rambaud's user avatar
-1 votes
1 answer
15 views

Clip a imagecollection with a feature of the AOI shape

I calculated the NDWI with values greater than 0. On the other hand, I loaded a shape, like AOI, which contain diferents ponds if one with an id. I would like to clip the NDWI imagecollection with the ...
Lua Vita's user avatar
0 votes
0 answers
25 views

Mapping hourly image collection over feature collection with daily aggregation of image stats

I have a feature collection ~ 1600 polygons across the U.S. I have an image collection (NLDAS) where each image is hourly data for the summertime (92 days) across 3 decades ~ 24 hours x 92 days x 30 ...
Ufuoma Ovienmhada's user avatar
0 votes
1 answer
19 views

Extract, plot and export as a table a vegetation index time series from multipoint feature collection in Earth Engine

Reference is to a tread I posed years ago and was solved Extract pixel values from several bands of an image and export in a single table in Google Earth Engine The challenge now is to create S2 NDVI ...
Lollo's user avatar
  • 531
0 votes
0 answers
44 views

Selecting a subset of features from feature collection in reduceRegions()

In an attempt to find ndvi and gndvi over a geometry containing 160 polygons, I have the following code. var s2 = ee.ImageCollection('COPERNICUS/S2_HARMONIZED'); var geometry = ee.FeatureCollection('...
rekha's user avatar
  • 11
0 votes
0 answers
32 views

GEE filtering featureCollection with a condition

I have a dictionary in the form : f_dict = {'A':2, 'B':10, 'C':3, 'X':112, ...} dict.keys() correspond to a GEE featureCollection property. Lets call it 'f_prop'. dict.values() correspond to the &...
Sinooshka's user avatar
  • 391
0 votes
1 answer
125 views

Substituting client-side getInfo() for server side in function to pass into map() function in GEE Python API

I am trying to clip an image over a FeatureCollection and then export each cropped image using the Python API. import ee # Authenticate to Earth Engine ee.Initialize() # Load the images and feature ...
Ana Catarina Vitorino's user avatar
0 votes
0 answers
64 views

Google Earth Engine - Convert large Image into FeatureCollection to export to CSV

I have a large Image in Google Earth Engine that I would like to export as CSV. However, due to its size, I am having a hard time converting it to FeatureCollection to make the export, and I don't ...
Ana Catarina Vitorino's user avatar
1 vote
1 answer
154 views

Adding columns to a FeatureCollection

I'm trying to build a FeatureCollection from 4 differents FeatureCollection in order to export an excel with 4 columns containg the 4 differents lists. Here is an example of the strucuture of each ...
Aurélien Lengrand's user avatar
-1 votes
1 answer
28 views

Converting giant JavaScript feature collection of coordinates to GEE feature collection

I have a very large JavaScript feature collection (I think - will post a snippet below) and I want to display the vectors in Earth Engine with their attributes. var lots = { "type": &...
Hola's user avatar
  • 1
0 votes
1 answer
391 views

How to get FeatureCollection column names

I'm using a FeatureCollection and I would like to discover the column names as a ee.List. Looking at the documentation, I only find ways to reduce them but you need to know their names. For example ...
Pierrick Rambaud's user avatar
0 votes
1 answer
225 views

Transform a FeatureCollection into a dictionary of properties

Context: I try to get information from Google Earth Engine using the Python API. I'm sending my GeoPandas dataset as a featurecollection, get some information from images gathered as properties and I ...
Pierrick Rambaud's user avatar
0 votes
1 answer
318 views

Extracting polygon from feature collection and exporting it as shapefile using Google Earth Engine JavaScript API

I am using Google Earth Engine in hopes to export a polygon from the HydroATLAS feature collection as a shapefile. This is the code I have tried: // HydroATLAS data var basinATLAS = ee....
Austin's user avatar
  • 5
0 votes
1 answer
62 views

gee ranadomPoints fails:Polygon too large to be randomly sampled. Must be smaller than a hemisphere when image is not so huge

I want to sample random points over an image I access using geemap. I was trying to do it as following: #access elevation image and clip it with the feature collection img = ee.Image('USGS/SRTMGL1_003'...
ReutKeller's user avatar
  • 2,169
0 votes
1 answer
309 views

For loop over Feature Collection to return Image Collection in EE python API

I am new to the EE python API and am struggling to get a for loop (could eventually also use a map function) over a feature collection. My idea is to have one image and a FeatureCollection as input, ...
Felipe Coelho's user avatar
0 votes
1 answer
234 views

Iterating over a feature collection to filter images in an image collection according to a list of months

I am trying to iterate over a feature collection which has 10 features located away from each other and does not necessarily fall in same scene of satellite image. So what I want is to to call each ...
Ishwar's user avatar
  • 1
1 vote
1 answer
228 views

Joining feature collections, keep non-matching features in Earth Engine

I have a sample of tile centroids: var BGD = ee.FeatureCollection("FAO/GAUL/2015/level0") .filter(ee.Filter.eq("ADM0_NAME", "Bangladesh")); var projection='EPSG:4326'; //...
user157564's user avatar
0 votes
1 answer
581 views

Accessing CRS of feature-collection

I was looking for a function/way to print crs of feature collection on GEE. I thought using the same method as applied on image will give me the crs, but it didnt. The method I used for image: print(...
ReutKeller's user avatar
  • 2,169
0 votes
1 answer
40 views

Merging ee.FeatureCollection for training data in PythonAPI

js_shpz = json.loads(geom.to_json()) shpz = ee.Geometry(ee.FeatureCollection(js_shpz).geometry()) fc = geojson.FeatureCollection(mrg) img_clip = image.clip(shpz) training_data = img_clip....
yajnab's user avatar
  • 1
0 votes
1 answer
89 views

How to transform the Object into FeatureCollection on GEE

I tried to use GEE to export the Featurecollection at script1, and use require() to call the exported Featurecollection from script1 to script2. The reason I'm doing this is to separate the data ...
Cinnamon roll's user avatar
1 vote
1 answer
218 views

Google Earth Engine: How do I create a feature collection with bounded, randomly-assigned classes?

Here's an example script: https://code.earthengine.google.com/d511144dde609f4cf1fd8607499e2026 I would like to create a set of random points with random classes to use as training data in order to ...
Matt's user avatar
  • 151
0 votes
2 answers
1k views

How to split a feature collection in several equal parts in GEE

I have a feature collection (fc) consisting of 44 polygons. I need to create a time-series chart of NDVI values for each of them. I would like to analyse these polygons in groups of 4 - 5. Grouping ...
Barbara Perez de Araújo's user avatar
0 votes
1 answer
261 views

How to chart only a subset of features in a feature collection in GEE

I have a feature collection consisting of 44 polygons. I need to chart a time-series of NDVI changes in each of them. I want to chart the polygons in groups of 4 and select them myself, meaning there ...
Barbara Perez de Araújo's user avatar
1 vote
0 answers
112 views

Combining feature collections into one geometry and prep for export in Google Earth Engine

I am trying to create a new feature class (polygon) by combining different feature classes into one and also removing any overlap. I am a beginner in GIS & GEE . I will share my code below: // ...
Abdirahman Ahmed's user avatar
1 vote
2 answers
131 views

Define ".setSeriesNames" as a specific column from my Feature Collection when charting in GEE

I have an asset imported from a shapefile in GEE. It is a feature collection with which I wish to chart a time series. The lines from each feature are labelled as system:index. See labelling of ...
Barbara Perez de Araújo's user avatar
0 votes
1 answer
37 views

Filter FeatureCollection by list of dates to new several FeatureCollections for each date

I have a FeatureCollection of Features (zonstats_reduced) that I obtained after Reduce Regions based on Sentinel mosaics. I have created daily Sentinel mosaics for the years 2017-2019. Each feature ...
typowao's user avatar
5 votes
1 answer
855 views

Converting Pandas column with featurecollection to GeoJSON

I downloaded a CSV that contains a column which has a GeoJSON format and imported it as Pandas DataFrame. How can I convert this to a GeoJSON .geojson? I have about 10,000 rows, each with information ...
CrossLord's user avatar
  • 215
2 votes
1 answer
305 views

Using two properties for styling a featureCollection in GEE

I am attempting to overlay point data over some RS analysis and am happy to use the ee.FeatureCollection.style() function and the styleProperty() function. I want to style both colour and point size ...
Philipp R's user avatar
  • 248
0 votes
1 answer
327 views

Error when exporting FeatureCollection in Google Earth Engine

I got an Error: "Invalid argument: 'collection' must be a FeatureCollection. (Error code: 3)", when I was trying to export FeatureCollection. Geometry was a rectangle I draw to clip the ...
Dong's user avatar
  • 13
0 votes
2 answers
75 views

How to export a buffer I made in Google Earth Engine to a .KML file that I can open in the Google Earth desktop app

I learned how to create a buffer around a polygon here... https://developers.google.com/earth-engine/apidocs/ee-feature-buffer ...and I would like to export the resulting buffer to a .KML file to load ...
sveardze's user avatar
1 vote
1 answer
364 views

Spatial join in GEE, so that points lying within a polygon get properties from the polygon

I have some ROI polygons with a unique property 'label', and I have sample points lying within the different polygons. I want to add the label property from the polygons to the points. I manage to ...
Erin's user avatar
  • 157
1 vote
1 answer
2k views

Get value of specific property in Earth Engine feature collection into a Python list

The situation I am using the regions boundary feature collection (fc) of Earth Engine (ee) named 'FAO/GAUL/2015/level2'. I am filtering this fc for a certain country (e.g., Ghana) and I would like to ...
Thierry's user avatar
  • 129
0 votes
1 answer
329 views

Join FeatureCollection based on multiple Feature properties using Google Earth Engine

I have 2 timeseries FeatureCollection collected from Landsat looks similar to the following tables. 1st FeatureCollection (fc1): ID Date prop_1 prop_2 1 2022/10/01 missing in fc2 0.1 0.15 1 2022/10/...
Bikash Chandra Gupta's user avatar
2 votes
0 answers
719 views

How to change "string" to "integer" in each feature properties of feature collection in google earth engine?

Is there any way other than using map function to convert string data type of a property of a feature in feature collection? Could we change type of data in a property of all features in a feature ...
rez's user avatar
  • 202
1 vote
1 answer
320 views

How to create a buffer around a feature present in a feature collection in Google Earth Engine?

I am trying to create a buffer of specific radius around a feature present in a feature collection through the following code: var cellular_data= ee.FeatureCollection("users/jazibimran_farmdar/...
Jazib Imran's user avatar
0 votes
1 answer
2k views

How to use Buffer on a Feature Collection?

I'm working in GEE and trying to create a buffer around the coastal_saltmarsh Feature Collection imports(imported as table). However, GEE allows the use of buffer only on a Feature or Geometry(ee....
Carol Pereira's user avatar
0 votes
1 answer
678 views

How to write GML with features inside FeatureCollection.FeatureCollectionMembers element

I received a sample ready-made GML file (60 MB) along with a corresponding XSD file, with the aim of converting some of my databases to an identical GML form. I first opened this GML in the FME Data ...
Damir Črnila's user avatar
1 vote
1 answer
1k views

Import Assets in GEE as Geometries

I have a series of shapefiles in GEE with a single polygon for every .shp but they are imported as FeatureCollection. Is it possible to import them as Geometry or, alternatively, to convert them after ...
HyPhens's user avatar
  • 518
1 vote
1 answer
790 views

Earth Engine: how to access the dates from a list retrieved from an image collection

I have implemented the answer of Noel Gorelick to the question: Earth Engine get dates from imageCollection It is the following code: var dates = s1_collection_f .map(function(image) { ...
João Naime's user avatar
1 vote
1 answer
2k views

How do I merge a feature collection contaning several feature collection into one?

Here I am trying to get a merged feature collection containing the data row-wise for the 24 extracted images but instead I get a feature collection which has 24 elements as feature collection. I want ...
NANDALAL ODEDARA's user avatar
1 vote
1 answer
108 views

Calculating MODIS EVI feature collection but not landsat

I'm not sure why I am able to calculate the median EVI for MODIS but not for Landsat. I can see the time series of Landsat EVI values in the Inspector panel for a single pixel but when I export I get ...
sharsid94'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
0 votes
1 answer
95 views

Export series of images from feature collection

I am hoping to export a series of Landsat8 NDVI images. I uploaded a shape file and created a FeatureCollection from it containing each of the regions that I am interested in creating a separate image ...
Student's user avatar
0 votes
1 answer
157 views

How to Map.addLayer() rainfall featureCollection over globe using Google Earth Engine?

I am trying to print the precipitation imageCollection allover the whole world but I allways get only a part of the image. as you see in the image, the north of europe is empty and event when I use ...
Ward Bahri's user avatar
1 vote
1 answer
619 views

Combining GEE layers to create a global categorical raster with class values?

I've been making a climate map of the world and each climate zone is stored in a different variable (i.e. warmtemperatedry, cooltemperatemoist, cooltemperatedry as you can see in the picture). I'd ...
user2031's user avatar
  • 221
0 votes
1 answer
440 views

Exporting tables with variable name in Google Earth Engine

I am using 'featureCollection.features.forEach()' inorder to loop over a featurecollection and make some changes to each feature. after each iteration I want to export a CSV file. I want to name each ...
Ward Bahri's user avatar
0 votes
1 answer
244 views

Google Earth Engine: summary statistics of an image by another image classified

I want to summarize the value from one image by the label provided by another classified image which only with two labels. But the reduceRegions function needs the FeatureCollection to provide the ...
ChuDingjin's user avatar
2 votes
1 answer
2k views

Adding a new column to featurecollection in Google Earth Engine

I want to add random values to a new property column landcover in the feature collection, but it only yields one value for all feature/points. It should be random values for each feature. Here is my ...
Tuyen's user avatar
  • 211