|
POST
|
I may not be fully understanding what you are trying to do, but if you have a DEM you could run it through Slope—Help | ArcGIS for Desktop to get a slope raster. Then run Zonal Statistics as Table—Help | ArcGIS for Desktop using the slope and wetland polygon layer. You could then Join Field—Data Management toolbox | ArcGIS for Desktop with the zonal statistics table to your wetland polygon and then run Buffer—Help | ArcGIS for Desktop based on the mean slope field.
... View more
12-02-2015
08:07 AM
|
1
|
4
|
3113
|
|
POST
|
What type of attribute fields do you have in your polygon layer? How are you analyzing the groundwater table elevation? Do you have a mean slope field for each polygon?
... View more
12-02-2015
07:03 AM
|
0
|
6
|
3113
|
|
POST
|
This is definitely a point feature class and not a table you are working with? I'm not sure why the Shape field would not be showing. Are you positive that there are duplicate points with X,Y,Z data? Have you tried running the tool with only the X and Y fields checked?
... View more
12-02-2015
06:43 AM
|
1
|
7
|
2091
|
|
POST
|
This appears to be a limit for geodatabase tables. I just generated a geodatabase table and tried to insert 2000 random rows and it stopped at 1000, but when I did the same insert cursor on a dBase table not in a geodatabase all 2000 rows were inserted.
... View more
12-02-2015
05:24 AM
|
2
|
0
|
3275
|
|
POST
|
Victor I think you might be looking for collect value to collect all rasters you iterate through in a folder first. Try something like this I also have a calculate value tool to remove any periods and remove ".hdf" for the output name, but if your tool works without using that then you don't have to worry about it. Also, you had the tool set up to delete the Mosaic Folder when the tool finished was that intentional? I set it up to delete the raster dataset after the raster calculator output instead of the whole folder.
... View more
12-01-2015
11:24 AM
|
1
|
1
|
2177
|
|
POST
|
Would you be able to upload your combined tool to this thread so we can try to reproduce the error and take a look at what is happening?
... View more
12-01-2015
06:24 AM
|
0
|
3
|
2177
|
|
POST
|
I'm not sure if there is an easy way to use the cursors in an ArcSDE geodatabase environment. You could look at this forum here that shows a work around. If you cannot get that figured out you may want to attempt Luke Pinner's suggestion below.
... View more
11-24-2015
10:05 AM
|
0
|
0
|
2513
|
|
POST
|
Are you working from an SDE geodatabase? In either case when I see this error I find that opening a da Editor helps: import arcpy
workspace = # path to you workspace
fc = # the path to your feature class
with arcpy.da.Editor(workspace) as edit:
with arcpy.da.UpdateCursor(fc,["Photo1","Photo2","Photo3","Video"]) as update:
for row in update:
if row[0] is not None:
row[0] = row[0].replace("\\vancouver.root.local\\cityapps\\GraniteXP", "M:\\GraniteXP")
if row[1] is not None:
row[1] = row[1].replace("\\vancouver.root.local\\cityapps\\GraniteXP", "M:\\GraniteXP")
if row[2] is not None:
row[2] = row[2].replace("\\vancouver.root.local\\cityapps\\GraniteXP", "M:\\GraniteXP")
if row[3] is not None:
row[3] = row[3].replace("\\vancouver.root.local\\cityapps\\GraniteXP", "M:\\GraniteXP")
update.updateRow(row)
... View more
11-24-2015
03:54 AM
|
0
|
2
|
2513
|
|
POST
|
It is a lot faster and easier to code this type of processing with an update cursor. something like this would work for the code example you gave: import arcpy
fc = #the path to your feature class
with arcpy.da.UpdateCursor(fc,["Photo1","Photo2","Photo3","Video"]) as update:
for row in update:
if row[0] is not None:
row[0] = row[0].replace("\\vancouver.root.local\\cityapps\\GraniteXP", "M:\\GraniteXP")
if row[1] is not None:
row[1] = row[1].replace("\\vancouver.root.local\\cityapps\\GraniteXP", "M:\\GraniteXP")
if row[2] is not None:
row[2] = row[2].replace("\\vancouver.root.local\\cityapps\\GraniteXP", "M:\\GraniteXP")
if row[3] is not None:
row[3] = row[3].replace("\\vancouver.root.local\\cityapps\\GraniteXP", "M:\\GraniteXP")
update.updateRow(row)
... View more
11-23-2015
12:19 PM
|
0
|
5
|
2513
|
|
POST
|
You will want to use arcpy.da.walk and list datasets with a "Feature" dataset type filter and then get a list of polylines using list feature classes with a "Polyline" filter. Then for each polyline you can run Copy Features to copy into your new geodatabase. The os module would come in handy. Something like this would work, but you can adapt it to what you need: import arcpy, os
from arcpy import env
env.workspace = "Your geodatabase path"
outputGDB = "The new geodatabase path"
for gdb, datasets, features in arcpy.da.Walk(env.workspace):
for dataset in datasets:
for feature in arcpy.ListFeatureClasses("Polyline_*","POLYLINE",dataset):
arcpy.CopyFeatures_management(feature,os.path.join(outputGDB,"Polyline_"+dataset))
... View more
11-20-2015
06:45 AM
|
2
|
2
|
8804
|
|
POST
|
As long as the end points are properly snapped and the line loops back in on itself such as a closed circle the feature to polygon tool will use the vertices of the line to generate a polygon having the perimeter of your line feature and filling the area inside the closed line feature, if that makes sense. The image below shows three line segments that were snapped at the end points, but not merged or dissolved and the pink filled area is the polygon produced from these line features.
... View more
11-20-2015
05:35 AM
|
0
|
1
|
373
|
|
POST
|
I'm not sure what you mean by a "break". Is there a visible break? If it appears to be snapped correctly have you tried to run feature to polygon to see if it generates a correct polygon?
... View more
11-20-2015
05:00 AM
|
0
|
3
|
2081
|
|
POST
|
Ahh okay yeah I've had to do that before it's a pain. I would just make sure you have snapping on specifically end point snapping and then select the lines and merge them periodically using the editor toolbar.
... View more
11-19-2015
11:04 AM
|
0
|
5
|
2081
|
|
POST
|
Do you have a shapefile of the islands or are you just trying to draw a polygon around the islands as seen on aerial imagery? Is there a reason why zooming way out and drawing a single polygon isn't working? There are several standard tools in the editor toolbar for this. There is a merge tool and an explode tool that allows you to merge multiple features. You can then use the explode tool to see if more than one segment exists and fill in any missing segments. You could then use the feature to polygon tool. Another way to do it is once you are done drawing your lines you could use the dissolve tool. To make sure you didn't miss any sections you could use the multipart to single part. If that tool turns out more than one row then you know you have a section that you need to fill in. After you get a closed polyline feature you can run the feature to polygon tool mentioned earlier.
... View more
11-19-2015
10:51 AM
|
1
|
1
|
2081
|
|
POST
|
You could use either arcpy walk or os.walk to cycle through different workspaces. If all the shapefiles are in one workspace you could just set your environment workspace and iterate through a list of features. For each feature in the list define projection and then you could run feature to polygon . Each link above has example codes if you scroll to the bottom of the page as well as proper syntax and parameter input types. Let us know if you need help setting up the basic code structure.
... View more
11-19-2015
08:08 AM
|
2
|
2
|
1098
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 01-26-2016 10:40 AM | |
| 1 | 10-05-2015 09:10 AM | |
| 1 | 01-19-2016 06:01 AM | |
| 1 | 01-06-2016 05:27 AM | |
| 1 | 12-09-2015 05:59 AM |
| Online Status |
Offline
|
| Date Last Visited |
05-01-2024
04:58 PM
|