org.geotools.data
Class DefaultResourceInfo

Object
  extended by DefaultResourceInfo
All Implemented Interfaces:
ResourceInfo

public class DefaultResourceInfo
extends Object
implements ResourceInfo

Default implementation of ResourceInfo; a simple java bean.

Author:
Jody Garnett
Module:
modules/library/main (gt-main.jar)

Constructor Summary
DefaultResourceInfo()
           
DefaultResourceInfo(ResourceInfo copy)
           
 
Method Summary
 ReferencedEnvelope getBounds()
          Bounding box of the resource (in the native CRS), envelope isNull otherwise.
 CoordinateReferenceSystem getCRS()
          Returns the CRS of the resource if known.
 String getDescription()
          Resource's description or abstract.
 Set<String> getKeywords()
          Keywords associated with this resource Known Mappings: Maps to Dublin Core's Subject element
 String getName()
          Name of the resource with the context of its service.
 URI getSchema()
          A URI used to identify the resource type.
 String getTitle()
          Resource's title.
 void setBounds(ReferencedEnvelope bounds)
           
 void setCRS(CoordinateReferenceSystem crs)
           
 void setDescription(String description)
           
 void setKeywords(Set<String> keywords)
           
 void setName(String name)
           
 void setSchema(URI schema)
           
 void setTitle(String title)
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultResourceInfo

public DefaultResourceInfo()

DefaultResourceInfo

public DefaultResourceInfo(ResourceInfo copy)
Method Detail

getTitle

public String getTitle()
Description copied from interface: ResourceInfo
Resource's title.

The title is human readable text representing the resource, in the current locale if available.

Specified by:
getTitle in interface ResourceInfo
Returns:
the title

getSchema

public URI getSchema()
Description copied from interface: ResourceInfo
A URI used to identify the resource type.

Known Mappings:

Specified by:
getSchema in interface ResourceInfo
Returns:
the schema

getName

public String getName()
Description copied from interface: ResourceInfo
Name of the resource with the context of its service.

Known Mappings:

The name should be unique with in the context of a single Service.

Specified by:
getName in interface ResourceInfo
Returns:
the name

getKeywords

public Set<String> getKeywords()
Description copied from interface: ResourceInfo
Keywords associated with this resource

Known Mappings:

Specified by:
getKeywords in interface ResourceInfo
Returns:
the keywords

getDescription

public String getDescription()
Description copied from interface: ResourceInfo
Resource's description or abstract.

Known Mappings:

The description may be in the current locale if known.

Specified by:
getDescription in interface ResourceInfo
Returns:
the description

getBounds

public ReferencedEnvelope getBounds()
Description copied from interface: ResourceInfo
Bounding box of the resource (in the native CRS), envelope isNull otherwise.

You can transform this envelope to Lat Long with a single line: info.getBounds().transform( DefaultGeographicCRS.WGS84, true ); Here are several other options for LatLong:

Specified by:
getBounds in interface ResourceInfo
Returns:
the bounds

getCRS

public CoordinateReferenceSystem getCRS()
Description copied from interface: ResourceInfo
Returns the CRS of the resource if known.

Known Mappings:

Specified by:
getCRS in interface ResourceInfo
Returns:
the crs

setCRS

public void setCRS(CoordinateReferenceSystem crs)
Parameters:
crs - the crs to set

setTitle

public void setTitle(String title)
Parameters:
title - the title to set

setSchema

public void setSchema(URI schema)
Parameters:
schema - the schema to set

setName

public void setName(String name)
Parameters:
name - the name to set

setKeywords

public void setKeywords(Set<String> keywords)
Parameters:
keywords - the keywords to set

setDescription

public void setDescription(String description)
Parameters:
description - the description to set

setBounds

public void setBounds(ReferencedEnvelope bounds)
Parameters:
bounds - the bounds to set


Copyright © 1996-2009 Geotools. All Rights Reserved.