|
POST
|
Start here http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//000v00000001000000.htm and keep reading. other tips from within Pythonwin or other command line IDE >>> import arcpy >>> dir(arcpy) ['ASCII3DToFeatureClass_3d', 'ASCIIToRaster_conversion', 'AddCADFields_conversion', 'AddCodedValueToDomain_management', 'AddColormap_management', 'AddError', 'AddFeatureClassToTerrain_3d', 'AddFeatureClassToTopology_management', 'AddFieldDelimiters', 'AddFieldToAnalysisLayer_na', 'AddField_management', 'AddGlobalIDs_management', 'AddIDMessage', 'AddIndex_management', 'AddItem_arc', 'AddJoin_management', 'AddLocations_na', 'AddMessage', 'AddRastersToMosaicDataset_management', 'AddRepresentation_cartography', 'AddReturnMessage', 'AddRuleToTopology_management', 'AddSpatialIndex_management',.....etc etc Or for a particular class... >>> dir(arcpy.Point) ['ID', 'M', 'X', 'Y', 'Z', '__class__', '__delattr__', '__dict__', '__doc__', '__eq__', '__format__', '__getattribute__', '__hash__', '__init__', '__module__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__', '_arc_object', '_go', 'clone', 'contains', 'crosses', 'disjoint', 'equals', 'overlaps', 'touches', 'within'] >>> Or for help... >>> help(arcpy.Point) Help on class Point in module arcpy.arcobjects.arcobjects: class Point(arcpy.arcobjects.mixins.PointMixin, arcpy.arcobjects._base._BaseArcObject) | The point object is used frequently with cursors. Point features return a | single point object instead of an array of point objects. All other feature | types���?�polygon, polyline, and multipoint���?�return an array of point | objects or an array containing multiple arrays of point objects if the | feature has multiple parts. | | Method resolution order: etc etc etc Have fun
... View more
07-06-2011
04:23 AM
|
0
|
0
|
1298
|
|
POST
|
as of version 10, properties are case sensitive, hence your line point.x should be point.X and point.Y and point.ID
... View more
07-06-2011
02:37 AM
|
0
|
0
|
1298
|
|
POST
|
your destination folder contains a space and a $ neither of which behave well with most SA functions, change source and/or destination folders to be compliant (ie c:\test )
... View more
07-04-2011
02:24 PM
|
0
|
0
|
835
|
|
POST
|
try http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//009z0000007q000000.htm
... View more
07-04-2011
03:15 AM
|
0
|
0
|
1007
|
|
POST
|
assuming that the files have the same coordinate system, I suspect that they are two big. Did you try it on a subset?
... View more
07-04-2011
03:09 AM
|
0
|
0
|
623
|
|
POST
|
edit your original post and throw the script within code blocks (the # symbol in the html editor)
... View more
06-30-2011
10:35 AM
|
0
|
0
|
1458
|
|
POST
|
this has been reported before but I don't think it has been reported, so you would be advised to do so. see this thread http://forums.arcgis.com/threads/17237-problem-running-region-group-tool
... View more
06-30-2011
06:20 AM
|
0
|
0
|
850
|
|
POST
|
Also, you cannot use single backslashes in folder paths, either preface them with raw notation or use double backslashes or single forward slashes ie "c:\temp" is wrong correct versions are r"c:\temp" "c:\\temp" "c"/temp"
... View more
06-29-2011
04:17 PM
|
0
|
0
|
699
|
|
POST
|
a labelled screen grab demonstrating the above would help dissect what is going on
... View more
06-29-2011
04:14 PM
|
0
|
0
|
1363
|
|
POST
|
check to see how you are creating the object from the example in the 9.3.1 help files http://webhelp.esri.com/arcgisdesktop/9.3/index.cfm?id=966&pid=951&topicname=Using_geometry_objects_with_geoprocessing_tools
... View more
06-29-2011
02:12 PM
|
0
|
0
|
1239
|
|
POST
|
Also see this blog for information on converting models to scripts.
... View more
06-29-2011
06:26 AM
|
0
|
0
|
961
|
|
POST
|
Doug I am assuming that the output is also a polyline since it is the lower geometry. The intersect should produce a single segment for each traversal through a polygon so the section that traverses a particular polygon can be identified. Are you saying that this is not the case?
... View more
06-29-2011
06:23 AM
|
0
|
0
|
1363
|
|
POST
|
To ensure that you know what units your are working in, project all data sets to a common projection...close arcmap...then add the projected data back in, in that situation the dataframe coordinate system and its units and the coordinate system and the units of all the participating layers will be the same. Projection-on-the-fly is only useful for data exploration and should be avoided at all costs when one goes to the analysis phase.
... View more
06-27-2011
04:27 PM
|
0
|
0
|
3482
|
|
POST
|
You might also want to check out the arcpy mapping module http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Geoprocessing_scripts_for_map_document_management_and_output/00s300000032000000/
... View more
06-23-2011
06:15 AM
|
0
|
0
|
906
|
|
POST
|
tried PyScripter today....pretty awesome environment and "so far" it seems to behave well with ArcMap etc... I am just wondering if the the "dev people" have been using it for a while have any further comment. BLOG ??? It would be nice to have a real Python IDE installed in the next version. the Python window (I am being gentle) that they use now is totally useless and i get my students to do all of there work outside of ArcMap or develop tools for Arctoolbox. It would really be nice to integrate a good Python IDE inside of Arcmap, but I think that a silent install of Pythonwin wasn't possible at the last go.
... View more
06-22-2011
01:25 PM
|
0
|
0
|
1920
|
| 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
|