org.geotools.gml2.bindings
Class GML2EncodingUtils

Object
  extended by GML2EncodingUtils

public class GML2EncodingUtils
extends Object

Utility methods used by gml2 bindigns when encodding.

Author:
Justin Deoliveira, The Open Planning Project, jdeolive@openplans.org, Ben Caradoc-Davies, CSIRO Exploration and Mining
Module:
modules/extension/xsd-gml2 (gt-xsd-gml2.jar)

Constructor Summary
GML2EncodingUtils()
           
 
Method Summary
static Element AbstractFeatureType_encode(Object object, Document document, Element value)
           
static List AbstractFeatureType_getProperties(Object object, XSDElementDeclaration element, SchemaIndex schemaIndex, Set<String> toFilter, Configuration configuration)
           
static XSDTypeDefinition createXmlTypeFromFeatureType(SimpleFeatureType featureType, SchemaIndex schemaIndex, Set<String> toFilter)
           
static String crs(CoordinateReferenceSystem crs)
          Deprecated. use toURI(CoordinateReferenceSystem).
static String epsgCode(CoordinateReferenceSystem crs)
           
static List GeometryPropertyType_getProperties(Geometry geometry)
           
static Object GeometryPropertyType_getProperty(Geometry geometry, QName name)
           
static Object GeometryPropertyType_getProperty(Geometry geometry, QName name, boolean includeAbstractGeometry)
           
static CoordinateReferenceSystem getCRS(Geometry g)
          Determines the crs of the geometry by checking Geometry.getUserData().
static String getDescription(Geometry g)
          Determines the name (gml:name) of the geometry by checking Geometry.getUserData().
static String getID(Geometry g)
          Determines the identifier (gml:id) of the geometry by checking Geometry.getUserData().
static String getName(Geometry g)
          Determines the description (gml:description) of the geometry by checking Geometry.getUserData().
static String toURI(CoordinateReferenceSystem crs)
          Encodes the crs object as a uri.
static String toURI(CoordinateReferenceSystem crs, boolean forceOldStyle)
          Encodes the crs object as a uri.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GML2EncodingUtils

public GML2EncodingUtils()
Method Detail

epsgCode

public static String epsgCode(CoordinateReferenceSystem crs)

crs

public static String crs(CoordinateReferenceSystem crs)
Deprecated. use toURI(CoordinateReferenceSystem).


toURI

public static String toURI(CoordinateReferenceSystem crs)
Encodes the crs object as a uri.


toURI

public static String toURI(CoordinateReferenceSystem crs,
                           boolean forceOldStyle)
Encodes the crs object as a uri.

The axis order of the crs determines which form of uri is used.


getCRS

public static CoordinateReferenceSystem getCRS(Geometry g)
Determines the crs of the geometry by checking Geometry.getUserData().

This method returns null when no crs can be found.


getID

public static String getID(Geometry g)
Determines the identifier (gml:id) of the geometry by checking Geometry.getUserData().

This method returns null when no id can be found.


getName

public static String getName(Geometry g)
Determines the description (gml:description) of the geometry by checking Geometry.getUserData().

This method returns null when no name can be found.


getDescription

public static String getDescription(Geometry g)
Determines the name (gml:name) of the geometry by checking Geometry.getUserData().

This method returns null when no description can be found.


AbstractFeatureType_encode

public static Element AbstractFeatureType_encode(Object object,
                                                 Document document,
                                                 Element value)

AbstractFeatureType_getProperties

public static List AbstractFeatureType_getProperties(Object object,
                                                     XSDElementDeclaration element,
                                                     SchemaIndex schemaIndex,
                                                     Set<String> toFilter,
                                                     Configuration configuration)

createXmlTypeFromFeatureType

public static XSDTypeDefinition createXmlTypeFromFeatureType(SimpleFeatureType featureType,
                                                             SchemaIndex schemaIndex,
                                                             Set<String> toFilter)

GeometryPropertyType_getProperty

public static Object GeometryPropertyType_getProperty(Geometry geometry,
                                                      QName name)

GeometryPropertyType_getProperty

public static Object GeometryPropertyType_getProperty(Geometry geometry,
                                                      QName name,
                                                      boolean includeAbstractGeometry)

GeometryPropertyType_getProperties

public static List GeometryPropertyType_getProperties(Geometry geometry)


Copyright © 1996-2009 Geotools. All Rights Reserved.