POST
|
Check out TauDEM with the Peuker Douglas Stream Definition method https://hydrology.usu.edu/taudem/taudem5/help53/PeukerDouglasStreamDefinition.html https://hydrology.usu.edu/taudem/taudem5/documentation.html
... View more
11-21-2020
04:42 PM
|
0
|
0
|
1985
|
POST
|
If you couldn't make it work with ArcGIS, take a look at QGIS or WhiteBoxTools. They all are free. https://jblindsay.github.io/wbt_book/available_tools/hydrological_analysis.html https://www.sciencedirect.com/science/article/abs/pii/S1364815218302500 http://ecological-stats.com/2020/05/11/qgis-watershed-delineation/
... View more
11-21-2020
04:39 PM
|
0
|
0
|
1044
|
POST
|
I deleted all temporary files in %temp% folder then tried with a much smaller area. This is the error Messages Executing: BuildWalls Fil 500 0 0 C:\GIS\Layers\Walled # wall_test_buf # Start Time: Tue Jan 28 13:44:56 2020 Building internal walls System.Runtime.InteropServices.COMException (0x80004005): ERROR 010217: Unable to reclass on the selection set. ERROR 010024: Error during conversion. at ESRI.ArcGIS.SpatialAnalyst.RasterConditionalOpClass.Con(IGeoDataset ConditionalRaster, IGeoDataset TrueRaster, Object& FalseRaster) at ESRI.APWR.ApHydro.ArcHydroOp.BuildWalls(ApLayers apLayers, Double innerWallHeight, Double wallBuffer, Double breachLineBuffer, ITrackCancel& trackcancel, IGPMessages& messages, String& exMessage) in C:\Builds\17\s\ArcHydroTools\src\ApHydro\ArcHydroOp.vb:line 13808 Failed to execute (BuildWalls). Failed at Tue Jan 28 13:44:58 2020 (Elapsed Time: 2.58 seconds)
... View more
01-28-2020
10:49 AM
|
0
|
0
|
1251
|
POST
|
Hi everyone, I had these errors while running Build Walls and DEM Reconditioning tools in either HEC-GeoHMS or ArcHydro System info: ArcGIS version 10.6.1 HEC-GeoHMS 10.6: downloaded from here Filled DEM (Fil) in C:/GIS/Layers Inner/Outer Wall layer (wall_test_buf.shp) in C:/GIS/Layers: is a buffer (30 feets) created from a line feature Errors: Executing: BuildWalls Fil 500 0 0 C:\GIS\Layers\WalledDEM # wall_test_buf # Start Time: Tue Jan 28 12:58:16 2020 Building internal walls Executing: CreateFeatureclass C:\Users\user007\AppData\Local\Temp\arc2C59\AH20200128095816\AHTemp.gdb tmpAD66 POLYLINE # DISABLED DISABLED "PROJCS['NAD_1983_UTM_Zone_10N',GEOGCS['GCS_North_American_1983',DATUM['D_North_American_1983',SPHEROID['GRS_1980',6378137.0,298.257222101]],PRIMEM['Greenwich',0.0],UNIT['Degree',0.0174532925199433]],PROJECTION['Transverse_Mercator'],PARAMETER['False_Easting',1640416.666666667],PARAMETER['False_Northing',0.0],PARAMETER['Central_Meridian',-123.0],PARAMETER['Scale_Factor',0.9996],PARAMETER['Latitude_Of_Origin',0.0],UNIT['Foot_US',0.3048006096012192]];-16800800 -32802000 137296494.950628;-100000 10000;-100000 10000;3.28083333333333E-03;0.001;0.001;IsHighPrecision" # 0 0 0 Start Time: Tue Jan 28 12:58:17 2020 Succeeded at Tue Jan 28 12:58:18 2020 (Elapsed Time: 0.48 seconds) Executing: PolylineToRaster GPL0 OBJECTID C:\Users\user007\AppData\Local\Temp\arc2C59\AH20200128095816\wtemp MAXIMUM_LENGTH NONE 10 Start Time: Tue Jan 28 12:58:18 2020 Succeeded at Tue Jan 28 12:58:18 2020 (Elapsed Time: 0.50 seconds) System.Runtime.InteropServices.COMException (0x80041098): ERROR 010429: Error in GRID IO: CellLyrCreateInternal: Unable to create cell layer directory c:\windows\system32\ras810 . ERROR 010302: Unable to create the output raster: C:\WINDOWS\SYSTEM32\RAS810 ERROR 010067: Error in executing grid expression. at ESRI.ArcGIS.SpatialAnalyst.RasterMathOpsClass.IsNull(IGeoDataset geoDataset) at ESRI.APWR.ApHydro.ArcHydroOp.BuildWalls(ApLayers apLayers, Double innerWallHeight, Double wallBuffer, Double breachLineBuffer, ITrackCancel& trackcancel, IGPMessages& messages, String& exMessage) Failed to execute (BuildWalls). Failed at Tue Jan 28 12:58:19 2020 (Elapsed Time: 2.11 seconds) Executing: DEMReconditioning Fil wall_test_dis 5 -500 -500 C:\GIS\Layers\AgreeDEM NEGATIVE_NO Start Time: Tue Jan 28 13:00:33 2020 Executing: PolylineToRaster C:\GIS\Layers\wall_test_dis.shp FID C:\Users\user007\AppData\Local\Temp\arc2C59\AH20200128100033\AgreeStrGeo MAXIMUM_LENGTH NONE C:\GIS\Layers\Fil Start Time: Tue Jan 28 13:00:33 2020 Succeeded at Tue Jan 28 13:00:33 2020 (Elapsed Time: 0.38 seconds) Executing: Con C:\Users\user007\AppData\Local\Temp\arc2C59\AH20200128100033\AgreeStrGeo C:\GIS\Layers\fil C:\Users\user007\AppData\Local\Temp\arc2C59\AH20200128100033\AgreeStrDEM # # Start Time: Tue Jan 28 13:00:34 2020 Succeeded at Tue Jan 28 13:00:34 2020 (Elapsed Time: 0.44 seconds) Executing: Delete C:\Users\user007\AppData\Local\Temp\arc2C59\AH20200128100033\AgreeStrGeo RasterDataset Start Time: Tue Jan 28 13:00:34 2020 Succeeded at Tue Jan 28 13:00:34 2020 (Elapsed Time: 0.05 seconds) Computing smooth drop/raise grid .. Executing: Minus C:\Users\user007\AppData\Local\Temp\arc2C59\AH20200128100033\AgreeStrDEM -500 C:\Users\user007\AppData\Local\Temp\arc2C59\AH20200128100033\smoothGeo Start Time: Tue Jan 28 13:00:35 2020 Succeeded at Tue Jan 28 13:00:35 2020 (Elapsed Time: 0.70 seconds) Computing vector distance and allocation grids... Executing: Int C:\Users\user007\AppData\Local\Temp\arc2C59\AH20200128100033\smoothGeo C:\Users\user007\AppData\Local\Temp\arc2C59\AH20200128100033\smoothGeoInt Start Time: Tue Jan 28 13:00:35 2020 Succeeded at Tue Jan 28 13:00:36 2020 (Elapsed Time: 0.36 seconds) Executing: Delete C:\Users\user007\AppData\Local\Temp\arc2C59\AH20200128100033\AgreeStrDEM RasterDataset Start Time: Tue Jan 28 13:00:36 2020 Succeeded at Tue Jan 28 13:00:36 2020 (Elapsed Time: 0.04 seconds) Executing: EucAllocation C:\Users\user007\AppData\Local\Temp\arc2C59\AH20200128100033\smoothGeoInt C:\Users\user007\AppData\Local\Temp\arc2C59\AH20200128100033\vecEucAlloGeo 45 # 10 Value C:\Users\user007\AppData\Local\Temp\arc2C59\AH20200128100033\vecEucDistGeo # PLANAR Start Time: Tue Jan 28 13:00:36 2020 ERROR 999999: Error executing function. Failed to execute (EucAllocation). Failed at Tue Jan 28 13:00:37 2020 (Elapsed Time: 0.58 seconds) System.Runtime.InteropServices.COMException (0x80004005): Error HRESULT E_FAIL has been returned from a call to a COM component. at ESRI.ArcGIS.Geoprocessing.GeoProcessorClass.Execute(String Name, IVariantArray ipValues, ITrackCancel pTrackCancel) at ESRI.APWR.ApHydro.ArcHydroOp.DEMReconditioningGP(ApLayers apLayers, Double numCellsBuff, Double sharpDrop, Double smoothDrop, Boolean raiseNegative, Boolean bUsingStreamGridInput, ITrackCancel& trackcancel, IGPMessages& messages, String& exMessage) Failed to execute (DEMReconditioning). Failed at Tue Jan 28 13:00:37 2020 (Elapsed Time: 3.65 seconds) Any clue about what went wrong? Thanks!
... View more
01-28-2020
10:20 AM
|
0
|
2
|
1405
|
POST
|
My current workaround is to duplicate the original folder then do all the calculation on the original shapefile which won't cause any problem
... View more
11-07-2019
07:06 AM
|
0
|
0
|
900
|
POST
|
Update: I thought the reason was because I did not remove join after performing field calculator. I tried this (after line #43) but the result was still the same # remove all joins
arcpy.RemoveJoin_management('new_lyr')
... View more
11-03-2019
09:40 PM
|
0
|
0
|
900
|
POST
|
Hello everyone, I am trying to update a map based on a pre-built template. However, after everything ran successfully (python code below), the shapefile that was updated did not show up on the map. Its symbology was also changed from "Quantities: Graduated colors" to "Features: Single symbol". I'm not sure what I did wrong? Any pointer is appreciated. Thanks! Steps that I did: Read the original shapefile in the template with preset symbology. Copied that shapefile to a new one. Added a csv file then joined it with the newly created shapefile. Updated existing field in the new feature with the values in the csv file. Change the data source from the original shapefile to the new one. Refreshed TOC and ActiveView then exported to a new mxd file. I opened the new mxd file. The data source is correctly updated to the new file. Values in the attribute table were also correct. import os
import ntpath
import arcpy
from arcpy import env
arcpy.env.overwriteOutput = True
### set project directory
project_dir = os.path.expanduser('~/Projects/')
mxd_dir = os.path.join(project_dir, 'GIS/mxd/')
gis_dir = os.path.join(project_dir, 'GIS/shapefile')
env.workspace = os.path.join(project_dir, gis_dir)
year = '2019'
dframe = 'Baseline'
csv_file = 'sample.csv'
### open mxd template file
mxd_file = "my_template.mxd"
full_path = os.path.join(mxd_dir + mxd_file)
mxd = arcpy.mapping.MapDocument(full_path)
### list data frame in the mxd file
df = arcpy.mapping.ListDataFrames(mxd, dframe)[0]
### List layers
layers = arcpy.mapping.ListLayers(df)
### This is the shapefile in the template with preset symbology
inFeatures = os.path.join(gis_dir, "Q_" + dframe + ".shp")
print(inFeatures)
### make a copy
outFeatures = os.path.join(gis_dir, "output", "Q_" + dframe + "_" + year + ".shp")
arcpy.CopyFeatures_management(in_features = inFeatures, out_feature_class = outFeatures)
### join then do field calculator on the new feature
arcpy.MakeFeatureLayer_management(in_features = outFeatures, out_layer = 'new_lyr')
arcpy.MakeTableView_management(in_table = csv_file, out_view = 'csv_ec')
arcpy.AddJoin_management(in_layer_or_view = 'new_lyr', in_field = 'ID', join_table = 'csv_ec', join_field = 'ID')
arcpy.CalculateField_management('new_lyr',
"Q_" + dframe + "_" + year + ".Q", "!" + "Q_" + dframe + ".csv" + ".Q_new!",
"PYTHON")
### update data source
for lyr in layers:
if dframe in lyr.name:
lyr.replaceDataSource(os.path.join(gis_dir, "output", dframe), "SHAPEFILE_WORKSPACE",
os.path.splitext(ntpath.basename(outFeatures))[0])
### Update Layout View
arcpy.RefreshTOC()
arcpy.RefreshActiveView()
### save to new mxd file
new_mxd = "new_Q_" + year.upper() + ".mxd"
new_mxd_path = os.path.join(mxd_dir + new_mxd)
mxd.saveACopy(new_mxd)
### Clean up the MapDocument object by deleting it
del mxd
... View more
11-01-2019
06:41 PM
|
0
|
2
|
967
|
POST
|
How do you do Step 3 Darren? Extract by Polygon tool asks for the X- and Y-coordinates of the polygon rather than the shapefile. Thanks!
... View more
10-24-2019
04:06 PM
|
0
|
1
|
1300
|
POST
|
Thanks Darren! This is really helpful. Gonna give it a try
... View more
10-24-2019
03:10 PM
|
0
|
0
|
1300
|
POST
|
Thank you Curtis! I wasn't aware of that. Let me look at the attribute table
... View more
10-07-2019
11:08 AM
|
0
|
0
|
1144
|
POST
|
The workaround that I do for now is to add a Water Body layer on top to hide all small segments outside of the main canals. Still looking for a better solution for this problem.
... View more
09-05-2019
09:45 AM
|
0
|
0
|
1144
|
POST
|
Happy Friday everyone, I have a multi-line shapefile which was clipped from NHDPlusFlowline feature class (picture below and attached) https://www.usgs.gov/core-science-systems/ngp/national-hydrography/nhdplus-high-resolution The problem is there are so many tiny little lines together with the main canals. I want to find a good way to remove those small parts. I tried using Query Builder with “"LengthKM" >= 0.3” but it actually filtered out some small parts that belong to the main canals too Any tip to get this going? Thanks!
... View more
08-30-2019
07:58 AM
|
0
|
3
|
1233
|
POST
|
I finally did the interpolation in R and posted it here. Hope it helps! Spatio-temporal interpolation in R or ArcGIS? - Geographic Information Systems Stack Exchange
... View more
03-24-2019
11:36 AM
|
0
|
0
|
657
|
POST
|
The most updated version of HEC-GeoHMS (10.5.0.7) was published on Aug 30, 2017. I highly doubt there will be future versions developed for HEC-GeoHMS. Whoever wants to use it would have to stick with ArcGIS 10.5 assuming all the tools work as intended. There is a similar question on Research Gate where posters had to downgrade to older versions I am able to run Preprocessing, Project Setup, and Basin Pro When I run characteristics or parameters on GeoHMS, I get e… If you decide to downgrade, make sure to use "Save a copy" option so that you can open the MXD files with the older versions of ArcGIS Will ArcGIS 10.6 mxd open in 10.5? - Geographic Information Systems Stack Exchange Otherwise you'll have to use the MXD Doctor utility Using the MXD Doctor utility—Help | ArcGIS Desktop
... View more
03-24-2019
11:19 AM
|
1
|
0
|
4170
|
Title | Kudos | Posted |
---|---|---|
1 | 09-27-2012 02:26 PM | |
1 | 03-24-2019 11:19 AM |
Online Status |
Offline
|
Date Last Visited |
11-21-2020
06:12 PM
|