本文简要介绍 python 语言中 arcgis.raster.RasterCollection.filter_by_geometry
的用法。
用法:
filter_by_geometry(query_geometry_or_extent, context=None)
返回:
仅包含满足过滤器的项目的
RasterCollection
对象
filter_by_geometry
方法过滤RasterCollection
,以便仅返回与几何图形相交的栅格。Parameter
Description
query_geometry_or_extent
过滤项目的必需对象,以便仅返回与对象相交的项目。这可以通过几何对象、光栅对象、ImageryLayer 对象来指定。
context
可选字典。用于控制 RasterCollection 创建的其他属性。上下文参数的默认值将与应用于父集合的上下文设置的默认值相同。
目前可用:
query_boundary: This boolean value set to this option determines whether to add SHAPE field to the RasterCollection. The value in the SHAPE field represents the boundary/geometry of the raster. The query_boundary parameter is honoured only when the RasterCollection is created from a list of Rasters.
True: Set query_boundary to True to add the SHAPE field to the RasterCollection.
False: Set query_boundary to False to not add the SHAPE field to the RasterCollection. (Creation of RasterCollection would be faster)
Example:
{“query_boundary”:True}
例子:
# Usage Example: Filters the raster collection based on specified geometry. aoi = { "spatialReference": {"wkid": 32610}, "xmax": 725000, "xmin": 720000, "ymax": 4300000, "ymin": 4250000 } aoi_geometry = Geometry(aoi) filtered_rc_geom = rc.filter_by_geometry(query_geometry_or_extent=aoi_geometry)
相关用法
- Python ArcGIS RasterCollection.filter_by_raster_property用法及代码示例
- Python ArcGIS RasterCollection.filter_by_time用法及代码示例
- Python ArcGIS RasterCollection.filter_by_calendar_range用法及代码示例
- Python ArcGIS RasterCollection.filter_by_attribute用法及代码示例
- Python ArcGIS RasterCollection.filter_by用法及代码示例
- Python ArcGIS RasterCollection.from_stac_catalog用法及代码示例
- Python ArcGIS RasterCollection.from_stac_api用法及代码示例
- Python ArcGIS RasterCollection.map用法及代码示例
- Python ArcGIS RasterCollection.to_multidimensional_raster用法及代码示例
- Python ArcGIS RasterCollection用法及代码示例
- Python ArcGIS Raster.remove_variables用法及代码示例
- Python ArcGIS Raster.export_image用法及代码示例
- Python ArcGIS Raster.get_dimension_values用法及代码示例
- Python ArcGIS Raster.get_dimension_attributes用法及代码示例
- Python ArcGIS Raster.read用法及代码示例
- Python ArcGIS Raster.append_slices用法及代码示例
- Python ArcGIS Raster.summarize用法及代码示例
- Python ArcGIS RasterManager.add用法及代码示例
- Python ArcGIS Raster.get_variable_attributes用法及代码示例
- Python ArcGIS Raster.get_dimension_names用法及代码示例
- Python ArcGIS RasterInfo.from_dict用法及代码示例
- Python ArcGIS Raster.get_statistics用法及代码示例
- Python ArcGIS Raster.from_stac_item用法及代码示例
- Python ArcGIS Raster.set_colormap用法及代码示例
- Python ArcGIS Raster.set_histograms用法及代码示例
注:本文由纯净天空筛选整理自arcgis.com大神的英文原创作品 arcgis.raster.RasterCollection.filter_by_geometry。非经特殊声明,原始代码版权归原作者所有,本译文未经允许或授权,请勿转载或复制。