POST
|
So, what to do if even on the ArcGIS 10.5 the problem does not disappear?
... View more
01-16-2017
08:08 AM
|
0
|
0
|
793
|
POST
|
Hi Steve. After your answer, I tested the model in ArcGIS 10.5 (trial version), and got the same problem ... In fact it seems to be a bug, because even in version 10.4.1 (before your answer), I built the model from begin again, adding the iterator, parse path, and the other tools, and the model worked perfectly (that is, running the steps for the two files p1 and p2) until a certain moment. After that, it started to run only for file p1, endless.
... View more
01-16-2017
05:58 AM
|
0
|
0
|
793
|
POST
|
Hi Chris. Thank you for the return. I add the Parse Path tool because my model have multiple steps chained, in which the results of one step are the input data of the subsequent ones, and so on. If I use only the inline variable %name%, I got this error: Executing ((a) Int): Int C:\FT2\p1.img C:\FT\ap1.img Succeeded Executing ((b) Raster to Polygon): RasterToPolygon C:\FT\ap1.img C:\FT\bp1.img.shp NO_SIMPLIFY Value ERROR 010157: Unable to open feature class C:\FT\bp1.img. Failed to execute ((b) Raster to Polygon). That is, from the step "a" to the step "b", the model retain the extension .img of the name. For this reason, I used the Parse path, which permits that the input/output file names pass from a step to another without their extension. I did what you suggested, simplifying my model to only first two tools (a and b) and run the model with Raster Iterator and Parse Path, and it works perfectly as I expected (see the figure). Now remains the question: why with all the tools/steps both raster and multivalue iterators does not work? p.s.: I check the Model properties and the settings are the same as figure you posted.
... View more
01-13-2017
08:25 AM
|
0
|
3
|
793
|
POST
|
Hello. I have a complex model (with many tools/steps chained - named from "a" to "p") and I need iterate two input rasters (p1.img and p2.img), so that all the model outputs returned for the two input files. As there are many chained steps on the model, I applied the Parse Path output as a in-line variable substituition. My attempts and the problem were: 1) Multivalue iterator: return the outputs correctly but just in relation the file p1.img, doesn't run for the file p2.img. (image below) 2) Raster iterator: generate a kind of loop, running repeatedly and cumulatively outputs in relation of the file p1.img. (image below) 3) Turn the raster iterator and parse path tools as a submodel and add it into a main model that contain the steps: return the outputs correctly but just in relation the file p1.img, doesn't run for the file p2.img. (image below) Questions: - How run all the model steps for both input files p1 and p2? Suspect: - I suspect that the problem is the Parse Path tool, that in some way limit the model to run upon the first file (p1) only. Can someone help me solve this?
... View more
01-12-2017
11:37 AM
|
0
|
5
|
2816
|
POST
|
Answer your questions: - No, no error appears in relation to the p2 file. In fact, the steps model keeps running repeatedly, generating only the results in relation to the p1 file (and, I believe, replacing the already generated outputs), without finish. - Yes, I create different output names for the results, that are: a%value%, b%value%, c%value%, d%value%, e%value%, and so on (until "p"). - I'm not sure about the overwrite output setting, but I check the first option of the image below (is this the setting are you talking about?) and ran the model again, without sucess. - Actually, I don't mark none file as intermediate data, that is, all the output are to be generated by the model. - I've already done what you proposed about setting the raster format to IMG and the wildcard to p*: no sucess too.
... View more
01-11-2017
08:56 AM
|
0
|
0
|
695
|
POST
|
Hi everyone. I have 2 files (rasters) (p1.img and p2.img), upon which I want that all model steps run. There are numeric steps from a to p (a, b, c, ..., etc) on the model. I tryed two iterators: multivalue and raster iterators. The first one return the outputs correctly, for which step, but just for the file p1.img, doesn't run for the file p2.img (first image). The second one generate a kind of loop, running repeatedly and cumulatively on files originating from the landscape p1.img (second image). I need the model run all step, only once, for files p1 and p2. I suspect that the problem is the Parse Path tool, that in some way limit the model to run upon the first file (p1) only. Any idea?
... View more
01-10-2017
10:01 AM
|
0
|
0
|
938
|
POST
|
Hi Xandre. Thank you again for the help, its are beign precious. I change the inputs names, substituing numbers for letters, and it works! No errors anymore. The model are running perfectly. I'm very happy. But how life is not a bed of roses, I have a new issue. I have 2 files originally (p1.img and p2.img), upon which I want that all model steps run. There are numeric steps from a to p (a, b, c, ..., etc). I tryed two iterators: multivalue and raster iterators. The first one return the outputs correctly, for which step, but just for the file p1.img, doesn't run for the file p2.img (first image). The second one generate a kind of loop, running repeatedly and cumulatively on files originating from the landscape p1.img (second image). I need the model run all step, only once, for files p1 and p2. Any idea?
... View more
01-10-2017
03:29 AM
|
0
|
2
|
695
|
POST
|
Hi Xander. Thanks a lot for your attention and avaiability to think about a solution. From your answer, I continue looking for some tool to do what you propose and I found! The tool is Parse Path, which make that from a step to another in the model, the output file name have just the variable name and not their extension (using the option "name" in the field "Path type", and put the raster [(1) Inteiro] as inputs and the "Value" [Parse Path output] as a precondition of the Int function). That is, this problem is solved. But now get up a new issue. In the five step [(5) Reclassify cost surface] the model throw a error: Executing ((5) Reclassify Cost Surface): Reclassify C:\FT\1p1 VALUE "1 30;2 30;3 5;4 1000000;5 20;6 1;7 1000000;8 1000000;9 NODATA;10 50;11 25;12 10;13 5;14 50;15 1000000;26 NODATA;99 NODATA;128 NODATA" C:\FT\5p1 DATA Start Time: Sat Jan 07 11:13:41 2017 ERROR 999999: Error executing function. The table name is invalid. Failed to execute ((5) Reclassify Cost Surface). Trying to simplify, I changed the path and files names, and now are: Input: p1.img or p2.img Workspace: C:\FT\ Steps: 1, 2, 3, 4, 5, and so on Inline variable substitution: %value%, which make reference to the original input file name of that iteration Do you know how I fix it?
... View more
01-07-2017
05:25 AM
|
0
|
4
|
695
|
POST
|
Hi Xander. I agree that the problem can be about the file name. I don't know how to truncate the extension of the .img file. Can you explain me, please? Could be a possibility. I don't have experience in Python language, just in R language. The construction of the model in Model Builder was much easier, but the iteration is being complicated... Best regards.
... View more
01-05-2017
05:24 AM
|
0
|
6
|
695
|
POST
|
Hello everyone. I'm trying to run a model in Model Builder, but without sucess. I have two landscapes rasters (p1 and p2 - as a test, because in fact I have 400 files) to be iterated, which I want the model completely run over them. The model has many steps, and this error appears on the second one. The first step is [(1) Inteiro]: convert raster (p1 r p2) to integer (pintft). *The input and output files path are: Input: p1.img Output: C:\Redes\FT\pintft_%Name% The second step is [(2) Raster to Polygon]: convert raster (pintft) to polygon (ppolyft). *The input and output files path are: Input: pintft Output: C:\Redes\FT\ppoly_ft_%Name%.shp Executing ((1) Inteiro): Int C:\Redes\FT\p1.img C:\Redes\FT\pintft_p1.img Executing ((2) Raster to Polygon): RasterToPolygon C:\Redes\FT\pintft_p1.img C:\Redes\FT\ppoly_ft_p1.img.shp NO_SIMPLIFY Value ERROR 010157: Unable to open feature class C:\Redes\FT\ppoly_ft_p1.img. Failed to execute ((2) Raster to Polygon). The error affirm that was unable to open feature class C:\Redes\FT\ppoly_ft_p1.img. But, really, there isn't no raster named "ppoly_ft_p1.img", once the raster input is the "pintft". Someone can highlight to me how can I solve this problem? I'm doubt about the inline variable substitution too, if the file path are correct. ps.: The circle FT are the workspace. Thanks.
... View more
01-04-2017
06:48 AM
|
0
|
8
|
2611
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:25 AM
|