## you need to set the worspace first! ## for each Raster in the workspace, delete it rasters = arcpy.ListRasters() for r in rasters: arcpy.Delete_management(r)
Maybe you could delete any existing rasters in that workspace first? ## you need to set the worspace first! ## for each Raster in the workspace, delete it rasters = arcpy.ListRasters() for r in rasters: arcpy.Delete_management(r)
Thanks James, but would this work if the file is being served in ArcGIS Server at the same time
All,I am trying to use some of the functionality of the PSCOP which allows download of dynamic weather data, this works really well, and updates every 15 mins via a python script, I am then trying to use this data to build a raster surface (Temperature) in an SDE database, which also works (Model Maker which I will convert to a python script later), the issue is, it will not overwrite the raster, but appends a sequential number and creates further raster�??s. I need it to overwrite as I want to serve the raster in ArcGIS Server, just can�??t seem to find the solution, and don�??t want to over complicate this by then creating a vector, but may have to do that, Any ideas and assistance would be greatly appreciated.
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.