|
POST
|
As you've seen, there are many ways to add Z-awareness to your data by creating a new layer (in fact, you can do this with essentially any geoprocessing tool by changing the Z-flag environment to Enabled), but I don't believe it's possible to add Z-awareness to a feature class, in place.
... View more
05-13-2015
01:05 PM
|
1
|
2
|
3017
|
|
POST
|
I can't answer your question with a number, but because layers themselves are little more than shells pointing to data with notes about things like symbology, the number should be virtually unlimited. With that said, if you find yourself using a map with hundreds or thousands of layers, you may find that the shear volume of data makes the map unusable. Also, you will regret having a "map of everything" when your mxd corrupts. My advice is to only include the layers you need. If you're really keen, I could set you up with a script that would attempt to add a million copies of a layer to test it out.
... View more
05-12-2015
04:15 PM
|
3
|
1
|
2563
|
|
POST
|
You've calculated percent slope (0.2%). It's hard to tell what your attribute table is supposed to be demonstrating, but are you sure you haven't calculated slope there in degrees?
... View more
05-12-2015
10:33 AM
|
1
|
3
|
2204
|
|
POST
|
I thought you had to do it vertex by vertex, too, but this post seems to disagree: https://arcpy.wordpress.com/2012/11/15/shifting-features/ It shifts geometry all as one.
... View more
05-11-2015
04:27 PM
|
2
|
2
|
4069
|
|
POST
|
Have you tried Building Overviews? I can't explain why it only happens for the last three rasters, but overviews generally control how your zoomed out (small scale) mosaic dataset will be displayed.
... View more
05-11-2015
01:49 PM
|
0
|
3
|
2019
|
|
POST
|
Ignoring the fact that you are trying to create a line from a single point (which surprisingly works), does the line feature class contain a feature at OBJECTID = 4?
... View more
05-11-2015
01:34 PM
|
0
|
5
|
4069
|
|
POST
|
Make a copy of your index layer and display it how you would want a single highlighted feature to be shown. Then, set a Page Definition Query to filter out only the feature in the copied layer that matches the current index feature.
... View more
05-11-2015
09:55 AM
|
1
|
1
|
1614
|
|
POST
|
For better help, please refer to this link for posting code blocks that will maintain your indentation.
... View more
05-11-2015
09:52 AM
|
0
|
0
|
915
|
|
POST
|
Check the capitalization of outLayer vs. OutLayer. These are two different things according to Python. Try: arcpy.SetParameter(1, outLayer)
... View more
05-11-2015
09:45 AM
|
1
|
1
|
3845
|
|
POST
|
Check the help page. Look at the example. Note the quotes, particularly around the overlap type. Also, please review how to post code blocks on GeoNet so we don't have to download a potentially harmful Python script. Here is the uncorrected script, for future reference: import arcpy, os
arcpy.env.workspace = "F:\\GEO443\\Final"
arcpy.env.overwriteOutput = True
brown = "F:\\GEO443\\Final\\BRO_ADDS\\BRO_ADDS.shp"
green = "F:\\GEO443\\Final\\GRE_ADDS\\GRE_ADDS.shp"
hancock = "F:\\GEO443\\Final\\HAN_ADDS\\HAN_ADDS.shp"
logan = "F:\\GEO443\\Final\\LOG_ADDS\\LOG_ADDS.shp"
muskingum = "F:\\GEO443\\Final\\MUS_ADDS\\MUS_ADDS.shp"
try:
## CreateFileGDB_management (out_folder_path, out_name, {out_version})
## execute create file .gdb
#arcpy.CreateFileGDB_management("F:\\GEO443\\Final","county.gdb")
print "file GDB created"
##FeatureClassToGeodatabase_conversion (Input_Features, Output_Geodatabase)
#arcpy.FeatureClassToGeodatabase_conversion([brown,green,hancock,logan,muskingum],"F:\\GEO443\\Final\\county.gdb")
print "shape files moved to gdb"
arcpy.env.overwriteOutput = True
arcpy.env.workspace = "F:\\GEO443\\Final\\county.gdb"
kroger_selection = ('"COMMENT" = \'KROGER\'')
fcs = arcpy.ListFeatureClasses()
for fc in fcs:
print fc
print ""
fc_kroger = fc + "kroger"
fc_lyr = arcpy.MakeFeatureLayer_management(fc,fc_kroger)
print "Feature layer created"
## SelectLayerByAttribute_management (in_layer_or_view, {selection_type}, {where_clause})
arcpy.SelectLayerByAttribute_management(fc_lyr,"NEW_SELECTION",kroger_selection)
arcpy.CopyFeatures_management(fc_lyr,fc + "krogerselection")
print "Kroger Selected"
## Buffer_analysis (in_features, out_feature_class, buffer_distance_or_field, {line_side}, {line_end_type}, {dissolve_option}, {dissolve_field})
fcs = arcpy.ListFeatureClasses("*krogerselection")
for fc in fcs:
print fc
arcpy.Buffer_analysis(fc, fc + "Buff", "1 Mile")
print "Features Copied"
print "Buffer Created"
## SelectLayerByLocation_management (in_layer, {overlap_type}, {select_features}, {search_distance}, {selection_type})
fcs = arcpy.ListFeatureClasses("*krogerselection")
for fc in fcs:
print fc
fc_location = fc + "location"
fc_Addr = arcpy.MakeFeatureLayer_management(fc, fc_location)
print "location fc created"
arcpy.SelectLayerByLocation_management(fc_Addr, WITHIN, fc + "Buff")
arcpy.CopyFeatures_management(fc_Addr, fc + "addresses")
print "addresses selected"
except:
print arcpy.GetMessages(2) Apparently, this is a hard assignment.
... View more
05-11-2015
09:30 AM
|
5
|
0
|
1011
|
|
POST
|
Here's what your for-loop says: - For each feature class: - make a feature layer - make a selection in the feature layer - copy the feature layer somewhere - buffer the feature class
... View more
05-08-2015
11:49 AM
|
1
|
4
|
2722
|
|
POST
|
fcList is a list, but fc is a feature class name. Buffer takes a feature class name, not a list. If you're not sure what type of object something is, do something like: print type(fcList)
print type(fc)
... View more
05-08-2015
11:30 AM
|
1
|
17
|
4753
|
|
POST
|
The for loop runs once per feature class it encounters. If you want to do something once per feature class, put it inside the loop.
... View more
05-08-2015
10:45 AM
|
0
|
0
|
4753
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 08-30-2013 02:22 PM | |
| 1 | 04-12-2011 11:19 AM | |
| 1 | 09-17-2021 09:43 AM | |
| 1 | 04-04-2012 12:05 PM | |
| 2 | 07-16-2020 11:31 AM |
| Online Status |
Offline
|
| Date Last Visited |
07-15-2023
12:11 AM
|