New answers tagged

0 votes

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

Here's a method that I use. It works for ee.FeatureCollection and ee.ImageCollection, and all groups (except one) end up with the same size. function index_dict_batch(fc, batch_size, sortby){ /* ...
Oliver Lopez's user avatar
2 votes
Accepted

Accessing CRS of feature-collection

Assuming all features in the collection have the same projection, you can get the projection from the geometry of the first feature: print( collection.first().geometry().projection() )
Daniel Wiell's user avatar
  • 12.7k
0 votes

Merging ee.FeatureCollection for training data in PythonAPI

Something like this should work: def to_feature(row): return ee.Feature( ee.Geometry(json.loads(row['.geo'])), {'LC': row['LC']} ) data = pd.read_csv(file_path) fc = ee....
Daniel Wiell's user avatar
  • 12.7k
0 votes

How to transform the Object into FeatureCollection on GEE

The feature collection that you want (s1s2_sample in script1) is within the object that you defined as s1s2_sample in script2. I suggest that you retrieve it as: var preprocess = require('users/...
Oliver Lopez's user avatar

Top 50 recent answers are included