Tag Info

Hot answers tagged

39

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


20

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


19

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

http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/RasterToNumPyArray/000v0000012z000000/ ArcGIS 10 has the ability to write and read numPy arrays.


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

I regularly need to join to another depts featureclass: SDE featureclass with no indexes on anything. Copying to a local file geodatabase + index builds really speeds things up. Since it's temporary, I'll usually do this on a RAM disk http://t.co/EBTeOem. Depending on your data, indexing fields that you use for symbolizing or fields used in the ...


10

The idea is good but the proposed implementation may be too simplistic to be credible. Rents are a property of economic systems. Besides being influenced by location, they are related to other economic variables in important ways: state of the local (and national) economy, local housing prices, availability of capital, employment rates, etc. To do a good ...


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.


9

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

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

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


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

This page on Esri's site should give you all the information you need to do this within ModelBuilder. Essentially you create a variable for the output folder/geodatabase -- which can be user-generated or hardcoded -- and then call it in the other tools by its name, surrounded by % symbols.


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

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



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