org.deegree.tools.wms
Class WFS2WMS
java.lang.Object
org.deegree.tools.wms.WFS2WMS
public class WFS2WMS
- extends java.lang.Object
Creates a deegree WMS configuration document or a Layer section from a WFS capabilities document.
The datasource type for each layer will be LOCALWFS. Also a style with random color(s) will be
created, assigned to the layers and stored in a xml document named $OUTFILE_BASE$_styles.xml.
TODO support for usage of an already existing WMS configuration document TODO determine geometry
types of the feature types registered within the wfs capabilities document
- Version:
- $Revision: 18195 $, $Revision: 18195 $, $Date: 2009-06-18 17:55:39 +0200 (Do, 18 Jun 2009) $
- Author:
- Andreas Poth, last edited by: $Author: mschneider $
Constructor Summary |
WFS2WMS(java.util.Properties prop)
Create an instance with given properties |
Method Summary |
static double |
getMaxX(org.w3c.dom.Node node)
|
static double |
getMaxY(org.w3c.dom.Node node)
|
static double |
getMinX(org.w3c.dom.Node node)
|
static double |
getMinY(org.w3c.dom.Node node)
|
static void |
main(java.lang.String[] args)
|
void |
run()
Run the conversion |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WFS2WMS
public WFS2WMS(java.util.Properties prop)
- Create an instance with given properties
- Parameters:
prop
- to use
getMinX
public static double getMinX(org.w3c.dom.Node node)
- Parameters:
node
- to retrieve the minimum x value from.
- Returns:
- the minimum y value or -180 if not found
getMinY
public static double getMinY(org.w3c.dom.Node node)
- Parameters:
node
- to retrieve the minimum y value from.
- Returns:
- the maximum y value or -90 if not found
getMaxX
public static double getMaxX(org.w3c.dom.Node node)
- Parameters:
node
- to retrieve the maximum x value from.
- Returns:
- the maximum x value or 180 if not found
getMaxY
public static double getMaxY(org.w3c.dom.Node node)
- Parameters:
node
- to retrieve the maximum y value from.
- Returns:
- the maximum y value or 90 if not found
run
public void run()
throws java.lang.Exception
- Run the conversion
- Throws:
java.lang.Exception
main
public static void main(java.lang.String[] args)
throws java.lang.Exception
- Parameters:
args
-
- Throws:
java.lang.Exception
- if the conversion could not be fulfilled
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org