|
POST
|
Logan good suggestion...and you need not even comment out the print statement, in fact you could get ready for python 3.0 by adding these blocks try print strMessage #pre 3.0 except print (strMessage) #3.0 + gp.AddMessage(strMessage) the print statement will simply become heat energy if gp is being used and vica versa.
... View more
11-03-2010
01:31 PM
|
0
|
0
|
1308
|
|
POST
|
Frank...unfortunately it doesn't print to other IDE's output...don't use console...too dark and gloomy and reminds me of the old DOS days
... View more
11-03-2010
12:17 PM
|
0
|
0
|
1308
|
|
POST
|
It just needs to be present on the computer. It need not be running but arcpy needs to be imported which means it must be on the computer. gp.Addmessage statements need to be replaced with print statements. The following is an example
'''
CreatePolyDemo.py
Demonstrates calculating various properties for polygons
'''
import arcpy
pnt = arcpy.Point()
triangle = [[0,0],[0,1],[1,0]]
square = [[0,0],[0,1],[1,1],[1,0]]
rectangle = [[0,0],[0,1],[2,1],[2,0]]
polygons = [triangle, square, rectangle]
labels = ["Triangle", "Square", "Rectangle"]
array = arcpy.Array()
polys = []
for i in range(len(polygons)):
a_poly = polygons
print "\n", labels," Coordinates: ", a_poly
for pair in a_poly:
pnt.X = pair[0]
pnt.Y = pair[1]
array.add(pnt)
print " X %20.16f Y %20.16f" % (pnt.X, pnt.Y)
array.add(array.getObject(0))
poly = arcpy.Polygon(array)
print "Polygon properties:"
print " area %20.16f\n length %s" % (poly.area, poly.length)
print " centroid %s\n true centroid %s " % (poly.centroid, poly.trueCentroid)
print " first point %s\n last point %s " % (poly.firstPoint, poly.lastPoint)
print " extent %s " % (poly.extent)
print " hull %s\n " % (poly.hullRectangle)
array.removeAll()
polys.append(poly)
... View more
11-02-2010
03:02 PM
|
0
|
0
|
1308
|
|
POST
|
Thanks Chris and Ted...but to carry on with Chris's Latin theme and to pass the torch to JB... Quieta non movere Quisque comoedum est ( Don't rock the boat ) (Everybody is a comedian) Ciao
... View more
11-02-2010
02:10 PM
|
0
|
0
|
738
|
|
POST
|
Quid quid latine dictum sit, altum videtur (Anything said in Latin sounds profound)
... View more
11-02-2010
01:22 PM
|
0
|
0
|
992
|
|
POST
|
Ted and see that roughly 75% want one, that counts for something, and there are 2 people against that are from Esri. So, whether Esri gets a vote, either keeps as is or the 75% goes up. No one who has comments, except for JB works for ESRI so I would suspect that any voting is from the users, myself included. Also, it is the NON-vote that is more important, should we treat those as abstaining from the issue or should we cast them into the pile to leave things as they are??? Those figures suggest a different outcome.
... View more
11-02-2010
11:43 AM
|
0
|
0
|
992
|
|
POST
|
as of Nov 1, 491 view, 31 votes...what is up? an indication of the confusion/lack of interest...kill General Anything... and make people commit to a forum thread...geoprocessing is geoprocessing not mapping or spatial analyst etc etc.. Import arcpy from Pythonwin or you favourite IDE, SA is there, so is the mapping stuff...I don't want to have a specific Python forum if it is going to be filled with SA stuff, since it should be in the SA forum...since SA is the issue/focus and Python is only ONE of the solutions. Sorry...I feel like I am backing up over the deer to finish off this thread (hunting season here). The ball is in the "JB court"...
... View more
11-01-2010
05:15 PM
|
0
|
0
|
992
|
|
POST
|
check this blog and see if it applies to your situation http://blogs.esri.com/dev/blogs/imagery/archive/2010/09/07/why-does-my-hillshade-look-different-when-i-use-a-tool-vs-a-function_3f00_.aspx
... View more
11-01-2010
02:47 PM
|
0
|
0
|
3772
|
|
POST
|
help files 9.1 http://webhelp.esri.com/arcgisdesktop/9.1/index.cfm?TopicName=welcome 9.2 http://webhelp.esri.com/arcgisdesktop/9.2/index.cfm?TopicName=welcome 9.3 http://webhelp.esri.com/arcgisdesktop/9.3/index.cfm?TopicName=welcome 10 http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html?TopicName=welcome search using pathdistance would show the differences, I don't have the 9.0 help file links anymore
... View more
11-01-2010
01:51 PM
|
0
|
0
|
342
|
|
POST
|
is the map projected? (ie UTM, state plane?) are the x, y units the same as the Z values? (ie meters, feet)
... View more
10-31-2010
11:03 AM
|
0
|
0
|
3772
|
|
POST
|
Python forum wingnut ..... Clip tool forum wingnut... ...beginning to see a pattern :0 good example!!! but we don't think of you that way Chris
... View more
10-29-2010
10:20 AM
|
0
|
0
|
1021
|
|
POST
|
I suspect that cell statistics (mean) enforces floating point division to avoid what you have observed
... View more
10-29-2010
07:35 AM
|
0
|
0
|
498
|
|
POST
|
It is referred to as integer division and is common in most programming languages, also, it is described in the help files. http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//009z0000008r000000.htm
... View more
10-29-2010
07:02 AM
|
0
|
0
|
498
|
|
POST
|
Chris 's not critical... But if Jim has a magic wand to do that sort of thing, by all means. That is exactly what I hope wouldn't happen.
... View more
10-28-2010
01:05 PM
|
0
|
0
|
1021
|
| Title | Kudos | Posted |
|---|---|---|
| 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 | |
| 1 | 02-20-2020 02:55 PM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:22 AM
|