Sunday 24 May 2015

Storing ArcObject inside BLOB or XML field of geodatabase?


Is it possible to store an ESRI object inside a blob field inside a geodatabase? If not, perhaps a serialized XML representation?



I'm thinking about storing IFeatureRenderers inside these fields.


Any tips? Anyone has ever done this?



Answer



Yes, essentially that is what the Store and retrieve Layers in the GeoDatabase sample does. Haven't seen a .NET port of this though.


In general, as long as the object implements IPersistStream or IPersistVariant, then it can be persisted to a blob in a database.


No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...