Raster Data Type

3871
5
09-04-2015 02:25 AM
RajP
by
New Contributor

I would like to upload raster image in the attribute table automatically.

In this attribute table there is field name is "Raster_Image" and "PhotoName".

All Rastere Image are in one folder using PhotoName.jpg.

I have to upload the Raster Image due to PhotoName automatically using Python script.

Can anyone suggest me.

0 Kudos
5 Replies
DanPatterson_Retired
MVP Esteemed Contributor

suggestions...

  • post the code you have tried or seen so far
  • have you examined the arcpy class and function tree?

http://desktop.arcgis.com/en/desktop/latest/analyze/arcpy/what-is-arcpy-.htm

  • PhotoName.jpg  is not a name for a folder ... is this supposed to be a file name

that is enough for now

RajP
by
New Contributor

Images_final.png

I am loading every image manually. Can You suggest me is it possible can we write python script to load images automatically.

0 Kudos
MahtabAlam1
Occasional Contributor

I think you can't do it with python. Refer How to load image to Raster attribute field with python

Thanks,

Mahtab

0 Kudos
RajP
by
New Contributor

Hi Dan Patterson,

I hope that you understand my question.

0 Kudos
DanPatterson_Retired
MVP Esteemed Contributor

Did you find ListRasters in the arcpy tree?

ListRasters—Help | ArcGIS for Desktop

or this?

Make Raster Layer—Help | ArcGIS for Desktop

both have code samples to get you going

0 Kudos