Could the  raster field of a feature class accessed by Python?

906
3
05-04-2012 08:22 AM
Andygao
New Contributor
Hi there,

I have a feature class of a personal GDB that has a raster field. The rasters are the photos of all the features and the rasters are managed by the GDB.

I noticed that the rasters are stored in the .idb folder togeter with the .mdb file. They are named like: 1.img, 2.img etc., the number is exactly the OBJECTID of the feature that it belongs to.

A table called GDB_RasterColumns in the mdb stores the subfolder info of the .idb folder.

By python , I can export all the photo form a GDB, name them by some porperties of the feature class.

But my question is, can I import a bunch of photos to a feature class base on its properties?  I need to modify the raster field by python, but it looks untouchable when hadling with setValue() of the UpdateCursor.

Any help is appreciated.
Tags (2)
0 Kudos
3 Replies
Andygao
New Contributor
really!
no one?
0 Kudos
DerekEamer
New Contributor
I am also very interested in how this can be done!

btw, thanks Gaoang for posting the question in the first place. Reading your post actually showed me how to mass export raster fields in python and rename them 😉

hopefully someone will find a solution for mass importing raster fields though...
0 Kudos
GastonIzaguirre
New Contributor III
Hi there,

I have a feature class of a personal GDB that has a raster field. The rasters are the photos of all the features and the rasters are managed by the GDB.

I noticed that the rasters are stored in the .idb folder togeter with the .mdb file. They are named like: 1.img, 2.img etc., the number is exactly the OBJECTID of the feature that it belongs to.

A table called GDB_RasterColumns in the mdb stores the subfolder info of the .idb folder.

By python , I can export all the photo form a GDB, name them by some porperties of the feature class.

But my question is, can I import a bunch of photos to a feature class base on its properties?  I need to modify the raster field by python, but it looks untouchable when hadling with setValue() of the UpdateCursor.

Any help is appreciated.


Gaoang, thanks for your post. Any progress with this issue?
I am interested in both, the massive export of photos from a raster field in a feature class in SDE as well as bulk import of photos to a raster field.
If possible, can you explain how to export all the photos from GDB, naming them by some property of the feature class with Python?
Thank you in advance.
Regards,
Gaston.
0 Kudos