71

Go to View -> Layout, then go to Insert -> Dynamic Text -> Service Layer Credits. You should then be able to move the credits to wherever you want. (Or completely remove them)


47

I am using an example with 1 million randomly generated points inside of a filegeodatabase. Attached here. Here is some code to get us started: import time import arcpy arcpy.env.workspace = "C:\CountTest.gdb" time.sleep(5) # Let the cpu/ram calm before proceeding! """Method 1""" StartTime = time.clock() with arcpy.da.SearchCursor("RandomPoints", ["...


43

Use the following method on the Result object and you'll be able to cast as int: .getOutput(0) will return the value at the first index position of a tool. int(arcpy.GetCount_management(Path_Pts).getOutput(0))


33

The two are very, very close in functionality but not completely equivalent. Common to both Includes a set of tools with a unique alias for identification Can call from arcpy Get a Geoprocessing tool dialog (essentially a full UI) for free for each tool Can keep all Python code in one file (embedding tool source in TBX, holding all the implementation in ...


31

Yes, it is possible. Before you can add a feature class you need to turn it into a feature layer. This arcpy code should help: import arcpy FC = r"C:\...\featureclass" arcpy.MakeFeatureLayer_management(FC, "nameoffeatureclass") MXD = arcpy.mapping.MapDocument(r"C:\...\your.mxd") DF = arcpy.mapping.ListDataFrames(MXD)[0] layer = arcpy.mapping.Layer("...


30

When you use "default values" you aren't really kriging, you're just applying the kriging algorithm--which as you have found, is poor when used with these data. (I will step up on a soapbox for a brief rant: in my opinion, the fastest way to get bad results with a computer program is to accept its default parameters. ArcGIS is one of the richest, most ...


27

A very good discussion of whether to use ArcSDE or not can be found here. At 10.1 there is no need to install the ArcSDE software unless you need to run an ArcSDE service. If all of your users are making Direct Connections to the geodatabase then the ArcSDE installation is not necessary. As well, most of the functionality offered by ArcSDE commands is now ...


26

In 10.1 you have a lot more control over legends. You should be able to wrap both the labels and the description using the Text Wrapping option in the Layout tab (see below) If that still doesn't work you can manually force the line breaks using the Symbology tab in the Layer Properties. If you right click each of your unique values and select Edit ...


24

You want to use the "Spatial Adjustment" toolbar in ArcGIS, it works much like the georeferencing tool, but for vector data rather than raster. It can be applied to an entire layer at once, so you can create just a few control points (they're called "displacement links" in the spatial adjustment tool) and move every polygon in your layer.


23

I know this question is a few months old, but I'm posting this in case it helps others. I developed this kludge to parse version numbers from MXD documents. It basically reads the first 4000 or so characters of an MXD document and searches for a version number. I tested with MXD versions 9.2, 9.3, 10.0, and 10.1. import re def getMXDVersion(mxdFile): ...


20

On the Table of Contents pane just below the words "Table of Contents" there should be 5 buttons. Ensure that you are on the first button called "List by Drawing Order". This mode allows you to do the dragging that you want. A trap for new users is that adding a table to ArcMap changes the Table of Contents to List By Source View (because that is the ...


20

There is an easy way that doesn't involve messing with your system PATH or PYTHONPATH. The Enthought Python Distributions, including Canopy x32, are stand-alone and don't need anything in the registry or in the environment variables. So they can play nice with other Python distributions like the one that comes with ArcGIS 10.1. To access ArcGIS 10.1 ...


18

Another option is to change the text color to "No Color", instead of moving the text box off the preview pane. This is useful when performing a graphic export and selecting the "Clip Output to Graphics Extent". Otherwise, the text box located off the preview pane will be included in the export.


18

You can try this Bing imagery analyzer for OSM. It should show the bing satellite and aerial photos overlaid with their capture date. Is that what you're looking for? Here is the direct link to the tool.


18

You can do this in ArcGIS10 onwards, although you have to pan in the same data frame each time (ie panning in frame 1 will pan frames 2, 3 and 4. But you cannot also pan in 2 and have 1,3 and 4 pan automatically) Right click on one of the frames you wish to link, go to properties then go to the "Data Frame" tab. You can then set the extent to be "Other Data ...


18

Have you tried simply copying and pasting features? You can do this by adding both shapefiles to the map TOC, then choose "Editing-> Start Editing", and choose the DESTINATION shapefile workspace to edit. Next, choose the "Edit Tool" (small arrowhead by the Editor dropdown), select the SOURCE feature to copy, right-click and choose "Copy". Right-click and ...


17

The reason that people organize data in separate tables is because of Database Normalization principles (follow the link, all the rationale is there). That being said, ESRI Relationship Classes are a GeoDatabase-level implementation of a those principles. Honestly, I would personally only use them in two instances: when you have some data that is normalized ...


17

Have a look at this thread on the ArcGIS forum. Basically just use standard python modules or a package structure and import your tools into the python toolbox. Something like: # \--SomeDir # | toolbox.pyt # \--toolpackage # | __init__.py # | script_a.py # | script_b.py #---------------------------- #The .pyt file #-------...


17

The language of data transformation can be confusing. Standardization refers to transforming your data so it has a mean of 0 and a standard deviation of 1 and is only appropriate for normally (Gaussian) distributed data. Whereas, normalization transforms your data so that the minimum value is 0 and the maximum is 1 while keeping the shape of the original ...


17

You may use the Feature Class To Feature Class python snippet. Here is the general syntax. FeatureClassToFeatureClass_conversion (in_features, out_path, out_name, {where_clause}, {field_mapping}, {config_keyword}) To output to a shapefile, make sure that your out_path is a folder (and not pointing within a file geodatabase), and that out_name has a *....


17

The Layer object has a read/write property, visible, that can be used to turn on/off layers. This is some basic code that should get you started: #A list of layer names that you want to be turned off. names = [x,y,z,etc] mxd = arcpy.mapping.MapDocument("current") df = arcpy.mapping.ListDataFrames(, mxd, "Layers")[0] layers = arcpy.mapping.ListLayers(mxd, "...


17

I use the following settings to "Start a program" in the task scheduler. I find it best to use the full path to the Python executable to be safe. Program/script: Full path to Python.exe, C:\Python27\ArcGIS10.2\python.exe Arguments: Name of script, script.py Start in: Location of script.py, something like C:\path\to\script Also, if you pass in arguments ...


16

If an unhandled exception, such as an ImportError, occurs before the add-in classes are instantiated they will become unresponsive, be given a [Missing] label, and have a red symbol for their icon in the case of items on toolbars or in menus. You can confirm whether an import error is happening by wrapping your import statement with an exception handler and ...


16

I think the problem is likely your two lines where you are going over the fields and appending each field individually to your subdict dictionary. for field in valid_fields: subdict[field] = row[cursor_fields.index(field)] Your row object is already a tuple in the same order as your fields, take advantage of that and use the zip function. def ...


16

The Feature Class to Feature Class tool is a Conversion tool. The idea is to convert a feature class in one format (e.g. shapefile) to another (e.g. geodatabase). It also allows the user to control the Field Map - i.e. which fields will be copied over. The Copy Features tool simply creates an exact copy of the input features. Note - this tool can also be ...


16

Another alternative using Python would be: !fieldname!.upper() as described in the online help Calculate Field examples.


16

If your lines have a different symbology using unique values etc it is still possible to change all the line properties in one go. In the Layer Properties > Symbology tab you can click the symbol button (See below) and select Properties for All Symbols... You can then change the thickness for all the lines whilst maintaining the other properties such as ...


16

I don't think the original poster was asking about how to use arcpy.da.SearchCursor(), but rather that the arcpy.da.SearchCursor() class was not appearing in the code completion window within Eclipse (sometimes called intellisense or intelligent code completion). I've been using Eclipse+PyDev and/or LiClipse for editing code for geoprocessing tools since ...


15

Check out the Describe method. Something like the following should work. #Using arcpy.env import arcpy import numpy inRaster='C:/workspace/test1.tif' outRaster='C:/workspace/test2.tif' dsc=arcpy.Describe(inRaster) arcpy.env.extent=dsc.Extent arcpy.env.outputCoordinateSystem=dsc.SpatialReference arcpy.env.cellSize=dsc.meanCellWidth myArray = arcpy....


15

The help page on Using Map Templates explains it quite well. Here are three different ways you can go about rectifying this. From the help, it appears that you need to make a change in the registry to save in <install drive>:\Program Files\ArcGIS\Desktop10.1\MapTemplates. By changing it via ArcMapAdvancedSettings.exe, all users can access the ...


Only top voted, non community-wiki answers of a minimum length are eligible