org.geotools.data.DefaultResourceInfo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gt-main Show documentation
Show all versions of gt-main Show documentation
The main module contains the GeoTools public interfaces that are used by
other GeoTools modules (and GeoTools applications). Where possible we make
use industry standard terms as provided by OGC and ISO standards.
The formal GeoTools public api consists of gt-metadata, jts and the gt-main module.
The main module contains the default implementations that are available provided
to other GeoTools modules using our factory system. Factories are obtained from
an appropriate FactoryFinder, giving applications a chance configure the factory
used using the Factory Hints facilities.
FilterFactory ff = CommonFactoryFinder.getFilterFactory();
Expression expr = ff.add( expression1, expression2 );
If you find yourself using implementation specific classes chances are you doing it wrong:
Expression expr = new AddImpl( expression1, expressiom2 );
/*
* GeoTools - The Open Source Java GIS Toolkit
* http://geotools.org
*
* (C) 2008, Open Source Geospatial Foundation (OSGeo)
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation;
* version 2.1 of the License.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*/
package org.geotools.data;
import java.net.URI;
import java.util.HashSet;
import java.util.Set;
import org.geotools.geometry.jts.ReferencedEnvelope;
import org.opengis.referencing.crs.CoordinateReferenceSystem;
/**
* Default implementation of ResourceInfo; a simple java bean.
*
* @author Jody Garnett
*/
public class DefaultResourceInfo implements ResourceInfo {
private String title;
private URI schema;
private String name;
private Set keywords;
private String description;
private CoordinateReferenceSystem crs;
private ReferencedEnvelope bounds;
public DefaultResourceInfo() {}
public DefaultResourceInfo(ResourceInfo copy) {
this.title = copy.getTitle();
this.schema = copy.getSchema();
this.name = copy.getName();
this.keywords = new HashSet();
if (copy.getKeywords() != null) {
this.keywords.addAll(copy.getKeywords());
}
this.description = copy.getDescription();
this.crs = copy.getCRS();
this.bounds = copy.getBounds();
}
/** @return the title */
public String getTitle() {
return title;
}
/** @return the schema */
public URI getSchema() {
return schema;
}
/** @return the name */
public String getName() {
return name;
}
/** @return the keywords */
public Set getKeywords() {
return keywords;
}
/** @return the description */
public String getDescription() {
return description;
}
/** @return the bounds */
public ReferencedEnvelope getBounds() {
return bounds;
}
/** @return the crs */
public CoordinateReferenceSystem getCRS() {
return crs;
}
/** @param crs the crs to set */
public void setCRS(CoordinateReferenceSystem crs) {
this.crs = crs;
}
/** @param title the title to set */
public void setTitle(String title) {
this.title = title;
}
/** @param schema the schema to set */
public void setSchema(URI schema) {
this.schema = schema;
}
/** @param name the name to set */
public void setName(String name) {
this.name = name;
}
/** @param keywords the keywords to set */
public void setKeywords(Set keywords) {
this.keywords = keywords;
}
/** @param description the description to set */
public void setDescription(String description) {
this.description = description;
}
/** @param bounds the bounds to set */
public void setBounds(ReferencedEnvelope bounds) {
this.bounds = bounds;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy