|
POST
|
When viewing SDE connections, the computer sometimes has ":10.2.2.1089" or ":10.2.2.1087" appended to the end. Anyone know what that is about. I'm on ArcGIS Desktop 10.2.2 and SDE 10.0. In arcpy.ListUsers(), it's the ClientName property. In the SDE.PROCESS_INFORMATION table, it's the NODENAME field. In Geodatabase Administration, it's the Client Machine value. It looks like Only the Direct Connects have it; Application Server connections are regular. Does anyone know what is this extra stuff is and if there is a way to make it go away?
... View more
01-28-2016
01:53 PM
|
0
|
0
|
2415
|
|
POST
|
I think this issue has something to do with the view being created in ArcCatalog but not being "registered" with SDE. I had to dig up an ArcGIS 10.0 machine and use SDE command line to create the view.
... View more
01-28-2016
08:47 AM
|
0
|
0
|
1469
|
|
BLOG
|
Great examples there, thanks for sharing. What are your thoughts on using os.path for this stuff?
... View more
01-26-2016
07:05 AM
|
1
|
0
|
8210
|
|
DOC
|
Here are three examples I found so far. Ironically, I think this snippet from my code is closest to what I was thinking but I still feel like there's something missing. Re: Writing Unique Attribute Field Values to csv # Get list of usable field names (exclude OID and SHAPE fields) fieldNames = [ f.name for f in arcpy.ListFields(inputTable) if f.type != "Geometry" and f.editable == True ] Re: Return system fields Another way of accessing standard fields (not determining the name though) is using tokens in for instance an arcpy.da.SearchCursor. Some examples are: SHAPE@ (A geometry object for the feature.) SHAPE@AREA (A double of the feature's area.) SHAPE@LENGTH (A double of the feature's length.) OID@ (The value of the ObjectID field.) Re: Spatial join - distance from outline def getAllFieldsWithoutGeometryFields(fc): flds = [fld.name for fld in arcpy.ListFields(fc)] desc = arcpy.Describe(fc) fld_length = desc.lengthFieldName fld_area = desc.areaFieldName fld_shape = desc.shapeFieldName if fld_length in flds: flds.pop(flds.index(fld_length)) if fld_area in flds: flds.pop(flds.index(fld_area)) if fld_shape in flds: flds.pop(flds.index(fld_shape)) flds.insert(0, 'SHAPE@') return flds
... View more
01-25-2016
03:51 PM
|
0
|
0
|
18679
|
|
DOC
|
Partially. I know about the field.editable property, but I'm looking for what properties you check for exclusions if you wanted to dynamically open an update cursor on a table using ListFields(). I know I've seen a few cases where people have posted code with a neat little function that returns the "valid" fields. Sorry, I wish I could explain it better.
... View more
01-25-2016
02:00 PM
|
0
|
0
|
18679
|
|
POST
|
I see you analyze Datasets on all your tables, can someone claify if this is necessary? I talked to Esri support to try and confirm I was on the right track with my process here. I explained very clearly I'm doing the rebuild and analyze on every table and feature class. They confirmed that I was doing things correctly but noted that it could take a long time to do everything. However, they did't say I should not do it. I notice you run your rebuild index BEFORE you run the Analyze Datasets, is there a reason you have decided to run in this order? I think I did it in that order only because that's the way the original documentation did it. Somewhere in the documentation it also mentioned possibly running one (or both of these) before the compress as well as after, so it's a little confusing in which scenarios you would do something like that. EDIT: I just stumbled across this post that recommends running analyze datasets before reconcile/post/compress. While this script has been running successfully for a while now, I'm noticing that it takes about 12 minutes longer to complete every night. This has been a steady increase and it now takes hours to finish where it originally took less than 30 minutes. My plan is to adjust the script so it will only rebuild and analyze the tables that were modified. Here is a sample query (Oracle) I will adjust and simplify to find the modified tables. SELECT TR.OWNER || '.' || TR.TABLE_NAME AS LAYER_NAME,
MM.REGISTRATION_ID,
COUNT(distinct(S.STATE_ID)) AS AFFECTED_STATES,
COUNT((SL.LINEAGE_ID)) AS LINEAGE_LENGTH
FROM SDE.STATES S
INNER JOIN SDE.MVTABLES_MODIFIED MM
ON S.STATE_ID = MM.STATE_ID
JOIN SDE.TABLE_REGISTRY TR
ON MM.REGISTRATION_ID = TR.REGISTRATION_ID
JOIN SDE.STATE_LINEAGES SL
ON S.LINEAGE_NAME = SL.LINEAGE_NAME
GROUP BY TR.OWNER, TR.TABLE_NAME, MM.REGISTRATION_ID
ORDER BY LAYER_NAME;
... View more
01-25-2016
01:56 PM
|
1
|
14
|
8544
|
|
DOC
|
I know I've seen a few posts where people use a little function to get the "valid" editable fields of a table of feature class. It will at least exclude fields that are not editable (to exclude ObjectID, GlobalID, etc), but I know it did a couple other exclusions. Do you know what I'm referring to? I'd like to see that snippet
... View more
01-25-2016
01:41 PM
|
0
|
0
|
18679
|
|
POST
|
How about something like this? s ="POWERS 1C-23HZ"
s2 = "RATTLER4C-34HZ"
for string in (s, s2):
string = string.replace(" ", "") ## Drop spaces (optional)
print string
string_builder = ""
field_vals = None
for i in string:
if i.isdigit():
field_vals = (
string[:len(string_builder)], ## string before number
string[len(string_builder):] ## string after number
)
print field_vals
break
else:
string_builder += i I am not clear on how you want to use field calculator to write to two output fields, so I'll let you clarify your intent or adapt this logic to your specific need. You'll at least need to get rid of the first three lines. EDIT: Xander and Darren beat me to it!
... View more
01-14-2016
03:56 PM
|
2
|
0
|
677
|
|
POST
|
If you're just in a file geodatabase and ArcMap, the Esri Attribute Assistant add-in may work for you. A traditional database trigger would require an RDBMS (like SQL Server or Oracle). Not sure about how to accomplish this with ArcGIS Online or Collector. This reply from Christopher Blinn has some helpful alternatives.
... View more
01-14-2016
08:21 AM
|
0
|
0
|
844
|
|
POST
|
According to the documentation: IE 9 and higher Edge Firefox Chrome Safari iOS Safari Android Browser Chrome for Android Internet Explorer 9 is supported but has the following limitations. Additional browser limitations are also noted below. You cannot view streaming feature layers in the map viewer. Within the My Organization > Edit Settings > Open Data page, the Your Open Data Sites list does not appear. You cannot open metadata XML files or save local copies of your current metadata document in the built-in metadata editor. You cannot add CSV items (in My Content) as web layers in the map. This limitation applies to IE 9 and Safari. You cannot use the scene viewer. This limitation applies to IE 9 and 10. If the map contains feature layers, labels on the following basemaps may appear hidden: Imagery with Labels, Dark Gray Canvas, Light Gray Canvas, World Oceans, and Terrain with Labels. This limitation applies to IE 9 and 10.
... View more
01-06-2016
10:47 AM
|
1
|
1
|
1356
|
|
POST
|
Perhaps you'll find some helpful information here. Everything you ever wanted to know about ordering in mosaic datasets | ArcGIS Blog Understanding the mosaicking rules for a mosaic dataset—Help | ArcGIS for Desktop I also found that the Cell Size affected the mosaicking rules.
... View more
12-24-2015
01:03 PM
|
1
|
0
|
2247
|
|
POST
|
You can actually condense this a little by using enumeration instead of a separate cnt variable. Re: Enumeration of a cursor with arcpy.da.UpdateCursor(pointLayer, fields1) as u_cursor:
for cnt, row in enumerate(u_cursor, start=0):
# Process row and cnt; no need to update cnt variable. However, I don't get what this is supposed to be doing. It doesn't make sense to me. row[cnt] = row[cnt].title()
... View more
12-21-2015
09:07 AM
|
1
|
0
|
5385
|
|
POST
|
Shouldn't your zip codes be polygons rather than points? It would be more reliable if you could do a spatial join where your input point intersects the zip code polygon to find out which zip code a point is in, not which centroid it is closest to.
... View more
12-14-2015
01:59 PM
|
0
|
0
|
1551
|
|
POST
|
ArcGIS Desktop is 10.2.2 and SDE is 10.0 on Oracle 11g I'm trying to run Project on a View in SDE that has 27 columns (including shape field), less than 7000 rows. Output is to a file geodatabase. I get ERROR 000210: Cannot create output. The maximum table size has been exceeded. However, it still does in fact create the feature class and there are the correct number of rows. If I use feature class to feature class, it works fine; no error. The view does have two joins; one of which is a relationship class table. I'm able to run Project on other views. Any ideas why this would be failing? Geoprocessing
... View more
12-14-2015
12:43 PM
|
0
|
1
|
5208
|
|
POST
|
You can probably get rid of the del cursor line because it's redundant with the with statement. The cursor will be deleted automatically when the with statement is exited; same with row.
... View more
12-02-2015
08:39 AM
|
1
|
1
|
4367
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 2 weeks ago | |
| 1 | 10-23-2025 03:53 PM | |
| 1 | 04-28-2026 07:25 AM | |
| 1 | 03-19-2026 08:59 AM | |
| 1 | 02-12-2026 01:37 PM |