I am writing a data source plugin that connects some of our CORBA device
control objects as GIS features. Some of the devices have multiple
camera snapshot images. I was thinking of having a multi-attribute named
"snapshot_url" that would be repeated for each camera snapshot
available. I would them provide a custom FeatureInfo.slt that would
convert those attributes to <img> elements. I have it working for a
single element, but not multiple.
David
Chris Holmes wrote:
Apologies, I don't think MultiAttributeType has ever really been used.
It was an experiment, but none of our parsers ever put things in to
it. Why exactly are you trying to create a MultiAttributeType directly?
If you're needing complex functionality, then you should check out the
complex features branch. I think this:
http://svn.geotools.org/geotools/branches/complex-features/ is the svn
link. This branch completes the experiments with a full feature
model, that works with datastores and complex schemas.
best regards,
Chris
David Robison wrote:
I am trying to use a MultiAttributeType. But when I create a feature
using an ArrayList for the attribuite, it complains that it wants a
java.util.List not an ArrayList. I think the problem is that in
ListTypeAttribute.java, it checks for:
if(obj instanceof List){
perhapse it should be
if(obj implements List){
I tried to make the change and compile the code, but after an hour of
trying, I could not get either maven 1 or 2 to compile the project
(it complained about problems in project.xml).
Any thoughts?
David Robison
--
David R Robison
Open Roads Consulting, Inc.
708 S. Battlefield Blvd., Chesapeake, VA 23322
phone: (757) 546-3401
e-mail: [EMAIL PROTECTED]
web: http://openroadsconsulting.com
blog: http://therobe.blogspot.com
book: http://www.xulonpress.com/bookstore/titles/1597816523.htm
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Geotools-gt2-users mailing list
Geotools-gt2-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users