deegree 2.5 (2011/06/29 09:44 build-8-official)

org.deegree.tools.shape
Class AVL2SLD

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

public class AVL2SLD
extends java.lang.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(java.lang.String fileRootName, java.lang.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(java.lang.String[] args)
           
 void read()
          reads the avl file assigned to a class instance
static java.lang.String[] splitavl(java.lang.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(java.lang.String fileRootName,
               java.lang.String targetDir)
Parameters:
fileRootName -
targetDir -
Method Detail

read

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

Throws:
java.io.IOException

getStyle

public AbstractStyle getStyle()
                       throws java.io.IOException,
                              java.lang.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:
java.io.IOException
java.lang.Exception

getStyledLayerDescriptor

public StyledLayerDescriptor getStyledLayerDescriptor()
                                               throws java.io.IOException,
                                                      java.lang.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:
java.io.IOException
java.lang.Exception

splitavl

public static java.lang.String[] splitavl(java.lang.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(java.lang.String[] args)
                 throws java.lang.Exception
Parameters:
args -
Throws:
java.lang.Exception

deegree 2.5 (2011/06/29 09:44 build-8-official)

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