Ede,


OJ can't support multiple geometries and it would be a difficult task to make
this change.

>well, in theory it can. the model as is merely limits geometry to be _only one_ of the attributes. as Geometry is a proper attribute type we can easily add more than one, they won't be displayed though ;)

Actually, FeatureSchema.addAttribute check that no Geometry geometryIndex is -1 (and set geometryIndex to a index > -1 if non exist).

Object type can be used

how about a new BLOB attribute type, signifying that the column contains plain bytes, in case blobs are delivered by the underlying data reader?

What would be the advantage over Object ?

- to preserve original data as much as possible, but will generally not survive
a complete roundtrip (maybe a more specific serialization format could achieve
this goal, but with format like shapefile, we will rapidly encounter the 255
char problem).

if it is not saveable w/o data loss the write should simply err out and give the user a chance to save it another way. as much as i understand the industry standardness of the shapefile format, we shouldn't strive to make it limiting factor for OJ data formats.

I think that in most drivers, Object type is converted to String with toString() method, which is not so bad.Probably a warning would be appreciated. Error would probably force the user to remove the column before saving without offering better alternative.

- to offer plugin developpers a way to store structured data for in-memory usage
(e.g. multiscale display as suggested by Jukka). I'm not aware of a concrete
use-case though.

watcha mean by "structured data for in-memory usage" ?.. ede

E.g. computing different simplified geometries for different scale representoins in named attributes g1, g2, g3. Could not be saved in file, but could be used by a plugin aware of these attributes and avoid on the fly computation. Could also read image from a read-only database to display it on screen... Not sure these example are relevant, just ideas.

Michaël
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

Reply via email to