|
POST
|
Something along these lines? http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/AddLayerToGroup/00s300000004000000/
... View more
02-14-2012
04:42 AM
|
0
|
0
|
1393
|
|
POST
|
Alright I think I understand now. How is your list of neighbours stored in the field? String of IDs? If you could post an example of the field you are trying to access that may help.
... View more
02-08-2012
05:40 AM
|
0
|
0
|
3173
|
|
POST
|
I'm a little confused as to what you are trying to accomplish exactly. Are you trying to access the geometry component of the row? Or just modify the attribute values? This link should give you all you need to access the geometry of the row features. http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Reading_geometries/002z0000001t000000/ If you just want attributes of the row, this will get you their values rows = arcpy.UpdateCursor(layer)
for row in rows:
for field in fields:
print row.getValue(field.name)
... View more
02-07-2012
12:13 PM
|
0
|
0
|
3173
|
|
POST
|
I don't know the specifics of the tool, but type this in a python window and it will give you the parameters. help("arcpy.ArcPadCheckin_ArcPad")
... View more
02-07-2012
04:15 AM
|
0
|
0
|
1086
|
|
POST
|
Ah that is because you don't have a space in your script, like this. "AllRoadsParish" + fip +" 'Primary Table'"
... View more
02-06-2012
09:53 AM
|
0
|
0
|
2035
|
|
POST
|
I would guess you need more than just the primary table referenced for your locator. Check out the error http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/000039_Not_enough_reference_data_tables_for_this_style/00vp00000009000039/ And the tool syntax for adding other tables http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//002600000004000000.htm Specific info on the alternate table http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/The_alternate_name_table/002500000043000000/
... View more
02-06-2012
09:44 AM
|
0
|
0
|
2035
|
|
POST
|
I think you mean the quotation marks? Your line should look like this arcpy.CreateAddressLocator_geocoding("US Address - Street Name", "AllRoadsParish" + fip +"'Primary Table'", "'Feature ID' OBJECTID VISIBLE NONE;'Prefix Direction' PREFIX VISIBLE NONE;'Prefix Type' <None> VISIBLE NONE;'*Street Name' NAME VISIBLE NONE;'Suffix Type' Street_Cat VISIBLE NONE;'Suffix Direction' SUFFIX VISIBLE NONE;'Left City or Place' <None> VISIBLE NONE;'Right City or Place' <None> VISIBLE NONE;'Left ZIP Code' ZIPL VISIBLE NONE;'Right ZIP Code' ZIPR VISIBLE NONE;'Left State' STATE VISIBLE NONE;'Right State' STATE VISIBLE NONE;'Left Additional Field' Parish_FIP VISIBLE NONE;'Right Additional Field' Parish_FIP VISIBLE NONE", Output_Address_Locator, "")
... View more
02-06-2012
05:52 AM
|
0
|
0
|
2035
|
|
POST
|
If your cursor is empty, it will never step in. Nothing in the loop for row in rows: will execute because there is no row in rows, if you follow. So I tested your code and came back with 4 rows, is that right? i am confused, I thought you wanted to test if the cursor object was empty?
... View more
02-02-2012
10:59 AM
|
0
|
0
|
9662
|
|
POST
|
You need to copy and paste the exact indentation you are using, that is probably where your error is.
... View more
02-02-2012
08:24 AM
|
0
|
0
|
9662
|
|
POST
|
I am sure there is a more elegant way, but you could do something simple like...
checkvar = "cursor empty"
rows = arcpy.SearchCursor(fc, query)
for row in rows:
if checkvar == "cursor empty":
checkvar = "cursor full"
print checkvar
Here's something probably better, early morning brain not working yet.
row = None
rows = arcpy.SearchCursor(fc, query)
for row in rows:
#cursor things
if not row:
print "cursor was empty"
... View more
02-02-2012
06:51 AM
|
2
|
0
|
9662
|
|
POST
|
Your code gives me a syntax error so it definitely won't run if that is what you are using. This should be your where-clause I believe. "FIPS_PARIS = '" + fip + "'"
... View more
02-01-2012
06:41 AM
|
0
|
0
|
1794
|
|
POST
|
What is the particular error you are getting? Or does it run through without error and just not make any changes to the mxd? Also, posting your code with code blocks will make it easier for us to help.
... View more
01-31-2012
01:47 PM
|
0
|
0
|
2048
|
|
POST
|
Oh sorry, you need to take those exclamation points out. def name1 (OWNER1_LAST_NAME, OWNER1_FIRST_NAME): if len(OWNER1_FIRST_NAME)>0 and len(OWNER1_LAST_NAME)>0: return OWNER1_LAST_NAME + ', ' + OWNER1_FIRST_NAME else: return OWNER1_FIRST_NAME+OWNER1_LAST_NAME name1(!OWNER1_LAST_NAME!, !OWNER1_FIRST_NAME!) Sorry it took so long to spot that, I don't use the calculator much, prefer UpdateCursor
... View more
01-31-2012
01:33 PM
|
0
|
0
|
2944
|
|
POST
|
Did you change the indentation as my code shows as well?
... View more
01-31-2012
12:49 PM
|
0
|
0
|
2944
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 05-17-2011 10:36 AM | |
| 1 | 08-16-2012 10:48 AM | |
| 1 | 10-31-2012 08:39 AM | |
| 1 | 07-16-2012 01:52 PM | |
| 1 | 03-15-2012 10:57 AM |
| Online Status |
Offline
|
| Date Last Visited |
08-22-2024
11:12 PM
|