Select to view content in your preferred language

updateCursor: Raster Field

663
2
Jump to solution
04-16-2013 09:15 AM
JamesCrandall
MVP Alum
I couldn't find any immediate information on loading a raster field of a FGDB Feature Class.  Didn't attempt to just issue it on an updateCursor yet as I wasn't sure if there are other methods.  But this is pretty straight forward -- just need to Load a .png into a Raster field of a FC.

Thanks!
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
JamesCrandall
MVP Alum
Due to time constraints, I've had to get a working solution.  Like today. 🙂

So, I just went with what was available: Attachments.  ew.  But it works, and I guess I have to admit that the html popup is pretty sweet (plus you can publish it as a map service to ArcGIS Online and just enable that popup with the attachments and it just works.  A bit clunky, certainly not user-interfac'ie/dynamic, but it works).

http://resources.arcgis.com/en/help/main/10.1/index.html#/An_overview_of_the_Attachments_toolset/001...

Rather than post all of this messy code, just know that I pretty much copied-and-pasted the AddAttachment_management sample into my def() and it just works.

View solution in original post

0 Kudos
2 Replies
JamesCrandall
MVP Alum
I see in the docs for the da.updateCursor that it says: "Raster fields are not supported."

Check.

Anyone know how to update a Raster Field?

Thanks for any comments or suggestions!
0 Kudos
JamesCrandall
MVP Alum
Due to time constraints, I've had to get a working solution.  Like today. 🙂

So, I just went with what was available: Attachments.  ew.  But it works, and I guess I have to admit that the html popup is pretty sweet (plus you can publish it as a map service to ArcGIS Online and just enable that popup with the attachments and it just works.  A bit clunky, certainly not user-interfac'ie/dynamic, but it works).

http://resources.arcgis.com/en/help/main/10.1/index.html#/An_overview_of_the_Attachments_toolset/001...

Rather than post all of this messy code, just know that I pretty much copied-and-pasted the AddAttachment_management sample into my def() and it just works.
0 Kudos