def __init__(self, raster_catalog_basepath, raster_catalog_name, options):
        ArcTable.__init__(self, raster_catalog_basepath, raster_catalog_name,
                          options)

        if not arcpy.Exists(self.fullpath):

            arcpy.CreateRasterCatalog_management(
                raster_catalog_basepath, raster_catalog_name,
                options.get('raster_spatial_reference', ''),
                options.get('spatial_reference', ''),
                options.get('config_keyword', ''),
                options.get('spatial_grid_1', ''),
                options.get('spatial_grid_2', ''),
                options.get('spatial_grid_3', ''),
                options.get('raster_management_type', ''),
                options.get('template_raster_catalog', ''))
Example #2
0
#Now lets make contours

Contour("..\Final_Proj\IMG_Times.tif", "..\Final_Proj\contour.shp",
        20)  #Making contours on the 20 foot mark
Contour("..\Final_Proj\IMG_Times.tif", "..\Final_Proj\contour100.shp",
        100)  #Making contours on the 100 foot mark
print "Contours are made!!"

#Create final GDB if needed-----------------------------------------------------------------------

if not arcpy.Exists(GDB):
    arcpy.CreateFileGDB_management(temp_workspace, "basemap.gdb")

print "Geodatabase is made!"

catalog = arcpy.CreateRasterCatalog_management(GDB, "raster")
'''

#Import Rasters and Shapefile into GDB
arcpy.WorkspaceToRasterCatalog_managment("..\Final_Proj", "..\Final_Proj\basemap.gdb\raster")

#Now lets apply a color scheme to the DEM 

#Finally lets export all as TIFF's so that we can mess with them in Adobe Photoshop

'''
# end time and report it

print('------------------------------------------')
print "Script finished processing at:"
print datetime.datetime.now()
Example #3
0
import arcpy
arcpy.env.overwriteOutput = True
folder = raw_input("link of folder: ")
print folder
new = folder.replace("\\","\\\\")
new = new.replace(r"\\",r"/")

arcpy.env.workplace = folder
arcpy.CreateFileGDB_management(folder,"Luftbild.gdb","10.0")
print "gdb sucess"        
geodatabase = new + "/Luftbild.gdb"
arcpy.CreateRasterCatalog_management(geodatabase,"raslog","","","","","","","UNMANAGED","")
print "raslog complete"

raslog = geodatabase + "/raslog"

arcpy.WorkspaceToRasterCatalog_management(folder, raslog ,"INCLUDE_SUBDIRECTORIES","NONE")
print "imported"

raw_input("Press enter to exit")
def makeRasterCatalog(featureClass, rc_name, in_GDB, imageFolderPath):
    rasterCatolog = rc_name
    arcpy.CreateRasterCatalog_management(in_GDB, rasterCatolog)
    arcpy.WorkspaceToRasterCatalog_management(
        imageFolderPath, os.path.join(in_GDB, rasterCatolog))
def createRasterCatalog(geodatabase, rastercatalog):
    arcpy.CreateRasterCatalog_management(geodatabase, rastercatalog)