Spatial filtering enables you to remove areas of 3D object scene layers and building scene layers in your ArcGIS Map based on the polygon areas you specify. There are two different modes for removing areas of the scene layer: removing content inside of the specified polygon (referred to as
disjoint) or removing content outside of the specified polygons (referred to as
contains). For one spatial filter, you can specify multiple polygons by adding them to an
ArcGISSpatial identifies 3D objects inside or outside of the provided polygons to remove them from the ArcGIS Map. Any 3D objects that are on the polygon geometry outlines will be removed in both filter types.
Once the 3D objects are removed by the spatial filter, data associated with the removed 3D objects are not accessible from Unity.
|disjoint - removes selected area
|Remove portions of the scene layer. Use a polygon and don't draw inside that polygon. For example, to add another layer that shows a new development for that part of the city.
|contains - displays only selected area
|Define an area of interest. Use a polygon and draw only the parts of the scene layer that are inside that polygon. For example, to show only the portion of a scene layer within the boundaries of a city.
Polygons used to specify the area for spatial filtering; must have a spatial reference that matches the spatial reference of the layer. See When you need to know about spatial references topics to find the spatial reference of your layers.
You can set one spatial filter type per 3D object scene layer or building scene layer from the Layers tab content.
- Click the Layers tab.
- Click the triangle icon on the left to expand the 3D object scene layer or the building scene layer registry and see the layer properties.
- On the Spatial Feature Filter raw, click the gear icon to display the tool overlay in the viewport.
- In the tool overlay, click the icon. (The icon's background color will change to blue.)
- Click in the viewport to draw a polygon.
- Click the icon.
- Select the polygon by clicking the polygon lines or anywhere inside the polygon. (The gizmo will appear.)
- Click the button Disjoint or Contains to select the filter you want to apply.
To edit a spatial filter, open the tool overlay for the layer that has the filter.
- Display polygons for the elevation surface or an integrated mesh scene layer by opening the tool overlay.
- Select a polygon by clicking the polygon lines or inside the polygon while the icon is selected in the tool. (The gizmo will be displayed when it's selected.)
- Deselect a polygon by clicking outside of the polygon's bounding box in the viewport.
- Use the gizmo to move a polygon while the polygon is selected.
- Click a point and drag to move the point position of the polygon.
- Add points to a polygon by clicking the middle point of a line.
- Copy a polygon by clicking the icon while it is selected.
- Paste a polygon by clicking the icon after opening the tool overlay for the layer.
- Delete a polygon by clicking the icon while it is selected.
- Change the filter type by clicking another button while the polygon is selected.
- Uncheck the Spatial Feature Filter checkbox to disable the filter for the layer.
Create polygons with
ArcGISPolygon with a specific spatial reference for your ArcGIS Map and add them to
ArcGISPolygon. To prepare the polygons for the spatial filter, create geometry with the
Spatial filter requires polygons and the filter type to be specified. Define your spatial filter with
ArcGISSpatial and provide polygon geometries and the type,