I have a Raster image like this
as you can see the road are not connected between 2 raster (up and down) its because the scanned raster use different projection (dgn utm 50s) than my data frame (utm 50s) when I'm doing Georeferencing. Somebody in here (Michael Mils) help me with some python code to create batch raster convertion without change raster name (I modified it a little to match the original raster projection "dgn utm 50 s").
Code are Fixed by Michael Mills, Problem Solved, Here's the Complete Code
import arcpy, sys, os InFolder = r"d:\00_Start" OutFolder = r"d:\01_End" OutSR = arcpy.SpatialReference(23880) # "DGN_1995_UTM_Zone_50S" arcpy.env.workspace = InFolder for Ras in arcpy.ListRasters(): Name,Ext = os.path.splitext(Ras) OutRas = Name + ".tif" arcpy.AddMessage("Sementara Proses " + Ras + " Coy") arcpy.ProjectRaster_management (InFolder + "\\" + Ras , OutFolder + "\\" + OutRas,OutSR) arcpy.SetRasterProperties_management(OutFolder + "\\" + OutRas,"GENERIC","", "", "3 0;2 0;1 0") arcpy.AddMessage("So Klar")
and the result is like this :
as you can see the road are connected now and everything's are perfect in place but there are still anoying black border in each raster (all the raster I converted result black border, there are 170 raster I need to process). How to convert using that python script without getting that black border?