|
POST
|
Why not use the Add Surface Information tool in the 3D Analyst toolbox?
... View more
07-26-2013
09:07 AM
|
0
|
0
|
319
|
|
POST
|
The proper way would be to learn-use Hec-Ras (http://www.hec.usace.army.mil/software/hec-ras/). If you just want to dabble you could experiment with these (unverified-not QA'd) detrending tools available here: ftp://lnnr.lummi-nsn.gov/GIS_Scripts/ I don't have any help documentation outside the toolbox tools so feel free to write if you need help. geraldg@lummi-nsn.gov
... View more
07-15-2013
11:59 AM
|
0
|
0
|
413
|
|
POST
|
Here are a couple of scripts that have not given me any problems, are not constrained by license levels, and they look through the root folder and any sub-folders. You will need to download a couple of python libraries but it is all spelled out in the readme. The read me, Python code, and the ESRI toolbox are here: ftp://lnnr.lummi-nsn.gov/GIS_Scripts/CreateShapefilePointsFromGeotaggedPhotos/
... View more
06-07-2013
07:08 AM
|
0
|
0
|
3183
|
|
POST
|
I have a feature class of topologically correct river features. The line???s are single part features, they have the correct flow direction, and each line end is snapped to its downstream recipiant. I have created routes using the linear referencing tools. I exported the end nodes, and used the end node and the route to calculate river mile. The trouble is... In about half of the cases the distance along the line is zero because the linear referencing tools are getting a distance from the line that produced the end node. What I want is to get the distance from the downstream intersecting line (which will be greater than zero!). How do I accomplish this? I have tried using the line work to linear reference using the routes, but this just returns a start distance of zero, and an to distance that is equal to the line distance and not the distance along the line it intersects. Any help would be appreciated.
... View more
06-06-2013
12:45 PM
|
0
|
1
|
676
|
|
POST
|
This tool works in 10 and creates a new feature class of points at equal distances along a line. The input data needs to be in a projected coord sys. ftp://lnnr.lummi-nsn.gov/GIS_Scripts/CreatePointsAlongALine/ Good Luck
... View more
06-03-2013
01:10 PM
|
0
|
0
|
941
|
|
POST
|
Yes, I can start the Service Manager and if I go into Rest I see this: {
"currentVersion": 10.11,
"folders": [
"Utilities"
],
"services": [
{
"name": "SampleWorldCities",
"type": "MapServer"
}
]
}
... View more
03-14-2013
09:05 AM
|
0
|
0
|
654
|
|
POST
|
Even though I am new to Server, I have successfully installed ArcGIS for Server 10.1, register folders, and publish a simple service. Then I installed the ArcGIS Server Silverlight viewer. Now I can no longer publish services or view services including the default World Cities service. The computer just hangs when I try to publish. I cannot get the Silverlight app to create a web map. I have restarted the server but this has not helped. The IS department assures me that we meet the specifications for the software. Any advice is appreciated.
... View more
03-11-2013
07:15 AM
|
0
|
5
|
755
|
|
POST
|
I am trying to automate the conversion of several geodatabase feature classes to shapefile. The code below produces a shapefile in the output directory but then it throws this error.... PYTHON ERRORS:
Traceback info:
File "C:\gtemp\ShareLummiData.py", line 12, in <module>
arcpy.FeatureClassToShapefile_conversion(LummiReservation, OutputDirectory)
Error Info:
object of type 'dict' has no len()
ArcPy ERRORS: I would like to duplicate this process for several feature classes. I could put an error handler here to catch the error in ESRI's code but if I do, I will not catch real errors. Any ideas would be helpful. try:
import arcpy, sys, traceback
OutputDirectory = r"C:\gtemp\aa"
LummiReservation = r"Z:\Data\Boundaries\Administrative\Lummi.gdb\TribalBoundaries\LummiReservation"
arcpy.FeatureClassToShapefile_conversion(LummiReservation, OutputDirectory)
except arcpy.ExecuteError:
# Get the tool error messages
msgs = arcpy.GetMessages(2)
# Return tool error messages for use with a script tool
arcpy.AddError(msgs)
# Print tool error messages for use in Python/PythonWin
print msgs
except:
# Get the traceback object
tb = sys.exc_info()[2]
tbinfo = traceback.format_tb(tb)[0]
# Concatenate information together concerning the error into a message string
pymsg = "PYTHON ERRORS:\nTraceback info:\n" + tbinfo + "\nError Info:\n" + str(sys.exc_info()[1])
msgs = "ArcPy ERRORS:\n" + arcpy.GetMessages(2) + "\n"
# Return python error messages for use in script tool or Python Window
arcpy.AddError(pymsg)
arcpy.AddError(msgs)
# Print Python error messages for use in Python / Python Window
print pymsg + "\n"
print msgs
... View more
03-07-2013
11:29 AM
|
0
|
1
|
728
|
|
POST
|
Add surface information in the 3d analyst toolbox will populate your line nodes with z values.
... View more
01-10-2013
11:52 AM
|
0
|
0
|
730
|
|
POST
|
If you know the elevation of the 20 foot section of the top of the dam and its location, then create a polygon of the 20 foot piece. Create buffers at 3 meter intervals to this polygon. Populate the attribute table of the buffer rings with the appropriate descending values. Convert the buffers to a raster using the descending elevation values. Use the con function to alter your new damn model. If the dam pixel is higher in elevation than the surface model then keep it, otherwise replace the pixel with NoData. The result should be a model of your dam.
... View more
12-18-2012
02:26 PM
|
0
|
0
|
452
|
|
POST
|
This script my get you were you want to be.... http://arcscripts.esri.com/details.asp?dbid=14349
... View more
08-10-2012
08:37 AM
|
0
|
0
|
905
|
|
POST
|
Use one line as the source to create a Euclidean distance raster then use the other line with either zonal statistics or add surface information.
... View more
08-01-2012
06:42 AM
|
0
|
0
|
646
|
|
POST
|
If a.tif is georeferenced there should be a a.twf (world file) associated with it. If b.tif has the same cell size and extent you can save a.twf as a new file b.twf in the same location as b.tif. Then use shutil to copy the file.... import shutil shutil.copyfile(r"C:\gtemp\a.tfw", r"C:\gtemp\aa.tfw")
... View more
07-17-2012
07:58 AM
|
0
|
0
|
1215
|
|
POST
|
FYI, the Python example for the hillshade tool is incorrect (see link below) and returns an error "name 'HillShade' is not defined". The example shows.... outHillShade = HillShade(inRaster, azimuth, altitude, modelShadows, zFactor) When it should be... outHillShade = Hillshade(inRaster, azimuth, altitude, modelShadows, zFactor) http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Hillshade/009z000000v0000000/
... View more
06-12-2012
07:42 AM
|
1
|
0
|
664
|
|
POST
|
I have a python tool that uses a select by attribute to get each record of a feature class and then feed that selection into a zonal statistics function. I thought there was a way to use a search cursor and something like row.Shape to select each row, then feed that row into another tool, thereby speeding up the code. I can't find any example of using a cursor to select each row then use that selection as in input parameter into another function. Help please.
... View more
05-18-2012
07:29 AM
|
0
|
2
|
1016
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 06-26-2025 08:30 AM | |
| 1 | 10-29-2024 03:51 PM | |
| 1 | 06-26-2024 08:32 AM | |
| 1 | 12-06-2023 11:53 AM | |
| 1 | 06-12-2012 07:42 AM |
| Online Status |
Offline
|
| Date Last Visited |
4 weeks ago
|