|
POST
|
Does anyone have a workaround for me where I can specify multiple wildcards when using "Iterate Feature Classes". I need to search for feature class that have the following tile names within a directory of multiple folder such as 1: 2830* 2: 2831* 3: 2930* and copy the shapfiles (polylines) into a File Geodatabase for futher processing. Wildcards: 2830*;2831*;2930* Regards
... View more
02-20-2013
01:30 AM
|
0
|
3
|
6467
|
|
POST
|
Hi Mark Thanks, its taken a while to work out a way to automate ArcHydro and HEC-GeoHMS to meet our requirements for various projects. I'm currently updating one of my existing models to either run subwatersheds\watersheds based on if else statement and having the results written to a report which I supply to the engineers for modelling and structure design. Let me know if you need any assistance to get started with constructing a model using modelbuilder and python. Regards
... View more
02-17-2013
10:00 PM
|
0
|
0
|
701
|
|
POST
|
I wish to find out from the rest of the community if they are still experiencing crashes from HEC-GeoHMS? I downloaded HEC-GeoHMS version 10.0.0.118 hoping that it would resolve the bug when I open the ArcToolbox window within ArcCatalog it immediately crashes ArcCatalog and the only way to get ArcCatalog to open again is to delete the Normal.gxt. When I installed the updated version of HEC-GeoHMS the following bug still persisted and if I try to open the Geoprocessing Options it crashes ArcCatalog. As soon as I removed the following version and re-installed my older version of HEC-GeoHMS from last year September I was able to open the Geoprocessing Options within ArcCatalog. The reason that I run my ArcHydro and GeoHMS from ArcCatalog is that I've developed models and scripts to automate my workflow in order not to have to create mxds and which has drastically improved the performance of me processing large study areas. Please can we create a better means of identifying bugs and the ability of reporting bugs within ArcHydro and HEC software. I do realise that HEC is responsible for HEC software and that ESRI is supporting HEC, but I believe everyone within the water community that uses HEC and ArcHydro would greatly appreciate it, and it would improve the stability of the software. Regards
... View more
02-14-2013
09:40 AM
|
0
|
2
|
2096
|
|
POST
|
Hi Jake Your example put me onto the right track. I've attached my final script that I used. Question: I created a Fishnet using the Data Driven Pages using the extent of my study area and defining the page size of an A1 map. I used this feature class to loop through each features extent to export the data frame to a jpeg. The Fishnet features are based on a scale of 1:5 000 in the data frame and 1:2 000 in the Layout View. It seams that my exported jpeg's are based on the scale from the Layout View and not the Data Frame scale? import os,arcpy
... mxd = arcpy.mapping.MapDocument(r'E:\Projects\Rebieeck_West\mxd\Rebieeck.mxd')
... df = arcpy.mapping.ListDataFrames(mxd,"Layers")[0]
... lyr = arcpy.mapping.ListLayers(mxd,"Fishnet")[0]
... sCur = arcpy.SearchCursor(lyr)
... for row in sCur:
... geom = row.shape
... df.extent = geom.extent
... df.scale = df.scale * 1.1
... arcpy.mapping.ExportToJPEG(mxd,os.path.join(r'E:\Projects\Rebieeck_West\jpeg',row.getValue("PageName")+".jpg"),df,df_export_width=817,df_export_height=571,world_file=True) Regards
... View more
02-11-2013
01:12 PM
|
0
|
0
|
1868
|
|
POST
|
Hi Stacie Thanks for the following, this is going to help greatly. I upload my final script once completed. Regards
... View more
02-09-2013
08:28 AM
|
0
|
0
|
749
|
|
POST
|
Hi Stacie Thanks for the update, I'm about to write a python script to automate the entire terrain preprocessing steps and some additional analysis from HEC-GeoHMS that I had in a ModelBuilder. Regards
... View more
02-08-2013
10:22 AM
|
0
|
0
|
3433
|
|
POST
|
Hi Chris Firstly thank you for all your advice and assistance, its truly appreciated. Apologies for the late reply, been pretty busy the last while. I eventually used ArcGIS 10.1 Data Access Module through Python. It was a life saver when dealing with such a large dataset. The following video was exceptionally helpful in getting started with the Data Access Module: Data Access Module Regards
... View more
02-08-2013
10:08 AM
|
0
|
0
|
4538
|
|
POST
|
Is anyone aware of any ArcPy documentation for ArcHydro. I've seen numerous posts where individuals have started using python to some extent to run ArcHydro Tools. I was anware that ArcHydro Tools were accessible through Python or ArcPy. Is there any documention on the ArcHydroTools Python\ArcPy Module as mentioned in the following post" Using-ArcHydro-2.0-in-a-python-script 2. We have precompiled the tools from the toolbox in a module called ArcHydroTools so that you do not have to redo the import each time which takes a long time... Then in your script you will need to add: import ArcHydroTools and call the tools with: ArcHydroTools.AssignHydroID(tmpPolyFC, "OVERWRITE_YES") Christine Dartiguenave Esri Water Resources Team Regards
... View more
02-06-2013
08:34 AM
|
0
|
0
|
2358
|
|
POST
|
Hi Curtis I came accross your post regarding ValidateTableName and wanted to ask if you could assist me constructing a python expression using calculate value to solve a similar problem. I've attached two print screens of my current model. I'm selecting CAD Features based on their layer name and then using Feature Class to Feature Class to write out the CAD Features to a File Geodatabase based on the Layer Name. The problem that I have is that I need to remove invalid characters from the Layers Name. I've also attached my model itself for you to look at. The Output Geodatabase is where I'm writing out the CAD Features, so I need to use some sort of inline-variable substitution to validate the name of the Feature Class. Regards
... View more
01-31-2013
07:15 PM
|
0
|
0
|
2181
|
|
POST
|
Hi Christine Thanks for the following and all the best for 2013. Regards
... View more
01-08-2013
07:12 PM
|
0
|
0
|
3433
|
|
POST
|
The background can't be changed at this time. It's something we're considering for the future, however. Thanks, Mike I've just found out that there's a work around using CSS. If anyone has the necessary steps in how to accomplish this, it would be appreciated. Regards
... View more
11-26-2012
11:35 PM
|
0
|
0
|
1011
|
|
POST
|
Sure. Go to "My Organization" (up top) and click the "Edit Settings" button, then the "Home Page" tab on the left. There are 5 banner images to choose from, or you can upload your own image - but make sure it the right size/dimensions ( 960 pixels wide by 180 pixels high) or it gets stretched. Please note that I'm referring to the blue wave background, not the banner. I've replaced the banner already with a custom banner containing the companies logo. Regards
... View more
11-26-2012
03:06 AM
|
0
|
0
|
1011
|
|
POST
|
I'm currently busy setting up an ArcGIS Online Homepage for a client as a proposal. I need to remove the "Blue Wave Background" that is present by default as it doesn't work with the client's website. I'm hoping that this is a simple task, but have not been able to find a way how to accomplish this. Regards
... View more
11-25-2012
11:36 PM
|
0
|
4
|
1299
|
|
POST
|
Hi all - I've used ArcHydro quite a bit over the years, done a lot of python geoprocessing too, but this is the first time I've tried to script ArcHydro in python. I just don't seem to be able to run any ArcHydro tools from my python script, there's no explicit error as to why, just a generic script failure. If I do ListToolboxes within the script, ArcHydro is there, if I do ListTools, the ArcHydro tools that I'm calling are there. But when I try to run any of the tools, the script just fails. This is with ArcGIS 10 and ArcHydro 2.0. Since it looks like Arc already knows about ArcHydro (from being able to list the toolbox and tools), I'd think that I wouldn't need to use ImportToolbox (and would rather not have to, since I'm making a tool to provide to others so don't want to hard-code or ask for paths), but I tried that anyway and the script just hangs on this command: arcpy.ImportToolbox("C:\Program Files (x86)\ArcGIS\Desktop10.0\ArcToolbox\Toolboxes\Arc Hydro Tools.tbx") If I don't try to import, the first thing the script was doing is a Flow Direction: workspace = arcpy.GetParameterAsText(0) DEM = arcpy.GetParameterAsText(1) interws = workspace + os.sep + "Intermediate" + os.sep sshed_gdb = interws + "ssheds.gdb" flow_dir = interws + "flow_dir" arcpy.FlowDirection_archydro(DEM, flow_dir) Maybe it doesn't like the flow_dir setting the whole path, since AH has its own default locations set, so try this: arcpy.FlowDirection_archydro(DEM, "flow_dir") Doesn't work. Maybe it doesn't have its own default locations set, so try setting them: arcpy.SetTargetLocations_archydro("HydroConfig", "Layers", interws, sshed_gdb) Doesn't work, still no explicit error. Try creating the gdb first, doesn't help. Checked the XML Vector Location Type, it's set to 1 (gdb), Raster to 2 (can't find doc on that, but the RasterLocation is set to a folder by default, so I'm hoping 2 means folder.) All of this works fine using these folders, file names and file types when I run the ArcToolbox tools manually outside of the script. Put this through a debugger and get this error message: AttributeError: 'module' object has no attribute 'FlowDirection_archydro' I must be missing something basic. Any clues as to what are greatly appreciated... ~ Stacie Hi Stacie Just wondering if you ever resolved this. Regards
... View more
10-19-2012
04:44 AM
|
0
|
0
|
3433
|
|
POST
|
It seems that the Add Join still doesn't work in ModelBuilder. I can take the results produced by my model (ModelBuilder) feature classes and tables and perform the join within ArcMap and produce the table that I'm looking for, yet ModelBuilder will not reproduce the join. Fields are dropped during the join and the output join is everything but what you'd expect. I'm joining multiple feature classes (3 Feature Classes) and one table to produce a single table of summary results. I can't use ArcGIS 10.1 as I'm currently still relying on HEC Geo-HMS as part of my model. I can't unfortunately upload my data as its way to large a study area. My model uses general ArcGIS tools as well as ArcHydro and Geo-HMS all function as expected except Add Join. This is extremely frustrating that ArcGIS can't perform joins correctly. Regards
... View more
10-17-2012
01:46 AM
|
0
|
1
|
1255
|
| Title | Kudos | Posted |
|---|---|---|
| 3 | 01-16-2012 02:34 AM | |
| 1 | 05-07-2016 03:04 AM | |
| 1 | 04-10-2016 01:09 AM | |
| 1 | 03-13-2017 12:27 PM | |
| 1 | 02-17-2016 02:34 PM |
| Online Status |
Offline
|
| Date Last Visited |
03-04-2021
12:50 PM
|