To execute a spatial query, you must set the geometry parameter to a Geometry object and specify a valid spatialRelationship. While where is not required in this workflow, you can use where as part of the query to get more refined results. Multipatches may represent geometric objects, like spheres and cubes, or real-world objects, like buildings and trees. You can query features by geometry/location. Multipatches are a type of geometry composed of planar three-dimensional rings and triangles, used in combination to model objects that occupy discrete areas or volumes in three-dimensional space. returns a feature set with features containing the following attributes // STATE_NAME, COUNTY_NAME, POPULATION, POP_DENSITY Query.where = "STATE_NAME = 'Washington'" Counties: var query = featureLayer.createQuery() This can improve the speed of the query if your app doesn't require all the attributes for each feature.įor example, you can use where to query all counties in the state of Washington from a layer representing U.S.
#Esri multipatch geometry type Patch
A patch geometry can be of type Triangles, Triangle strips, Triangle fans, First Ring and Ring. Each part in a multipatch is called a patch and has a list of vertices with 3D coordinates to represent it's shape. Setting the outFields of the query will limit the attributes returned from the query. A multipatch is a series of 3-dimensional surfaces used to represent a 3D object. You can optionally use the text property for a LIKE statement. To query features based on attribute values, specify a SQL where clause in the where property. You can query for features in one of these categories or use elements of each in a single query. There are three types of queries: attribute, spatial, and statistic queries. Once a Query object's properties are defined, it can then be passed into an executable function, which will return the features in a FeatureSet. This class defines parameters for executing queries for features from a layer or layer view.