29
votes
Accepted
Clipping vs Filtering Images with a Polygon - Google Earth Engine
Clip sets the mask of the image outside the geometry with which you're clipping to zero. Note that clip() is a function on images (NOT image collections). On the other hand, filterBounds() passes ...
9
votes
Accepted
Iterating over years for features in feature collection using Google Earth Engine?
You are filtering year in the correct way. This is how I'd do it:
//Load and filter the Hansen data
var gfc2014 = ee.Image('UMD/hansen/global_forest_change_2015')
.select(['...
6
votes
Creating drive time polygon around map point?
There is the Route360 API that also works with Google Maps.
https://developers.route360.net/index.html
It offers quiet a few functionalities. Including different modes of transportation or the ...
5
votes
Accepted
Extracting pixel values by points from multi-band image and converting to table in Google Earth Engine?
For a single (and big) table it's just one more piece of the mamushka:
var mapfunc = function(feat) {
var geom = feat.geometry()
var addProp = function(img, f) {
var newf = ee.Feature(f)
...
5
votes
How to visualize a FeatureCollection in Google Earth Engine?
You can specify the property to use as the geometry by passing it as the second parameter to ee.FeatureCollection:
var fc = ee.FeatureCollection('ft:1Eii75QFBlQcYILLBFsU6zv9LhgJLa8FPHNGSZijQ', "...
5
votes
Accepted
Compute centroids and buffers for multiple polygons in Google Earth Engine
The task you are asking to do is termed mapping over a FeatureCollection in Google Earth Engine. You can see GEE documentation on doing so here.
To compute the tasks you want, you can write small ...
5
votes
Creating drive time polygon around map point?
Disclaimer: I work for iGeolise
You can use the TravelTime API to draw maps based on drive times here, it works for location-based searches (for consumer-facing sites for example) or one off maps.
...
5
votes
Accepted
Extracting coordinates of pixels inside polygon in Google Earth Engine as single feature
var bounds = ee.Geometry.Polygon(
[[[-67.76435852050781, -22.213792811479802],
[-67.76641845703125, -22.220785143658368],
[-67.75646209716797, -22.228412744835992],
[-67....
4
votes
Accepted
Selecting all points of polygon as single feature using Google Earth Engine
In your case you have just a single part Polygon, I give you a solution for both, single and multi part Polygons:
// coordinates is a list of list (each list is a part)
var coordinates = geometry....
4
votes
Accepted
How to Import the geometry/feature collection which is in GeoJSON format into Google Earth Engine?
You should be able to import GeoJSON geometry objects directly.
Here is an example of a MultiPolygon:
feature_geometry =
{
'type': 'MultiPolygon',
'coordinates': [[[
[-90, 24],
[-90.001, 40],...
3
votes
Accepted
Create time series for multi-polygon Google Earth Engine
As this is a common operation, there's a function to do it in one go, so you don't have to do your own multi-temporal aggregation: ui.Chart.image.seriesByRegion.
var modis = ee.ImageCollection('MODIS/...
3
votes
Accepted
Filter Google Earth Engine image collection between today and 10 days ago
var newDate = new Date();
var today = ee.Date(newDate);
var previous = today.advance(-10, 'day');
print(newDate); print(today); print(previous);
3
votes
Accepted
How to save training data set [pixel values] from earth engine during classification?
Set geometries to true, then export to a table asset. Snippet:
var training = landcover_roi.select(bands).sampleRegions({
collection: newfc,
properties: ['class'],
scale: 30,
geometries: ...
3
votes
Accepted
Converting Feature Collection of one element (Multi Point Geometry) into Feature Collection of different elements
Change variable mp for
var mp = ee.FeatureCollection(point_list.map(function(p){
var point = ee.Feature(ee.Geometry.Point(p), {})
return point
}))
2
votes
Creating filter checkboxes for Google Maps Javascript Web Map?
As to your code, sorry if it is kind of late just saw this about a year and some months later, I think a nice and simple way to do so is what is listed in this codepen example. Hope it helps.
...
2
votes
Accepted
How to Import the Multipolygon with GeoJSON code in Google Earth Engine?
Simply add the coordinates as a MultiPolygon geometry.
var multipoly = ee.Geometry.MultiPolygon(
[[[[102.0, 2.0], [103.0, 2.0], [103.0, 3.0], [102.0, 3.0], [102.0, 2.0]]], [[[100.0, 0.0], [101.0, 0....
1
vote
Import Image Overlay KML to Google Earth Engine Won't Display
It looks like your KML has not been converted to fusion table properly. There are no rows/features. Fusion tables are getting shut down after December 3rd anyways so it might be a better idea to go a ...
1
vote
Exporting band data of a large number of points
I have found the sulution.
// Print and display the FeatureCollection.
Map.addLayer(survey_points,{color:'red'},'survey_points');
print(survey_points);
//Navigate to area of interest
Map.setCenter(...
1
vote
How to visualize a FeatureCollection in Google Earth Engine?
Somehow, you uploaded that KML file with the geometry set as a property of the feature, instead of the actual geometry of that feature. With this code, you can get the geometry of the property of each ...
1
vote
Accepted
Set property disappears in ImageCollection mapped function (Earth Engine)
You wrote a quite nice piece of code and you were almost there.
I think the easiest solution is setting a property with the flood ID on every single image. In that way you can later filter the image ...
1
vote
Patchy country polygon after converting ESRI shapefile to KML
Try ogr2ogr
ogr2ogr -f KML scotland.kml infuse_ctry_2011.shp
However, your shapefile is very detailed and the output KML is huge (54 MB).
Most apps won't be able to handle such large KML files.
Do ...
1
vote
Extract Labels (city names, state names) with shapefiles using QGIS
QGIS version 3.24 now has the capability to extract labels for a map extent using the new "Extract labels algorithm" which may help solve your problem although I haven't tested it myself.
...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
google-fusion-tables × 97google-maps × 33
google-maps-api × 22
google-earth-engine × 21
kml × 13
javascript × 9
qgis × 7
polygon × 4
google × 4
arcgis-desktop × 3
open-source-gis × 3
coordinate-system × 2
shapefile × 2
openlayers-2 × 2
geojson × 2
labeling × 2
carto × 2
csv × 2
remote-sensing × 2
ogr × 2
features × 2
google-earth × 2
spatial-database × 2
json × 2
google-docs × 2