|
POST
|
Did you check out the pictoral image in this link down in the "Code Blocks" section? http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//005s0000002m000000.htm It will visually give you an idea what needs to go where. Also, there is no indentation in your example ensure that you are using proper indentation ( 2 or 4 spaces) in the def
... View more
08-31-2011
03:14 PM
|
0
|
0
|
933
|
|
POST
|
to find out about sa functionality, simply get its help >>> from arcpy import sa >>> help(sa.ReclassByTable)
... View more
08-26-2011
12:13 PM
|
0
|
0
|
1980
|
|
POST
|
😄 best of luck... been playing with recarrays and I been having difficulty with spelling as of late
... View more
08-24-2011
06:36 PM
|
0
|
0
|
2543
|
|
POST
|
Chris can't help it ... are you sure that "forking.py" is spelled correctly 🙂
... View more
08-24-2011
05:27 PM
|
0
|
0
|
2543
|
|
POST
|
Would this work?
import sys, os.path
scriptName = sys.argv[0]
pathName = os.path.dirname(scriptName)
dllFile = "mydll.dll"
locatedAt = (pathName + "/" + dllFile).replace("\\","/")
print "script name", scriptName
print "path to script", pathName
print "dll location", locatedAt
... View more
08-23-2011
08:05 AM
|
0
|
0
|
10760
|
|
POST
|
Things changed in version 10, try: inTable = "C:/***/Bbuffers.shp"
inField = "CITY_TOWN"
rows = arcpy.SearchCursor(inTable)
#row = rows.next
for row in rows:
City = row.getValue(inField) #Error thrown here
#row = rows.next()
see cursors http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//002z0000001q000000.htm getValue etc. http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//000v000000nv000000.htm
... View more
08-19-2011
10:24 AM
|
0
|
0
|
1257
|
|
POST
|
Float is common to most programming languages and programs. It ensures that an operation that could result in an integer is cast to a floating point number. Division is one of those cases, for example in Python, division returns an integer value unless one of the numbers involved is a floating point number, or one of them is cast to a float, ie >>> print 1/3
0
>>> print 1.0/3
0.333333333333
>>> print float(1)/3
0.333333333333
>>> Float is used in the spatial analyst for this very reason. http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//009z0000008w000000.htm and there are other examples elsewhere. So the general rule of thumb is, cast numbers into floating point values by whatever means if you need it as output.
... View more
08-19-2011
02:15 AM
|
0
|
0
|
8336
|
|
POST
|
Why not convert the line to a grid then use sample, it can take a raster as input (make sure that you use the same cell size and extent as the input raster) http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Sample/009z0000002v000000/
... View more
08-19-2011
02:07 AM
|
0
|
0
|
6283
|
|
POST
|
All tools in Arctoolbox have the often-overlooked "Environments" tab, this is where you should be setting cell size, analysis extents etc etc. prior to clicking any OK button
... View more
08-17-2011
05:32 AM
|
0
|
0
|
1813
|
|
POST
|
You need to post the code within code blocks so it can be examined
... View more
08-16-2011
03:46 PM
|
0
|
0
|
938
|
|
POST
|
Thanks for the info Chris, I was more interested in the event-based things, I can use non-Java-Net for form development...will have a serious look at this since it opens up a whole realm of new application possibilities. Regards Dan
... View more
08-16-2011
12:54 PM
|
0
|
0
|
2037
|
|
POST
|
Chris Are you suggesting that we can get some of the functionality of the old "Dialog Designer" days which harken back to AV3.x with add-ins? Is this a Tkinter interface? Any more background docs? (haven't got beta 10.1 loaded yet so sorry if this is obvious)
... View more
08-16-2011
10:03 AM
|
0
|
0
|
2037
|
|
POST
|
have you tested the query through the standard select by attributes interface in ArcMap? Have you tried it incrementally (ie add one piece, then the second etc)?
... View more
08-15-2011
02:21 PM
|
0
|
0
|
3815
|
|
POST
|
set it through your environments http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//00210000001m000000.htm
... View more
08-15-2011
05:19 AM
|
0
|
0
|
1287
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 10-03-2017 11:39 AM | |
| 1 | 08-05-2019 05:21 PM | |
| 1 | 09-02-2016 08:05 AM | |
| 1 | 01-15-2018 01:10 PM | |
| 1 | 09-17-2018 12:48 AM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:22 AM
|