Google Earth Engine ——全球行政单位层(GAUL)国家-省/州-县级层面(含简化面)数据集

The Global Administrative Unit Layers (GAUL) compiles and disseminates the best available information on administrative units for all the countries in the world, providing a contribution to the standardization of the spatial dataset representing administrative units. The GAUL always maintains global layers with a unified coding system at country, first (e.g. departments), and second administrative levels (e.g. districts). Where data is available, it provides layers on a country by country basis down to third, fourth, and lowers levels. The overall methodology consists in a) collecting the best available data from most reliable sources, b) establishing validation periods of the geographic features (when possible), c) adding selected data to the global layer based on the last country boundaries map provided by the UN Cartographic Unit (UNCS), d) generating codes using GAUL Coding System, and e) distribute data to the users (see Technical Aspects of the GAUL Distribution Set. Note that some administrative units are multipolygon features.

 

全球行政单位层(GAUL)汇编和传播了世界上所有国家行政单位的最佳可用信息,为代表行政单位的空间数据集的标准化做出了贡献。GAUL始终在国家、第一行政级别(如省)和第二行政级别(如区)维护具有统一编码系统的全球层。在有数据的地方,它提供逐个国家的图层,直至第三、第四和更低的级别。整个方法包括:a)从最可靠的来源收集最好的可用数据,b)建立地理特征的验证期(如果可能的话),c)根据联合国制图单位(UNCS)提供的最新国界图将选定的数据添加到全球层,d)使用GAUL编码系统生成代码,e)向用户分发数据(见GAUL分发集的技术方面。请注意,一些行政单位是多多边形的特征。

Dataset Availability

2014-12-19T16:45:00 - 2014-12-19T00:00:00

Dataset Provider

FAO UN

Collection Snippet

ee.FeatureCollection("FAO/GAUL/2015/level2")

500米分辨率简化后的行政区:

Dataset Availability

2014-12-19T16:45:00 - 2014-12-19T00:00:00

Dataset Provider

FAO UN

Collection Snippet

ee.FeatureCollection("FAO/GAUL_SIMPLIFIED_500m/2015/level2")

NameTypeDescription
ADM0_CODEIntGAUL country code
ADM0_NAMEStringUN country name
DISP_AREAStringUnsettled territory: 'Yes' or 'No'
STATUSStringStatus of the country
Shape_AreaDoubleShape area
Shape_LengDoubleShape length
ADM1_CODEIntGAUL code of administrative units at first level
ADM1_NAMEStringName of administrative units at first level
ADM2_CODEIntGAUL code of administrative units at second level
ADM2_NAMEStringName of administrative units at second level
EXP2_YEARIntExpiry year of the administrative unit
STR2_YEARIntCreation year of the administrative unit

代码:

var dataset = ee.FeatureCollection("FAO/GAUL/2015/level2");

Map.setCenter(12.876, 42.682, 5);

var styleParams = {
  fillColor: 'b5ffb4',
  color: '00909F',
  width: 1.0,
};

dataset = dataset.style(styleParams);

Map.addLayer(dataset, {}, 'Second Level Administrative Units');

 

  • 1
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
以下是一个基于Google Earth Engine的随机点生成并进行监督分类的示例代码: ```javascript // 定义区域和时间范围 var region = ee.Geometry.Rectangle([xmin, ymin, xmax, ymax]); var startDate = ee.Date('2018-01-01'); var endDate = ee.Date('2018-12-31'); // 加载 Landsat 8 行政区划数据集 var adminLevel2 = ee.FeatureCollection('FAO/GAUL_SIMPLIFIED_500m/2015/level2'); // 筛选行政区划数据集,仅保留指定区域内的行政区划 adminLevel2 = adminLevel2.filterBounds(region); // 加载 Landsat 8 数据集 var l8 = ee.ImageCollection('LANDSAT/LC08/C01/T1_TOA') .filterBounds(region) .filterDate(startDate, endDate) .sort('CLOUD_COVER', false); // 定义分类标签和颜色 var classes = { 'urban': 'ff0000', // 红色 'vegetation': '00ff00', // 绿色 'water': '0000ff' // 蓝色 }; // 选择 Landsat 8 影像中的三个波段作为输入样本 var bands = ['B4', 'B3', 'B2']; // 生成随机点,并对每个点进行分类 var samples = adminLevel2.map(function(feature) { var randomPoints = ee.FeatureCollection.randomPoints({ region: feature.geometry(), pointsPerArea: 0.1 // 每平方千米生成 0.1 个点 }); // 为每个随机点添加分类标签 var labeledPoints = randomPoints.map(function(point) { var value = l8.filterDate(startDate, endDate) .filterBounds(point.geometry()) .first() .select(bands) .reduce(ee.Reducer.mean()) .toArray(); var label = ee.Image.pixelLonLat().addBands(value) .reduceRegion(ee.Reducer.mode(), point.geometry(), 30) .get('array') .getInfo(); return point.set('label', label); }); return labeledPoints; }).flatten(); // 在地上显示随机点 Map.centerObject(region, 12); Map.addLayer(samples, {}, 'Random points'); // 定义分类器 var classifier = ee.Classifier.randomForest(10); // 训练分类器 var trainedClassifier = classifier.train({ features: samples, classProperty: 'label', inputProperties: bands }); // 对整个区域进行分类,并在地上显示结果 var classifiedImage = l8.first().select(bands).classify(trainedClassifier); Map.addLayer(classifiedImage, classes, 'Classification Result'); ``` 这段代码的核心步骤如下: 1. 定义区域和时间范围,加载 Landsat 8 影像和行政区划数据集。 2. 生成随机点并为每个点添加分类标签,其中分类标签是根据每个点所在位置的 Landsat 8 波段值进行分类。 3. 定义分类器,并使用随机森林算法训练分类器。 4. 对整个区域进行分类,并在地上显示分类结果。 需要注意的是,这段代码中的分类器和波段选择等参数都可以根据具体的应用场景进行调整。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

此星光明

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值