org.geotools.gml2.bindings
Class GML2EncodingUtils

java.lang.Object
  extended by org.geotools.gml2.bindings.GML2EncodingUtils

public class GML2EncodingUtils
extends java.lang.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

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

Constructor Detail

GML2EncodingUtils

public GML2EncodingUtils()
Method Detail

epsgCode

public static java.lang.String epsgCode(org.opengis.referencing.crs.CoordinateReferenceSystem crs)

crs

public static java.lang.String crs(org.opengis.referencing.crs.CoordinateReferenceSystem crs)
Deprecated. use toURI(CoordinateReferenceSystem).


toURI

public static java.lang.String toURI(org.opengis.referencing.crs.CoordinateReferenceSystem crs)
Encodes the crs object as a uri.


toURI

public static java.lang.String toURI(org.opengis.referencing.crs.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 org.opengis.referencing.crs.CoordinateReferenceSystem getCRS(com.vividsolutions.jts.geom.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 java.lang.String getID(com.vividsolutions.jts.geom.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 java.lang.String getName(com.vividsolutions.jts.geom.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 java.lang.String getDescription(com.vividsolutions.jts.geom.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 org.w3c.dom.Element AbstractFeatureType_encode(java.lang.Object object,
                                                             org.w3c.dom.Document document,
                                                             org.w3c.dom.Element value)

AbstractFeatureType_getProperties

public static java.util.List AbstractFeatureType_getProperties(java.lang.Object object,
                                                               org.eclipse.xsd.XSDElementDeclaration element,
                                                               SchemaIndex schemaIndex,
                                                               java.util.Set<java.lang.String> toFilter,
                                                               Configuration configuration)

createXmlTypeFromFeatureType

public static org.eclipse.xsd.XSDTypeDefinition createXmlTypeFromFeatureType(org.opengis.feature.simple.SimpleFeatureType featureType,
                                                                             SchemaIndex schemaIndex,
                                                                             java.util.Set<java.lang.String> toFilter)

GeometryPropertyType_getProperty

public static java.lang.Object GeometryPropertyType_getProperty(com.vividsolutions.jts.geom.Geometry geometry,
                                                                javax.xml.namespace.QName name)

GeometryPropertyType_getProperty

public static java.lang.Object GeometryPropertyType_getProperty(com.vividsolutions.jts.geom.Geometry geometry,
                                                                javax.xml.namespace.QName name,
                                                                boolean includeAbstractGeometry)

GeometryPropertyType_getProperties

public static java.util.List GeometryPropertyType_getProperties(com.vividsolutions.jts.geom.Geometry geometry)


Copyright © 1996-2010 Geotools. All Rights Reserved.