POST
|
IT was so simple, Thanks for your help!. I just changed it to CreateFileGDB management. Thanks for all your help! Hopefully as I see more python, ill pick up on this more. I am working backwards through these exercises to I can see how python fits together.
... View more
03-30-2017
09:08 AM
|
1
|
0
|
1084
|
POST
|
I am new to ArcPy and python. I am currently working on exercise 9.2 in Python Scripting for ArcGIS by Paul Zanbrtgen. The question is pretty simple and is asking to write a scrip that copies rasters into a new Geodatabase. I run print statements and everything is fine until I reach the arcpy.CopyRaster_management(raster, outraster). I am wondering if there is something wrong with the formatting of the file names. It throws a 999999 error. How long did it take you to really become comfortable in the Arcpy environment and with python in general. My goal is to build python based geoprocessing tools one day. import arcpy
from arcpy import env
out_path = "C:/EsriPress/Python/Data/Exercise09"
env.workspace = out_path
rasterlist = arcpy.ListRasters()
arcpy.CreatePersonalGDB_management(out_path + "/Results", "myrasters.gdb")
for raster in rasterlist:
desc = arcpy.Describe(raster)
rname = desc.baseName
outraster = out_path + "/Results/myrasters.gdb/" + rname
arcpy.CopyRaster_management(raster, outraster)
... View more
03-30-2017
08:27 AM
|
0
|
3
|
2331
|
POST
|
I am working on Exercise 6 challenge 2 when I put in the attached code it generates a Error 000260 Error. I have run the code line by line and it is fine until it gets to arcpy.Copy_management (fc, "C:\EsriPress\Python\Data\Exercise06\newstudy.gdb" + fc) this is the last line of the code. It is unable to copy the feature classes. I will attach the code that I am using. I was wondering if I would be able to get some help on this. This is my first time asking a question on Geonet.
... View more
03-22-2017
09:32 AM
|
0
|
2
|
1014
|
Title | Kudos | Posted |
---|---|---|
1 | 03-30-2017 09:08 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:25 AM
|