Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

Possible Duplicate:
Can I store an ArcObject inside a BLOB or XML field?

I am saving shape file in database and now i want the symbology selected for the feature layer also get stored in database. I am facing an issue I cannot serialize IStyleGallery, and if its not serialized than how can i store that in database. Anyone got any good solution?

share|improve this question

marked as duplicate by blah238, Get Spatial, iant, Aragon, R.K. Nov 11 '12 at 14:38

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1 Answer 1

Just to clear things up, IStyleGallery has nothing to do with the symbology (feature renderer) of a particular feature layer. Additionally, interfaces cannot be serialized, only class instances (objects), and in ArcObjects, typically only those that implement IPersistStream or IXMLSerialize. You might also consider simply storing a layer file, if you are also storing shapefiles wholesale.

share|improve this answer
    
Thankyou for your response, Do you have any better approach? I want to load feature layer from the database. I have stored shape file (.shp, .prj, .shx ...) in database. While uploading shape files i took symbology but how to store the symbology data in database and again reload and apply it to the layer? –  AndroidLearner Oct 18 '12 at 8:29
    
Since this question already has a couple of votes to be closed I would suggest creating a new question for that, and don't forget to add all the necessary details such as what database, what the server and client software, platforms and versions are, etc. Basically fully explain your situation so that people aren't guessing about what you are trying to accomplish and with what tools. Some good tips for asking a great question can be found here: tinyurl.com/so-hints –  blah238 Oct 18 '12 at 17:08

Not the answer you're looking for? Browse other questions tagged or ask your own question.