Geographic Information Systems Asked by Mayan19 on September 27, 2021
I am new to Google Earth Engine and was trying to run a script to get Landsat images of districts of India after having a fusion table of shapes of all districts.
GEE script is as:
var india = ee.FeatureCollection('ft:1UDdgOCf8DoRJ9bVm-UVbR6CqxtkJToLQjTFd0r0Z','geometry')
.filter(ee.Filter.eq('Name', 'India'))
.geometry();
var district = ee.FeatureCollection('ft:1_GTWq6xk3hMYl6LelMm8o3VlnoHH0bsFUzLiW3_i','geometry')
.filter(ee.Filter.eq('district', district_name));
where district_name is a defined variable containing the name of a district
var india_image = ee.ImageCollection('LANDSAT/LC08/C01/T1_TOA')
.filterBounds(india)
.filterDate('2014-03-01', '2014-09-01')
.sort('CLOUD_COVER')
// .limit(500)
.map(maskClouds)
.median();
var district_image = ee.ImageCollection('LANDSAT/LC08/C01/T1_TOA')
.filterBounds(district)
.filterDate(year + '-03-01', year + '-05-01')
.sort('CLOUD_COVER')
.map(maskClouds)
.median();
and then after performing few actions having no affect on any of the variables, I am exporting these images to my Google drive.
Export.image.toDrive({
image: input.clip(district),
description: district_name + '_summer_' + year,
folder : 'Project_data',
maxPixels: 499295920080,
scale: 30,
region: district
});
But here after executing and pressing “RUN” button in “Tasks” pane of GEE, I am getting the error “A region must be a GeoJSON Polygon or LinearRing. Got: ‘MultiPoint'”
Link to GEE script: GEE script
What could have gone wrong and How do I deal with this?
Use distric.geometry().bounds()
or district.union().bounds()
in the Export call. Even better, just draw a nice, simple rectangle around the place you want.
Answered by Nicholas Clinton on September 27, 2021
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP