Hi Niels:
Well what you describe is a valid use case, and worth adding to GeoTools (just
in a way that does not break the Factory).
The easiest thing I can think of is to make:
final File base;
And to set it to the current directory in the no-argument constructor (use by
FactoryFinder), and to set it in the constructor for use by GeoServer?
If you like I can bash up a patch, and this is the week to do it before the API
freeze hits for winter (in Australia).
--
Jody Garnett
On Wednesday, 10 July 2013 at 12:36 AM, Niels Charlier wrote:
> Hello Jody,
>
> Thank you for the reviewing the code.
>
> The issue came from setting up a data directory for the csw cite tests using
> property files. I found that there was no way to set up the data
> configuration using a relative path to refer to the directory with properties
> files.
>
> I admit I simply (and quite lazily) copied the behaviour of the h2 data
> store, where this does work. I will now check a scenario where we use
> resourcepool instead.
>
> Cheers
> Niels
>
> On 09/07/13 06:00, Jody Garnett wrote:
> > I have been having an interesting time reviewing a recent pull request for
> > PropertyDataStore:
> > - https://github.com/geotools/geotools/pull/221
> >
> > The concept introduces the idea of a base directory (apparently shared with
> > HT DataStore .. and others?). Rough idea is to provide a geotools
> > specific alternative to the current directory when interpreting relative
> > paths. I assume the motivation comes from wanting to easily find stuff in
> > the
> > GeoServer data directory.
> >
> > I have a couple of ideas on how to proceed, but I wanted to start a
> > discussion here to ensure I understand the issue correctly?
> >
> > --
> > Jody Garnett
> >
> >
> >
> > ------------------------------------------------------------------------------
> > See everything from the browser to the database with AppDynamics Get
> > end-to-end visibility with application monitoring from AppDynamics Isolate
> > bottlenecks and diagnose root cause in seconds. Start your free trial of
> > AppDynamics Pro today!
> > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
> >
> > _______________________________________________ GeoTools-Devel mailing list
> > GeoTools-Devel@lists.sourceforge.net
> > (mailto:GeoTools-Devel@lists.sourceforge.net)
> > https://lists.sourceforge.net/lists/listinfo/geotools-devel
> ------------------------------------------------------------------------------
> See everything from the browser to the database with AppDynamics
> Get end-to-end visibility with application monitoring from AppDynamics
> Isolate bottlenecks and diagnose root cause in seconds.
> Start your free trial of AppDynamics Pro today!
> http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
>
> _______________________________________________
> GeoTools-Devel mailing list
> GeoTools-Devel@lists.sourceforge.net
> (mailto:GeoTools-Devel@lists.sourceforge.net)
> https://lists.sourceforge.net/lists/listinfo/geotools-devel
>
>
------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
GeoTools-Devel mailing list
GeoTools-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel