org.geotools.catalog
Interface GeoResourceInfo

All Known Implementing Classes:
DefaultGeoResourceInfo

public interface GeoResourceInfo

Represents a bean style metadata accessor for metadata about a geoResource.

The methods within this class must be non-blocking. This class, and sub-classes represent cached versions of the metadata about a particular service.

Much of this interface is based on Dublin Core and the RDF application profile.

Any changes to this content will be communicate by an event by the assocaited GeoResource.

Since:
0.6
Author:
David Zwiers, Refractions Research, Justin Deoliveira, The Open Planning Project

Method Summary
 com.vividsolutions.jts.geom.Envelope getBounds()
          Returns the BBox of the resource if one exists, The null envelope otherwise.
 org.opengis.referencing.crs.CoordinateReferenceSystem getCRS()
          Returns the CRS of the resource if one exists, null otherwise.
 java.lang.String getDescription()
          Returns the resource's description.
 javax.swing.Icon getIcon()
          Base symbology (with out decorators) representing this resource.
 java.lang.String[] getKeywords()
          Returns the keywords assocaited with this resource Known Mappings: Maps to Dublin Core's Subject element
 java.lang.String getName()
          Returns the name of the data ... such as the typeName or LayerName.
 java.net.URI getSchema()
          Returns the xml schema namespace for this resource type.
 java.lang.String getTitle()
          Returns the resource's title
 

Method Detail

getTitle

public java.lang.String getTitle()
Returns the resource's title

Returns:

getKeywords

public java.lang.String[] getKeywords()
Returns the keywords assocaited with this resource

Known Mappings:

Returns:
Keywords for use with search, or null unavailable.

getDescription

public java.lang.String getDescription()
Returns the resource's description.

Known Mappings:

Returns:
description of resource, or null if unavailable

getSchema

public java.net.URI getSchema()
Returns the xml schema namespace for this resource type.

Known Mappings:

Returns:
namespace, used with getName() to identify resource

getName

public java.lang.String getName()
Returns the name of the data ... such as the typeName or LayerName.

Known Mappings:

Returns:
name of the data, used with getSchema() to identify resource

getIcon

public javax.swing.Icon getIcon()
Base symbology (with out decorators) representing this resource.

The Icon returned should conform the the Eclipse User Interface Guidelines (16x16 image with a 16x15 glyph centered).

This plug-in provides default based on resource type:


  <b>return</b> ISharedImages.getImagesDescriptor( IGeoResoruce );
 

getBounds

public com.vividsolutions.jts.geom.Envelope getBounds()
Returns the BBox of the resource if one exists, The null envelope otherwise.

The bounds are returned in (ie should be reprojected to) Lat Long:

Known Mappings:

Returns:
Lat Long bounding box of the resource

getCRS

public org.opengis.referencing.crs.CoordinateReferenceSystem getCRS()
Returns the CRS of the resource if one exists, null otherwise.

Known Mappings:

Returns:
CRS of the resource, or null if unknown.


Copyright © GeoTools. All Rights Reserved.