public class FeatureServiceUtilities extends Object
| Modifier and Type | Field and Description |
|---|---|
static String[] |
GEO_PROPERTY_TYPES |
static String |
GET_FEATURE
name of the GetFeature-element.
|
static String |
INTEGER_PROPERTY_TYPE
typestring of the integer-type.
|
static String |
IS_GEOMETRY
name of the isGeometry-attribute.
|
static String |
IS_NAME_ELEMENT
name of the toName-attribute.
|
static String |
IS_VISIBLE
name of the isVisible-attribute.
|
static String |
STRING_PROPERTY_TYPE
typestring of the string-type.
|
static org.jdom.Namespace |
WFS
WFS namespace-contant.
|
static String |
XML_ALIAS_STRING
name of the alias-attribute.
|
static String |
XML_NAME_STRING
name of the name-attribute.
|
static String |
XML_TYPE_STRING
name of the type-attribute.
|
| Constructor and Description |
|---|
FeatureServiceUtilities() |
| Modifier and Type | Method and Description |
|---|---|
static String |
elementToString(org.jdom.Element e)
Creates a string from a JDOM-element.
|
static TreeMap<FeatureType,Vector<FeatureServiceAttribute>> |
getElementDeclarations(WFSCapabilities cap)
Creates a list of JDOM-elements containing all attributes of each FeatureType from the FeatureTypeList.
|
static HashMap<String,FeatureServiceAttribute> |
getFeatureServiceAttributes(org.jdom.Element describeFeatureXML)
Creates FeatureServiceAttributes by parsing the children of the delivered JDOM-element.
|
static List<String> |
getOrderedFeatureServiceAttributes(org.jdom.Element describeFeatureXML)
Creates the ordered FeatureServiceAttributes list by parsing the children of the delivered JDOM-element.
|
static String |
getServiceName(WFSCapabilities cap)
Returns name of the FeatureService if existing in the capabilities.
|
static boolean |
isElementOfGeometryType(String typeName)
DOCUMENT ME!
|
static String |
parseDocumentToString(org.jdom.Document doc)
Creates a string from a JDOM-document.
|
static StringBuilder |
readInputStream(InputStream is)
Reads the given stream and uses the charset that was given in the first line (if there is any).
|
public static final String[] GEO_PROPERTY_TYPES
public static final String STRING_PROPERTY_TYPE
public static final String INTEGER_PROPERTY_TYPE
public static final String XML_NAME_STRING
public static final String XML_ALIAS_STRING
public static final String XML_TYPE_STRING
public static final String IS_GEOMETRY
public static final String IS_VISIBLE
public static final String IS_NAME_ELEMENT
public static final String GET_FEATURE
public static final org.jdom.Namespace WFS
public static String elementToString(org.jdom.Element e)
e - JDOM-elementpublic static String getServiceName(WFSCapabilities cap)
cap - DOCUMENT ME!public static String parseDocumentToString(org.jdom.Document doc)
doc - JDOM-cocumentpublic static TreeMap<FeatureType,Vector<FeatureServiceAttribute>> getElementDeclarations(WFSCapabilities cap) throws IOException, Exception
cap - postURL URL of the serversIOException - DOCUMENT ME!Exception - DOCUMENT ME!public static boolean isElementOfGeometryType(String typeName)
typeName - epublic static HashMap<String,FeatureServiceAttribute> getFeatureServiceAttributes(org.jdom.Element describeFeatureXML)
describeFeatureXML - JDOM-elementpublic static List<String> getOrderedFeatureServiceAttributes(org.jdom.Element describeFeatureXML)
describeFeatureXML - JDOM-elementpublic static StringBuilder readInputStream(InputStream is) throws IOException
is - reader is reader DOCUMENT ME!IOException - DOCUMENT ME!Copyright © 2012–2025 cismet GmbH. All rights reserved.