|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectGML2EncodingUtils
public class GML2EncodingUtils
Utility methods used by gml2 bindigns when encodding.
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 void |
setDescription(Geometry g,
String description)
Set the description (gml:description) of the geometry as a key in the user data map Geometry.getUserData() (creating it withGeometry.getUserData()
if it does not already exist). |
static void |
setID(Geometry g,
String id)
Set the identifier (gml:id) of the geometry as a key in the user data map Geometry.getUserData() (creating it withGeometry.getUserData()
if it does not already exist). |
static void |
setName(Geometry g,
String name)
Set the name (gml:name) of the geometry as a key in the user data map Geometry.getUserData() (creating it withGeometry.getUserData()
if it does not already exist). |
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. |
static String |
toURI(CoordinateReferenceSystem crs,
SrsSyntax srsSyntax)
Encodes the crs object as a uri using the specified syntax. |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GML2EncodingUtils()
Method Detail |
---|
public static String epsgCode(CoordinateReferenceSystem crs)
public static String crs(CoordinateReferenceSystem crs)
toURI(CoordinateReferenceSystem)
.
public static String toURI(CoordinateReferenceSystem crs)
public static String toURI(CoordinateReferenceSystem crs, boolean forceOldStyle)
The axis order of the crs determines which form of uri is used.
public static String toURI(CoordinateReferenceSystem crs, SrsSyntax srsSyntax)
The axis order of the crs is taken into account. In cases where
public static CoordinateReferenceSystem getCRS(Geometry g)
Geometry.getUserData()
.
This method returns null
when no crs can be found.
public static String getID(Geometry g)
Geometry.getUserData()
.
This method returns null
when no id can be found.
public static void setID(Geometry g, String id)
Geometry.getUserData()
(creating it withGeometry.getUserData()
if it does not already exist). If the user data exists and is not a
Map
, this method has no effect.
g
- the geometryid
- the gml:id to be setpublic static String getName(Geometry g)
Geometry.getUserData()
.
This method returns null
when no name can be found.
public static void setName(Geometry g, String name)
Geometry.getUserData()
(creating it withGeometry.getUserData()
if it does not already exist). If the user data exists and is not a
Map
, this method has no effect.
g
- the geometryname
- the gml:name to be setpublic static String getDescription(Geometry g)
Geometry.getUserData()
.
This method returns null
when no description can be found.
public static void setDescription(Geometry g, String description)
Geometry.getUserData()
(creating it withGeometry.getUserData()
if it does not already exist). If the user data exists and is not a
Map
, this method has no effect.
g
- the geometrydescription
- the gml:description to be setpublic static Element AbstractFeatureType_encode(Object object, Document document, Element value)
public static List AbstractFeatureType_getProperties(Object object, XSDElementDeclaration element, SchemaIndex schemaIndex, Set<String> toFilter, Configuration configuration)
public static XSDTypeDefinition createXmlTypeFromFeatureType(SimpleFeatureType featureType, SchemaIndex schemaIndex, Set<String> toFilter)
public static Object GeometryPropertyType_getProperty(Geometry geometry, QName name)
public static Object GeometryPropertyType_getProperty(Geometry geometry, QName name, boolean includeAbstractGeometry)
public static List GeometryPropertyType_getProperties(Geometry geometry)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |