|
POST
|
Do you mean populate a filter list with the field names from the data in params[6]? Something like: fldList = [f.name for f in arcpy.ListFields(params[6].value)]
... View more
06-15-2014
09:44 PM
|
0
|
0
|
1396
|
|
POST
|
You can use ArcGIS Online (arcgis.com) - http://blogs.esri.com/esri/arcgis/2014/02/06/under-the-hood-sharing-code-with-arcgis-online Though it is an awful site for code samples. With any luck, ArcScripts 2.0 should be ready in the not toooo distant future - http://forums.arcgis.com/threads/101345-ArcScripts-2.0-Ok-Let-s-Build-It-Now You can also use Github/Gists, Google Code, Pastebin, Bitbucket, etc...
... View more
06-15-2014
09:12 PM
|
0
|
0
|
346
|
|
POST
|
Set your output as string and use the json.dumps function - https://docs.python.org/2/library/json.html import json
output_str = json.dumps(output_dict)
... View more
06-07-2014
11:23 PM
|
0
|
0
|
2470
|
|
POST
|
Did you georeference then use the Rectify... menu? If so, did you leave the No Data value at its default of 256? If so, your output raster was saved as a 16bit tif. To display it properly, build statistics or change/remove stretch in the layer properties->symbology tab. Alternatively, set NoData to 0 when exporting and your tif will be saved as 8 bit and should display properly. The different associated files are nothing to worry about. ArcGIS uses a new raster library "under the hood". The old library created .rrd files to hold the reduced resolution overviews (pyramids), while the new library saves them to a .ovr file.
... View more
05-19-2014
06:43 PM
|
0
|
0
|
3515
|
|
POST
|
You have a few issues. Change: from arcpy.sa import* To from arcpy.sa import * There's no need to use operator.itemgetter, just access the list directly: mosaicNames[count] etc... This syntax is incorrect: arcpy.MosaicToNewRaster_management(raster;habbuf,"C:/Workspace_DSchwalm/GIS/DataLayers/2014_PredictionGrids/TEST/2011to2040", etc.. Pass a list or a semicolon delimited string instead: arcpy.MosaicToNewRaster_management([raster, habbuf,"C:/Workspace_DSchwalm/GIS/DataLayers/2014_PredictionGrids/TEST/2011to2040"], etc...
... View more
04-26-2014
05:50 PM
|
0
|
0
|
1020
|
|
POST
|
In python the back slash \ in a literal string is a special character. Use forward slashes / or escaped backslashes \\ or raw string notation r"". Eg scipy.misc.imsave('D:/path/to/save/to')
scipy.misc.imsave('D:\\path\\to\\save\\to')
scipy.misc.imsave(r'D:\path\to\save\to')
... View more
04-20-2014
02:29 PM
|
0
|
0
|
400
|
|
POST
|
Use arcpy.SelectLayerByAttribute_management then arcpy.DeleteFeatures_management Code examples are in the help: http://resources.arcgis.com/en/help/main/10.2/index.html#//001700000071000000 http://resources.arcgis.com/en/help/main/10.2/index.html#//001700000036000000
... View more
04-13-2014
03:24 AM
|
0
|
0
|
2960
|
|
POST
|
Cross posted - http://forums.arcgis.com/threads/106047-Import-quot-V-Late-quot-in-Modelbuilder-Python
... View more
04-06-2014
03:59 PM
|
0
|
0
|
345
|
|
POST
|
No, not easily. The software is distributed as binary toolbar ".tlb" and .dll files. There are no python bindings included. You *may* be able to call functions in the dll from python using the ctypes, pythoncom or win32com modules but that can be difficult.
... View more
04-05-2014
09:00 PM
|
0
|
0
|
407
|
|
POST
|
File > Add Data... ?? ArcMap reads geotiff, no need to convert / import. Just add it as Mark suggests.
... View more
04-04-2014
02:23 AM
|
0
|
0
|
13594
|
|
POST
|
As of ArcGIS 10, all the Focal* functions were combined into the FocalStatistics tool. FocalRange no longer exists, use FocalStatistics with the 'RANGE' statistic. http://resources.arcgis.com/en/help/main/10.1/index.html#//009z000000qs000000
... View more
04-04-2014
02:18 AM
|
0
|
0
|
440
|
|
POST
|
Hawth's tools has been replaced by GME - http://www.spatialecology.com/gme This tool might help - http://www.spatialecology.com/gme/pointdistances.htm
... View more
03-22-2014
09:21 PM
|
0
|
0
|
4479
|
|
POST
|
Try importing arcview before arcpy: import arcview, arcpy
... View more
03-11-2014
02:19 AM
|
0
|
0
|
1833
|
|
POST
|
ogr2ogr is a commandline program not a python module. You can run it from a command prompt or you can use the subprocess module to run it from within python. cmd=["ogr2ogr", "output_dataset", "input_dataset"]
proc = subprocess.Popen(cmd, stdout=subprocess.PIPE,stderr=subprocess.PIPE)
stdout,stderr=proc.communicate()
exit_code=proc.wait()
if exit_code: print stderr
else: print stdout
... View more
02-23-2014
01:25 PM
|
1
|
0
|
1263
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 07-24-2022 03:08 PM | |
| 1 | 07-30-2025 03:00 PM | |
| 1 | 06-10-2025 08:06 PM | |
| 5 | 05-20-2025 07:56 PM | |
| 1 | 05-04-2025 10:34 PM |