org.geotools.data.ows.Service 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 );
The newest version!
/*
* GeoTools - The Open Source Java GIS Toolkit
* http://geotools.org
*
* (C) 2004-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.ows;
import java.awt.Dimension;
import java.net.URL;
import org.opengis.metadata.citation.ResponsibleParty;
/**
* This is a data model for the Open Web Service (OWS) metadata. This should be extended while
* implementing other OWSs. Name, Title and OnlineResource are required. Everything else is
* optional.
*/
public class Service {
/** The name of the Service (machine readible, typically one word) - Required */
private String name;
/** The title for the service (human readible) - Required */
private String title;
/** The URL pointing to where this Service can be accessed - Required */
private URL onlineResource;
/** Keywords that apply to the Service. Can be used for searching, etc */
private String[] keywordList;
/** Abstract allows a description providing more information about the Service */
private String _abstract;
/** Information about a contact person for the service. */
private ResponsibleParty contactInformation;
private int layerLimit;
private int maxWidth;
private int maxHeight;
public String get_abstract() {
return _abstract;
}
public void set_abstract(String _abstract) {
this._abstract = _abstract;
}
public String[] getKeywordList() {
return keywordList;
}
public void setKeywordList(String[] keywordList) {
this.keywordList = keywordList;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public URL getOnlineResource() {
return onlineResource;
}
public void setOnlineResource(URL onlineResource) {
this.onlineResource = onlineResource;
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public int getLayerLimit() {
return layerLimit;
}
public void setLayerLimit(int layerLimit) {
this.layerLimit = layerLimit;
}
public Dimension getMaxDimension() {
return new Dimension(maxWidth, maxHeight);
}
public int getMaxHeight() {
return maxHeight;
}
public void setMaxHeight(int maxHeight) {
this.maxHeight = maxHeight;
}
public int getMaxWidth() {
return maxWidth;
}
public void setMaxWidth(int maxWidth) {
this.maxWidth = maxWidth;
}
/**
* Information about a contact person for the service. Uses the GeoAPI citation metadata model,
* which does not map directly to the WMS specification, but it is close.
*
* The Role field is not used.
*/
public ResponsibleParty getContactInformation() {
return contactInformation;
}
public void setContactInformation(ResponsibleParty contactInformation) {
this.contactInformation = contactInformation;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy