|
POST
|
A couple of things: 1) ListFeatureClasses requires some arguments ListFeatureClasses(wild_card, feature_type, feature_dataset), and you are not passing anything, so your shapefile list is empty. 2) As Joshua indicated, you are passing an empty string as the name. You need to alter to: for shape in shapelist: ... lyr.replaceDataSource(r"\\path\Set1Test", "SHAPEFILE_WORKSPACE", shape) Best Regards, Jim
... View more
05-19-2017
06:06 AM
|
0
|
7
|
3155
|
|
POST
|
This is an extremely vague question. There are 100's of books devoted to the subject of different map projections and their strengths and weaknesses. Start with this if you need the basics: What are map projections?—Help | ArcGIS for Desktop there are links for more specific information in the help document, as well. Regards, Jim
... View more
05-12-2017
07:57 AM
|
0
|
0
|
606
|
|
POST
|
Perhaps you need to use "Raster Dataset" instead of "Raster"? Best Regards, Jim
... View more
05-10-2017
11:31 AM
|
0
|
2
|
1222
|
|
POST
|
What does the script do? Does it reference any of the ESRI object library? Regards, Jim
... View more
05-09-2017
08:19 AM
|
0
|
2
|
1794
|
|
POST
|
After a second look, I know that arcMap typically uses ">=" instead of "=>", and the "=>" will generate problems with query expression. Perhaps that is preventing you from getting the results you expect?
... View more
04-20-2017
06:17 AM
|
1
|
0
|
2311
|
|
POST
|
Rather than stand-alone If statments, use the If...elseif...elseif format structure. Regards, Jim
... View more
04-19-2017
07:57 AM
|
1
|
0
|
2311
|
|
POST
|
I believe you are interested in the clip analysis tool. ArcToolbox>>Analysis Tools>>Extract>> Clip Best Regards, jim
... View more
03-28-2017
07:47 AM
|
1
|
0
|
2226
|
|
POST
|
Under the symbology tab for the layer, choose CLASSIFY and then under method, choose DEFINED INTERVAL, and set the interval to 1. Regards, Jim
... View more
03-22-2017
06:35 AM
|
2
|
1
|
1277
|
|
POST
|
I have not tested it with tins, but for shapefiles and rasters I use it often. I usually configure in model builder, but have populated a for loop in python to apply the symbology to a set of files as well. To do this, I get a list of layers in a map, and loop through them 1 at a time to apply the symbology. You could also define a function and pass the srcLay object and the data object. My concern is still with the object “data”. Is it a single raster or is it a list? If it is a list, you need to work with them 1 at a time inside a loop. Regards, Jim
... View more
03-21-2017
12:48 PM
|
1
|
1
|
2391
|
|
POST
|
It is difficult to pin this down without seeing the entire script. However, is "data" returning a single raster object, or a list of rasters in a directory location? Try hardcoding a single raster layer, and running that through. I have a similar script that I use without troubles: # Purpose: This funtion applies a lyr file to set symbology of a layer in the map. # This function takes 2 arguments: # 1) the layer to set symbolgy for # 2) the symbolgy source # Works very well from within a model import arcpy import sys import string import arcpy.mapping from arcpy import env arcpy.env.overwriteOutput = True # Local Variables from input Layer2Symbolize = sys.argv[1] lyrSource = sys.argv[2] # Process - Apply Symbology From Layer arcpy.ApplySymbologyFromLayer_management(Layer2Symbolize, lyrSource) Best Regards, Jim
... View more
03-21-2017
08:42 AM
|
0
|
3
|
2391
|
|
POST
|
out of curiosity, what happens if you set the CenterLongitude = 0.0 ?
... View more
03-17-2017
12:39 PM
|
0
|
0
|
1332
|
|
POST
|
Interesting question. I am assuming you wish to create this coordinate system for use in ArcGIS, so I am adding Melita Kennedy as a keyword here, as she will see it since it references her. She is Senior Product Engineer for Map Projections and Transformations at ESRI, and your best bet for a solution. Best Regards, Jim
... View more
03-17-2017
12:15 PM
|
0
|
4
|
1332
|
|
POST
|
It appears as though you could eliminate much of the issues by using the Dissolve tool on the FullName attribute to merge the mulitiple segments of the same road into a single feature. Best Regards, Jim
... View more
03-07-2017
10:43 AM
|
2
|
1
|
1905
|
|
POST
|
You are going to have to explain this better. Perhaps a screen capture, as well? Regards, Jim
... View more
03-03-2017
12:23 PM
|
0
|
0
|
1676
|
|
POST
|
ArcInfo level license: use the Near tool. Basic level license: perhaps start with a spatial join and go from there? Best Regards, Jim
... View more
03-02-2017
09:23 AM
|
1
|
0
|
6552
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 05-18-2026 10:51 AM | |
| 1 | 08-27-2014 12:45 PM | |
| 1 | 07-17-2013 09:53 AM | |
| 1 | 11-12-2013 05:35 AM | |
| 1 | 06-11-2024 05:53 AM |
| Online Status |
Offline
|
| Date Last Visited |
05-18-2026
10:27 AM
|