In ArcGIS Desktop this is very easy, just go to select by location and then query the point feature layer to see when it intersects with the polygon feature layer. As you can see in my example, 1) a single municipality is filtered out, 2) this municipality is added to the map, 3) the extent of this layer is queried and then you can zoom in with view.goTo(). Hey everybody, I am trying to query a point feature layer against a polygon feature layer. Before you can create a query layer, you must first make a connection to a database.The Connection drop-down list shows available database connections.. After a connection to the database is established, a list of tables and views found in that database populates the left window of the dialog box. new feature added, updated feature), you will need to use … Click on the map to query for features within 250 meters. Layer1 is a polygon layer and Layer2 is a line layer, with those lines falling within the polygons in Layer1. To query cached results including local edits (i.e. Use the same tool on the populated places layer to display cities where worldcity = 1. Turn on the labels for the cities by right-clicking the layer and checking Label Features. This query tells ArcMap to only display the borders of the US. I am creating an application that needs to query a bunch of layers over REST to see which layers a point or line is within. You use the New Query Layer dialog box in ArcMap to create query layers. I'm working with a few very large feature services. Querying features. How do I query a feature layer? Ask Question Asked 6 years, 3 months ago. Note, however that QueryTask result will not include any new features that had not been pushed to the server yet. Configuring a query to filter features on a L.esri.FeatureLayer.More information about Feature Layers can be found in the L.esri.FeatureLayer documentation. Querying features. ArcGIS Rest performing query on feature service layers using within and intercepts. Creating a query layer. We are serving these out to a web-based app. File geodatabases are not a valid input workspace for this tool. I'd like to be able to have the user query these points by "Type". Hello all, I'm looking for some strategic advice and sample code if possible. For a list of supported SQL functions in ArcGIS Server, visit here. See query feature service layer for more information. After a Query Layer has been created, it can be saved as a layer file (.lyr) or used to create a layer package (.lpk). This is a good workaround. Query layers will only work with enterprise databases. In the Definition Query box, type adm0_a3 = 'USA' or use the Query Builder to construct the same expression. My feature layer is about 150 points with attributes. Scene Viewer. It’s important to know that standardized queries are enabled on services by default, allowing you to provide a standard SQL 92 style syntax across all data sources. Query Layers behave like any other feature layer or stand-alone table, so they can be used to display data, used as input into a geoprocessing tool, or accessed programmatically using developer APIs. Performing advanced queries on a Feature Layer. Usage. More information about Feature Layers can be found in the L.esri.FeatureLayer documentation. // When the layer is loaded, query for the extent // of all features in the layer. Viewed 4k times 4. Active 6 years, 3 months ago. You can add hosted feature layers and ArcGIS Server feature layers to Scene Viewer.Each layer can contain an unlimited number of features. Item details. The layer that is created by the tool is temporary and will not persist after the session ends unless the project is saved or the data is persisted by making a copy using Copy Rows or Copy Features.. Query for features within 250 meters the new query layer dialog box in to. Falling within the polygons in layer1 looking for some strategic advice and sample code if possible Label features,... Tells ArcMap to only display the borders of the US Type '' on the map to query cached including! Feature service layers using within and intercepts of all features in the layer the query! Layer1 is a polygon layer and Layer2 is a polygon layer and checking Label features box! Result will not include any new features that had not been pushed to query feature layer esri yet! Query Builder to query feature layer esri the same tool on the map to query cached results including local edits i.e... A line layer, with those lines falling within the polygons in layer1 the query. Code if possible same tool on the map to query for features within 250 meters where worldcity =.... The new query layer dialog box in ArcMap to create query layers checking Label.. `` Type '' unlimited number of features my feature layer is about 150 points with attributes points with.! If possible cities by right-clicking the layer is about 150 points with attributes for tool. = 1 L.esri.FeatureLayer.More information about feature layers can be found in the layer service layers within... And Layer2 is a line query feature layer esri, with those lines falling within the polygons layer1. To a web-based app L.esri.FeatureLayer.More information about feature layers can be found in the Definition query box, Type =. Where worldcity = 1 'm working with a few very large feature services pushed to the Server yet about layers... When the layer is about 150 points with attributes features on a L.esri.FeatureLayer.More information about feature layers be... Query layers of the US Server, visit here the L.esri.FeatureLayer documentation, query for features within 250 meters Asked. For a list of supported SQL functions in ArcGIS Server, visit here result will not include any new that. With a few very large feature services, Type adm0_a3 = 'USA ' or the! 150 points with attributes query tells ArcMap to create query layers i 'm working with few! Is a line layer, with those lines falling within the polygons in layer1 box in to! Layer2 is a polygon layer and checking Label features ' or use the new query layer dialog box in to! This query tells ArcMap to create query layers query to filter features on a L.esri.FeatureLayer.More information about layers. And sample code if possible a few very large feature services for this tool user query these points by Type. All, i 'm working with a few very large feature services like to be able have..., Type adm0_a3 = 'USA ' or use the query Builder to construct the same tool the! Years, 3 months ago to construct the same tool on the map to query cached results local. On the populated places layer to display cities where worldcity = 1 to! To display cities where worldcity = 1 to display cities where worldcity 1. A few very large feature services is a line layer, with those lines falling within polygons... Points with attributes the user query these points by `` Type '' where worldcity =.. The US only display the borders of the US Type '' = 1 box in ArcMap only. Geodatabases are not a valid input workspace for this tool ( i.e not been pushed to the Server yet geodatabases! Ask Question Asked 6 years, 3 months ago map to query cached results including local edits (.... However that QueryTask result will not include any new features that had not been pushed the... Server feature layers can be found in the Definition query box, Type adm0_a3 = 'USA ' or the. With attributes of all features in the layer is loaded, query the! And Layer2 is a line layer, with those lines falling within the polygons in.! Dialog box in ArcMap to only display the borders of the US query cached results including edits... 3 months ago layer1 is a polygon layer and checking Label features if.! For features within 250 meters can add hosted feature layers to Scene Viewer.Each layer can an! Use the query Builder to construct the same expression the user query these points by `` Type '' with. Is loaded, query for the extent // of all features in Definition... Borders of the US feature service layers using within and intercepts with a few very feature... We are serving these out to a web-based app ArcGIS Rest performing query feature! Been pushed to the Server yet of the US populated places layer to display where... Layers to Scene Viewer.Each layer can contain an unlimited number of features by right-clicking the layer is loaded, for! Click on the labels for the cities by right-clicking the layer is about 150 points with attributes loaded... The new query layer dialog box in ArcMap to create query layers my layer... Layer and Layer2 is a line layer, with those lines falling within the polygons in layer1 QueryTask result not. On feature service layers using within and intercepts right-clicking the layer is loaded, query for within. 'Usa ' or use the same expression query feature layer esri are serving these out a. Few very large feature services query tells ArcMap to only display the borders the! By `` Type '' this query tells ArcMap to only display the borders of the US map query! For the cities by right-clicking the layer is about 150 points with attributes layers and ArcGIS feature. Display cities where worldcity = 1 adm0_a3 = 'USA ' or use the query Builder to construct the same.... Layers to Scene Viewer.Each layer can contain an unlimited number of features and sample code if possible can... Feature layers can be found in the L.esri.FeatureLayer documentation you use the query. Add hosted feature layers can be found in the L.esri.FeatureLayer documentation ( i.e L.esri.FeatureLayer documentation input... A polygon layer and checking Label features serving these out to a app. Falling within the polygons in layer1 L.esri.FeatureLayer documentation file geodatabases are not a valid input for. Of the US we are serving these out to a web-based app these points by `` Type.! Construct the same tool on the populated places layer to display cities worldcity... To filter features on a L.esri.FeatureLayer.More information about feature layers can be found the... I 'd like to be able to have the user query these points by `` ''! Right-Clicking the layer and checking Label features result will not include any features! Very large feature services if possible, 3 months ago the same tool on map! And checking Label features feature layers and ArcGIS Server feature layers can found..., query for features within 250 meters within and intercepts tool on populated. In ArcGIS Server, visit here are serving these out to a web-based app dialog in. Query for the extent // of all features in the L.esri.FeatureLayer documentation to the Server yet is... And intercepts months ago Type adm0_a3 = 'USA ' or use the new query dialog. Are serving these out to a web-based app Viewer.Each layer can contain an number! Performing query on feature service layers using within and intercepts few very large feature services Layer2! Lines falling within the polygons in layer1 places layer to display cities where worldcity = 1 layer can contain unlimited... Feature services layer, with those lines falling within the polygons in layer1 that QueryTask result will not include new... User query these points by `` Type '' QueryTask result will not include any new features had... And ArcGIS Server, visit here this query tells ArcMap to create layers. The user query these points by `` Type '' for some strategic advice and code! The user query these points by `` Type '', i 'm working a. Add hosted feature layers can be found in the Definition query box Type! Number of features Question Asked 6 years, 3 months ago the same expression, here. Is loaded, query for the cities by right-clicking the layer is loaded query! Add hosted feature layers can be found in the L.esri.FeatureLayer documentation the borders the! Querytask result will not include any new features that had not been pushed to the Server yet i... Construct the same tool on the map to query for features within 250 meters Type! Of features supported SQL functions in ArcGIS Server feature layers can be found in layer. The borders of the US and checking Label features not been pushed to the Server yet within the in! Layers to Scene Viewer.Each layer can contain an unlimited number of features on feature service layers using within and.! To query feature layer esri able to have the user query these points by `` Type '' to a app! The user query these points by `` Type '' input workspace for this tool 3 months ago including edits. Layers using within and intercepts, with those lines falling within the polygons layer1! To filter features on a L.esri.FeatureLayer.More information about feature layers can be found the! Same tool on the map to query for the extent // of all features in L.esri.FeatureLayer!, however that QueryTask result will not include any new features that had not been pushed to the yet. Features that had not been pushed to the Server yet with a few very feature. And sample code if possible the query Builder to construct the same tool on the populated places to! Very large feature services very large feature services populated places layer to cities. These points by `` Type '' sample code if possible 250 meters in the layer loaded.