Package org.geotools.gml2.bindings
Class GMLEncodingUtils
- Object
-
- GMLEncodingUtils
-
public class GMLEncodingUtils extends Object
-
-
Constructor Summary
Constructors Constructor Description GMLEncodingUtils(XSD gml)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Object[]>AbstractFeatureType_getProperties(Object object, XSDElementDeclaration element, SchemaIndex schemaIndex, Set<String> toFilter, Configuration configuration)XSDTypeDefinitioncreateXmlTypeFromFeatureType(SimpleFeatureType featureType, SchemaIndex schemaIndex, Set<String> toFilter)List<Object[]>GeometryPropertyType_getProperties(Geometry geometry)ObjectGeometryPropertyType_getProperty(Geometry geometry, QName name)ObjectGeometryPropertyType_getProperty(Geometry geometry, QName name, boolean includeAbstractGeometry)ObjectGeometryPropertyType_getProperty(Geometry geometry, QName name, boolean includeAbstractGeometry, boolean makeEmpty)StringgetDescription(Geometry g)Determines the name (gml:name) of the geometry by checkingGeometry.getUserData().StringgetID(Geometry g)Determines the identifier (gml:id) of the geometry by checkingGeometry.getUserData().StringgetName(Geometry g)Determines the description (gml:description) of the geometry by checkingGeometry.getUserData().static booleanisEmpty(Geometry geometry)static booleanisJoinedFeature(Object obj)Checks if a feature is a joined onevoidsetDescription(Geometry g, String description)Set the description (gml:description) of the geometry as a key in the user data mapGeometry.getUserData()(creating it withGeometry.getUserData()if it does not already exist).voidsetID(Geometry g, String id)Set the identifier (gml:id) of the geometry as a key in the user data mapGeometry.getUserData()(creating it withGeometry.getUserData()if it does not already exist).voidsetName(Geometry g, String name)Set the name (gml:name) of the geometry as a key in the user data mapGeometry.getUserData()(creating it withGeometry.getUserData()if it does not already exist).static SimpleFeature[]splitJoinedFeature(Object obj)Splits a joined feature into its components
-
-
-
Constructor Detail
-
GMLEncodingUtils
public GMLEncodingUtils(XSD gml)
-
-
Method Detail
-
AbstractFeatureType_getProperties
public List<Object[]> AbstractFeatureType_getProperties(Object object, XSDElementDeclaration element, SchemaIndex schemaIndex, Set<String> toFilter, Configuration configuration)
-
createXmlTypeFromFeatureType
public XSDTypeDefinition createXmlTypeFromFeatureType(SimpleFeatureType featureType, SchemaIndex schemaIndex, Set<String> toFilter)
-
GeometryPropertyType_getProperty
public Object GeometryPropertyType_getProperty(Geometry geometry, QName name)
-
GeometryPropertyType_getProperty
public Object GeometryPropertyType_getProperty(Geometry geometry, QName name, boolean includeAbstractGeometry)
-
GeometryPropertyType_getProperty
public Object GeometryPropertyType_getProperty(Geometry geometry, QName name, boolean includeAbstractGeometry, boolean makeEmpty)
-
GeometryPropertyType_getProperties
public List<Object[]> GeometryPropertyType_getProperties(Geometry geometry)
-
isEmpty
public static boolean isEmpty(Geometry geometry)
-
getID
public String getID(Geometry g)
Determines the identifier (gml:id) of the geometry by checkingGeometry.getUserData().This method returns
nullwhen no id can be found.
-
setID
public void setID(Geometry g, String id)
Set the identifier (gml:id) of the geometry as a key in the user data mapGeometry.getUserData()(creating it withGeometry.getUserData()if it does not already exist). If the user data exists and is not aMap, this method has no effect.- Parameters:
g- the geometryid- the gml:id to be set
-
getName
public String getName(Geometry g)
Determines the description (gml:description) of the geometry by checkingGeometry.getUserData().This method returns
nullwhen no name can be found.
-
setName
public void setName(Geometry g, String name)
Set the name (gml:name) of the geometry as a key in the user data mapGeometry.getUserData()(creating it withGeometry.getUserData()if it does not already exist). If the user data exists and is not aMap, this method has no effect.- Parameters:
g- the geometryname- the gml:name to be set
-
getDescription
public String getDescription(Geometry g)
Determines the name (gml:name) of the geometry by checkingGeometry.getUserData().This method returns
nullwhen no description can be found.
-
setDescription
public void setDescription(Geometry g, String description)
Set the description (gml:description) of the geometry as a key in the user data mapGeometry.getUserData()(creating it withGeometry.getUserData()if it does not already exist). If the user data exists and is not aMap, this method has no effect.- Parameters:
g- the geometrydescription- the gml:description to be set
-
isJoinedFeature
public static boolean isJoinedFeature(Object obj)
Checks if a feature is a joined one
-
splitJoinedFeature
public static SimpleFeature[] splitJoinedFeature(Object obj)
Splits a joined feature into its components
-
-