Hot answers tagged

12

The first thing I would do is monitor your system's resource utilization using something like Resource Monitor in Windows 7 or perfmon in Vista/XP to get a feel for whether you are CPU-, memory- or IO-bound. If you are memory or IO-bound there is likely very little that you can do but upgrade hardware, reduce the problem size, or change the approach ...


10

Some algorithm changes that should help you. Execute your selection first before the merge or integrate. This will cut down significantly on the later functions that are most expensive. Merge and integrate are both memory expensive, so you want to keep eliminating features as you bring in feature classes, and try to do your merges in a binary tree to keep ...


9

Clean is a bunch of different things, there isn't 1 thing in the arcgis desktop / geodatabase feature class model that does all those things... but all of those bits of functionality are covered. -if you want clean's "create polys from spagettli line work", you're looking for gp's "Data Management Tools\Features\Feature To Polygon" tool . This tool takes ...


9

I cross posted this question on Esri's Ask A Cartographer site. They pointed me to a mostly-suitable workaround: use Symbol Level drawing in general and Dissolving polygon boundaries using symbol level drawing in particular. Likely what Craig was pointing at earlier in his answer. I've seen the dialogs and help topics before but hadn't dug into them because ...


9

I ended up contacting tech support over this one, who gave me an accurate but hard to understand answer. I took their words and turned into a graphic, which I then verified with them I correctly understood, and am now sharing with you: Assuming a services.txt like the one in the above: the server firewall should allow inbound connections on ...


9

Here is an example of a multicore arcpy script. The process is very CPU-intensive so it scales very well: Port "Producing Building Shadows" Avenue code to ArcGIS 10 Some more general info in this answer: Can concurrent processes be run in a single model?


9

In my experience the biggest problem is managing stability. If you do six weeks of processing in a single night you will also have six weeks of inexplicable errors and bugs. An alternative approach is to develop standalone scripts that can run independently and fail without causing problems: Split the data into chunks that a single core can process in ...


8

Performing a Spatial Join will do this. Right click on the point layer and choose "Joins and Relates > "Join". In the Join Data dialog box, choose "Join data from another layer based on spatial location" in the drop down. Then choose the polygon layer you want joined. Then choose the radio button that says "is closest to it". (The selections are a little ...


7

Here you go: http://help.arcgis.com/en/arcgisdesktop/10.0/help/002t/pdf/Geoprocessing_data_types.pdf From: Data types for geoprocessing tool parameters To answer your specific question, I belive you would want to use a Workspace parameter which will let you specify an SDE connection file, then use filters to limit the workspace type (see screenshots in ...


7

Many DBMSes including Oracle do not have a Boolean column type, so this may explain why there is no Boolean field type in ArcGIS either. @Emily's suggestion of using a coded value attribute domain is a good one and I believe this is the ESRI-recommended best practice. The only other suggestion I would have is to use a CHAR field of length 1, as this way ...


7

For starters, you could include sw in your wildcard statement (*sw.txt), which presumably would reduce your number of returned records substantially (assuming you have ne, nw, se, etc). Second, now that you're working with a subset of files, use a conditional statement to widdle down your files to your exact needs. Pseudo Code: Set workspace (directory) ...


7

You could skip using ap.Listfiles all together and use a for loop with xrange... for rt in xrange(3609902,3610032): quads = ["%snw.txt"%rt,"%sne.txt"%rt,"%ssw.txt"%rt,"%sse.txt"%rt] print quads for quad in quads: if ap.Exists(quad): # Do whatever...


7

First problem: You're looking at a mixture of minima. One gigantic tree with an acre-sized crown looks quite a lot, interpreted on a point / kernel density basis, like a field with no trees at all. You will end up with high values only where there are small, rapidly growing trees, at edges and in gaps in the forest. The tricky bit is, these dense smaller ...


6

Based on explanation by Roy: toprocess = [p for p in [int(filename[0:7]) for filename in txt_list] if p>=3609902 and p<=3610032]


6

The complex number support in python is a simple way to do operations against Cartesian coordinates. The cmath module provides a function that converts a distance and angle into a vector. This assumes that the coordinates are in a suitable projection. import cmath import math x = 0 y = 0 angle = 0 distance = 100 #convert bearing to arithmetic angle in ...


5

ArcGIS Desktop is Windows only, but you can install ArcGIS Server on Linux or Solaris, and use ArcPy to access geoprocessing tasks. I believe that you'll need to have ArcPy loaded on the same machine that you have ArcGIS Server installed on. Edit: License considerations. You'll need a separate license of ArcGIS Server to run on your unix server for this to ...


5

In ArcGIS 9.3, with an ArcInfo license you can use the Near tool for this. In ArcMap make a feature selection on the polygon layer for type 'X', load them into the Near tool with the points as the input feature and the polygons as a near feature and it should work. Likewise with ArcGIS 10 and an ArcInfo license you can do the same thing with the ArcGIS 10 ...


5

ArcGIS is the software suite name, whereas ArcView, ArcEditor, & ArcInfo are licensing levels for ArcGIS. ArcView has limited buffer options, and ArcInfo has the full, advanced buffer options (see bullet point #4 under "Usage Tips"). http://webhelp.esri.com/arcgisdesktop/9.3/index.cfm?TopicName=buffer_%28analysis%29


5

we try pretty hard NOT to break when we ship a new release. When you install 10, the goal is that all your 9.x scripts would still work. arcpy scripts will not work with a 9.x release. If you need to share your scripts with 9.x users you cannot use arcpy, you are correct. You can keep writing scripts using arcgisscripting, and the online help for arcgis ...


5

For many contour maps a check of spatial consistency among the contour levels is not possible unless you supply additional information. Here's an example pulled arbitrarily from Google Images: The criterion for consistency is that the neighboring lines of each contour line should have values differing by at most one contour interval. But if you draw a ...


5

The below capture is using the method i described in my comment. (not representation - both layers referencing the same data) Tried to achieve this with representations in one layer but could not do it. Tried to generate just an outline with cartographic representation so that it may be used as an overlay but also could not do it. (Cartographic ...


5

In ArcMap 9 and 10 you can go to Insert > Legend in layout view, and follow the GUI to create & format the legend.


5

You've declared mxApp, but you haven't actually set it to anything. If you're using an addin, you can set that with the line mxApp = My.ArcMap.Application


5

OK, how I did this, is loop through creating ring buffers on objects, and saving the output as a new featureclass in a standlone datasets collection. I then merged the featureclasses, like so: tmp_merge = "path to area"\+ "tmp_merge" final_out_path_agg = final_staging + "_Agg" final_out_path_simp = final_staging + "_Simp" #check if files exist and ...


5

ArcEngine Applications that you build, and Desktop Desktop applications that Esri builds both use ArcObjects under the hood. However, Esri did not use the controls in ArcEngine to build Desktop apps. For example the TOC Control in ArcMap, while it looks like the one found in ArcEngine, is really a different animal.


5

The problem with your KDE appraoch is that it smoothes the whole area and thus closes gaps you might want to find. When I read that you used NDVI for tree crown detection, I wonder how the crown-polygons look like? are these really single polygons with tree-species ID linked to it? If you have the luxury to have polygons for every single tree crown and ...


5

Geoprocessing is set to run in two ways: foreground and background. Someone who has more ezperience then I do can comment on the specific nuances of either setting in relation to memory leakage. However, when running geoprocessing tools, many of which store temporary data in memory and it could be the tool itself that is causing the memory to reach capacity ...


4

Your lucky day! Flex 2.2 is just out. It is very easy to add the flex sample application and get it going. You should find plenty here... Flex 2.2


4

I did this a while ago, I'm not sure it is the best way to go, but it worked at the time. g.fwtools = r"D:\FWTools2.2.8" # name of translate command g.cmd = os.path.join(g.fwtools, "bin", "gdal_translate.exe") def setupfwtools(g): """ Sets the environment variables to access the GDAL tools. This allows us to run this script without depending ...


4

Buffering is allowed in all licences (ArcView, ArcEditor & ArcInfo) Full License Matrix for 9.3 is here: http://www.esri.com/library/brochures/pdfs/arcgis93-functionality-matrix-list.pdf



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