¡Hola a todos!<\/SPAN><\/P>Estoy intentando seguir un tutorial usando arcade para encontrar una lista de puntos cerca de un polígono (<\/SPAN>https:\/\/learn.arcgis.com\/en\/projects\/build-an-app-to-expand-food-access\/<\/SPAN><\/A> en la sección "Stores near markets"), pero con datos diferentes y en arcgis pro. Para que FeatureSetById funcione para mi capa, necesito un ID de capa. ¿Cómo lo encuentro en ArcGIS pro?<\/SPAN><\/P>Seguí los pasos para asignar un layerID (<\/SPAN>https:\/\/pro.arcgis.com\/en\/pro-app\/latest\/help\/sharing\/overview\/assign-layer-ids.htm<\/SPAN><\/A>) pero terminé con un ID de capa "2" y no funcionó.<\/SPAN><\/P>Si este ID de capa no existe o no funciona en ArcGIS pro, ¿de qué otra manera podría usar arcade para encontrar una lista de puntos cerca o dentro de un polígono?<\/SPAN><\/P> <\/P>ejemplo de código del tutorial:<\/SPAN><\/P>var retail_layer = FeatureSetById($map, \/\* SNAP Store Locations *\/"178f065ba89-layer-82")<\/SPAN><\/P>var radius = Buffer($feature,.75,"miles")<\/SPAN><\/P>var nearby_stores = Intersects(retail_layer,radius)<\/SPAN><\/P> <\/P>var retail_list = ''<\/SPAN><\/P>for (var k in nearby_stores){<\/SPAN><\/P>retail_list += k.Store_Name + TextFormatting.NewLine<\/SPAN><\/P>}<\/P>return retail_list<\/P> <\/P>mi capa de polígonos: https:\/\/naturalengland-defra.opendata.arcgis.com\/datasets\/national-parks-england\/explore?location=55.122476%2C-49.875730%2C5.78<\/A><\/SPAN><\/P>mi capa de puntos: gis_osm_transport_free_1.shp desde la carpeta comprimida shapefile aquí http:\/\/download.geofabrik.de\/europe\/great-britain\/england.html<\/A><\/SPAN><\/P> <\/P>
mi capa de puntos: gis_osm_transport_free_1.shp desde la carpeta comprimida shapefile aquí
<\/P>
To find the layerID of a layer in ArcGIS Online that is being used in Pro, one way to do this is to look at the last part of the path when adding the layer, as in the screenshot here:
You might not need to use Arcade though, if you're working in Pro. Pro has select by location. You can select the points that fall within the polygon that way.
Los miembros registrados pueden publicar, seguir actualizaciones y más. ¿Nuevo aquí? Regístrate gratis.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.