公告:所有在
2025 年 4 月 15 日之前注册使用 Earth Engine 的非商业项目都必须
验证是否符合非商业性质的资格条件,才能继续使用 Earth Engine。
ImageFileFormat
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003eSelects an image file format for returning pixel data, supporting various formats like JPEG, PNG, NPY, GeoTIFF, and TFRecord.\u003c/p\u003e\n"],["\u003cp\u003eJPEG and PNG formats are intended for display and support 8-bit RGB data or data converted to 8-bit RGB.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eAUTO_JPEG_PNG\u003c/code\u003e automatically chooses between JPEG or PNG based on transparency, also for display and 8-bit RGB data.\u003c/p\u003e\n"],["\u003cp\u003eSpecialized formats like NPY, GeoTIFF, and TFRecord cater to numerical data, geospatial data, and TensorFlow image exports, respectively.\u003c/p\u003e\n"],["\u003cp\u003eZipped GeoTIFF options are available specifically for thumbnail creation, offering single or per-band files.\u003c/p\u003e\n"]]],["The system defines image file formats for returning pixel data. Available formats include `JPEG`, `PNG`, `AUTO_JPEG_PNG` (automatic selection), `NPY` (NumPy), `GEO_TIFF`, `TF_RECORD_IMAGE`, `ZIPPED_GEO_TIFF`, and `ZIPPED_GEO_TIFF_PER_BAND`. JPEG, PNG, and automatic formats are for display, supporting 8-bit RGB data. `ZIPPED_GEO_TIFF` and `ZIPPED_GEO_TIFF_PER_BAND` are for thumbnails. TF_RECORD_IMAGE is for image exports. `IMAGE_FILE_FORMAT_UNSPECIFIED` indicates an undefined type.\n"],null,["# ImageFileFormat\n\nSelects an image file format in which to return a block of pixel data.\n\n| Enums ||\n|---------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `IMAGE_FILE_FORMAT_UNSPECIFIED` | Unspecified. |\n| `JPEG` | JPEG. Intended for display purposes. Only supported for 8-bit RGB data, or data that is converted to 8-bit RGB via `visualization` parameters. |\n| `PNG` | PNG. Intended for display purposes. Only supported for 8-bit RGB data, or data that is converted to 8-bit RGB via `visualization` parameters. |\n| `AUTO_JPEG_PNG` | Automatically select JPEG or PNG depending on whether or not there is any transparency. Intended for display purposes. Only supported for 8-bit RGB data, or data that is converted to 8-bit RGB via `visualization` parameters. |\n| `NPY` | NumPy .npy format. |\n| `GEO_TIFF` | GeoTIFF format. |\n| `TF_RECORD_IMAGE` | TFRecord format. Only supported for image exports. |\n| `ZIPPED_GEO_TIFF` | A format which returns a GeoTIFF file wrapped in a zip file. This is only available when using CreateThumbnail. |\n| `ZIPPED_GEO_TIFF_PER_BAND` | A format which returns a GeoTIFF file for each band, wrapped in a zip file. This is only available when using CreateThumbnail. |"]]