|
POST
|
try http://resources.arcgis.com/gallery/file/geoprocessing/details?entryID=1E56696E-1422-2418-3462-F19FDA7E8B86 works with any license level of arcmap
... View more
08-14-2011
10:12 AM
|
0
|
0
|
517
|
|
POST
|
type this in at the end .... ^(1.0/12.0) you may have been are experiencing integer division since you were dividing 1 by 12
... View more
08-11-2011
01:42 PM
|
0
|
0
|
8317
|
|
POST
|
A "many-to-one" is called a relate in Arc-parlance...check the help files http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//005s0000002n000000.htm
... View more
08-05-2011
10:03 AM
|
0
|
0
|
2366
|
|
POST
|
Did you see this thread on "padding" numbers? http://forums.arcgis.com/threads/35137-Populate-a-field-with-consecutive-numbers-by-a-constant-length-string.?p=119553#post119553
... View more
08-05-2011
07:27 AM
|
0
|
0
|
866
|
|
POST
|
You are lacking specific details. I write scripts all the time that work within Pythonwin or Pyscripter and/or as tools within Arctoolbox. 1 What are your installation details? Was it default installation on a local machine or in some networked environment? 2 Did you change the version of Python that was installed and not use the one that comes with ArcGIS? 3 Machine specifics will not be relevant, but the operating environment will be as will samples of simple code that works in one environment and not in another. 4 Provide error messages as well as copies of the failing scripts. As of version 10, ArcGIS is pretty tightly tied to Python and if you want, the version of Pythonwin installed from their installation CD's. Problems seem to arise when it isn't a local install...people want to use a different version of Python or a different Python IDE. Keep it simple or narrow down where your environment is different from the rest of the installations that have no problems. Good luck
... View more
08-04-2011
02:00 PM
|
0
|
0
|
4023
|
|
POST
|
You would be advised to rely on your Python IDE (eg. PythonWin, Pyscripter etc) to obtain a list of applicable functions and help. >>> dir(arcpy.env)
['MDomain', 'MResolution', 'MTolerance', 'XYDomain', 'XYResolution', 'XYTolerance', 'ZDomain', 'ZResolution', 'ZTolerance', '__class__', '__delattr__', '__delitem__', '__dict__', '__doc__', '__format__', '__getattribute__', '__getitem__', '__hash__', '__init__', '__iter__', '__module__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__setitem__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__', '_environments', '_gp', '_refresh', 'autoCommit', 'cartographicCoordinateSystem', 'cellSize', 'coincidentPoints', 'compression', 'configKeyword', 'derivedPrecision', 'extent', 'geographicTransformations', 'items', 'iteritems', 'keys', 'maintainSpatialIndex', 'mask', 'newPrecision', 'outputCoordinateSystem', 'outputMFlag', 'outputZFlag', 'outputZValue', 'overwriteOutput', 'projectCompare', 'pyramid', 'qualifiedFieldNames', 'randomGenerator', 'rasterStatistics', 'referenceScale', 'scratchWorkspace', 'snapRaster', 'spatialGrid1', 'spatialGrid2', 'spatialGrid3', 'terrainMemoryUsage', 'tileSize', 'tinSaveVersion', 'values', 'workspace']
As indicated, there are places where case-sensitivity or examples are lacking....report them, they are usually on the fixes quickly. Also, use the online help and NOT the help built into the software, the former is updated regularly, the latter is not http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html?TopicName=welcome
... View more
08-02-2011
08:14 AM
|
0
|
0
|
5254
|
|
POST
|
setValue only works with insertcursor or updatecursors, check the help http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//002z0000001q000000.htm
... View more
07-29-2011
10:40 AM
|
0
|
0
|
593
|
|
POST
|
by the looks of the script, it is designed to run as a tool from within Arctoolbox, within Arcmap, since there are a number of parameters that need to be provided, which aren't being provided from within the field calculator. Check the documentation that you got with the toolset if you have it
... View more
07-29-2011
05:56 AM
|
0
|
0
|
883
|
|
POST
|
A sample script exists in the help topic http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//002z0000001v000000.htm which you could modify to suit your purposes.
... View more
07-22-2011
05:00 AM
|
0
|
0
|
9308
|
|
POST
|
SetNull("MyRaster", "MyRaster", "Value <= 0") might work (version 10 syntax
... View more
07-18-2011
01:36 PM
|
0
|
0
|
1874
|
|
POST
|
ExtractByAttributes does not remove unwanted values from a raster. Can you describe the exact procedure you are using (ie which tool or raster calculator syntax)?
... View more
07-18-2011
09:51 AM
|
0
|
0
|
1874
|
|
POST
|
a pretty ugly expression...but I suspect that you need to "float" one of the terms since integer division is occurring and everything is getting truncated to 0 or 1. ie in Python >>> print 1/3 0 >>> print 1.0/3 0.333333333333 >>> surprised by the first result?
... View more
07-10-2011
08:33 PM
|
0
|
0
|
1219
|
|
POST
|
If you are Newbie...don't mess with mother nature...ArcMap requires a certain version of Python installed in a certain path...so uninstall the latest and greatest version of Python (which doesn't add anything you are going to need for a long time) and stick with what ArcMap requires. When you become post-newbie, then there are lots of threads on how to temp fate with other versions and installation priorities and the like.
... View more
07-06-2011
02:30 PM
|
0
|
0
|
865
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 10-03-2017 11:39 AM | |
| 1 | 08-05-2019 05:21 PM | |
| 1 | 09-02-2016 08:05 AM | |
| 1 | 01-15-2018 01:10 PM | |
| 1 | 09-17-2018 12:48 AM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:22 AM
|