Hi List,
I’m working on simplifying a bit the steps needed to configure an ImageMosaicJDBC based on PGRaster.
http://jira.codehaus.org/browse/GEOT-4507
Right now, I’m playing with Wicket in order to allow specifying configuration parameters from the GUI (PG server, port, pguser, databaset, …) so that it can be passed down to the AbstractGridFormatReader as a special URL.
something like: pgraster://user:pass@anonymised.com:port:database.schema.table…
I have voted for this approach since while looking for examples, I have seen that the ArcSDE store panel does something similar.
sde://user:pass@anonymised.com:port/instance
When doing some tests right now, I have noticed that the ResourcePool always converts the coverageStore url String to a File (by using the GeoserverDataDirectory.findDataFile utility method).
I’m not sure about how this allows the sde://user:pass@anonymised.com:port/instance String url to be interpreted as a File (I didin’t check the arcSde store code).
I was thinking if instead of changing the ImageMosaicJDBC code to try to parse Files having similar strange path (pgraster://something), we could relax somehow this “force to be a File” behaviour on ResourcePool…
We could probably modify the findDataFile to return a File only in case it really deals with a file:
(file:/ + file: + /some/path/to/something + c:/ + …) and skip “peculiar” cases like:
myformat://customSyntax.
We can probably think about returning null (as a File, to continue passing down a string) in case we see a “something://” prefix longer than a certain amount of chars (to make sure that C:/ still work)… (Do we risk by this way to improperly parse some peculiar network mapping / protocol I’m unaware of?)
What are your thoughts on this topic?
Please, let me know.
Best Regards,
Daniele
==
Our support, Your Success! Visit http://opensdi.geo-solutions.it for more information.
Ing. Daniele Romagnoli
Senior Software Engineer
GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
http://www.geo-solutions.it
http://twitter.com/geosolutions_it