deegree 2.3 (2010/04/09 10:10 build-4-official)

org.deegree.tools.shape
Class AVL2SLD

java.lang.Object
  extended by org.deegree.tools.shape.AVL2SLD

public class AVL2SLD
extends Object

This class converts ESRI *.avl files to OGC SLD documents. The current version of this tool isn't able to convert each and every construction that is possible with an *.avl file. But most of the common expressions will be mapped.

Because SLD (version 1.0.0) does not know inline bitmap or fill pattern definition directly (maybe it is possible using some SVG tags) all polygon fill patterns must be converted to images that are written to the file system and referenced as external graphic by the created SLD style. The similar is true for symbol definitions. SLD just 'knowns' a few predefined symbols that are not able to capture all symbols known by ArcView. In this context deegree also will extend the well known symbol by using ASCII codes to references symbols defined in an available font. This will enable deegree to transform the ArcView option defining a symbol by using an ACSII character directly. At least even if the synthax for this is SLD compliant most SLD implementation probably won't be able to evaluate this.

Version:
$Revision: 18195 $, $Date: 2009-06-18 17:55:39 +0200 (Do, 18. Jun 2009) $
Author:
Andreas Poth , last edited by: $Author: mschneider $

Constructor Summary
AVL2SLD(String fileRootName, String targetDir)
           
 
Method Summary
 AbstractStyle getStyle()
          returns a Style.
 StyledLayerDescriptor getStyledLayerDescriptor()
          creates a StyledLayerDescriptor from the avl file assigned to the instace of a AVLReader.
static void main(String[] args)
           
 void read()
          reads the avl file assigned to a class instance
static String[] splitavl(String s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AVL2SLD

public AVL2SLD(String fileRootName,
               String targetDir)
Parameters:
fileRootName -
targetDir -
Method Detail

read

public void read()
          throws IOException
reads the avl file assigned to a class instance

Throws:
IOException

getStyle

public AbstractStyle getStyle()
                       throws IOException,
                              Exception
returns a Style. For each class/child contained in a avl file one Rule will be created

Returns:
a Style. For each class/child contained in a avl file one Rule will be created
Throws:
IOException
Exception

getStyledLayerDescriptor

public StyledLayerDescriptor getStyledLayerDescriptor()
                                               throws IOException,
                                                      Exception
creates a StyledLayerDescriptor from the avl file assigned to the instace of a AVLReader. The returned instance of a StyledLayerDescriptor just contains one style that may containes several Rules

Returns:
a StyledLayerDescriptor created from the avl file assigned to the instace of a AVLReader. The returned instance of a StyledLayerDescriptor just contains one style that may containes several Rules
Throws:
IOException
Exception

splitavl

public static String[] splitavl(String s)
Parameters:
s - string to parse
Returns:
parse a string and return array of blocks between braces "(" and ")". It accounts for braces in quoted strings.

main

public static void main(String[] args)
                 throws Exception
Parameters:
args -
Throws:
Exception

deegree 2.3 (2010/04/09 10:10 build-4-official)

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org