POST
|
Hi David Ran into a new technicality, I now need to clip the species outputs using this script according to their associated raster range files that are stored in a geodatabase (I was clipping all species to an area of interest, but this is causing issues for me whilst reclassifying and performing zonal statistics further down the procesing stream). Both sets of files are using the same naming convention e.g. ant_cor, lep_jav etc. I have created a simple extract by mask model in modelbuilder to do this manually for one species (ant_cor) and this works fine. I exported this model to python to see if I can work out how to integrate the following code into your script but now scratching my head ant_cor_tif = arcpy.Raster("ant_cor.tif") ant_cor = arcpy.Raster("F:\\ADB_Tool\\GIS_data\\Raster_range_maps.gdb\\ant_cor") # Process: Extract by Mask (Extract by Mask) (sa) ant_cor_ex = "F:\\ADB_Tool\\GIS_data\\AOH_2021\\Mosaic\\Clips\\ant_cor_ex" Extract_by_Mask = ant_cor_ex ant_cor_ex = arcpy.sa.ExtractByMask(in_raster=ant_cor_tif, in_mask_data=ant_cor) ant_cor_ex.save(Extract_by_Mask) Any tips would be appreciated, Mark
... View more
07-26-2021
06:10 AM
|
0
|
1
|
2080
|
POST
|
Thanks Curtis Am making some progress with this, and is amazingly useful.. so again, thank you for taking the time to do this, it is hugely appreciated. I am used to simple models but this is really helping me understand more about model builder. Cheers! Mark
... View more
07-21-2021
01:04 AM
|
0
|
0
|
287
|
POST
|
Hi Curtis, Wow, what can I say but thank you for taking time to look at this! Not sure what I am doing wrong but if I run the Run All model and selecting the input raster folder and setting the output folder, it starts and trundles along but I am getting Completed with warnings error - specifically "The process did not execute because the precondition is false" Not sure where to look into this, but will dig around and see if I can resolve. Best wishes, Mark
... View more
07-20-2021
02:38 AM
|
0
|
2
|
2158
|
POST
|
Thank you David for taking the time to look at this and provide an example, very kind! As I was trawling the web yesterday evening, I came across some code that I managed to get working for one species hard coded e.g. import os, arcpy workspace = r"F:\GIS_data\AOH_2021\test" list_raster= [] # the list must exist before you can append walk = arcpy.da.Walk(workspace, type="TIF") output_location = r"F:\GIS_data\AOH_2021\Mosaic" for dirpath, dirnames, filenames in walk: for file in filenames: if "lep_jav" in file.lower(): list_raster.append(os.path.join(dirpath,file)) # FULL path to each raster arcpy.MosaicToNewRaster_management (list_raster, output_location, "lep_jav_m.tif", "","", "", "1", "FIRST", "") So I guess now I need to work out how to get both your code and the above working for a folder containing numerous species. Once again, many thanks! Mark
... View more
07-20-2021
02:31 AM
|
0
|
3
|
2158
|
POST
|
Hi David Thanks for the reply. Indeed this is mosaic to new raster. Am currently trawling through some threads on python ways of doing this as don't think model builder will help here (I could be wrong though). Files are named thus (e.g. for a species with several rasters) within one folder: Lep_jav_N.tif Lep_jav_R.tif Best wishes Mark
... View more
07-19-2021
09:17 AM
|
0
|
5
|
2213
|
POST
|
Hi all Is it possible to create a mosaic of rasters according to file name using model builder? E.g. I have a lot of raster data using species binomial names i.e. genus_species with a suffix denoting range state (breeding, non-breeding etc). How would I loop through a folder of these species and create a new mosaic where a species might have two or more rasters? Is this even possible in model builder or would python be a better option (not much experience with python though). Any tips/advice welcome! Many thanks, Mark
... View more
07-19-2021
08:43 AM
|
0
|
11
|
2446
|
POST
|
Hi all Not sure how to remedy this one as this has just started showing. Essentially when I go to create a new web app I see multiple versions of the same templates in multiple languages. See picture below. Is there a setting somewhere that I can set to only see what I want e.g. English versions?? Thanks for any ideas/hints Cheers Mark
... View more
05-12-2021
06:02 AM
|
0
|
0
|
238
|
POST
|
Thank you Undral This is very helpful, I will have a look at the code and see if I can incorporate this into my v3 code. Best wishes Mark
... View more
05-04-2021
04:28 AM
|
0
|
0
|
465
|
POST
|
Hi all Is it possible to restrict users drawing geometries on a map for selecting features that intersect that geometry e.g. an extent covering over 1,000 kilometres etc? Additionally, how would one restrict users entering buffer sizes of excessive distances e.g 1,000 km etc? Thanks in advance for any suggestions! Mark
... View more
04-28-2021
11:09 AM
|
0
|
2
|
534
|
POST
|
Hi all Is it possible to customise the LayerList widget (using 3.x version of the js api) as shown in the graphic below? Ideally I would like to show the layer symbology to the right of the layer name instead of having to expand the layer list. If this is not possible, how can I show each layer expanded on startup e.g. middle section in graphic below? Am a relative new to javacript so any pointers gratefully received! Thanks and best, Mark
... View more
02-05-2021
10:53 AM
|
0
|
0
|
193
|
POST
|
Thanks Russell, not an option for me as 90% through a custom tool using 3.x Cheers, Mark
... View more
02-04-2021
02:45 AM
|
0
|
0
|
813
|
POST
|
Hi all Am trying to create a group layer containing points and polygons but cannot see a way of doing this in version 3.28, cannot see anything when searching the 3.x api although it seems like this is achievable in 4.x. Any hints or suggestions? Thanks and best, Mark
... View more
02-03-2021
12:09 PM
|
0
|
4
|
850
|
POST
|
Hi Ivo Thanks for this, it turned out that the problem was related to the Shared Theme, resolved by adding a custom logo and then everything worked fine.
... View more
02-03-2021
12:01 PM
|
0
|
1
|
2035
|
POST
|
When trying to create new web app I can preview a template fine but when trying to create it just hangs with the following The following is the console output (Chrome) TypeError: Cannot read property 'small' of undefined at eval (/portal/home/webmap/js/esri/dijit/Configure.js:323) at Array.reduce (<anonymous>) at Object._getSharedValue (/portal/home/webmap/js/esri/dijit/Configure.js:322) at Object.eval (/portal/home/webmap/js/esri/dijit/Configure.js:314) at jsapi:64 at Array.forEach (<anonymous>) at Object.eval (/portal/home/webmap/js/esri/dijit/Configure.js:308) at jsapi:64 at Array.forEach (<anonymous>) at Object._updateSharedValue (/portal/home/webmap/js/esri/dijit/Configure.js:307) "TypeError: Cannot read property 'small' of undefined at eval (/portal/home/webmap/js/esri/dijit/Configure.js:323:19) at Array.reduce (<anonymous>) at Object._getSharedValue (/portal/home/webmap/js/esri/dijit/Configure.js:322:58) at Object.eval (/portal/home/webmap/js/esri/dijit/Configure.js:314:18) at /portal/jsapi/jsapi:64:337 at Array.forEach (<anonymous>) at Object.eval (/portal/home/webmap/js/esri/dijit/Configure.js:308:24) at /portal/jsapi/jsapi:64:337 at Array.forEach (<anonymous>) at Object._updateSharedValue (/portal/home/webmap/js/esri/dijit/Configure.js:307:36)" l @ jsapi:115 DevTools failed to load SourceMap: Could not load content for /portal/home/js/arcgis-components/dist/wrappers/ItemBrowser.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE DevTools failed to load SourceMap: Could not load content for /portal/home/js/arcgis-components/dist/Component.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE DevTools failed to load SourceMap: Could not load content for /portal/home/js/arcgis-components/dist/Dropdowns/AccordionDropdown/index.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE DevTools failed to load SourceMap: Could not load content for /portal/home/js/arcgis-components/dist/Loaders/LoaderBars.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE DevTools failed to load SourceMap: Could not load content for /portal/home/js/arcgis-components/dist/Filters/CategoriesFilter/index.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE DevTools failed to load SourceMap: Could not load content for /portal/home/js/arcgis-components/dist/Navigation/TabNav.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE DevTools failed to load SourceMap: Could not load content for /portal/home/js/arcgis-components/dist/Modals/MobileWrap.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE DevTools failed to load SourceMap: Could not load content for /portal/home/js/arcgis-components/dist/Dropdowns/Ago2018Dropdown.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE DevTools failed to load SourceMap: Could not load content for /portal/home/js/arcgis-components/dist/Filters/MapAreaFilter.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE DevTools failed to load SourceMap: Could not load content for /portal/home/js/arcgis-components/dist/Dropdowns/BasicDropdown.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE DevTools failed to load SourceMap: Could not load content for /portal/home/js/arcgis-components/dist/Buttons/ToggleSwitch.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE DevTools failed to load SourceMap: Could not load content for /portal/home/js/arcgis-components/dist/DateSelection/DateRangeSelector/index.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE DevTools failed to load SourceMap: Could not load content for /portal/home/js/arcgis-components/dist/DateSelection/DatePicker.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE DevTools failed to load SourceMap: Could not load content for /portal/home/js/arcgis-components/dist/Dropdowns/SortDropdown/index.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE DevTools failed to load SourceMap: Could not load content for /portal/home/js/arcgis-components/dist/Navigation/Pager/index.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE DevTools failed to load SourceMap: Could not load content for /portal/home/js/arcgis-components/dist/Filters/CreatedFilter/index.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE DevTools failed to load SourceMap: Could not load content for /portal/home/js/arcgis-components/dist/Filters/ItemTypeFilter/index.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE DevTools failed to load SourceMap: Could not load content for /portal/home/js/arcgis-components/dist/Buttons/Toggle.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE DevTools failed to load SourceMap: Could not load content for /portal/home/js/arcgis-components/dist/Buttons/SvgButton.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE DevTools failed to load SourceMap: Could not load content for /portal/home/js/arcgis-components/dist/Dropdowns/TextOptionDropdown.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE DevTools failed to load SourceMap: Could not load content for /portal/home/js/arcgis-components/dist/Modals/Overlay.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE DevTools failed to load SourceMap: Could not load content for /portal/home/js/arcgis-components/dist/Buttons/IconButton.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE DevTools failed to load SourceMap: Could not load content for /portal/home/js/arcgis-components/dist/ItemBrowser/index.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE DevTools failed to load SourceMap: Could not load content for /portal/home/js/arcgis-components/dist/Filters/ModifiedFilter/index.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE DevTools failed to load SourceMap: Could not load content for /portal/home/js/arcgis-components/dist/Filters/SharedFilter/index.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE DevTools failed to load SourceMap: Could not load content for /portal/home/js/arcgis-components/dist/Filters/StatusFilter/index.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE DevTools failed to load SourceMap: Could not load content for /portal/home/js/arcgis-components/dist/Filters/FolderFilter/index.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE DevTools failed to load SourceMap: Could not load content for /portal/home/js/arcgis-components/dist/Filters/GroupFilter/index.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE DevTools failed to load SourceMap: Could not load content for /portal/home/js/arcgis-components/dist/Buttons/CheckToggle.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE DevTools failed to load SourceMap: Could not load content for /portal/home/js/arcgis-components/dist/Filters/TagsFilter/index.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE DevTools failed to load SourceMap: Could not load content for /portal/home/js/arcgis-components/dist/Filters/CollaborationFilter/index.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE DevTools failed to load SourceMap: Could not load content for /portal/home/js/arcgis-components/dist/Dropdowns/FilterController/index.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE DevTools failed to load SourceMap: Could not load content for /portal/home/js/arcgis-components/dist/ItemCards/AnalysisCard/index.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE DevTools failed to load SourceMap: Could not load content for /portal/home/js/arcgis-components/dist/Buttons/FilterChip/index.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE DevTools failed to load SourceMap: Could not load content for /portal/home/js/arcgis-components/dist/Management/LazyLoader.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE DevTools failed to load SourceMap: Could not load content for /portal/home/js/arcgis-components/dist/Badges/Authoritative.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE DevTools failed to load SourceMap: Could not load content for /portal/home/js/arcgis-components/dist/Loaders/LoaderIcon.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE DevTools failed to load SourceMap: Could not load content for /portal/home/js/arcgis-components/dist/Badges/Badge.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE DevTools failed to load SourceMap: Could not load content for /portal/home/js/arcgis-components/dist/Badges/Collaboration.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE DevTools failed to load SourceMap: Could not load content for /portal/home/js/arcgis-components/dist/Badges/Marketplace.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE DevTools failed to load SourceMap: Could not load content for /portal/home/js/arcgis-components/dist/Badges/Subscriber.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE DevTools failed to load SourceMap: Could not load content for /portal/home/js/arcgis-components/dist/Badges/LivingAtlas.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE DevTools failed to load SourceMap: Could not load content for /portal/home/js/arcgis-components/dist/ItemCards/MiniCard/index.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE DevTools failed to load SourceMap: Could not load content for /portal/home/js/arcgis-components/dist/Badges/Deprecated.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE DevTools failed to load SourceMap: Could not load content for /portal/home/js/arcgis-components/dist/Badges/Premium.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE DevTools failed to load SourceMap: Could not load content for /portal/home/js/arcgis-components/dist/Badges/OpenData.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE DevTools failed to load SourceMap: Could not load content for /portal/home/js/arcgis-components/dist/ItemCards/MiniCardRow/index.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE DevTools failed to load SourceMap: Could not load content for /portal/home/webmap/js/esri/dijit/css/configure.css.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE Has anyone else experienced this and if so, how to resolve? Thanks in advance, Mark
... View more
12-01-2020
08:20 AM
|
0
|
4
|
2240
|
POST
|
Hi all Is it possible to copy storymaps from an AGOL account and put them into Enterprise Portal? I am in the process of moving various apps and maps and don't really want to redo some of these storymaps if possible, Thanks in advance for any suggestions Mark
... View more
09-02-2020
02:56 AM
|
0
|
0
|
222
|
Title | Kudos | Posted |
---|---|---|
6 | 11-26-2019 07:41 AM | |
7 | 08-22-2019 08:01 AM | |
4 | 08-23-2019 01:46 AM | |
1 | 07-11-2019 06:47 AM | |
1 | 02-15-2017 01:50 AM |
Online Status |
Offline
|
Date Last Visited |
11-08-2023
03:33 AM
|