Hot answers tagged

4

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 ...


4

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


3

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 ...


3

It is unclear why you don't want to use the extract by mask option. The only other way I know of is to set the mask through the environment settings: ArcGIS Help 10.1 - Mask (Environment setting).


2

Have a look at generalization tools such as Expand, Shrink, Boundary Clean and Thin. A combination of these tools should help. For instance Expand followed by Thin in your case should join many of the gaps. What is achievable will depend on how poor your data are. An alternative which could help if you are finding too frequent merger of small areas is to ...


2

In ArcScan, (even with v9.3) there are a whole load of tolerances to fiddle with, including a "gap closure tolerance". Have you fiddled with these? See ArcScan - batch vectorization In some cases you will have to resort to cleaning these gaps manually.


2

To Mosaic non georeferenced images using ArcMap may not be possible at all. I Suggest you use online base-maps if you know the locality of the images, look for duplicate points from the image and an online base-map then use those values to first georeference so that you can Mosaic


2

It looks like, this has to do with the cell resolution of your DEM. If you zoom really right in, you will see that the size of the cells are bigger than the gap created between the DEM and the polygon outlines. Therefore, you either work with these extracts. OR if you would like a perfect area that fills the polygons you have to: RESAMPLE your DEM into a ...


2

I have not used 9.3 for many years now. An alternative way to run your model is to right click on it and run in batch mode. You may be able to drag and drop multiple datasets in to the batch grid interface? I remember looping was awkward in 9.3 and the usual way of resolving things was to write a simple loop in python.


2

You can add the Data management toolbox back into the ArcToolbox panel. Simply right click on the the top node (ArcToolbox) and choose Add Toolbox. Now I stopped using 9.3 years ago so I can't tell you where the toolbox is located but it will be within the installation folder of ArcMap. That's for you to find the tbx file. Having re-established the toolbox ...


2

My guess is that the source of error is in your first step - I changed the coordinate system from Conical coordinates to lat/long UTM-39N From your question it is not obvious how did you do that. You cont simply change coordinate system, you must transform raster to new coordinate system. The proper way will be by Project Raster tool and you must be ...


2

It is possible, but you have to put some effort into it. Sometimes even the spelling of an 10.0 and 10.3 script is different. Check this question for a good overview: Migrating ArcPy scripts from ArcGIS 9.3 to 10?. I would also recommend you to check out the data access module (arcpy.da) mainly for cursors, which is much faster than the regular cursors. ...


1

The identify tool yields a result for the layer(s) selected in the drop down list on the right of "identify from:" . In your case, the selected layer is currently "orange_soil_raster" and not "durh_soil_utm". Change the identify target to "all visible layers" or "durh_soil_utm" and it will work. Note that in the first case you will need to expand the results ...


1

ArcToolbox > Data Management Tools > Projections and Transformations > Feature > Project Select feature of choice from layers list and drag to "Input Database or Feature Class" field in Project window For "Output Coordinate System" field: Select > Projected Coordinate Systems > UTM > (projection of choice) (MAKE SURE YOU SELECT THE PROPER ZONE!) Then ...


1

Actually, All I had to do is to refresh the Tool: pApp.CurrentTool.Refresh


1

Standalone code def f(s): idx = s.upper().index('S') s = s[:idx] for i in reversed(range(len(s))): if s[i].isalpha(): s = s[i+1:] break if s.isdigit(): return int(s) else: return 0 Testing print f("S2Olch1E") #0 print f("6S2Olch1E") #6 print f("5B66S2Olch1E") #66 print ...


1

A much more efficient method than in my first answer is to iterate through Junctions once and store all the values in a python list. Then iterate through Junctions_lyr and proceed with those values found in the list. Junctions_Lyr = "Junctions_Lyr" gp.MakeFeatureLayer_management(Junctions, Junctions_Lyr, "", "", "") ...


1

I don´t know if ArcMap 9.3.1 has the tool. But there is a Tool called "KML to Layer". You need tho export the temporary layer to shp. If not use this online conversion: http://www.zonums.com/online/kml2shp.php


1

To "go through a designated folder, [and] locate all MXD files within the folder" is relatively easy with Python, and there is a Stack Overflow Q&A that describes some ways: http://stackoverflow.com/questions/3207219/how-to-list-all-files-of-a-directory-in-python However, the rest is much harder because ArcGIS Desktop 9.3 only had access to the ...


1

Migrating from ArcInfo™ Workstation: An ESRI ® Technical Paper • December 2002 says on page 6: Symbology: all ArcInfo Workstation symbols—plus many more—are available through style sets. A symbol converter is also available for converting custom ArcInfo symbol sets. I do not recall having ever used or seen that symbol convertor but if you are not ...


1

Download ArcPhoto for 9.x (Version 1.5.3) 27MB. Among other features it has some geoprocessing tools to support you with converting your geotagged photos to a point feature class.


1

With ST_GEOMETRY and SDO_GEOMETRY you can use SQL in addition to ArcGIS Desktop to work with your data. Although with SQL, one should take many precautions (read the docs). To migrate from sde_binary to one of above, you have to reload all data into your database. Migrate Storage (Data Management)


1

The IScreenDisplay interface has a ScaleContents property; set it to True and the old behavior is back. My.ArcMap.Document.ActiveView.ScreenDisplay.ScaleContents = True This works as a button click event in ArcMap, though I'll probably create an extension that the user can enable or disable. Hopefully it will also work in your application.


1

If you have Adobe Illustrator and the MAPublisher plugin, you can open the PDF in Illustrator and then export it as shapefiles for use in ArcMap


1

Following M.D.'s prompt to isolate the problem, I removed all the event handlers from my map control, thus effectively paring it back to the core ArcGIS functionality. The map painting issue disappeared. I then added the event handlers back in one-by-one to isolate the problem. The problem appears to be a bug in the ArcGIS control where if a map layer is ...


1

When the form is resized at run time, the PageLayoutControl and MapControl do not automatically resize. To resize the controls so that they always fill the extent of the form, anchor the controls to the form. If the PageLayoutControl or MapControl contains a lot of data, redrawing this data while the form is resized can be costly.To increase performance, ...


1

Try Isolating the problem. If you create a new form add a split control, drop a map control in to one side of it, then reference an mxd in the map control and run the form does the MapControl refresh properly? I tried this exact thing upon reading your question, and it works fine out of the box for me. If it does for you, you could start adding pieces of ...


1

You might want to try using the ASCII 3D To Feature Class tool. It will require that you setup a text file with the format described in the help documentation. You can also write a Python script that uses geometry objects to construct a line feature, like this example which creates a 2D line from a semi-colon delimited text file.


1

Ihad the same problem and I resolved it by casting featureClass from IFeatureClass to FeatureClass: IFeatureClass featureClass = featureWorkspace.openFeatureClass(shapefileName); FeatureClass featureClass2= new FeatureClass(featureClass); ..... //Attempt to acquire an exclusive schema lock on the feature class. ISchemaLock schemaLock = ...


1

I figured out a simple way to do this in model builder. Lets say you're are iterating over a few files to do a clip to all of them. 1) Create an interator for feature classes. Right click on it and make a variable for the workspace. 2) Rename the workspace bubble to "Workspace", and also right click on it and select "make parameter". This will prompt you ...



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