|
POST
|
I can only guess it wants you to pass them as parameters before the list rather than as magic numbers e.g buff_dist1 = 100 buff_dist2 = 200 buff_dist3 = 300 distanceList = [ buff_dist1' .... Also be aware your "riverbuffer" + ".shp" needs to change name during the iteration to reflect the input distance. Currently it will just overwrite with the same name. Use something like "Riverbuffer_" + str(distance) + "_ft.shp"
... View more
03-01-2020
03:03 AM
|
2
|
0
|
4941
|
|
POST
|
#set a list of 100, 200 and 300ft
#variables should be snake case btw...
distanceList = [100, 200, 300]
#buffer river by ieterating values supplied in distanceList
#for every number in distanceList, input this numbe as a variable in the
#buffer function below
#within the for loop, the 'distance' variable will represent a distance in your list
#If you dont pass this in with 'Feet' it will default to metres
#for the out_feature_class, I'll take this distance value, covert it to a string (str)
#and add it on to the end of the buffer name (concatenating).
for distance in distance_List:
out_feature_class = "riverbuffer_" + str(distance) + "_ft"
# turn your distance into a string with 'Feet' on the end
#e.g. "100 Feet"
distance_ft = str(distance) + " Feet"
arcpy.Buffer_analysis(in_features, out_feature_class, distance_ft)
print "buffer for distance " + distance_ft + " is done"
... View more
02-29-2020
12:00 PM
|
1
|
2
|
4941
|
|
POST
|
This will be very simple, however please provide more info such as the intro to your homework and your data.
... View more
02-29-2020
10:27 AM
|
0
|
1
|
4941
|
|
POST
|
Hi Benjamin, looks like you have everything set up. Merge your roads and streams/hydro buffers into one feature and run the dissolve tool. Use the erase tool to erase this buffer area from your possible sites. Using your trails buffer, use the intersect to to create a new final feature class which represents your suitable areas. NB. Can also use clip tool instead if desired. Merge—Help | ArcGIS for Desktop Dissolve—Help | ArcGIS for Desktop Erase—Help | ArcGIS for Desktop How Intersect works—Help | ArcGIS for Desktop
... View more
02-29-2020
08:41 AM
|
0
|
0
|
2102
|
|
POST
|
It wont take all the stretched values. If you set up the classified renderer on your symbology on your layer then drag and drop, it should bring in those ranges in the tool (close and reopen the tool window beforehand).
... View more
02-29-2020
06:03 AM
|
6
|
1
|
4145
|
|
POST
|
In the script turn the FC into a feature layer. Use a select by attribute to select each country row within a for loop. Append the results to a point FC.
... View more
02-28-2020
02:06 PM
|
0
|
0
|
1972
|
|
POST
|
Use Create Referenced Mosaic Dataset. If the files which get removed and replaced in the raster catalog keep the same names, you will only need to create this mosaic dataset once, then it will simply reference the paths in the catalog. Ie create it once and that's it.
... View more
02-28-2020
01:33 PM
|
0
|
0
|
895
|
|
POST
|
If you right click, properties, fields tab then at the bottom it may have a managed yes/no box. It looks like line 239 is deleting your old tiff and 243 is inserting the new one. I would copy all your tiffs into a new mosaic dataset, then set line 243 to copy new tiffs into the mosaic dataset. If this works be aware that line 239 will have to change to remove old tiffs from the mosaic dataset, or simply set 243 up to replace existing. I'd get someone to rewrite that whole script also.
... View more
02-28-2020
12:40 PM
|
1
|
2
|
3625
|
|
POST
|
We need to get terminology right. .tif is a tiff file outside a geodatabase. A raster dataset is a raster inside a geodatabase in FGDBR format. A Raster catalog is either unmanaged or managed (references raster file paths or contains the rasters respectively) and sits inside a geodatabase. This is also very outdated. A mosaic dataset sits inside a geodatabase and references rasters and is the recommended container.
... View more
02-28-2020
11:35 AM
|
1
|
4
|
3625
|
|
POST
|
Feature to point for each country to create centroud points. Make yourself aware of the output options in the help file. Also countries may have island territories and exclaves etc which will skew your points. Use select by location to find neighbouring countries for each country and point to line for each country selected. The actual process will be more involved than this simple explanation, and would best be scripted as it will need iteration.
... View more
02-28-2020
11:08 AM
|
0
|
2
|
1972
|
|
POST
|
Can you explain the steps of the code and what its doing/think it's doing. Does that code block work? I can see raster catalogues mentioned in the code. Full explanations of what the data is, looks like and what you want to achieve will help people to help you.
... View more
02-28-2020
07:28 AM
|
0
|
6
|
3625
|
|
POST
|
import arcpy
import os
sde_path = r'Database Connections\prvgisdb1-GIS-webadmin.sde'
arcpy.env.workspace = sde_path
datasets = arcpy.ListDatasets()
dataset_path_list = []
for dataset_name in datasets:
dataset_path = os.path.join(sde_path, dataset_name)
dataset_path_list.append(dataset_path)
all_fc_path_list = []
for dataset_path in dataset_path_list:
feature_classes = arcpy.ListFeatureClasses(dataset_path)
for fc in feature_classes:
fc_path = os.path.join(dataset_path, fc)
all_fc_path_list.append(fc_path)
for fc in all_fc_path_list:
fields = arcpy.ListFields(FC)
#for field in fields: #####
##### have a look at this link to finish it off. i hate field mappings
##### https://community.esri.com/thread/159184
... View more
02-27-2020
10:38 AM
|
1
|
1
|
5145
|
|
POST
|
Does it have to be from python? Creation of a mosaic dataset and importing rasters is an easy process and you can just provide a workspace. I'm sure it can be done in arcpy if needs be though.
... View more
02-26-2020
02:00 PM
|
1
|
1
|
3625
|
|
POST
|
Hi, only a desktop guy unfortunately. Do you have a processing extent setting which might overwrite this option?
... View more
02-26-2020
01:55 PM
|
0
|
1
|
3579
|
|
POST
|
That is actually an obvious and very good idea I haven't tried. I'll see if it works tomorrow!
... View more
02-26-2020
01:16 PM
|
0
|
0
|
1193
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 06-13-2025 01:08 PM | |
| 1 | 09-25-2025 03:19 PM | |
| 1 | 09-24-2025 02:35 PM | |
| 1 | 09-17-2025 02:42 PM | |
| 1 | 09-10-2025 02:35 PM |
| Online Status |
Offline
|
| Date Last Visited |
01-14-2026
12:10 PM
|