本演示使用手工定位的点来训练分类器。
每个训练点都有一个叫做 "土地覆盖 "的字段,包含了该位置的分类标签。下面的块包含了这些点的构造代码。 将鼠标悬停在 "城市 "变量上,点击对话框中的 "转换"。
var urban = /* color: #ff0000 */ee.FeatureCollection(
[ee.Feature(
ee.Geometry.Point([-122.40898132324219, 37.78247386188714]),
{
"landcover": 0,
"system:index": "0"
}),
ee.Feature(
ee.Geometry.Point([-122.40623474121094, 37.77107659627034]),
{
"landcover": 0,
"system:index": "1"
}),
ee.Feature(
ee.Geometry.Point([-122.39799499511719, 37.785187237567705]),
{
"landcover": 0,
"system:index": "2"
}),
ee.Feature(
ee.Geometry.Point([-122.39936828613281, 37.772162125840445]),