Ahoj všichni!<\/SPAN><\/P>Snažím se sledovat tutoriál používající arcade k nalezení seznamu bodů poblíž polygonu (<\/SPAN>https:\/\/learn.arcgis.com\/en\/projects\/build-an-app-to-expand-food-access\/<\/SPAN><\/A> v sekci "Stores near markets"), ale s jinými daty a v arcgis pro. Aby FeatureSetById fungoval pro mou vrstvu, potřebuji ID vrstvy. Jak ho najdu v ArcGIS pro?<\/SPAN><\/P>Postupoval jsem podle kroků pro přiřazení layerID (<\/SPAN>https:\/\/pro.arcgis.com\/en\/pro-app\/latest\/help\/sharing\/overview\/assign-layer-ids.htm<\/SPAN><\/A>), ale skončil jsem s ID vrstvy "2" a nefungovalo to.<\/SPAN><\/P>Pokud toto ID vrstvy v ArcGIS pro neexistuje/nefunguje, jak jinak bych mohl použít arcade k nalezení seznamu bodů poblíž/nebo uvnitř polygonu?<\/SPAN><\/P> <\/P>ukázka kódu z tutoriálu:<\/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>}<\/SPAN><\/P>return retail_list<\/SPAN><\/P> <\/P>má vrstva polygonů: https:\/\/naturalengland-defra.opendata.arcgis.com\/datasets\/national-parks-england\/explore?location=55.122476%2C-49.875730%2C5.78<\/A><\/SPAN><\/P>má vrstva bodů: gis_osm_transport_free_1.shp ze složky shapefile zipnuté zde http:\/\/download.geofabrik.de\/europe\/great-britain\/england.html<\/A><\/SPAN><\/P> <\/P>
má vrstva bodů: gis_osm_transport_free_1.shp ze složky shapefile zipnuté zde
<\/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.
Přihlášení členové mohou přispívat, sledovat aktualizace a další. Jste tu noví? Zaregistrujte si bezplatný účet.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.