POST
|
Hi Peter, After 2 years without accessing this forum, due to personal problems, the files I used in a new attempt is attached, but i'm still frustrated. Thank you very much in advance
... View more
09-04-2018
08:22 AM
|
0
|
1
|
708
|
POST
|
Hello Steve, how long did I remain without accessing this forum! I followed your suggestion and used a region with fewer outline lines (very small). I did not quite understand your other suggestion of using a stand-alone script. The shapefiles I used, as well as the script are attached. I tried to run it again in the Python terminal of Arcgis (10.2) again, but the same error described at the beginning persists.
... View more
09-04-2018
08:09 AM
|
0
|
1
|
708
|
POST
|
Hi Peter, In previous attempts, I explored the syntax arcpy.sa.TopoToRaster the most. The vertical contour interval feature class that I am using is 10m and the cellsize I use is 5m. I also use a feature class boundary. The extent already is a parameter that generates me questions. I don't know if I declare in the script as a variable using previously arcpy.env.extent. In another experiment, I tried to create a model in ModelBuilder, using TopoToRaster and declaring the workspace. After running the tool, captured the code with their respective parameters and variables used by the Results> Copy As Python Snippet. Later, I pasted the code in ArcMap Python Window and ran. TopoToRaster with the same parameters and variables now in arcpy, after 99% closed by error. Some friends of nearby universities, working in the geomatics area when they heard of this problem, suggested that this is a bug in arcpy. But I still could not reach a conclusion. I will continue performing tests. I will do another test considering Peter's suggestions. Any news, I write. But I ask everyone to continue trying to help. Regards, Rodrigo
... View more
04-10-2016
01:58 PM
|
0
|
3
|
1427
|
POST
|
Curtis, both env.worspace as env.scratchworkspace are declared in the script, however, to get 99% of the running, the pop-up on the Visual Fortran Error appears and then closes the ArcGis! Already I tested without declaring environment, but the problem persists! Also revised all path and spelling, but all are correct. Dan Patterson, read about the suggested article "How large the DEM can the tool TopoToRaster create?"(https://geonet.esri.com/external-link.jspa?url=https%3A%2F%2Fblogs.esri.com%2Fesri%2Farcgis%2F2012%2F08%2F13%2Fhow-large-a-dem-can-the-topotoraster-tool-create%2F), however, the expected DEM are within the processing capacity (Win7, Intel i5-650, 4GB RAM, ArcGis10.2, etc). Anyway, I appreciate the ideas. The discussion is always welcome! The following script text below: ... import arcpy ... from arcpy import env ... from arcpy.sa import * ... ... # Set environment settings ... env.workspace = r"C:\Users\rodrigotr\Documents\01_PROCESSOS\2016\indice_cartas_split_buffer" ... env.scratchWorkspace = r"C:\Users\rodrigotr\Documents\01_PROCESSOS\2016\indice_cartas_split_buffer" ... ... # Set local variables ... input = r"C:\Users\rodrigotr\Documents\01_PROCESSOS\2016\indice_cartas_split_buffer\CN_cartas_buff5mUTM23sirgas2k\CN_buff5m_26124se.shp" ... outputFolder = r"C:\Users\rodrigotr\Documents\01_PROCESSOS\2016\indice_cartas_split_buffer\outMDE" ... inContours = TopoContour([[input, 'COTA']]) ... inFeatures = ([inContours]) ... ... # Execute TopoToRaster ... outTTR = TopoToRaster(inFeatures) ... ... # Save the output ... outTTR.save(outputFolder + "\\" + outTTR + ".tif") That's all folks!
... View more
04-06-2016
12:03 PM
|
0
|
5
|
1427
|
POST
|
Steve, what intrigues me is the fact to error only when running in arcpy. If I use the same inputs and cellsize in TopoToRaster directly from ArcToolbox, can generate raster without any problem !!! The solution presented by the link: https://geonet.esri.com/thread/102133#comment-468079 would not be the cause, for my Desktop is already with such a configuration ... This problem is occurring in ArcGIS 10.2 ... Any help is still welcome Thanks for help and still available. Rodrigo
... View more
04-06-2016
12:02 PM
|
0
|
0
|
708
|
POST
|
Hello everybody , I'm trying to run Topo to Raster by Arcpy, in a ArcGIS Desktop 10.2 , however, every time appears the following warning and ArcGis closes. I did an experiment by turning the Topo to Raster directly from ArcToolbox and worked perfectly. I also tried to run the tool in ModelBuilder , successfully. The error message are attached.
... View more
04-05-2016
10:09 AM
|
0
|
15
|
5758
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|