公告:所有在
2025 年 4 月 15 日之前注册使用 Earth Engine 的非商业项目都必须
验证是否符合非商业性质的资格条件,才能继续使用 Earth Engine。
ee.Feature.getInfo
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
一种命令式函数,可通过 AJAX 调用返回有关此功能的信息。
返回功能的说明。
用法 | 返回 |
---|
Feature.getInfo(callback) | GeoJSONFeature |
参数 | 类型 | 详细信息 |
---|
此:feature | 功能 | Feature 实例。 |
callback | 函数(可选) | 可选的回调。如果未提供,则以同步方式进行调用。如果提供,则在成功时使用第一个参数调用,在不成功时使用第二个参数调用。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003eThe \u003ccode\u003eFeature.getInfo\u003c/code\u003e function retrieves descriptive information about a specific feature using an AJAX call.\u003c/p\u003e\n"],["\u003cp\u003eIt provides details about the feature in GeoJSONFeature format and can be used synchronously or asynchronously with a callback function.\u003c/p\u003e\n"],["\u003cp\u003eThe function is called on a Feature instance and accepts an optional callback function for handling the response.\u003c/p\u003e\n"]]],[],null,["# ee.Feature.getInfo\n\n\u003cbr /\u003e\n\nAn imperative function that returns information about this feature via an AJAX call.\n\n\u003cbr /\u003e\n\nReturns a description of the feature.\n\n| Usage | Returns |\n|---------------------------------|----------------|\n| Feature.getInfo`(`*callback*`)` | GeoJSONFeature |\n\n| Argument | Type | Details |\n|-----------------|--------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| this: `feature` | Feature | The Feature instance. |\n| `callback` | Function, optional | An optional callback. If not supplied, the call is made synchronously. If supplied, will be called with the first parameter if successful and the second if unsuccessful. |"]]