Contact: | ||
|---|---|---|
Tracker: | http://jira.codehaus.org/browse/GEOT-1657 | |
Tagline: |
|
This page represents the current plan; for discussion please check the tracker link above.
We need to access a description of what a spatial resources is. The goal is to make this information available to GeoTools developers:
Previous work focused on making the description available for searching, this proposal is about making the description available on the classes directly.
What the description is is well understood; it is: "Dublin Core plus a little bit more" (ie bounds and crs). In GeoTools 2.4.x this ideas is represented as GeoResourceInfo and ServiceInfo.
ServiceInfo | shapefile | postgis | wms | wfs | description |
|---|---|---|---|---|---|
title |
|
| for display in user interface | ||
keywords |
| ||||
description |
| ||||
publisher |
|
|
| ||
schema | type of service | ||||
source |
| ||||
icon | for display in user interface | ||||
| shapefile | postgis | wms | wfs | additions |
access fees |
|
|
|
| do not care |
ResourceInfo | shapefile | postgis | wms | wfs | notes |
|---|---|---|---|---|---|
title |
|
| for display in user interface | ||
keywords |
|
|
| ||
description |
| ||||
name |
|
|
|
| already part of data access api? |
schema | type of data | ||||
source |
| ||||
icon | for display in user interface | ||||
bounds |
| ||||
crs |
|
|
|
| matches bounds crs |
| shapefile | postgis | wms | wfs | additions |
latlonextent |
|
| do we care? |
These info classes will be moved into org.geotools.data as part of the proposal (see This is NOT catalog above).
There have been two suggestions on how to extend this core set:
This proposal has been accepted:
Community support:
| no progress |
| done |
| impeded |
| lack mandate/funds/time |
| volunteer needed |
|---|
package org.geotools.catalog;
interface ServiceInfo {
...
}
|
package org.geotools.catalog;
interface GeoResourceInfo {
...
}
|
Move ServiceInfo to org.geotools.data.ServiceInfo
package org.geotools.data;
interface ServiceInfo {
String getTitle();
String getDescription();
Icon getIcon();
Set<String> getKeywords();
URI getPublisher();
URI getSchema();
URI getSource();
}
|
Move GeoResourceInfo to org.geotools.data.ResourceInfo:
package org.geotools.data;
interface ResourceInfo {
// Dublin Core
String getName();
String getTitle();
String getDescription();
Icon getIcon();
Set<String> getKeywords();
URI getSchema();
// And a little bit more
ReferencedEnvelope getBounds();
CoordinateReferenceSystem getCRS();
}
|
ServiceInfo can be accessed from DataStore:
import org.geotools.data.ServiceInfo;
interface DataStore {
ServiceInfo getInfo();
}
|
ResourceInfo can be accessed from FeatureSource:
import org.geotools.data.ResourceInfo;
interface FeatureSource {
ResourceInfo getInfo();
}
|
ServiceInfo and ResourceInfo can be accessed from AbstractGridCoverageReader2DReader:
import org.geotools.data.ServiceInfo;
import org.geotools.data.ResourceInfo;
interface AbstractGridCoverageReader2DReader{
ServiceInfo getInfo();
ResourceInfo getInfo( String subname );
}
|
ServiceInfo and ResourceInfo can be accessed from WebMapServer:
class WebMapServer extends AbstractOpenWebService {
ServiceInfo getInfo();
}
class Layer {
ResourceInfo getInfo();
}
|
list the pages effected by this proposal