Net Topology Suite attributes table complex types

132 views
Skip to first unread message

Electronic Panda

unread,
Nov 9, 2015, 8:38:21 AM11/9/15
to NetTopologySuite
Greetings,

I was wondering that is it possible to keep complex objects (or objects that has more than one attributes) in attributes table (IAttributesTable) as one attribute. For example can I keep DrawingSettings object which includes fill color, opacity etc at once?  Correct me if it is against the nature of attributes table.

Best Regards,

Diego Guidi

unread,
Nov 9, 2015, 8:40:47 AM11/9/15
to NetTopologySuite


I was wondering that is it possible to keep complex objects (or objects that has more than one attributes) in attributes table (IAttributesTable) as one attribute. For example can I keep DrawingSettings object which includes fill color, opacity etc at once?  Correct me if it is against the nature of attributes table.

IAttributesTable stores generic "System.Object" types, so you can put everything you want.
Of course, you can't store this stuff in a dbf table, like a shapefile with attributes.

Víctor Velarde Gutierrez

unread,
Dec 30, 2015, 4:12:12 AM12/30/15
to NetTopologySuite
Hi Panda,

Maybe you could serialize that complex object as a string (XML / JSON), so that you can later deserialize / parse that object.

Regards,
Reply all
Reply to author
Forward
0 new messages