Could you have somehow tuned off auto complete in the ArcGIS python window
used lmpy.py about a year ago
#lmpy.py def fieldExists(table, fieldName): """Returns a list indicating boolean if field exists, if True also the place""" blah blah def doThat(param1,param2,param3) """Does this, that, and the other""" blah blah
>>> import lmpy >>> lmpy.fieldExists(myTable, "FIELD1") [True, 3]
@gptooldoc('CollapseDualLinesToCenterline_arc', None) def CollapseDualLinesToCenterline(in_cover=None, out_cover=None, maximum_width=None, minimum_width=None): """CollapseDualLinesToCenterline_arc(in_cover, out_cover, maximum_width, {minimum_width}) Derives centerlines (single lines) from dual-line features, such as road casings, based on specified width tolerances. INPUTS: in_cover (Coverage): The coverage containing near parallel dual lines, such as road casings, from which centerlines are derived. maximum_width (Double): Sets the maximum width in coverage units. minimum_width {Double}: Sets the minimum width in coverage units. The default is zero. OUTPUTS: out_cover (Coverage): The output coverage containing the derived centerlines. The output coverage name must be different from the input coverage name.""" try: retval = convertArcObjectToPythonObject(gp.CollapseDualLinesToCenterline_arc(*gp_fixargs((in_cover, out_cover, maximum_width, minimum_width), True))) return retval except Exception, e: raise e @gptooldoc('Dissolve_arc', None) def Dissolve(in_cover=None, out_cover=None, dissolve_item=None, feature_type=None): """Dissolve_arc(in_cover, out_cover, dissolve_item, {feature_type}) Creates a new coverage by merging adjacent polygons, lines, or regions that have the same value for a specified item. INPUTS: in_cover (Coverage): The coverage containing features to be dissolved. dissolve_item (String): The item in the in_cover feature attribute table that is used to dissolve features. * Dissolve_item���?�An item name will be used to perform the dissolve. The item may be a redefined item. * #ALL���?�All items past the cover-ID in the PAT, AAT, or region subclass PAT will be used as a single dissolve item. If there are no items past the cover-ID, then the cover-ID will be used. feature_type {String}: The feature classes to be preserved in the output coverage: * POLY���?�Polygons will be dissolved; an AAT will not be created for the output coverage. This is the default option. * LINE���?�Nodes will be dissolved; a PAT will not be created for the output coverage. * NET���?�Polygons will be dissolved, and both a PAT and AAT will be created for the output coverage. * REGION.subclass���?�Region subclass will be dissolved, and all existing attributes of the input coverage will be maintained in the output coverage. OUTPUTS: out_cover (Coverage): The coverage to be created. The output coverage cannot already exist.""" try: retval = convertArcObjectToPythonObject(gp.Dissolve_arc(*gp_fixargs((in_cover, out_cover, dissolve_item, feature_type), True))) return retval except Exception, e: raise e @gptooldoc('Eliminate_arc', None) def Eliminate(in_cover=None, out_cover=None, info_express=None, polygon_boundary=None, feature_type=None, selection_file=None, polygon_option=None): """Eliminate_arc(in_cover, out_cover, info_express;info_express..., {polygon_boundary}, {feature_type}, {selection_file}, {polygon_option}) Merges the selected polygons with neighboring polygons if they have the largest shared border or the largest area.Eliminate is often used to remove sliver polygons created during polygon overlay or buffering. With the LINE option, Eliminate merges selected arcs separated by pseudo nodes into single arcs. INPUTS: in_cover (Coverage): The coverage whose selected polygons or arcs will be merged into neighboring features. info_express (INFO Expression): An INFO query containing one or more logical expressions to select features from the input coverage. * Reselect���?�Reduces the selected set of records with a selection expression to those that meet its criteria. If no selection expression follows, the selected set will be empty. * Aselect���?�Adds unselected records that meet the selection expression criteria to the currently selected set. If no selection expression follows, the selected set will contain all features. * Nselect���?�Reverses the current selection to the unselected set. polygon_boundary {Boolean}: Ensures that polygons along the coverage boundary are not altered. * NO_KEEP_EDGE���?�Allows the elimination of outer polygon boundaries. This is the default. * KEEP_EDGE���?�Is only used with the POLYGON option. Any polygon which is a neighbor of the background polygon will not be eliminated when KEEP_EDGE is specified. feature_type {String}: The feature class(es) to be eliminated in the Output Coverage. This parameter is only used for polygon coverages. * POLY���?�Polygon features will be eliminated; an AAT will not be created for the Output Coverage. * LINE���?�Line features will be eliminated; a PAT will not be created for the Output Coverage. selection_file {File}: A Selection File is a preexisting file that identifies which features will be used. polygon_option {Boolean}: Specifies which method will be used for eliminating polygons. This parameter is only used for polygon coverages. * BORDER���?�Merges a selected polygon with a neighboring unselected polygon by dropping an Arc. The neighboring polygon is the one with the longest shared border. This is the default and the way Eliminate worked with the POLY option in all pre-6.1.1 releases. * AREA���?�Merges a selected polygon with a neighboring unselected polygon by dropping an Arc. The neighboring polygon is the one with the largest area. OUTPUTS: out_cover (Coverage): The new coverage with all the selected sliver polygons merged into larger features. There should be a smaller number of polygons than the Input Coverage contains.""" try: retval = convertArcObjectToPythonObject(gp.Eliminate_arc(*gp_fixargs((in_cover, out_cover, info_express, polygon_boundary, feature_type, selection_file, polygon_option), True))) return retval except Exception, e: raise e
Autocomplete in v9.3 or v10?My understanding is that one of the reasons ESRI made arcpy an actual python sitepackage/module is so that autocomplete would rein. Not sure in v10 why it wouldn't work all the time no matter what IDE you were using (except of course Notepad or something like that). In v9.3, there was some sort of bastard version of autocomplete that basically would only show just the gp methods (like .updatecursor or .setproduct). It would also display any tools/methods that you had used during that session - i.e. ones that were still in the memory (like Clip).I know that one of the shortcomings of the autocomplete functionality in arcpy is that all the methods MUST now be proper case. Because of this I have a lot of code re-writing to do to be arcpy-compliant! For example, in v10 it must be arcpy.UpdateCursor() and not arcpy.updatecursor().
Back when things were fun, you could do stuff like:import arcgisscriptingtoeNails = arcgisscripting.create(9.3)toeNails.Clip_analysis(inputFC, clipFC, outputFC)Now we only have arcpy 😞I guess standards are good though...
サインインしたメンバーは投稿、更新のフォローなどができます。初めてですか?無料アカウントを登録してください。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.