Hi List,
we are back working on the "Direct Download links from CSW" topic started
by Andrea some months ago.
We would like to share some opinions on it in order to collect couple of
feedbacks.

Summarizing the main concept and restoring previous discussions:
For a Layer, we would like to enable a "DirectDownload" capability.
(We can consider adding a checkBox on wicket in the layer config panel,as
well as a Global option to enable/disable this operation).
Then, for that layer we would like to provide a DirectDownload of the raw
data as part of a CSW record/metadata, something like:
http://host:port/geoserver/ows?service
=CSW&version=2.0.1&request=DirectDownload&resourceId=<layerName>

As you know, an ImageMosaic based layer may refer to multiple files so we
will show several links (1 for each file composing the mosaic) with
summarizing details on dimensions ranges for that file. Something like this:

http://host:port/geoserver/ows?service=CSW&version=2.0.1&;
request=DirectDownload&resourceId=<layerName>:<fileName>&time=from/to&
elevation=from/to&bbox=xmin,ymin,xmax,ymax&custDim=from/to

At the moment, CSW entries are built through a static mapping based on
property file which allows to populate CSW keys from internal GeoServer
Catalog elements.
As an instance, quoting some entries from Record.default.properties mapping
file:

*title.value=if_then_else(isNull(title), name, title)*
*creator.value='GeoServer Catalog'*
*subject.value=keywords*
*abstract.value=abstract*

CatalogStoreMappingElements are Key,Expression pairs.
Adding a new entry to the mapping for this new capability could be an
option but I'm a bit against that since it depends on status of global
Download enabled.
Moreover, it could be tricky to encode the mapping as an Expression (to be
supported by a FilterFunction).

Therefore, we are thinking about 2 alternative options:
1) Adding a way to change the mappings before they are applied.
We could think about adding a mechanism which checks if the layer has the
DirectDownload capability enabled and then add a new mapping element which
queries the underlying store to return the associated files to be used to
setup the link.

2) Setting up a plugin (something like a FeatureCustomizer) which
customizes the feature being built by the RecordBuilder, in order to add
the download link.

What do you think about it?
Any feedback will be appreciated.

Cheers,
Daniele









-- 
==
GeoServer Professional Services from the experts! Visit
http://goo.gl/it488V 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

-------------------------------------------------------

*AVVERTENZE AI SENSI DEL D.Lgs. 196/2003*

Le informazioni contenute in questo messaggio di posta elettronica e/o
nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il
loro utilizzo è consentito esclusivamente al destinatario del messaggio,
per le finalità indicate nel messaggio stesso. Qualora riceviate questo
messaggio senza esserne il destinatario, Vi preghiamo cortesemente di
darcene notizia via e-mail e di procedere alla distruzione del messaggio
stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso,
divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od
utilizzarlo per finalità diverse, costituisce comportamento contrario ai
principi dettati dal D.Lgs. 196/2003.



The information in this message and/or attachments, is intended solely for
the attention and use of the named addressee(s) and may be confidential or
proprietary in nature or covered by the provisions of privacy act
(Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection
Code).Any use not in accord with its purpose, any disclosure, reproduction,
copying, distribution, or either dissemination, either whole or partial, is
strictly forbidden except previous formal approval of the named
addressee(s). If you are not the intended recipient, please contact
immediately the sender by telephone, fax or e-mail and delete the
information in this message that has been received in error. The sender
does not give any warranty or accept liability as the content, accuracy or
completeness of sent messages and accepts no responsibility  for changes
made after they were sent or for other risks which arise as a result of
e-mail transmission, viruses, etc.
------------------------------------------------------------------------------
Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
Get real-time metrics from all of your servers, apps and tools
in one place.
SourceForge users - Click here to start your Free Trial of Datadog now!
http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
_______________________________________________
GeoTools-Devel mailing list
GeoTools-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to