How to rename raster band

2048
2
08-03-2011 04:40 PM
JackZHANG
Occasional Contributor II
Hello, I'm wondering if it's possible to rename raster band programally using ArcObject, ArcPy or something else. I saw there're several threads back talking about it and said it's impossible but that was a a while ago. I'm wondering if the case has been changed since ArcGIS 10 out.

I have checked the model diagram of ArcOject noticed the RasterBand class Bandname property is read-only unfortunately. Any suggestion would be appreciated!

Regards,
Jack
0 Kudos
2 Replies
DubravkoAntonic
New Contributor III
I don't have any experience with this but I gave a look and...

There is IRasterBandCollection .Add and .Remove
Try to create new on and add it into the collection and also to remove old one.
I found an example of "Creating a raster dataset" in the desktop SDK Help for 9.3.
ms-help://ESRI.EDNv9.3/NET_Desktop/dd494eb7-b56b-4e7a-adeb-0eccc1f9765c.htm



regards Dubravko Antoni�?
0 Kudos
JackZHANG
Occasional Contributor II
Thank you Dubravko for the help. I'll give it a try and post you the result if got a chance.
0 Kudos