|
POST
|
why there is no tool to move the symbols up or down in raster case? Because the raster renderers are different than the feature renderers. Would be a nice enhancment request, please do contact ESRI support and let them know, or submit it at ideas.esri.com.
... View more
05-30-2011
05:52 AM
|
0
|
0
|
1134
|
|
POST
|
I'm supposed to be using Single Output Map Algebra, right? The syntax with the brackets is for the Arc 9.3.1 raster calculator. Is that what's tripping you up? The syntax for the (similar) single output map algebra tool is different. There are examples in the online help; which one you want to use is up to you. Note in Arc 10, the Raster Calculator, the Single-Output and Multi-Output tools are all replaced with the new Map Algebra tool. There have been complaints about this, but I kind of like only having one syntax instead of three.
... View more
05-30-2011
05:48 AM
|
0
|
0
|
375
|
|
POST
|
Does anyone have any idea why I am getting these different results? Pam, just an approach to try: I would compare the two input zone rasters (wilderness, wilderness x regions) to make sure the cell sizes, extents, cell counts match up the way you think they are matching up BEFORE you run the zonal statistics. Then before I ran the zonal stats I'd make sure the GP environment is set the same for both runs.
... View more
05-30-2011
05:41 AM
|
0
|
0
|
420
|
|
POST
|
i used the tool "Copy raster" but i got the error 999999 Hi Jamal, The most common reason for this very generic error to happen is when ArcGIS finds something it didn't expect. I'm wondering if you may have been messing with the Value item in the raster table. It should never be set using table calculations. The way to get a field value from a raster table into the VALUE item is to use the Lookup function to make a new raster. a thing I personally try to avoid is putting anything with a value outside 0-255 in a tiff, just for compatibility reasons with other software that reads tiff images that may or may not support something besides 8 bit integer values. Is there a particular reason you want to push these values into a tiff raster?
... View more
05-30-2011
05:36 AM
|
0
|
0
|
463
|
|
POST
|
Is there a way in ArcPy to test a featureclass in order to see if it is part of a featuredataset + get the name of the featuredataset? Thanks! Here's my suggestion:
import arcpy, os
def GetFDS(FC):
""" Returns the feature dataset for a feature class
or feature layer FC.
If the feature class is not within a feature dataset,
returns None."""
# get the path to the feature class
fcPath = arcpy.describe(FC).catalogPath
# get the path to its container
fcHome = os.path.dirname(fcPath)
# is it a feature dataset??
if arcpy.describe(fcHome).dataType == "FeatureDataset":
return fcHome
else:
return None
... View more
05-30-2011
05:29 AM
|
0
|
0
|
489
|
|
POST
|
Some problems I am having include how I should code "Cut Polygon Features" in python and how I should use parameters to allow me the options for drop-down lists, entry fields, and check boxes in my tools window. It's a little unclear to me what you are trying to do (for example, how you delineate a boundary using existing polygons, this sounds more like a dissolve operation than a "cut polygons" operation). But I would look into script tool parameter validation, which allows you to populate pick lists, checkboxes etc. based on the input parameters: http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//00150000000t000000.htm
... View more
05-30-2011
04:50 AM
|
0
|
0
|
927
|
|
POST
|
I was wondering if you have upgraded this script for the v10 model builder? Thanks in adavance. Most script tools should work fine in Arc 10, including in Model Builder.
... View more
05-30-2011
04:43 AM
|
0
|
0
|
1496
|
|
POST
|
So far, I have also needed to change the path to any toolboxes I've loaded. For example... from: gp.AddToolbox("C:/Program Files/ArcGIS/ArcToolbox/Toolboxes/Data Management Tools.tbx") to: gp.AddToolbox("C:\Program Files\ArcGIS\Desktop10.0\ArcToolbox\Toolboxes\Data Management Tools.tbx") Am I doing something I don't need to? This was originally a script back at 9.1 or 9.2 that imported win32com.client. Do we no longer need to call out a specific toolbox? Thanks, Gavin If youre still using GP: import os ARCHOME = gp.ArcInstallInfo("Desktop")["InstallDir"] # replaces os.environ["ARCHOME"] at 9.3 gp.AddToolbox(os.path.join(ARCHOME,"ArcToolbox/Toolboxes/Data Management Tools.tbx") The above code will work for 9.x or 10.x But, note that system toolboxes do NOT need to be added, a new gp automatically has them all available, even though an export from modelbuilder includes the AddToolbox call.
... View more
05-23-2011
05:37 PM
|
0
|
0
|
673
|
|
POST
|
You said, installed both Python and ArcGIS -- the ArcGIS installer should install Python (and numpy) on its own. If you installed Python separately you will be missing numpy and that will make the geostat tools fail. Do other python scripts work??
... View more
05-16-2011
12:59 PM
|
0
|
0
|
1072
|
|
POST
|
Several people have suggested something with Python, but I don't know where to start with that. Any help would be appreciated! It does look like your script is not able to properly create a geoprocessor object. I think the best way to reconnect Python with ArcGIS is to uninstall *all* python related software from add/remove programs, then do a repair install of ArcGIS followed by reinstalling the most recent ArcGIS service packs. This will ensure you have the right version of Python (2.5.1 32 bit) and that it can talk to ArcGIS. Good luck!
... View more
05-15-2011
01:38 PM
|
0
|
0
|
1072
|
|
POST
|
I am interested as well. I also don't see an Arcpy module that can access this function. Out side of third-party tools like XTools, I bet dynamic segmentation may be the ticket to do what you want. Search for "dynamic segmentation" in the help.
... View more
05-15-2011
01:31 PM
|
0
|
0
|
1775
|
|
POST
|
I have multiple bird distribution maps in the form of ArcGIS shape files. The distribution maps are composed of grid polygons. (1 grid= 100 km* 100km) Now I want to obtain the centroids of each bird distribution maps. You may want to try a dissolve operation first - use the option to merge separate polygons into multipart polygons. Each Multipart should generate only one aggregated centroid when you run Feature To Point.
... View more
05-15-2011
01:29 PM
|
0
|
0
|
334
|
|
POST
|
Hello, gp.ZonalStatisticsAsTable_sa(Canola_AllShapes, "CSD", null_CLASS_SMA14_mask, ZonalSt_Cano1, "MEAN", "DATA") When I run, I receive an error "ERROR 000621: Input to parameter ignore_nodata not within domain." Your parameters are not correct. The "MEAN" parameter is not a valid argument -- the 9.3 version of this tool does not let you specify specific statistics to calculate. (the 10.0 has such an argument tacked on the end -- thanks developers!) gp.ZonalStatisticsAsTable_sa(Canola_AllShapes, "CSD", null_CLASS_SMA14_mask, ZonalSt_Cano1, "DATA")
... View more
05-15-2011
01:26 PM
|
0
|
0
|
423
|
|
POST
|
The parameters did change a lot in v10 (why I do not know) including not taking the output raster name as a parameter (weird). The parameters have changed a lot to support the new map algebra approach which is fully integrated with Python. Once you get the hang of it I hope you find it is worth it. This is all well-discussed in the What's New in Spatial Analyst help. http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/What_s_new_in_ArcGIS_Spatial_Analyst/00qp0000001n000000/ I think your syntax issue may be because you are specifying a string (path) instead of the expected raster object. Here's how you convert your path into a raster object in the new pythonized Map Algebra: tmpRast = PointDensity(Raster(mergeName), "NONE") Hope this helps!
... View more
05-15-2011
11:54 AM
|
0
|
0
|
1209
|
|
POST
|
In a typical suitability analysis, you start with the criteria and then figure out how to quantify and calculate "scores" using the toolset. Some thoughts. 1. what areas should the canal be reaching? 2. are there spatial factors that will affect cost of construction? 3. Is there a maximum slope from the land surface of the target area to the existing river? If you know the from point, this looks like it may be a classic cost distance analysis -- but you need to define a cost surface to do that. This requires that you have some parameters to define cost. Hope this helps you get started....
... View more
05-15-2011
11:39 AM
|
0
|
0
|
414
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 08-11-2021 01:26 PM | |
| 5 | 12-10-2021 04:58 PM | |
| 1 | 02-27-2017 09:30 AM | |
| 2 | 12-04-2023 01:05 PM | |
| 1 | 04-12-2016 10:17 AM |
| Online Status |
Offline
|
| Date Last Visited |
06-19-2024
12:10 AM
|