David R Robison wrote:
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.
Gotcha. Well if you want to live on the bleeding edge, which will definitely evolve in to the sustainable geotools core, then do check out the complex features branch. It will be the main focus of the 2.3 release.

If you want a quicker solution that involves more hacking, then modify MultiAttributeType.

What are the errors your getting when compiling with maven? And what version of GeoTools are you using? If you're just hacking on multi attribute type it probably makes the most sense to just download 2.2.RC1. Get the source code, and you should be able to build it with maven.

best regards,

Chris


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




--
Chris Holmes
The Open Planning Project
thoughts at: http://cholmes.wordpress.com
begin:vcard
fn:Chris Holmes
n:Holmes;Chris
org:The Open Planning Project
adr:;;377 Broadway, 11th Floor;New York;NY;10013;USA
email;internet:[EMAIL PROTECTED]
title:VP, Strategic Development
x-mozilla-html:FALSE
url:http://topp.openplans.org
version:2.1
end:vcard

Reply via email to