Questions tagged [feature-collection]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
35 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 ...
user avatar
1 vote
1 answer
42 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 ...
user avatar
0 votes
1 answer
33 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 ...
user avatar
0 votes
1 answer
30 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 ...
user avatar
2 votes
1 answer
68 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 ...
user avatar
  • 171
0 votes
1 answer
50 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 ...
user avatar
1 vote
1 answer
17 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 (...
user avatar
1 vote
1 answer
108 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 ...
user avatar
0 votes
0 answers
39 views

Add geometry to vector layer GEE

I have vector layers of the Congo that show the region, department and districts as FeatureCollections. However, for further analysis I need to add geometry attribute to them. I already tried to just ...
user avatar
  • 43
0 votes
1 answer
25 views

Generating feature collection from image band statistics

I'm trying to calculate the percent forest cover for 125 basins using the MapBiomas 30m land cover product for Brazil. The data is provided as an image with band values for each year. When I try to ...
user avatar
0 votes
1 answer
70 views

EE: Converting list to feature collection for export

I am attempting to export a list of some NDVI data to my Google Drive. However, I am unable to export the list (when using export.table.toDrive) to my drive, as I get an error warning that my ...
user avatar
0 votes
0 answers
43 views

Computing area of very large feature collection in GEE?

I'm trying to calculate the total area of a very large Feature Collection (over 1 million features) of burned areas over the Amazon. I want to find the total area (sum), and also the area grouped by ...
user avatar
1 vote
0 answers
98 views

Optimizing code to run faster in Google Earth Engine

I am trying to query properties (~10) from Earth Engine datasets (Temperature, Precipitation, GLDAS outputs, etc.) for a given coordinate point and time range in my dataset (90,000 points). I’ve done ...
user avatar
0 votes
1 answer
50 views

Google Earth Engine: moving points in a feature collection?

I have a .csv that contains 200 points, with several properties. I've imported this asset as a feature collection. All of these points should be over water, but there is a margin of error (a known ...
user avatar
  • 75
0 votes
1 answer
62 views

Extracting geometry from feature collection in Earth Engine [closed]

I have a feature collection containing thousands of feature. They are categorized into 10 classes. As you can see in the picture, these features are spread irregularly. I need to merge their ...
user avatar
1 vote
1 answer
128 views

Visualizing Collection of Pixels as Image in Google Earth Engine

I have a polygon and I want to extract both the value and coordinates of every pixel of a landcover raster within that polygon into a CSV spreadsheet. I will use that to perform computations outside ...
user avatar
  • 103
0 votes
1 answer
137 views

Filtering out null values from Feature collection

I'm having an issue with filtering out null values from a feature collection. I wrote a map function to get the land surface temperature value for every feature in the collection, which ran fine. Then ...
user avatar
0 votes
1 answer
60 views

Adding features to featureCollection does not update the map

I am trying to draw lines on the map using GeoTools, and my goal here is to prevent reloading the window when I draw lines on the map every time. I created a layer based on a featureCollection and ...
user avatar
1 vote
1 answer
52 views

Masking FeatureCollection using image in Google Earth Engine

I have a FeatureCollection with my study area, and an image with urban areas. I want to remove the areas in my FeatureCollection where the image has urban areas. How can this be done? var studyArea = ...
user avatar
  • 11
1 vote
1 answer
135 views

How to get Feature Collection from PostGIS with GeoAlchemy?

I am building a simple Flask app where I want to display all point data stored in PostGIS with Leaflet. What I want to do, is retrieve data in GeoJSON from PostGIS to Flask (using GeoAlchemy) and then ...
user avatar
  • 65
0 votes
2 answers
81 views

Subtracting two Feature Collections in Google Earth Engine

I have two feature collections (before and after) that I want to subtract in Earth Engine. Each Feature Collection has an NDVI band computed, BF_NDVI for the before Image and AF_NDVI for the after ...
user avatar
  • 162
0 votes
0 answers
187 views

Intersection of two Feature Collections in GEE

I am trying a very easy problem in GIS, but I cannot deal with in GEE. My goal is to get a resulting FeatureCollection with two properties (VH and class) initially contained in two different ...
user avatar
  • 13
2 votes
1 answer
228 views

Charting features by a list of properties in Google Earth Engine

I am trying to create a chart in Earth Engine using the ui.Chart.feature.byFeature function. I am basing my code off of the following example provided by Google Developers... // Import the example ...
user avatar
1 vote
0 answers
96 views

Google Earth Engine subtraction (difference) of two geometries

I am trying to create a feature collection containing the difference (subtraction) between a larger geometry (e.g. the state of California) and a few smaller geometries within the larger area (e.g. a ...
user avatar
  • 103
0 votes
1 answer
74 views

Problem Exporting entire ImageCollection in Google Earth Engine (agrimask_2001)

I'm trying to export to the drive all the images within a MODIS satellite collection. I came across this question, which is given exactly the answer I need: link: Exporting entire ImageCollection in ...
user avatar
1 vote
2 answers
552 views

Select features in feature collection where two properties are equal in Google Earth Engine (GEE)

I feel like I am missing something basic here. I am looking to select only the features within a feature collection that have matching property values. For example I would like to only select the ...
user avatar
0 votes
0 answers
70 views

How to add attribute from input ee.FeatureCollection to ee.Geometry.Rectangle in function

I have an ee.FeatureCollection called 'datasubset' that contains the following columns: ID, LATITUDE, LONGITUDE, WIDTH, HEIGHT, and VALUE. This is a subset of the data I am working on in Ayeyarwady ...
user avatar
0 votes
0 answers
20 views

Random shutting down of ArcGIS Collector Apps

I just wanted to know if anyone else has experienced the issue of ArcGIS apps, in particular the Collector app, randomly shutting down in the field while on iOS devices? Seems like my surveyors are ...
user avatar
2 votes
1 answer
259 views

Count # of consecutive days without rain before an active fire

I have modified code from Google Earth Engine - counts days of the longest dry period in a time period to look at the longest consecutive number of days without rain in an image collection. I am now ...
user avatar
1 vote
1 answer
171 views

Feature collection to binary image results in single value image in Google Earth Engine

I am trying to convert a feature collection to a binary image as described in Creating binary image from FeatureCollection in Google Earth Engine. However, the result is an image with only one value ...
user avatar
  • 485
1 vote
3 answers
1k views

Google Earth Engine: How to obtain coordinates of centroids of polygons of a FeatureCollection

I need to obtain coordinates (longitude, latitude) of the centroids of a FeatureCollection of polygons in Google Earth Engine. I would like to download the coordinates if possible. I am new to GEE and ...
user avatar
  • 11
0 votes
1 answer
165 views

Sampling areas based on water mask using Google Earth Engine

I am trying to sample a large image and I only want to keep points that fall within a water mask. I can successfully sample small numbers of points by using a mask, but the algorithm chokes at larger ...
user avatar
1 vote
2 answers
114 views

Feature property uploads as null- Google Earth Engine

I am attempting to upload a feature collection which has a SURVEYDATE column. However, when I ask for the property, it returns null. var table = ee.FeatureCollection("users/shopvac18/zm/NAS_ZM_2&...
user avatar
3 votes
1 answer
79 views

GEE Download data around buffers on multiplie points, adding coordinates of each point to table

I want to download a time series of the average pixel value of a buffer around a number of points. In the resulting table, I'd like to have the coordinates of each point as a variable. How to do this? ...
user avatar
  • 617
0 votes
1 answer
135 views

FeatureCollection feature.byFeature histogram or column chart bucket size

I am working with a featureCollection of river data which is segmented by river reaches (there are hundreds within a few km). This collection includes data of reach length and reach discharge. I am ...
user avatar
0 votes
1 answer
374 views

How can I extract each value of a column from a Feature Collection and append it to a new list in Google Earth Engine?

I want to map a function over a Feature Collection to extract some column values and turn it into a list. I do know how to map a function over collections, but I'm new with Google Earth Engine and I ...
user avatar
1 vote
1 answer
404 views

Properties and columns difference in GEE feature collections

What the difference between columns and properties in Google Earth Engine feature collections? When I build a new feature collection with a property directly in the code editor, when I print it I do ...
user avatar
  • 45
0 votes
1 answer
38 views

Bounding Areas using Feature Collection values (RESOLVE Ecoregions 2017)

I'm pretty new to the Earth Engine and have been working through some of the tutorials to familiarize myself with it. I have very little code experience. What I am trying to accomplish is creating a ...
user avatar
0 votes
1 answer
782 views

Zonal statistics with feature collection column (Google Earth Engine)

I have run into a very similar problem a few times while working in Google Earth Engine and never found a good solution. I am working with raster data (continuous values) and a feature collection of ...
user avatar
  • 35
1 vote
1 answer
339 views

Select points outside of polygon in Google Earth Engine

I understand how to get the points that fall inside a polygon with GEE: // Load a feature collection and a area of interest var dataset1 = ee.FeatureCollection("link/to/any/point/dataset/on/gee&...
user avatar
  • 276
0 votes
1 answer
249 views

GEE: Indexing a List of Lists inside a property of a FeatureCollection

I'm running the LandTrendr algorithm in GEE over multiple points of interest, which leaves me with a FeatureCollection having a list of lists in one the properties for every feature. Out if this list ...
user avatar
  • 466
1 vote
1 answer
105 views

Creating multi-ring buffers (donuts) on a feature collection GEE

I have a large feature collection that I am creating a multi-ring buffer on using GEE. My problem is that the .difference algorithm only works on a feature and not a feature collection. I tried to ...
user avatar
1 vote
1 answer
142 views

Display points from CSV table (feature collection) in Google Earth Engine

Unfortunately, I cannot display the point data I uploaded as csv file. I specified latitude and longitude, the rest is unknown so I kept it at default. Can somebody help? Link to asset
user avatar
1 vote
0 answers
729 views

Filter through geometries of a feature collection in Google Earth Engine to export as a shapefile

I'm trying to export a shapefile of administrative units out of GEE, but I get the error Shapefiles cannot contain multiple geometry types; found 'LineString', 'Polygon' Here is my code and the ...
user avatar
1 vote
1 answer
428 views

Dissolving overlapping polygons in Google Earth Engine

I have a series of buffers stored in a feature collection. Some but not all of the buffer polygons overlap. I need to dissolve the polygons in a way that Google Earth Engine still recognizes each as a ...
user avatar
  • 343
0 votes
1 answer
374 views

Get image pixel centroids in Google Earth Engine

I would like to create a feature collection consisting of the centroid points of the pixels in an image. The question of how to do this has been asked before on Stack Exchange, but not actually ...
user avatar
  • 343
1 vote
1 answer
774 views

Add feature id as a feature property in Google Earth Engine

In GEE, user-generated feature collections are automatically assigned an id number. How do I create a property for each feature collection that stores the id ("system:index") as a property, ...
user avatar
  • 343
1 vote
1 answer
139 views

Dissolve FeatureCollection using attribute

I have a feature collection with a number of properties, all numbers. I want to aggregate all features in the collection that have a property in common. For instance, I want to merge features that ...
user avatar
1 vote
1 answer
279 views

Remove some properties after inner Join in Google Earth Engine

I want to join two featureCollections and remove the ID field in order to run linearRegression in GEE. I found codes to clean the featureCollection after innerJoin, and snippet to remove properties ...
user avatar
  • 51
2 votes
1 answer
354 views

Error in exporting table from Python API service account-- Asset does not exist or doesn't allow this operation

I am trying to export a table using the Python API and am getting the following error: Asset 'my_asset_Path' does not exist or doesn't allow this operation The exact same code works in both the code ...
user avatar