[udig-devel] from iservice to igeoresource and on and on

Andrea Antonello andrea.antonello at gmail.com
Thu Feb 8 23:26:23 PST 2007


> So what I mean when I say: IGeoResource(GMap) is that the class returned
> by members is an IGeoResource that resolves to GMap.  It is acceptable
> if the IGeoResource is also a GMap and resolves to itself but for GMaps
> to be able to be added to maps they have to be IGeoResources.

That is exactly what I understook and was trying to do.

> So:
> 
> LocationService
>     -> Resolves to Location
>     -> has members:
>         MapSetResource
>             -> Resolves to MapSet
>             -> has members:
>                 GMapResource
>                     -> resolves to GMap
>                     -> has no members (empty set)
> 
> 
> Does that make sense?

Yes, but:

LocationService (IService)	
-> resolves to a file.isDirectory with particular consistency checks
-> has members that impement IGeoResource
	MapsetResource (IGeoResource)
		-> resolves to a file.isDirectory with checks
		-> has members that implement IResolve

and that is what makes me doubt, because GMap is not more IGeoResource,
but IResolve:
		GMap (IResolve)
			-> resolves to a file with checks
			-> has no members


Andrea





> 
> Jesse
> 
> 
> 
> On 8-Feb-07, at 9:05 AM, Andrea Antonello wrote:
> 
>> Hi, trying to implement the catalog support for JGrass as discussed:
>>
>>     * IService (Location)
>>     * IGeoResource (MapSet)
>>     * IGeoResource ( GMap )
>>
>> the problem is that the  members(IProgressMonitor monitor) method of an
>> IGeoResource returns an IResolve, which forces me to implement some
>> methods, that I didn't think to need at that point, since I'm finally
>> analysing the GMaps, i.e. the last resource of the chain, whoch I would
>> no more test on canResolve and resolve.
>> Isn't that the way to nest?
>>
>> I don't feel good in leaving everything to return null, so I guess I've
>> done something wrong...
>> Also the dispose method makes me nervous :)
>>
>> Ciao,
>> Andrea
>> _______________________________________________
>> User-friendly Desktop Internet GIS (uDig)
>> http://udig.refractions.net
>> http://lists.refractions.net/mailman/listinfo/udig-devel
> 
> 

-- 
____________________________________________________________________________
HydroloGIS - Environmental Safety Modelling
www.hydrologis.com

Andrea Antonello
Environmental Engineer
mobile:  +393288497722

"Let it be as much a great honour to take as to give learning,
if you want to be called wise."
Skuggsja' - The King's mirror - 1240 Reykjavik
____________________________________________________________________________




More information about the udig-devel mailing list