|
POST
|
If you want the max of F2 and F4, in field calculator: max(!F2!,!F4!) Or updateCursor (untested): with arcpy.da.UpdateCursor(fc,['F2','F4','MX']) as cursor:
for row in cursor:
row[2] = max(row[0],row[1])
cursor.updateRow(row)
... View more
03-13-2017
11:22 AM
|
2
|
1
|
15659
|
|
POST
|
I suspect it's just a matter of how the SQL interprets the grouping of your terms, which is why you should always force your grouping with parentheses. I suspect in your original attempt ("HWY_SYMBOL" = '25' OR "HWY_SYMBOL" = '70' AND "FID" <> 321), it was interpreted as: "HWY_SYMBOL" = '25' OR ("HWY_SYMBOL" = '70' AND "FID" <> 321) Since FID=321 is HWY_SYMBOL='25', all labels will show. I think you could change your original to the following: ("HWY_SYMBOL" = '25' OR "HWY_SYMBOL" = '70') AND "FID" <> 321 This will first filter the HWY_SYMBOL to either '25' or '70', and from those, remove FID=321.
... View more
03-08-2017
02:50 PM
|
2
|
1
|
3029
|
|
POST
|
I take it that feature you want to remove the label from is "FID" = 321?
... View more
03-08-2017
01:52 PM
|
0
|
3
|
3029
|
|
POST
|
The short answer is yes, you can append features from in_memory to a GDB. There is something else going on. Are they different feature types, or something else obviously different between them?
... View more
03-07-2017
11:27 AM
|
1
|
0
|
1757
|
|
POST
|
You're specifying a projection when your data are unprojected. Use a geographic coordinate reference system and then project.
... View more
03-03-2017
02:41 PM
|
2
|
2
|
1868
|
|
POST
|
Please show the tool dialog where you've filled in the parameters for Display XY Data.
... View more
03-03-2017
02:37 PM
|
0
|
4
|
1868
|
|
POST
|
Probably because your data are in decimal degrees but you're specifying a projection in Display XY data...? Or, you've mixed up X and Y. Can you show the XY data dialog?
... View more
03-03-2017
02:29 PM
|
0
|
8
|
1868
|
|
POST
|
Glad it worked out in the end. You can collect the full path into a list like this: import os
workspace = arcpy.env.workspace = r'C:\junk'
shps = [os.path.join(workspace,file) for file in arcpy.ListFeatureClasses('*')] Basically, as it builds the list, it joins the workspace to the file name.
... View more
03-03-2017
02:00 PM
|
0
|
0
|
7040
|
|
POST
|
You collect the name (not full path) of the shapefiles in FolderA (i.e. 'FolderA\FileA'). Then, collect a list of FolderB's. Then, try to refer back to the first file (in_template_dataset), after setting the workspace to FolderB, so it is looking for FileA in FolderB, when it should be looking for FileA in FolderA, unless it just so happens that there is also a file with name FileA in FolderB.
... View more
03-03-2017
01:19 PM
|
0
|
3
|
7040
|
|
POST
|
I haven't heard of that, and I'm using Maplex with a simple label expression right now in ArcMap 10.4.1. Is there anything unusual about your expression? Are you sure you're using the correct parser?
... View more
03-02-2017
02:34 PM
|
1
|
2
|
1113
|
|
POST
|
What exactly do you mean by "lock"? For example, you can set an mxd file to read only through file explorer to disallow other users from saving over it. Or, do you mean you want to disallow a user from making any changes to an open mxd (I doubt that's completely possible)? If you export the data driven pages to PDF, is the scale correct, or are the data driven page extents not set correctly? I'll add, my current solution to making sure no one edits my maps is that I've got a completely separate drive to house all GIS data/maps, but I'm almost a one-person GIS department.
... View more
03-02-2017
01:19 PM
|
1
|
2
|
3918
|
|
POST
|
I think you're just having issues with grouping. This is what you had in the first example, which is passing 3 parameters to filter (filter(None,Field1,Field2)), which only takes 2 parameters: ' '.join(filter(None, [ABANDONMENTDATE][-2:], [ABANDONMENTORDER])) I think it should be like this (filter(None,(Field1,Field2))😞 ' '.join(filter(None, ([ABANDONMENTDATE][-2:], [ABANDONMENTORDER])))
... View more
03-02-2017
09:07 AM
|
0
|
1
|
3395
|
|
POST
|
I'm going around in circles trying to decide what you're trying to do. Are you trying to improve upon the existing methods of interpolating LAS point cloud points to DEM/DTM surfaces, or just end up with such a surface? The input for the interpolations you mention are points, so I would suggest converting your LAS points (or a subsample) to points, although doing so directly may be tricky using only ArcGIS, if it's possible at all. The beauty of the LAS dataset is that you don't have to deal with the entire point cloud, since it's been interpolated already (or at least it will be once you export it to a raster).
... View more
03-01-2017
02:14 PM
|
0
|
1
|
1808
|
|
POST
|
Actually, [ABANDONMENTDATE][-2:] should work as a date or string. Just remove the parentheses immediately surrounding it.
... View more
03-01-2017
01:35 PM
|
1
|
3
|
3395
|
|
POST
|
Is [ABANDONMENTDATE] a string or date type? The slice won't work with date, but should work with string. You may need to remove the parentheses immediately around [ABANDONMENTDATE][-2:] .
... View more
03-01-2017
01:23 PM
|
0
|
5
|
3395
|
| 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
|