public class BndExtensionBuilderDb extends GeoExtensionBuilderBase<OsmPolygon> implements java.util.Iterator<OsmPolygon>
Graph
-Datei um Boundaries (Multipolygone)
aus einer Datenbank-Tabelle.Config.openDbConnection(String)
aufgebaut.OsmObject
.
bigint
byte
integer
text
geometry(MULTIPOLYGON, 4326)
postp.X.sql
gesetzt werden, wobei X durch die Id des Postprozessors ersetzt werden muss.
Default ist:SELECT id, clazz, flags, name, geom FROM multipolygons
GeoExtensionBuilderBase
COMPAT_VERSION, EXTENSION_CLAZZ, EXTENSION_ID, EXTENSION_ID_DEFAULT, log
Constructor and Description |
---|
BndExtensionBuilderDb() |
Modifier and Type | Method and Description |
---|---|
java.lang.Class<? extends Var<?>> |
forExtensionClass() |
java.lang.Iterable<OsmPolygon> |
getSource() |
protected void |
handleCustom(OsmPolygon op,
java.sql.ResultSet rst)
Ermoeglicht einer abgeleiteteten Klasse zusaetzliche Informationen
anzubringen.
|
boolean |
hasNext() |
OsmPolygon |
next() |
void |
remove() |
void |
run(Config config,
int index)
Startet den Lauf.
|
int[] |
zoneIdsOf(OsmPolygon polygon,
byte zoneSize) |
associateNames
public java.lang.Class<? extends Var<?>> forExtensionClass()
forExtensionClass
in class GeoExtensionBuilderBase<OsmPolygon>
public void run(Config config, int index) throws java.lang.Exception
PostProcessor
run
in interface PostProcessor
run
in class GeoExtensionBuilderBase<OsmPolygon>
config
- Config
Aktuelle Konfigurationindex
- Ordinal-Index bei mehreren Postprozessoren innerhalb der Config.java.lang.Exception
- xpublic java.lang.Iterable<OsmPolygon> getSource()
getSource
in class GeoExtensionBuilderBase<OsmPolygon>
public boolean hasNext()
hasNext
in interface java.util.Iterator<OsmPolygon>
public OsmPolygon next()
next
in interface java.util.Iterator<OsmPolygon>
protected void handleCustom(OsmPolygon op, java.sql.ResultSet rst) throws java.lang.Exception
op
- OsmPolygon
rst
- ResultSet
java.lang.Exception
public void remove()
remove
in interface java.util.Iterator<OsmPolygon>
public int[] zoneIdsOf(OsmPolygon polygon, byte zoneSize)
zoneIdsOf
in class GeoExtensionBuilderBase<OsmPolygon>