11

There is no need to write any additional ArcPy for this. Simply use dynamic legends (which were added at ArcGIS 10.1) when you are authoring your maps. The Map Extent Options allow you to control how eligible legend items interact with the current map extent. If the Only show classes that are visible in the current map extent check box is checked, a ...


10

I realise this question is tagged 9.3, but anyone looking for the same answer at 10.1 onwards is better off using arcpy.da.Walk. It is faster and more accurate than ListDatasets/FeatureClasses/Rasters/etc. import arcpy import os for root, dirs, datasets in arcpy.da.Walk('d:\scratch.gdb'): for ds in datasets: print os.path.join(root, ds) The ...


8

Your question is a mélange of misinformation and cross-threaded topics, which makes it exceedingly difficult to answer. First off, there is no comparison of the "SDE API" and "MSSQL Native geodata format". ArcSDE is many things, including a code library for accessing data (not spatial data, all types of data, including geometry) in multiple SQL (and no-SQL)...


7

A solution to this is discussed on the ESRI forum here: Every planar surface has a simple formula, Jesse, in the form (something)*x + (something else)*y + (constant). In the Raster Calculator, x is $$XMap and y is $$YMap. The trick is figuring out the coefficients. Often you want to specify a plane in terms of its slope (s), aspect (a), ...


6

I had a similar problem with the Tabulate Intersection tool (using 10.4). I found the suggestion to place the resulting table into a geodatabase from here: https://geonet.esri.com/thread/13680 It fixed the problem!


6

I've written a script for 10.1/10.2, however you might see if it is possible to rewrite it for 9.3. I've almost never used arcgisscripting, but I guess it would be hard to implement the same without arcpy in 10.0+. Bearing Distance To Line GP tool I've used is available only in 10.0+, too. If 9.3 is your only option, you could try to generate the lines ...


6

Thanks for your script Alex, very nice! I saw a small issue, since relies on several geoprocessing tools that run for each row: Create Table > Add Field > Cursor to Insert Rows > Bearing Distance To Line > Append > Delete Table > Delete Lines >>> Reiterate for next row. It took 10 secs per feature for me. Since, I needed to process around 18,000 features (e....


6

Your downloaded shapefile already had a coordinate system defined in its *.prj file: PROJCS["NAD_1983_StatePlane_Texas_South_Central_FIPS_4204_Feet",GEOGCS["GCS_North_American_1983",DATUM["D_North_American_1983",SPHEROID["GRS_1980",6378137.0,298.257222101]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Lambert_Conformal_Conic"],...


5

The short answer is you can't produce a clipped sid image in ArcGIS 10, the format is proprietary. But you should be able to produce a clipped jpeg 2000 (jp2) which is similar. A typical sid compression is 20 to 1. In ArcGIS to get the equivalent compression on a jp2 you would use 5 in the Environment - Raster Storage form compression quality box. (That ...


5

You could look at using some open source options. QGIS is a great source, but if you do not want to have a second GIS application, I would look at using OGR. You can look for OGRGUI, or download the suite of GDAL tools (OSGeo4W).


5

gp.AddToolbox(path_to_tbx) gp is a arcgisscripting object, as you suspected. The ESRI docs: here.


5

You can use the Geometry object which is available even in 9.3. The .pdf file for Geoprocessor model in 9.3 The code sample: rows = gp.SearchCursor("D:/St_Johns/data.gdb/roads") row = rows.Next() while row: print row.Type Alternative way is to use Describe method where you could use ShapeType: import arcgisscripting gp = arcgisscripting.create(9.3) ...


5

As far as I know, which may not be very far, you can't do that. An mxd is a separate document from the data it contains. Many CAD programs can use shapefiles, although again you wouldn't get symbology. For text, try converting it to annotation and maybe that will export to CAD. Do this on a copy of your data. I'm more used to bringing CAD into Arc than Arc ...


5

There is a tool in the free and open-source (GNU GPL licensed) GIS Whitebox Geospatial Analysis Tools that can identify the flowpath from any point or collection of points specified either as a ShapeFile or as a categorical raster. The tool is called Trace Downslope Flowpaths: The tool takes a D8 flow pointer (flow directions) grid as an input, which can be ...


5

If you use a negative Label Offset on the Labels tab of the Reference System Properties, it will move them where you want:


5

If you are using Windows, you could use the ArcGIS 10.1 Uninstall Utility for Windows which will uninstall ArcGIS 9.3 in preparation for 10.1. Note that: The ArcGIS 10 Uninstall Utility will remove all ArcGIS 9.3 software except ArcSDE, ArcGIS License Manager, and certain extensions. ArcGIS 9.3 Beta software will not be removed. You may need to remove ...


5

I think the best advice that you are likely to get on uninstalling/installing this very old software is a thread at GeoNet. It mentions precisely the same error message as you are seeing.


4

Recent versions of ArcGIS, since 10.2 and we are now at 10.5, have a set of tools named Excel Toolset which has a Table To Excel tool which: Converts a table to a Microsoft Excel file. You can convert to excel directly from this tool. It does have some limitations. For example Excel 2010 onward supports 16,384 columns but ArcGIS will only export 256 ...


4

In the map view, right-click on the Legend to open the Properties window, then click the "Items" tab. Under "Map Extent Options", select "Only show classes that are visible in the current map extent". It'll refresh as you move around the map or toggle on/off classes within the layer.


4

In case this is helpful to others, i was able to create the following python code using arcpy which will place points at a specified interval based on an input line feature layer. import arcpy line_lyr = 'my_line' pt_lyr = "my_point" interval = 200 insertCursor = arcpy.da.InsertCursor(pt_lyr, ["SHAPE@XY"]) # this is the pre-existing pt feature class ...


4

Old question, but since appears quite high when searching for "convex hull arcgis", thought I'd add the Create Convex Hulls Geoprocessing Sample. This uses the geometry convexhull() method (requires 10.1 or above, tested in 10.2). Works fine in ArcGIS basic, the code in the (python) toolbox is also a good reference for using this method elsewhere.


4

You can use the Spatial Join tool found in the Analysis ArcToolbox. This will create a new dataset with polyline attributes attached to the polygon.


4

Give GDAL/OGR a try - open source - ogr2ogr: ogr2ogr -f 'ESRI Shapefile' output.shp input.kml


4

From my collection of ArcGis 9.3 python scripts: import arcgisscripting gp = arcgisscripting.create(9.3) Shape_A = "c:\\some\\path\\to\\shapefile.shp" Shape_B = "c:\\some\\other\\path\\other_shapefile.shp" Intersection = "c:\\output\\path\\output.shp" gp.Intersect_analysis(Shape_A + ";" + Shape_B,Intersection,"ALL","#","INPUT") You will need to change ...


4

I think that the error isn't with the data so much as with the symbology of the first tile. That is, it has to be in the way that the tile is being rendered with a colour ramp. The reason I say this is that I downloaded the data you linked to and displayed the tiles in a different software package and this is what I got: You'll notice that the 'Error' tile ...


4

Your GPS is most likely set in USNG coordinates, hence the 17 S. PDF of USNG Chart here You are currently selecting UTM Zone 17S as your original coordinate system, placing points in that zone (More on UTM Zone 17S here): When running the project tool, you need to use the correct coordinate system, which I am assuming is USNG 17S, since you mention North ...


4

If you are using ArcGIS 10.0 or newer, there is a tool KML to Layer that can be found in the From KML toolset in Conversion Tools toolbox. If you can't find it you can also use ArcMap's Search function (Ctrl+F) and search for KML and it should find all the tools that work on KML files including the KML to Layer tool (4th in my search results below). Note ...


4

ArcGIS Survey Analyst was an extension product for ArcGIS Desktop 9.3.1, and earlier, that was deprecated at ArcGIS 9.3.1 and did not ship with ArcGIS 10. The ArcGIS 9.3.1 System Requirements included Windows 7 (with some limitations) but no later OS versions. ArcGIS 9.3.1 was retired for support on 31 Dec 2013. With such a new operating system (Windows ...


3

Extending on Chad's answer, following does the trick for feature layer with multiple legend groups for (int k = 0; k <= (featureLayer as ILegendInfo).LegendGroupCount - 1; k++) { (featureLayer as ILegendInfo).get_LegendGroup(k).Visible = false; }


3

I have a "quick and dirty" way. Switch ove to the default version and edit something about the polygon that was deleted. Then when you reconcile to default you'll get a conflict. Right click the conflict and tell it to use the pre-reconcile state. It works for me.


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