|
POST
|
Probably not the issue, but your column "Trap Series" has a space in it, which may throw a monkey wrench in the gears.
... View more
11-06-2015
10:38 AM
|
1
|
0
|
2887
|
|
POST
|
Can you provide line 602? It may be helpful to see the preceding line, as well.
... View more
11-06-2015
09:24 AM
|
0
|
3
|
3504
|
|
POST
|
The location is reported in coordinates matching your data frame settings, not the feature layer. Convince yourself by changing coordinate systems of the data frame and pay attention to the coordinates of your cursor at the bottom of the map. They will match, if your data frame properties are set to show the same units as the linear unit of the data frame coordinate system. For example, if your data frame CRS is in metres and your data frame display is metres, the coordinates at the bottom of the screen will match the coordinates in the identify pop-up.
... View more
11-05-2015
03:22 PM
|
1
|
0
|
1451
|
|
POST
|
What projection are you using? I'm guessing those numbers are in units of decimal degrees.
... View more
11-05-2015
12:49 PM
|
1
|
0
|
1980
|
|
POST
|
UPPER() applies to the entire string within the parentheses: e.g. UPPER('Desert Hills') = 'DESERT HILLS'
... View more
11-05-2015
09:44 AM
|
2
|
0
|
2766
|
|
POST
|
It looks like ArcGIS SQL uses UPPER() rather than UCASE(). Try: UPPER(FENAME) LIKE '%{}%'".format(pu.upper())
... View more
11-05-2015
09:31 AM
|
2
|
3
|
2766
|
|
POST
|
Force both sides to uppercase, then compare (untested): expression = "UCASE(FENAME) LIKE '%{}%'".format(pu.upper()) If pu = 'elm street', it would be turned to 'ELM STREET'. It would then match capitalized versions of records like 'Elm Street', 'ELM Street', 'eLm StReEt', etc., all of which would be treated like 'ELM STREET'.
... View more
11-05-2015
09:18 AM
|
0
|
5
|
2766
|
|
POST
|
Just a note about Andrew Lowerre's suggestion for Define Projection. The general wisdom is that you shouldn't use Define once a CRS has been defined, because you have correctly defined the CRS in the first place. In this case, you have "incorrectly" (on purpose) defined your CRS with the "wrong" name. It is perfectly reasonable to use Define to change the name. I suspect your script mirrors the Define tool - it would be interesting to see the run time comparison.
... View more
11-05-2015
09:15 AM
|
1
|
12
|
4511
|
|
POST
|
Beyond Rebecca Strauch, GISP's suggestion for prints and messages, the general Python methods for opening and writing files (e.g. text files) are found here.
... View more
11-05-2015
08:59 AM
|
0
|
0
|
2485
|
|
POST
|
This blog post promises to talk about it: If you are stuck at "if" – Part 4 – Does Selection Exists model example | ArcGIS Blog
... View more
11-04-2015
12:45 PM
|
1
|
2
|
2374
|
|
POST
|
Can you explain why incrementing adjustColumnCount doesn't work? It seems like you should be able to: 1.) make any changes to your legend 2.) record the current (original) legend elementWidth 3.) increment the number of columns using adjustColumnCount 4.) when the incremented legend elementWidth = the original legend elementWidth, you know the number of columns
... View more
11-03-2015
02:15 PM
|
0
|
0
|
1414
|
|
POST
|
I think you're probably looking for ListDatasets (or possibly, ListFeatureClasses, and if the dataset type is feature class, table, layer, or raster, then getCount. Can you rephrase "object" (feature?) and "object class" (feature class?) into ArcGIS terms (or perhaps this is an SDE thing)?
... View more
11-03-2015
01:06 PM
|
1
|
0
|
2619
|
|
POST
|
Please expand on this question. I'm not sure what you're asking.
... View more
11-03-2015
12:21 PM
|
0
|
2
|
2619
|
|
POST
|
Do you mean it calculated all the records in the calculated field to NULL, or did it remove all the fields outside the calculated field, or something else?
... View more
11-03-2015
09:48 AM
|
0
|
1
|
1036
|
|
POST
|
The following seems to work for me, merging all similarly named shapefiles (e.g. 'points.shp merged with 'folder/points.shp' merged with 'folder/folder/points.shp'), which I think is the point (but I could be wrong), not only merging those within the same directory. The only real difference was changing 'root,fc' to 'root,dir,fc'. By recording the 'dir' part within the path, it is not just one entry in the list, it is all unique paths. import arcpy, os
workspace = r'C:\junk\folder'
Dict = {}
for root, dirs, files in os.walk(workspace):
for dir in dirs:
arcpy.env.workspace = os.path.join(root,dir)
for fc in arcpy.ListFeatureClasses():
if not fc in Dict:
Dict[fc] = []
Dict[fc].append(os.path.join(root,dir,fc))
else:
Dict[fc].append(os.path.join(root,dir,fc))
for key in Dict:
output = os.path.join(workspace,key[:-4]) + '_merge'
arcpy.Merge_management(Dict[key], output)
... View more
11-03-2015
09:09 AM
|
1
|
2
|
6909
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 11-25-2015 01:51 PM | |
| 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 |
| Online Status |
Offline
|
| Date Last Visited |
07-15-2023
12:11 AM
|