Tag Info

Hot answers tagged

37

Ugh. The answer is really a complicated one that requires a lot of ArcSDE background, so I will try to be as brief as possible. Note I am going to refer to some diagrams from the super awesome versioning white paper that you can find in the ESRI site. If you are dealing with versioning, I extremely encourage you to read it throughly. Then, you need to ...


19

This routine for arcgis10 returns all fcs (standalone OR within a feature dataset) inside a gdb. Just set your arcpy.env.workspace then do a for loop def listFcsInGDB(): ''' set your arcpy.env.workspace to a gdb before calling ''' for fds in arcpy.ListDatasets('','feature') + ['']: for fc in arcpy.ListFeatureClasses('','',fds): ...


18

The help file says: Can ArcGIS 10 be installed on the same machine as ArcGIS 9.3.1? No. For users who want to install ArcGIS 10 and ArcGIS 9.3.1 on the same machine, Esri recommends using a virtualization tool (such as VM Ware's VM Workstation or Microsoft's Virtual PC) and install the new instance of ArcGIS on that virtual machine. We had ...


17

When your purpose is to store what was written down, text is good. The other formats provide additional capabilities for data processing and analysis, while restricting or enhancing what can be stored and what can be done with the values. This has many important implications that any competent user of a GIS or database must know: Restricting the format, ...


17

A couple of general tricks I have found useful in the past in this situation: Run your Python script as stand-alone (e.g. from IDLE, PyWin, Eclipse or preferably CMD) to remove the overhead of ArcMap. Spawning subprocesses is an old trick to solving ArcGIS memory leaks even if you don't want to parallize a process. It works because the memory is released ...


12

You can use a conditional (Con) statement in the raster calculator or the con tool in ArcToolbox. The below statement is evaluated as [IF myrasters > 2000 THEN 1800 ELSE myraster] Con("myraster" > 2000, 1800, "myraster")


11

At version 10, there is now a Minimum Bounding Geometry (Data Management) geoprocessing tool which: Creates a feature class containing polygons which represent a specified minimum bounding geometry enclosing each input feature or each group of input features. However: The Geometry Type (geometry_type) options CONVEX_HULL, CIRCLE, and ENVELOPE ...


11

I am afraid I disagree with you. I think the ArcGIS help/forums/blogs/vids/etc give a great perspective on what you can achieve with the ArcGIS range of products. Your not limited to Python to manipulate your spatial data. You can still use VBA at 931 and 10 to access the ArcObjects library, or you could take it a step further and use .NET to do all sorts ...


11

I might be missing something, but won't the basic Dissolve tool (somewhere in the data management toolbox) do this for you? No need to mess with any code as in artwork21's answer. Just open the dissolve tool, select your feature class, do not select any field to dissolve on, and then uncheck 'Create Multi-part poygons' otherwise all your poly's will be ...


11

You must uninstall a previous version of ArcGIS software before installing a new one. In fact, the install programs will require it. In addition, I suggest that if you have any Esri or 3rd party tools that you uninstall them first, before uninstalling ArcGIS 9.3. A related question was asked earlier, How do I cleanly uninstall ArcGIS 9.3.1 extensions after ...


11

If you have logging turned on, you will be able to see your geoprocessing results in a log file. The "Log geoprocessing operations to a log file" option (under Geoprocessing [menu] -> Geoprocessing Options... in ArcGIS 10 or under Tools [menu] -> Options -> Geoprocessing [tab] in ArcGIS 9.3) will do what you're looking for. Default locations for these files ...


10

ESRI have a heap of videos, and I think these are the best resources to get started. I would recommend looking at the ESRI Developer Conference videos At time of writing, 2010 is the latest A Developers Guide to ArcGIS Server A Developers Guide to ArcGIS Mobile The ESRI Development Process Intro To ArcGIS Desktop Add-Ins Each of these videos conclude ...


10

@Tom Parker - MWrenn is correct. You have the option of selecting an attibute to dissolve on.(this will do an attribute dissolve) or no attribute (this will do a spatial dissolve). choose the statistics and any attributes you want to carry over. (this is not going to quite work like you want). Prior to doing the dissolve. create a new field and ...


9

You can use a Python script to do the heavy work for ya: Check this out and adapt it to your needs. Needless to say, this is not tested, and don't use it on production data WITHOUT MAKING A BACKUP FIRST. import arcgisscripting gp = arcgisscripting.create(9.3) gp.Workspace = "path_to_your_geodatabase" # you can use absolute path to this function ...


9

We had this as well unfortunately - I believe it is a known bug. The only way around it we found was to clone data across the network to a local drive, but that isn't much of a solution I know. It has been fixed in 10 however... Found two possible solutions on the ESRI forum - the one that worked for us was to look at the registry settings, as shown here ...


9

Your task could be done easily by using Zonal Statistics tool of Spatial Analyst extension.


9

If you force it you would need to convert from numeric to text. What you want to do is change the display. Open the field properties dialog by right clicking on the field name in the attribute table.. click the ellipses next to numeric... then in the number format dialog select the number of decimals you desire. then show thousands seperator check box.


8

Google's Terms and Conditions do not allow this. You can only get access to their basemaps if you use their map control. The ArcGIS JavaScript Extension for Google Maps API works with their map control and allows you to overlay services from ArcGIS Server.


8

Here are few resources to get you started. http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#/Building_add_ins_for_ArcGIS_Desktop/0001000000w2000000/ http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#/Walkthrough_Building_custom_UI_elements_using_add_ins/0001000001ms000000/ ...


8

Do you receive the same error by copy/pasting records? This is from memory, but if you right-click on the gray row indicator box, your menu should have "Copy Selected Records". Then you can paste directly into an Excel spreadsheet. A caveat: if your selections are in a related table that are a result of a feature selection, you might actually have ...


8

You need to use a conditional operator. The logic is: Result = If {new DEM has values, use them} Else {use values from the original DEM}. Alternatively, this can be expressed as Result = If {new DEM does not have values, use original DEM} Else {use the new DEM}. In ArcView the syntax varies with the version: there's one syntax for ...


8

If you know row, column, cellsize and extent, X & Y can easily be calculated. Note this assumes a North up raster. If the raster is rotated you'll need to know the other two affine transformation coefficients (or geotransform in GDAL speak). Also note that the column/row coordinates in the below are from (0.0,0.0) at the upper left corner of the upper ...


8

Every version of ArcGIS requires a specific Major.Minor version of Python (it uses the official installer releases from python.org). That version will be documented in the help. 9.3.X uses Python 2.5, 10.0 uses 2.6, 10.1 uses 2.7. Since the stack is compiled against a specific binary version of Python, other versions of Python will fail to load ...


8

A .lpk file is just a ZIP file. If you rename it (or just open in a ZIP file tool) you should find an "iteminfo.xml" file that will contain further information about what's inside. Here's a diagram of the structure, click through to see the Esri docs on it:


8

Please mention the sensor of Landsat 5, is it MSS or TM? Assuming it is Thematic Mapper data, you have visible red and shortwave infrared data. You can directly infer from the band reflectance values about where vegetation patches lie and hence moisture content. Band 3 (Red) can help you discriminate vegetation slopes and Band 5 (SWIR) can help you ...


8

The add-in model is a new feature in version 10.0. This means you will not be able to use an add-in at lower versions, which require you to implement your commands, extensions, toolbars etc. in the older COM-only model.


8

You can use a conditional statement. The issue with previous recommendations is that when you rasterize your polygons (which is necessary) the background, that does not contain polygons, will be NoData resulting in corresponding areas in the output also being NoData. You will need to set your analysis extent to your original raster and then set a background ...


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

In addition to using ArcGIS online tools, it may be possible to use the ArcGIS server data -- via open APIs like WMS or WFS -- in OpenLayers, an Open Source web mapping toolkit. OpenLayers wraps the Google Maps Javascript API -- along with several others like Bing, and Yahoo! -- and adds support for open standards like WMS/WFS, as well as support for ...


7

Legend Limiter The Legend Limiter only works on layers that use "unique value categories" to define symbology. This style of legend can be set up in the Symbology tab of the Layer Properties dialog. Legend Limiter will not limit the symbology of layers set up with single symbol symbology. http://arcscripts.esri.com/details.asp?dbid=16097



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