|
POST
|
You can use the top-secret Scale editing tool, which is in the Editor category of tools, although not added to the Editor toolbar by default. Follow the instructions on the Scaling a feature help page to add the button.
... View more
08-28-2015
02:24 PM
|
2
|
3
|
2355
|
|
POST
|
Just semantics, but once your shapefile is in a geodatabase, it is no longer in the shapefile file format, and is now a geodatabase feature class. About the domains, you can export Domain to Table, then import using Table to Domain. Alternatively, you can simply make a copy of the feature class, then wipe its contents using Delete Features (the table schema will remain).
... View more
08-27-2015
11:29 AM
|
2
|
0
|
2379
|
|
POST
|
The point of my post was that I don't particularly care what your script does, I just wanted to help without having to type out the relevant parts of your script. By posting your code directly into a code block, we can copy/paste it into our response - we can't do that with a screenshot. In any case, it looks like Rebecca has gone to the trouble of typing out a functioning solution, so I'd go with that.
... View more
08-26-2015
03:34 PM
|
0
|
1
|
3508
|
|
POST
|
Welllll, you're welcome to explore the regex library, but I've only done so cursorily. Easier, you could make a dictionary with the full name paired with the shortened name, then compare the first two characters against that. Note that you'll have issues in cases like Arkansas and Arizona: dict = {'California':'ca', 'Florida':'fl'} # and so on
for k,v in dict.iteritems(): # loop through key/value pairs
for abbrev in v: # loop through the abbreviation list
if search[:2] == abbrev: # compare first two characters
return k # return the state
return search # else return original
... View more
08-26-2015
02:21 PM
|
1
|
2
|
1828
|
|
POST
|
You can do this using a dictionary, where the key is the state name, and the value is a list of possible matches: def customReplace(search):
dict = {'California':['c','ca','cal'], 'Florida': ['f','flor','fla']} # build your custom dictionary
for k,v in dict.iteritems(): # loop through key/value pairs
for abbrev in v: # loop through the abbreviation list
if search == abbrev: # compare
return k # return the state
return search # else return original
... View more
08-26-2015
01:40 PM
|
2
|
5
|
5286
|
|
POST
|
What have you tried, and why doesn't building a regular animation work?
... View more
08-26-2015
10:00 AM
|
1
|
0
|
723
|
|
POST
|
Can you please: 1.) post your code directly (help here) so we can help without typing out your example, and 2.) provide exactly what 'print project' produces? It appears you have two different lists: "spreadsheet" and "spreadsheet_list". As it is written, we need to know what's in "spreadsheet".
... View more
08-26-2015
09:52 AM
|
0
|
3
|
3508
|
|
POST
|
My field, called "NULLS", has some nulls and some values. Use IsNull() to test in VBScript: Function FindLabel ( [NULLS] )
if IsNull([NULLS]) then
label = "?"
else
label = [NULLS]
end if
FindLabel = label
End Function
... View more
08-21-2015
09:51 AM
|
1
|
0
|
2674
|
|
POST
|
This can all be done, somewhat tediously, in Python using the csv library. Read through each line. If it contains only the date, start a new file. If it contains data, write the line to the new file. I'm curious, if you have the code and can do this in Fortran, why bother making your own script?
... View more
08-17-2015
04:12 PM
|
0
|
1
|
2323
|
|
POST
|
When in doubt, 'print' to find out: >>> coords = {}
... coords[1] = ['blah1','blah2']
... coords[2] = ['blah3','blah4']
... for k,v in coords.iteritems():
... print (k,v)
...
(1, ['blah1', 'blah2'])
(2, ['blah3', 'blah4']) k,v is code for key, value.
... View more
08-14-2015
10:42 AM
|
2
|
1
|
4672
|
|
POST
|
Just FYI, Delete Identical requires advanced licensing, while this script requires none.
... View more
08-13-2015
02:02 PM
|
1
|
0
|
3310
|
|
POST
|
See here for help on unpacking arguments. Basically, *coords is Python shorthand for "the list held in the coords variable", which in this case is the list of coordinate pairs for each point (feature), from the variable triangleCoordList.
... View more
08-13-2015
10:02 AM
|
1
|
0
|
4539
|
|
POST
|
I think you want to call deleteRow() rather than del rowsToDelete, which just deletes the Python variable called "rowsToDelete". ... upd_cur = arcpy.da.UpdateCursor(in_table,fields,where_clause)
... for row in upd_cur:
... upd_cur.deleteRow() # Beware: deletes the current row
... View more
08-12-2015
05:12 PM
|
2
|
0
|
3310
|
| 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
|