Questions tagged [feature-collection]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
11 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
  • 1
0 votes
0 answers
21 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
  • 381
0 votes
1 answer
56 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
52 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
85 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
27 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
203 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
107 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
211 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
58 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,107
0 votes
0 answers
20 views

Reduce many bands from image over many features from feature collection in Google Earth Engine JavaScript API retaining feature collection geometry

The Situation I need to reduce by sum every band of an image with 40 bands (30x30m floats) over a global land covering grid of 10x10km (~4 Mio. features) and export the resulting table to Google Drive....
Thierry's user avatar
  • 119
0 votes
1 answer
181 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
147 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
157 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
304 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,107
0 votes
1 answer
35 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
66 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
0 votes
0 answers
86 views

Apply image.sampleRegions obtaining geometry of pixels instead of points in Google Earth Engine java-script API

Goal In Google Earth Engine, I would like to turn a multiband image of 10x10km resolution into a feature collection, where every pixel becomes a feature (i.e., a rectangle) with the pixel values of ...
Thierry's user avatar
  • 119
1 vote
1 answer
157 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
  • 141
0 votes
0 answers
23 views

Export FeatureCollection(Aggregated NDVI data for some parcels) containing a property of type Image

I'd like to export FeatureCollection(Aggregated NDVI data for some parcels) containing a property of type Image(cloud probability). For each parcel, I would like to have a row containing: geometry ...
Gabriel Barbu's user avatar
0 votes
2 answers
709 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
190 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
97 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
101 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
33 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
702 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
251 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
258 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
66 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
281 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
  • 119
0 votes
1 answer
289 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
1 vote
0 answers
599 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
  • 248
1 vote
1 answer
246 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
1k 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
539 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
822 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
  • 516
1 vote
1 answer
593 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
1k 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
101 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
88 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
151 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
539 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
397 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
209 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
1k 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
  • 209
0 votes
1 answer
554 views

Merging featurecollections for multiple years into one in for loop

I am trying to create a csv file with all the pixel values of covariates within my polygons. I created a for loop that reads the year when the polygon was created and automatically extracts ndvi ...
Niels Janssens's user avatar
1 vote
1 answer
149 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 (...
Jerrod Lessel's user avatar
1 vote
1 answer
1k views

Adding a column to a Google Earth Engine feature collection

I am trying to generate a ground truth feature collection to do some machine learning. I have a shapefile that contains one class of my ground truth. and I am manually creating a second feature ...
Charbel El Khoury's user avatar