Hot answers tagged arcgis-10.1
7
It looks like there are a few things that can cause an Access database to grow excessively.
Row Locking is discussed in this Stackexchange question: MS-Access database getting very large during inserts
It looks like the suggested solution is to turn off Row-Locking in the database. This is something that is turned off on the Access database itself, not ...
6
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 ...
5
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.
5
Replicas and geodatabases
An ArcSDE geodatabase can host both child and parent replicas. This
enables data to be replicated across multiple geodatabases
Full Official Documentation
http://resources.arcgis.com/en/help/main/10.1/index.html#/Replicas_and_geodatabases/003n000000vp000000/
5
GRASS GIS r.out.xyz tool
You can use the r.out.xyz tool in the GRASS toolbox in QGIS. The function exports a raster map as a list of x,y,z values into an ASCII text file, skipping x,y coordinates for raster cells containing a NULL value. For more information, see the r.out.xyz help file. The disadvantage is that you need first to create a GRASS database and ...
4
arcpy.SetNull does not exist. You are wanting arpy.sa.SetNull.
Here's the SetNull page for 10.1.
If you notice in some of the examples there is:
from arcpy.sa import *
and you see that SetNull is used, but the import * from arcpy.sa drops the arcpy.sa from arcpy.sa.SetNull. And be sure to check out the spatial analyst license
4
As someone who uses ArcMap 10.1 frequently and has it crash frequently, I can say that there is no MXD recovery that I've seen. It's just the "Please tell ESRI what happened!" box and then nothing.
With that said, having ArcMap crash every time you save sounds like a configuration problem. If it's possible, I'd suggest doing a complete uninstall and then a ...
3
This is only a partial answer, as I'm not familiar with ArcPy's graphing capabilities (I'm still at v.9.3.1), so I can't comment on your option 1. However, given the choice between options 2 and 3 I'd definitely tend towards 2 (Python and Matplotlib).
It's difficult to comment without knowing exactly what you're doing, but it sounds as though a ...
3
It is the same tool i.e. Clip_analysis.
There is a diagram showing this in its online help at http://resources.arcgis.com/en/help/main/10.1/0008/000800000004000000.htm where it also says:
"When the Input Features are lines, the Clip Features can be lines or polygons."
3
Lets say that you want to geocode the following address:
42xx Ashland Ave Baltimore MD 21205
One method would be to add the previously mentioned "50" to get 4250. Geocoding this will get you pretty close.
Another method, since you know that it will definitely be between 4200 and 4299, would be to attempt validating each address. Yes, all 100 of them. ...
3
This should be possible but your usage of ListFeatureClasses and SearchCursor is incorrect:
ListFeatureClasses requires you to set arcpy.env.workspace first. Its arguments are optional, but the first is a wildcard, not a workspace.
SearchCursor's first argument is a table or feature class, not a workspace.
That being said, I wouldn't really recommend ...
3
I'm going to propose that you retest your original procedure being careful to follow the steps as described below. Although I cannot test them, they gel with my understanding of event layers, and come from an ArcGIS Discussion Forum posting whose author appears to have used them successfully.
1.Have a connection in ArcCatalog ready to your SQL DB
...
3
The most basic difference is the level at which each of the functions are working.
The Feature Class to Feature Class tool is working at the Layer level, meaning that regardless of the features selected, it treats them as a whole. A new feature class is going to be created. This means that you have control over the structure of the new featureclass, ...
3
See the Working with the page layout section in the documentation - mainly the Map surrounds topic, which provides an overview how the most common map surrounds (legend, scalebar etc.) are structured, followed by Working with map surrounds, which shows how to add these elements to the page layout.
3
I don't have Arc on this machine but this should work. It would actually work with multiple start points, but will work on a single start point as well.
import arcpy
start_feature = arcpy.GetParameterAsText(0)
end_feature = arcpy.GetParameterAsText(1)
out_feature = arcpy.GetParameterAsText(2)
start_cursor = arcpy.SearchCursor(start_feature)
end_cursor = ...
3
Keep it simple, see qgis: Obtain all elevations points from a raster DEM:
Go to Raster menu,Conversion sub menu,convert, and choose (you have the list of all the possible formats in GDAL raster Format)
[GDAL]XYZ -- ASCII Gridded XYZ (X,Y,Z format) the result is a text file with the x,y coordinates of the center of the cells of the grid,and the value of ...
2
The pythonic way to do this, without using global variables, is to define an attribute in either the class's __init__ method (making them instance members), or in the class declaration itself (making them class members).
For example:
class A():
def __init__(self):
self.extent = (0, 0, 0, 0)
class B():
extent = (1, 2, 3, 4)
if __name__ == ...
2
ArcMap has a default selection tolerance of 3 pixels. The IMxDocument interface exposes this value in two ways:
SearchTolerance: The global search tolerance in geographic units for selection. The application's search tolerance is measured and set using pixel units. This property automatically converts the size of the pixels to map units.
...
2
Finally had a chance to take a stab at this script. Below is what I came up with, but first, some comments and explanation.
Use the ListFields function and the OID type to return the name of the OID field. This will give you the unique identifiers of the selected features. It takes the guesswork out of getting the spelling right. It also avoids the ...
2
The arcpy.da.Walk function from ArcGIS 10.1 SP1 allows you to do this. The following script walks through a workspace, create a list of every polyline, and copies the polylines to an output workspace.
import arcpy
import os
in_workspace = r"C:\your\path"
out_workspace = r"C:\your\path2\temp.gdb\fds"
feature_classes = []
for dirpath, dirnames, filenames ...
2
I haven't tried this personally, but it looks like you need to access the GraduatedColorsSymbology class on the layer. Have a look at the second example at the bottom of this page.
It also looks like you may need to have an existing lyr file with the graduated colours already set in order to use UpdateLayer.
2
DEMs have 1 band which hold elevation values. For comparison, a color image has three bands (Red, Green, Blue). You can check information about any raster dataset by right-clicking on the layer > Layer Properties > Source. Other particularly useful information located here include pixel depth, cell size, coordinate system, and format. Make sure to set ...
2
While the current session isn't saved, the crash dump files are saved if you want to look at them.
Location of crash dump files
Extract from the Esri technical article:
When using the Windows Vista or Windows 7 operating systems, the crash dump files (.dmp) can be found at the following local hard drive location within the application data of the user ...
2
If you have access to the dissolve tool in the Datamangement Toolbox/Generalization, try using that. Select the file you want to dissolve and click on 'Environments/XY Resolution and Tolerance'. Set the XY Tolerance to for example 100 feet. Be aware this whole process leads to generalization of your data and you might have to play around with the tolerance ...
2
I would try this as a test, if it gives you a good result, put it into a SearchCursor (arcpy or arcpy.da) that runs through all owners:
Select out the parcels for a single owner into a new feature class
Buffer those polygons by 100 ft (51 ft, or 50.1 ft, may be better)
Dissolve by owner to merge overlapping buffers (or do the dissolve as part of Buffer)
...
2
Thanks for sending that to Safe Software support James. This helped us see the issue which was a field name 'Order" which is a reserved word for file geodatabase. FME generally will catch these and I have followed up with problem report. The solution is to change that field name in the destination feature type in FME Workbench.
2
I'm running 10.0, so this is totally psuedocode and may be completely wrong, but I think the idea is plausible:
def FindLabel ([cis], [pce], [tol], [field], ...):
# Setup the headers
label = ""
label += "<und><bold>GW-5</bold></und> <und><bold>24-28'</bold></und>\n"
# Loop through fields
...
2
I finally managed to make it work...Hope this is useful for others, too.
I re-installed the GDAL 1.9 bindings using the proper installer in this page http://www.gisinternals.com/sdk/PackageList.aspx?file=release-1600-gdal-1-9-mapserver-6-2.zip which lists the GDAL core binaries and bindings components that are compiled daily using the Microsoft Visual ...
2
It sounds like you have not yet investigated Linear Referencing which would be ideal for that. Your requirement is one described in brief as one of its sample applications.
2
There is no way to mirror the databases "on the fly" using ArcGIS geodatabase replication. You could attempt something like this with DBMS replication but that is not a recommended practice. Best thing to do is set up a scheduled task to run the synchronization (via python script) as frequently as you need.
Understanding Distributed Data
The following ...
Only top voted, non community-wiki answers of a minimum length are eligible
