POST
|
Hi Freddie, Thanks for the pointers. I'll look into it and see how it goes. Also - linked to the question on the Submit button in the Geoprocessing widget. Any idea if you can change 'Submit' to other text via the geoprocessing.xml config? I know you can do this in other widgets such as Splash with the following: <btnlabel>Click to accept terms and continue</btnlabel> I've tried this in the geoprocessing config but it won'y work. I'll post results once I get going on the script. Thanks Justin
... View more
09-18-2015
12:47 PM
|
0
|
0
|
380
|
POST
|
I am using Collect Values in Model Builder to collect the results from 6 separate iterative processes. Each iterative process allows a user (through the GUI) to select a number of environmental variables under specific themes (1. Water, 2. Biodiversity....6. Climate) and apply a user weighting (1 to 3). Each selected indicator is then multiplied by the 'weight' in Raster Calculator and the results of the theme are stored in Collect Values. The next phase of the model uses Cell Statistics and Clip routine to produce the final output. The model works fine but I would like to be able to limit the GUI to only allow a max of 4 of the 6 theme results to be sent to Collect Values. At the moment Collect Value accepts all 6 Theme results. I'm looking for some ideas on how I can get the GUI to only let the model progress (Submit) if a max of 4 of the potential 6 Themes are selected. The image below shows the GUI with a number of Themes (Water, Culture etc) indicators and user defined weights visible. The second image shows the actual model with the 6 iterative results going to Collect Values Also - any advice on how I can get a tooltip to appear when there is a mouse-over on the Submit button would be great thanks Justin
... View more
09-17-2015
03:41 PM
|
0
|
2
|
2928
|
POST
|
Hi, I've created a GeoProcessing task that allows users to select a series of variables from a choice list. The results of which are sent into a raster calculation process. Unfortunately the variable names are very long and I'd like to be able to use an abbreviated version of the variable names and have a tooltip displaying the full name when the user does a mouse over. Another alternative would be to use a Label but for some reason I can't get either of these to work. For example, National_Inventory_of_ArchHeritage would become 'NIAH' as the variable name with a tool tip displaying ‘National Inventory of Architectural Heritage’. See image below and a snippet from the widget config containing the variables <param type="multivalue:string" name="Water" required="true" visible="true" label="Water"> <choicelist> <choice value="Aquifer_Vulnerability" /> <choice value="GroundSource_Protection_Areas"/> <choice value="RPA_Recreational_WaterAreas"/> <choice value="RPA_Recreational_WaterLakes"/> <choice value="WFD_GroundwaterStatus"/> <choice value="WFD_NutrientSensitive_LakeStatus"/> <choice value="WFD_NutrientSensitive_RiverStatus"/> </choicelist> </param> Any suggestions or comments welcome Thanks Justin
... View more
07-07-2015
01:43 PM
|
0
|
0
|
3193
|
POST
|
Hi Todd, Thanks. I will work through all the links again to see what the issues are. Will keep you posted. Thanks Justin
... View more
05-25-2015
11:31 PM
|
0
|
0
|
895
|
POST
|
I have a geo-processing model that works perfectly in ArcGIS desktop (10.1) and successfully publishes as a GP Task to ArcGIS Server (10.1). Once I try to execute the GP task (either through a widget on Flex or even as a tool in Toolbox on Server) it fails with the following error message: ‘Problem ESRIJobFailed Failed’. On further inspection of this through running the tool via Arc Toolbox on Server I get a ‘000816: The tool is not valid’ error. I’m not sure what the problem is here as the model and subsequent python scripts within it work perfectly on Arc desktop. A simpler version of the model that did not include any python scripts also worked fine and was successfully deployed as working GP tasks on my Flexviewer. Any ideas on what the issue might be? I’ll use a simplified version of my model as a working example – The model asks a user to (1) select a pre-defined study area (Select Study Area), and then (2) allows the user to select from a list of raster layers (1, 2 or 3 – this doesn’t matter) to be included in the analysis. The user can then (3) apply a weight to these layers that are used in a raster calculation process. The model then takes each layer that is selected, apply a weight to it, stores the results until all layers are processed and the uses Cell Stats to bring all of this together. The final output is then clipped to the geography chosen in (1). This all works fine on Desktop but the model seems to trip up as it works through step (2) – this is where the Python scripts are. The python scripts have been included to allow users to select or de-select the layers rather than simply using them all (this was the previous version and it operated on all layers in the Air and Climactic.gdb). Model 1 below is my main model and details where the first python script is used. This script ‘Select Factors.py’ enables users to select from the list of layers available. Once these are selected they are then sent through a sub-model (Model Iterate) that runs all of the raster calculations and finally adds the results to Collect Values (The Collect Values shown here actually collects values from ‘Air and Climactic’ as well as a number of other themes that are in the full model). The second python script (LayerNametoPathName) is in this sub-model and it stores the layer and workspace name for use in the Raster Calculation process. The rest of the model just processes the collected results and clips to the study area. Main Model (model 1) Sub Model As I mentioned, this works in ArcGIS Desktop and it publishes as a GP task without any issues. Unfortunately it just won’t run on Server or on my Flex! Any suggestions on what the problem could be would be great. Thanks Justin
... View more
05-25-2015
07:57 AM
|
0
|
2
|
6452
|
POST
|
Hi, I have developed a pretty detailed geo-processing widget (based on a model I built and published) that takes user input, runs raster calculator and then clips the raster output to a boundary. The tool works well and the results are displayed in Flexviewer 3.5. While I'm happy with this I now want to expand the widget functionality and include additional functions such as data extract and print functionality. I'm wondering what is the best way of achieving this? Do I need to build this into the original model or is there a way of merging the functionality of other widgets into my geo-processing widget? Any advise of how to proceed would be much appreciated. Thanks Justin
... View more
03-06-2015
06:21 AM
|
0
|
0
|
2699
|
POST
|
OK, thanks. I'll give it a go then and see what happens. Thanks Justin
... View more
03-06-2015
06:06 AM
|
0
|
0
|
206
|
POST
|
Hi Shitij, Have you had any further thoughts on this? Do you think your script is something that may work for what I am trying to achieve? Thanks
... View more
02-26-2015
01:14 PM
|
0
|
2
|
983
|
POST
|
Hi Vandana, Both are rasters. In any case I actually found a solution to this thanks to Hornbydd over on Stackexchange. I connected the Output Value 1 and 2 to a new Collect Values and it worked fine for me. Thanks for reply Justin
... View more
02-26-2015
11:27 AM
|
0
|
1
|
490
|
POST
|
OK, the raster names in the .gdb at the moment are just test rasters and the final versions will have 'cleaner' names: RiverStatus, Lake Status etc In the dialog I want the user to work through each of the themes and select the layers they are interested in and decide on the sensitivity weighting they want to apply. For instance, for each theme (soils, env, water etc) I'd like a list of all the rasters in each .gdb displayed with a check box that will allow the user to select what they are interested in (similar to the check box you have in your blog post). So, this could be one, two, three of the raster layers or indeed all of them. Selecting these will somehow send them to the Raster Iteration sub-model. The next part of the dialog will ask the user to input the weighting they want to apply to this theme (this bit is already working). Again, this parameter will be sent to the Raster iteration sub-model. This will be duplicated for each theme in the final dialog. Does that explain it? Justin
... View more
02-25-2015
02:32 PM
|
0
|
0
|
983
|
POST
|
To start with....I really appreciate your help and interest! Yes, as it stands I have a separate .gdb for each theme containing all the relevant rasters (WaterData.gdb contains aquiferVul, LakeStatus, RiverStatus etc). Same goes for soilsdata.gdb, forestrydata.gdb, EnvData etc. The list of rasters in each .gdb will be static and not change on a regular basis (maybe updated every year or so). Image of workspace and test version of working model attached. I guess what I need to do is plug in a script that will allow user selection from EnvData.gdb and SoilsData.gdb etc to feed into relevant Raster Iteration sub-models. Thanks again! Justin
... View more
02-25-2015
01:52 PM
|
0
|
5
|
983
|
POST
|
Thanks so much for the reply. I will look into this and see how I go. I've little python experience but I guess there is a first time for everything. Yes, this is a key step in what I am trying to achieve. I only want the user to be able to select from a pre-defined list of rasters through a check box/list. This will have to be duplicated in the GUI for different 'themes' as we want users to select a sub-set of (a) soils rasters, then (b) forestry rasters and then (c) sensitive area rasters etc. Each selection will determine the rasters to feed into the Iterate Raster process and will take into account the user defined weights (1-5) that feed into the Raster Calculator. The results from each 'Theme' will then feed into the final Cell Statistics for the final raster output. It's pretty much all working except for now everything in each 'theme' .gdb goes into the iteration processes. My challenge is to try and modify your script to limit the inputs through user interaction. will be in touch appreciate it Justin
... View more
02-25-2015
11:33 AM
|
0
|
7
|
983
|
POST
|
I have developed a model that collects values through a number of integrated sub-models. I was hoping to use Cell Statistics to run an analysis on the results from each of the sub-models. It will work properly when I have Output Values from one of the sub-models connected but I can't seem to connect the results from more than one model. For instance, I have the results from ModelSoils connected but can't connect ModelEnv at the same time. I have tried connecting and selecting 'Input rasters or constant values' but it won't connect. Any suggestions on what I am missing here? Thanks Justin
... View more
02-24-2015
12:56 AM
|
0
|
4
|
3964
|
POST
|
After a little bit of searching I've found the answer to this problem: To expose the parameters from the sub model you simply right click on the sub-model > make variable > from parameter > [parameter name = weights1 as above]. You then right click and add this as a model parameter. The parameters from the sub-model will then be exposed when you run the entire model.
... View more
02-23-2015
11:04 PM
|
2
|
0
|
597
|
POST
|
Hi, I'm trying to integrate a sub-model within a model but am having problems with the parameters from the sub-model being displayed in the GUI. (1) The Sub-model is based on Forestry datasets and asks for a user weighting in the GUI (1,2,3 or 4 etc) and then uses Iterate Rasters to run a series of raster calculations on each of the rasters in the .gdb. The results are then stored using Collect Values. This all works fine as per the image below and the results are accurate. I plan on having a number of these Sub-Models and operate in the same way but are to be based on different datasets: Forestry, Soils, Urban etc. (2) Once all of the results are stored in Collect Values I want to use Cell Statistics to 'sum' all of the results from each Sub-model and output a final raster result. From reading the help files I need to integrate a sub-model(s) within a model to do this. (3) Following the help notes (ArcGIS Help 10.1 ) I have adjusted my Sub-Model (1 above) and attempted to integrate this within a new Model that will run the Cell Statistics. Unfortunately when I run the model the GUI does not show my parameters from the Sub-model. Ideally I only need to show the parameters from the sub-model. Any ideas on what is going wrong here? Thanks Justin
... View more
02-23-2015
07:42 AM
|
0
|
1
|
5443
|
Title | Kudos | Posted |
---|---|---|
2 | 02-23-2015 11:04 PM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|