Jody,

Can you explain to me how the GeoAPI project fits in with:

-> uDig
-> GeoTools
-> GeoServer

It's not clear to me who's using what.  I see GeoAPI interfaces
sprinkled in here and there, but it does not seem like the full API
set is being utilized in any of the projects -- although I am not
familiar with uDig -- have not dug into it yet.

Regards,
Davis

On 1/3/06, Jody Garnett <[EMAIL PROTECTED]> wrote:
> Davis Ford wrote:
> > Hi, I'm running into an interesting problem.  A feature in our system
> > has multiple attributes that can be of many types, such as Integer,
> > Double, String, Geometry, and Feature.
> >
> > Currently, I store these in a HashMap with key,value = <string,
> > Object> where string is the name of the attribute.
> >
> > However, I am concerned about type safety, and am wondering if the use
> > of Generics might help.  I think they would, but GeoTools lack of
> > support for Generics kind of negates the whole principle.  For
> > example, when org.geotools.feature.Feature#getAttributes(Object[] ) is
> > called, I simply fill in an array of Objects which goes back up the
> > stack.  Type safety is lost on that.
> >
> > This appears to be kind of a chicken/egg problem.  If you impose a
> > data structure using generics, you must know up front what the
> > possible types are.  Has anyone considered the use of Generics in
> > GeoTools -- I'd be interested to hear any thoughts or ideas?
> >
> Yes - we can and do in the uDig codebase (a java 5 project).
> You can make use of the geoapi Java 5 interfaces for a lot of the low
> level interfaces.
> If you want you could grab some subversion space and make a spike based
> on the module/api and set it up
> for generics. This technique works for pure interfaces such as geoapi
> and module/api ...
>
> As example we make sure that our param maps for datastore creation ore
> Map<String,Serializable> :-)
>
> Jody
>


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to