Tag Info

Hot answers tagged

8

Three options I can think of: Save your map document and open it when you subsequently want to work with the shapefile. This should be obvious so perhaps you have not explained why this is not working for you. Save the layer to a layer file and load that instead of the shapefile Load the shapefile into a geodatabase and set up a cartographic representation ...


7

GeoChalkboard can give you a good overview of the changes! Here's the list, but check it out for more detail: Replace the import statement Replace all gp. with arcpy. Check your capitalization. The result tool is different. Replace any del gp statements. The overwrite tool is different. Import the env module from arcpy. List item


6

First answer - No, you can not have duplicate names in a geodatabase. Yes, this is the expected functionality since the Feature-Dataset is only a record reference in a database. Any database will balk at having tables with duplicate names. It sounds like you are trying to use the Feature-Dataset model for organizational purposes versus the true purpose of ...


6

I have tried supervised classification in ArcGIS. Firstly I would say that it is not the best software for classification. As I did it, you can create training sites as points. Just create a shapefile (or geodatabase), add Integer field, click points over your image and assign classes as numbers. (I think you can also use polygon shapefile). For ...


6

As @Baltok alluded to, you are trying to have the Selection on a particular layer be treated in the same way as other layers are, with respect to drawing order. I think that by default, and design, ArcGIS makes the Selection override the symbology of anything that is underneath it, as a means of making it easy to find the selection. Since you are selecting ...


5

You can do this through Spatial Analyst. Adding separate bands is very simple. When you are adding layer, go to your tiff and instead of adding, double-click on it. You will enter into its bands and now you can add these bands separately. So, from this you will enter into this Then you can use Raster calculator to do the sum. Open it from the Spatial ...


5

Please have a look IFeatureClass.Search Method To get feature by mouse click: public List<IFeature> Search(IPoint mousePoint, double buffer, IFeatureClass featureClass) { var envelope = mousePoint.Envelope; envelope.Expand(buffer, buffer, false); var geodataset = (IGeoDataset)featureClass; string shapeFieldName = ...


5

Is your question about whether you can open a 10.1 geodatabase with ArcGIS Desktop 9.3.1? If so the answer is no. ESRI's stance until recently has been one of backwards-compatibility only. Meaning the client version must be at or newer than the geodatabase release version. See the compatibility table here: Client and geodatabase compatibility ...


4

if i have understood what you meant by flat buffer on polygon, you could apply these steps : feature to polyline. Split at vertices buffer with flat enabled Append the original polygon to the buffer_result dissolve on a commun value, if there's not a commun value, add a field to make commun value


4

Assuming you have the pyodbc library installed (there's an installer for Python 2.5 in their Downloads section) it's a simple matter of looping through each row of the Excel sheet. Something like: #import libraries import arcgisscripting import pyodbc import os.path #set paths to documents old_gdb = "path_to_old.gdb" new_gdb = "path_to_new.gdb" excel_path ...


4

Styles: Your personal style is the default location where new symbols and style elements are saved. It is empty to begin with but can be used to organize your style contents. It will always be referenced by ArcMap. On Windows XP, it is located at install drive:\Documents and Settings\\Application Data\ESRI\Desktop10.1\ArcMap. On Windows Vista and ...


4

You need to save your work in .mxd (Go to File--Save as and the save all your data in .mxd format. Next time when you open the .mxd it gives you same color ) Link :http://prod.library.utoronto.ca/maplib/docs/ArcGISmxdhelp.pdf (instead as save as copy click on save as) Try this and let us know.. thank you..


4

This question asks for two things: (1) identify the boundary cells and (2) "find" their elevations. Although "find" could be interpreted in many ways (do you want an output table of elevations? A DEM containing only those cells? etc.), doing it is straightforward once you have solved (1), especially if the boundary cells have been represented as an indicator ...


4

So here is what I would Find out: Is your License valid, and not expired? To see this go to Start>>ArcGIS>>Desktop Administrator and go to the Availability Section. You will see how many ArcGIS Network Analyst extension licenses are available on your License Server, and how many are free. It will also indicate the expiry date of the License. In ArcCatalog ...


3

Turns out this is a known issue and has to do with how Simple Line Symbols are drawn using GDI. If the line width exceeds 1 point when displayed, it is drawn as a solid line. The workaround is to use a Cartographic Line Symbol instead.


3

Assuming that you have ArcGIS 9.3 with the Spatial Analyst Extention. Add your data, trough add data button. Both the DEM and the Excel sheet. In the source tab, right click over your table data (from your excel), and choose Display XY Data; In the Display XY Data choose your X and Y Fields, and press OK. At this point, you should be seeing your XY ...


3

I think there may be unavoidable cursor transaction overhead to slow you down unless there is a way to update a large batch of rows at once. Comment out "cur.updaterow(row)" and run it again... is there a difference? The secondary slow down in your case is a lot of unnecessary copying. dict.keys() copies values and you have many. Better to do "if k in dict" ...


3

I would recommend calculating soil moisture indices from Landsat TM bands. MTRI has an interesting article on creating soil moisture index (SMI) from Landsat TM 5. Also, I would recommend exploring soil moisture estimates using TM band 6 (Thermal IR). Attached is a good tutorial on calculating indices from Landsat TM bands using ArcGIS 9.x (as you ...


3

Without more information it is going to be difficult to know which of about 4-5 possibilities is causing this. 1. you could have multiple symbolizations for the one point. 2. you could have multiple layers for the same data. 3. you could have multiple points at the same location. 4. you could have multiple data frames sitting on top of each other. 5. You ...


3

A possible reason for this may be that the features have been converted to graphics. This will show the points, but will not allow editing. Can you select the points using the Select Elements arrow? If so, these points are graphics. You can remove them or turn them off in the Annotation Groups tab. Right click on your data frame in the table of contents ...


3

ok, i think i found the trick! after you gave me your data sample set, my first thought was: What a crap! ;) Your sample consists of 71 single lines, which partly overlap and have some tiny offsets as well. i guessed that GRASS would be the way to go, and ... tada .. it is so, this is your line data labeled with its feature ids. If you know how to do it, ...


3

Perhaps this helps: You can write intermediate data to your computer's memory rather than to a shapefile on disk. Writing intermediate data to memory is extremely fast compared to writing to disk. Use the in_memory workspace: in_memory In this question you find some hints for the syntax and usage for in_memory workspace.


2

Personally, I only use iEditor/iEditor2 interfaces for edit sessions and edit operations. You say you are working on an ArcMap extension so you should use iEditor sessions/operations since it is available. (IWorkspaceEdit is a lower level interface for use when the Editor is not available - in engine environment see page 40 of presentation) I think you still ...


2

I found the cause of this problem. The problem is not with the code, but with ArcGIS licensing and the specific set-up of the feature class I was editing. The feature class referenced by featureClass participated in a relationship class. I was executing the above code under a ArcView license. (Why would I do that, you ask? As you may know, editing (in ...


2

Azavea has released a web-based, open source software for collaborative redistricting called DistrictBuilder. You might want to try it out. As for learning about redistricting, you might want to read A Citizen's Guide to Redistricting.


2

ESRI offers two products to support redistricting (as in drawing boundaries for election districts). The web-based product is described here. There's also an add-on version that is described here. As best as I can tell, the add-on is free and will work on versions 9.0 forward. Documentation and a tutorial are here. This add-on appears to be designed to help ...


2

Problem of the exporting was that I used local variables.. (Drag and drop from the same environment). And the problem of my script was that following the ArcgisHELP I also used local variables.. For scripting, when EDIT TIN, the full path with data source must be added, so insted just using variable, or local parameters: gp.EditTin_3d(raster, ...


2

I believe in your scenario, you can keep on using SelectByShape method within the following sequence: Access IMxApplication.SelectionEnvironment, save the value of ISelectionEnvironment.CombinationMethod to a temporary variable. Set ISelectionEnvironment.CombinationMethod to esriSelectionResultEnum.esriSelectionResultXOR. This will ensure proper handling ...


2

Turns out that the result will return null if any of the inputs to the tool are not correct. I found the best way when you don't know all of the parameters is to get the Python script from a run of the tool that was successful. This will at least get how the parameters should look, and that can be converted to .NET.


2

QI from IMapFrame.Map to IGraphicsContainerSelect and call its UnselectAllElements or UnselectElement methods.



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