|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.bsvrz.kex.bwsin.konfig.okstra.Okstra
public class Okstra
Modul OKSTRA.
Field Summary | |
---|---|
(package private) HashMap<String,Map<String,org.geotools.feature.Feature>> |
cache
Feature-Cache. |
(package private) org.geotools.data.DataStore |
dataStore
Datastore. |
private static de.bsvrz.sys.funclib.debug.Debug |
DEBUG
DebugLogger für Debug-Ausgaben. |
private static Okstra |
instance
Instanz der Klasse. |
Constructor Summary | |
---|---|
Okstra(Properties prop)
Erzeugt eine Instanz zum Zugriff auf die OKSTRA-Datenbasis. |
Method Summary | |
---|---|
private void |
buildHash(OkstraFeature of,
String id,
Document doc)
Erzeugt eine Hash-Tabelle der Features. |
void |
createSchema(org.geotools.feature.FeatureType arg0)
|
org.geotools.feature.Feature |
findAoA(String iD)
Findet das 'echte' Feature zu einer Abschnitt-oder-Ast Referenz. |
private static String |
findAttrElementValue(Node node,
String attr)
Findet den Wert eines Attributes. |
private static List<String> |
findAttrElementValues(Node node,
String attr)
Findet alle Attributwerte zu einem Attribut. |
double |
getDoubleAttribute(org.geotools.feature.Feature f,
String name)
Gibt ein Attribut eines Features als double-Wert zurück. |
org.geotools.feature.Feature |
getFeature(OkstraFeature ofeature,
String fid)
Gibt ein Feature eines abgefragten Types zurück. |
org.geotools.feature.Feature |
getFeature(String ftype,
String fid)
Gibt ein Features eines abgefragten Types zurück. |
static de.bsvrz.sys.funclib.bitctrl.geolib.WGS84Polygon |
getFeatureKoordinatenAlsWGS84Polygon(org.geotools.feature.Feature f)
Gibt die Koordinatenliste eines Features als WGS84-Polygon zurück. |
static com.vividsolutions.jts.geom.Coordinate[] |
getFeatureKoordinatenWGS84(org.geotools.feature.Feature f)
Gibt die Koordinatenliste eines Features als WGS84-Koordninaten zurück. |
Map<String,org.geotools.feature.Feature> |
getFeatureMap(String featuretype)
Bildet eine Map von Features eines abgefragten Typs. |
org.geotools.data.FeatureReader |
getFeatureReader(org.geotools.data.Query arg0,
org.geotools.data.Transaction arg1)
|
static org.geotools.feature.Feature |
getFeatureReferenz(Object attribute)
Extrahiert die Feature-Referenz aus dem XLINK-Attribut und gibt das referenzierte Feature zurück. |
org.geotools.data.FeatureSource |
getFeatureSource(String arg0)
|
org.geotools.data.FeatureWriter |
getFeatureWriter(String arg0,
org.geotools.filter.Filter arg1,
org.geotools.data.Transaction arg2)
|
org.geotools.data.FeatureWriter |
getFeatureWriter(String arg0,
org.geotools.data.Transaction arg1)
|
org.geotools.data.FeatureWriter |
getFeatureWriterAppend(String arg0,
org.geotools.data.Transaction arg1)
|
private static String |
getIdValue(OkstraFeature of,
String id,
String attr)
Gibt den Wert eines Attributes eines Features zurück. |
private static Object[] |
getIdValues(OkstraFeature of,
String id,
String attr)
Gibt alle Werte eines Attributes eines Features zurück. |
private static List<Object> |
getIdValues2(OkstraFeature of,
String id,
String attname)
Gibt alle Werte eines Attributes eines Features zurück. |
static Okstra |
getInstance()
Gibt die Instanz auf das OKSTRA-Objekt zurück. |
static int |
getIntAttribute(org.geotools.feature.Feature f,
String name)
Gibt ein ganzzahliges Attribut eines Features zurück. |
org.geotools.data.LockingManager |
getLockingManager()
|
static String |
getRefFeatureId(String xpath)
Extrahiert die Feature-ID aus dem XPATH-Attribut und gibt diese als String zurück. |
static String |
getRefFeatureType(String xpath)
Extrahiert den Feature-Typ aus dem XPATH-Attribut und gibt diesen als String zurück. |
org.geotools.feature.FeatureType |
getSchema(String arg0)
|
String |
getSpecialAttribute(OkstraFeature of,
String fid,
String attname)
Spezialfunktion zum Lesen von Attributen, die von GeoTools nicht bereitgestellt werden können. |
String |
getSpecialAttribute2(OkstraFeature of,
String fid,
String attname)
Spezialfunktion zum Lesen von Attributen, die von GeoTools nicht bereitgestellt werden können. |
Object[] |
getSpecialAttributeList(OkstraFeature of,
String fid,
String attname)
Spezialfunktion zum Lesen von mehreren Attributen zum gleichen Namen, die von GeoTools nicht bereitgestellt werden können. |
Object[] |
getSpecialAttributeList2(OkstraFeature of,
String fid,
String attname)
Spezialfunktion zum Lesen von mehreren Attributen zum gleichen Namen, die von GeoTools nicht bereitgestellt werden können. |
String[] |
getTypeNames()
|
org.geotools.data.FeatureSource |
getView(org.geotools.data.Query arg0)
|
private Map<String,Object> |
prepareWfsParam(Properties prop)
Erzeugt die Parameter-Map für den WFS-Datastore aus den übergebenen Properties. |
private void |
readFeatures(OkstraFeature of,
InputSource source)
Liest Features von einer Quelle. |
void |
updateSchema(String arg0,
org.geotools.feature.FeatureType arg1)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static Okstra instance
private static final de.bsvrz.sys.funclib.debug.Debug DEBUG
org.geotools.data.DataStore dataStore
HashMap<String,Map<String,org.geotools.feature.Feature>> cache
Constructor Detail |
---|
public Okstra(Properties prop) throws ImportException
prop
- Properties
ImportException
- bei AusnahmenMethod Detail |
---|
private static String findAttrElementValue(Node node, String attr)
node
- Knotenattr
- Attributname
private static List<String> findAttrElementValues(Node node, String attr)
node
- Knotenattr
- Attributname
public static de.bsvrz.sys.funclib.bitctrl.geolib.WGS84Polygon getFeatureKoordinatenAlsWGS84Polygon(org.geotools.feature.Feature f)
f
- Feature
WGS84Polygon
public static com.vividsolutions.jts.geom.Coordinate[] getFeatureKoordinatenWGS84(org.geotools.feature.Feature f)
f
- Feature
public static org.geotools.feature.Feature getFeatureReferenz(Object attribute) throws ImportException
attribute
- ein eine Feature-Referenz enthaltendes Feature-Attribut
Feature
ImportException
- bei Ausnahmenprivate static String getIdValue(OkstraFeature of, String id, String attr)
of
- OKSTRA-Featureid
- Feature-IDattr
- Name des Attributes
private static Object[] getIdValues(OkstraFeature of, String id, String attr)
of
- OKSTRA-Featureid
- Feature-IDattr
- Name des Attributes
private static List<Object> getIdValues2(OkstraFeature of, String id, String attname)
of
- OKSTRA-Featureid
- Feature-IDattname
- Name des Attributes
public static Okstra getInstance()
public static int getIntAttribute(org.geotools.feature.Feature f, String name) throws IllegalAttributeConversionException
f
- Feature
name
- Name des Attributes
IllegalAttributeConversionException
- wenn der Wert des Attributes nicht in eine Ganzzahl
konvertiert werden kannpublic static String getRefFeatureId(String xpath)
xpath
- ein eine Feature-Referenz enthaltendes Feature-Attribut
public static String getRefFeatureType(String xpath)
xpath
- ein eine Feature-Referenz enthaltendes Feature-Attribut
private void buildHash(OkstraFeature of, String id, Document doc)
of
- OKSTRA-Featureid
- Feature-IDdoc
- Dukumentpublic void createSchema(org.geotools.feature.FeatureType arg0) throws IOException
createSchema
in interface org.geotools.data.DataStore
IOException
DataStore.createSchema(org.geotools.feature.FeatureType)
public org.geotools.feature.Feature findAoA(String iD) throws ImportException
iD
- Abschnitt-oder-Ast
ImportException
- bei Ausnahmenpublic double getDoubleAttribute(org.geotools.feature.Feature f, String name) throws IllegalAttributeConversionException
f
- Feature
name
- Name des Attributes
IllegalAttributeConversionException
- wenn der Wert des Attributes nicht in double konvertiert
werden kannpublic org.geotools.feature.Feature getFeature(OkstraFeature ofeature, String fid) throws ImportException
ofeature
- das abzufragende Featurefid
- Feature-ID
Feature
ImportException
- bei Ausnahmenpublic org.geotools.feature.Feature getFeature(String ftype, String fid) throws ImportException
ftype
- der Name des Feature-Typsfid
- Feature-ID
Feature
ImportException
- bei Ausnahmenpublic Map<String,org.geotools.feature.Feature> getFeatureMap(String featuretype) throws ImportException
featuretype
- der abgefragte Feature-Typ
ImportException
- bei Ausnahmenpublic org.geotools.data.FeatureReader getFeatureReader(org.geotools.data.Query arg0, org.geotools.data.Transaction arg1) throws IOException
getFeatureReader
in interface org.geotools.data.DataStore
IOException
DataStore.getFeatureReader(org.geotools.data.Query,
org.geotools.data.Transaction)
public org.geotools.data.FeatureSource getFeatureSource(String arg0) throws IOException
getFeatureSource
in interface org.geotools.data.DataStore
IOException
DataStore.getFeatureSource(java.lang.String)
public org.geotools.data.FeatureWriter getFeatureWriter(String arg0, org.geotools.filter.Filter arg1, org.geotools.data.Transaction arg2) throws IOException
getFeatureWriter
in interface org.geotools.data.DataStore
IOException
DataStore.getFeatureWriter(java.lang.String,
org.geotools.filter.Filter, org.geotools.data.Transaction)
public org.geotools.data.FeatureWriter getFeatureWriter(String arg0, org.geotools.data.Transaction arg1) throws IOException
getFeatureWriter
in interface org.geotools.data.DataStore
IOException
DataStore.getFeatureWriter(java.lang.String,
org.geotools.data.Transaction)
public org.geotools.data.FeatureWriter getFeatureWriterAppend(String arg0, org.geotools.data.Transaction arg1) throws IOException
getFeatureWriterAppend
in interface org.geotools.data.DataStore
IOException
DataStore.getFeatureWriterAppend(java.lang.String,
org.geotools.data.Transaction)
public org.geotools.data.LockingManager getLockingManager()
getLockingManager
in interface org.geotools.data.DataStore
DataStore.getLockingManager()
public org.geotools.feature.FeatureType getSchema(String arg0) throws IOException
getSchema
in interface org.geotools.data.DataStore
IOException
DataStore.getSchema(java.lang.String)
public String getSpecialAttribute(OkstraFeature of, String fid, String attname)
of
- OKSTRA-Featurefid
- Feature-IDattname
- Attributname
public String getSpecialAttribute2(OkstraFeature of, String fid, String attname) throws ImportException
of
- OKSTRA-Featurefid
- Feature-IDattname
- Attributname
ImportException
- bei Ausnahmenpublic Object[] getSpecialAttributeList(OkstraFeature of, String fid, String attname)
of
- OKSTRA-Featurefid
- Feature-IDattname
- Attributname
public Object[] getSpecialAttributeList2(OkstraFeature of, String fid, String attname)
of
- OKSTRA-Featurefid
- Feature-IDattname
- Attributname
public String[] getTypeNames() throws IOException
getTypeNames
in interface org.geotools.data.DataStore
IOException
DataStore.getTypeNames()
public org.geotools.data.FeatureSource getView(org.geotools.data.Query arg0) throws IOException, org.geotools.feature.SchemaException
getView
in interface org.geotools.data.DataStore
IOException
org.geotools.feature.SchemaException
DataStore.getView(org.geotools.data.Query)
private Map<String,Object> prepareWfsParam(Properties prop) throws IOException
prop
- Properties
IOException
- bei Ausnahmenprivate void readFeatures(OkstraFeature of, InputSource source)
of
- OKSTR-Featuresource
- Quellepublic void updateSchema(String arg0, org.geotools.feature.FeatureType arg1) throws IOException
updateSchema
in interface org.geotools.data.DataStore
IOException
DataStore.updateSchema(java.lang.String,
org.geotools.feature.FeatureType)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |