Class: ImportTool

ImportTool

ImporterTool

new ImportTool()

modules/tools/importer/model.js, line 50
Generic Importer Tool for common geodata formats and services - main Model.
Listens to Events:

Extends

Methods

changeLang(lng){Void}

modules/tools/importer/model.js, line 96
change language - sets default values for the language
Name Type Description
lng String current language

changeLang(lng){Void}

modules/tools/kmlImport/model.js, line 64
change language - sets default values for the language
Name Type Description
lng String the language changed to

convertHexColorToRgbArray(hexColor){Array.<String>}

modules/tools/kmlImport/model.js, line 200
Converts a reverse given hexColor with opacity such as "ffaa30bb" to an array with RGBA-values.
Name Type Description
hexColor String a color in hexadecimal
Returns:
in RGBA

createDrawStyle(drawGeometryType, styleObject){ol/style}

modules/tools/kmlImport/model.js, line 237
Creates a style for a feature with a given gemetry.
Name Type Description
drawGeometryType String geometrie of feature
styleObject Object parsed Styles
Returns:
for a feature with geometry

emptyInput(){void}

modules/tools/kmlImport/model.js, line 88
After import:kml empty input and reset button-style.

featuresToMap(){void}

modules/tools/kmlImport/model.js, line 364
Loads features into the map

getFeaturesFromKML(){void}

modules/tools/kmlImport/model.js, line 102
Read features from KML (stored in "text").
Fires:

getProjections(sourceProj, destProj){Object}

modules/tools/kmlImport/model.js, line 276
todo
Name Type Description
sourceProj * todo
destProj * todo

getTextStyle(fontText, styleObject){ol/style}

modules/tools/kmlImport/model.js, line 218
Creates a style for text.
Name Type Description
fontText String font for the text
styleObject Object parsed Styles
Returns:
for text

importKML(){void}

modules/tools/kmlImport/model.js, line 75
Controls the kml import.

parseStyleFromKML(features, kmlText){Object}

modules/tools/kmlImport/model.js, line 159
Parse the style from the given kml data.
Name Type Description
features ol/features features to be drawn
kmlText XML features with style in kml-format
Returns:
Styles

setFeatures(value){void}

modules/tools/kmlImport/model.js, line 385
sets the features
Name Type Description
value * todo

setFormat(value){void}

modules/tools/kmlImport/model.js, line 412
sets the format
Name Type Description
value * todo

inherited setGlyphicon(value){void}

modules/core/modelList/item.js, line 69
Setter for glyphicon
Name Type Description
value String Glyphicon

inherited setId(value){void}

modules/core/modelList/item.js, line 34
Setter for id
Name Type Description
value String Id

inherited setIsActive(value){void}

modules/core/modelList/tool/model.js, line 129
Activates or deactivates tool
Name Type Description
value Boolean Flag if tool is active

inherited setIsInThemen(value){void}

modules/core/modelList/item.js, line 78
Setter for isInThemen
Name Type Description
value Boolean Flag if item is in themen

inherited setIsVisibleInMenu(value){void}

modules/core/modelList/item.js, line 105
Setter for setIsVisibleInMenu
Name Type Description
value Boolean Flag if item is visible in menu

inherited setIsVisibleInTree(value){void}

modules/core/modelList/item.js, line 96
Setter for isVisibleInTree
Name Type Description
value Boolean Flag if item is visible in layertree

setLayer(value){void}

modules/tools/kmlImport/model.js, line 403
sets the layer
Name Type Description
value * todo

inherited setLevel(value){void}

modules/core/modelList/item.js, line 87
Setter for level
Name Type Description
value String Level

inherited setName(value){void}

modules/core/modelList/item.js, line 52
Setter for name
Name Type Description
value String Name

inherited setParentId(value){void}

modules/core/modelList/item.js, line 43
Setter for parentId
Name Type Description
value String ParentId

setPropIfExist(key, value){void}

modules/tools/importer/model.js, line 115
Helper function to set model parameter. Is needed for a remote call of the model.
Name Type Description
key String Key to set
value String Value to set

setSource(value){void}

modules/tools/kmlImport/model.js, line 394
sets the source
Name Type Description
value * todo

setText(value){void}

modules/tools/kmlImport/model.js, line 376
sets the text
Name Type Description
value * todo

inherited setType(value){void}

modules/core/modelList/item.js, line 60
Setter for type
Name Type Description
value String Type

styleFeatures(features){void}

modules/tools/kmlImport/model.js, line 121
Sets the style to a feature.
Name Type Description
features ol/features features to be drawn

inherited superChangeLang(){Void}

modules/core/modelList/tool/model.js, line 113
change language - sets or translates the name of this tool, if property i18nextTranslate is no function. If name is defined in config.json, the name is not translated else property nameTranslationKey is used.

transformCoords(geometry, projections){Array}

modules/tools/kmlImport/model.js, line 290
Transforms the coordinates taking the geometry into account.
Name Type Description
geometry String geoemtzry of a feature
projections * todo
Fires:

transformFeatures(){void}

modules/tools/kmlImport/model.js, line 259
Transform the coordinate system of features.

transformLine(coords, projections, context){*}

modules/tools/kmlImport/model.js, line 339
todo
Name Type Description
coords * todo
projections * todo
context * todo

transformPoint(point, projections){*}

modules/tools/kmlImport/model.js, line 355
todo
Name Type Description
point * todo
projections * todo

transformPolygon(coords, projections, context){*}

modules/tools/kmlImport/model.js, line 320
todo
Name Type Description
coords * todo
projections * todo
context * todo

ImportTool

ImportTool

new ImportTool()

modules/tools/kmlImport/model.js, line 38
The ImportTool is a tool for importing data in kml format.
Properties:
Name Type Default Description
text String "" todo
features Array [ todo
format ol/format new KML({extractStyles: true}) todo
renderToWindow Boolean true todo
glyphicon String "glyphicon-import" todo
fakeButtonText String "", filled with "Datei auswählen (keine ausgewählt)"- translated
importButtonText String "", filled with "IMPORT"- translated
Fires:
Listens to Events:

Extends

Methods

changeLang(lng){Void}

modules/tools/importer/model.js, line 96
change language - sets default values for the language
Name Type Description
lng String current language

changeLang(lng){Void}

modules/tools/kmlImport/model.js, line 64
change language - sets default values for the language
Name Type Description
lng String the language changed to

convertHexColorToRgbArray(hexColor){Array.<String>}

modules/tools/kmlImport/model.js, line 200
Converts a reverse given hexColor with opacity such as "ffaa30bb" to an array with RGBA-values.
Name Type Description
hexColor String a color in hexadecimal
Returns:
in RGBA

createDrawStyle(drawGeometryType, styleObject){ol/style}

modules/tools/kmlImport/model.js, line 237
Creates a style for a feature with a given gemetry.
Name Type Description
drawGeometryType String geometrie of feature
styleObject Object parsed Styles
Returns:
for a feature with geometry

emptyInput(){void}

modules/tools/kmlImport/model.js, line 88
After import:kml empty input and reset button-style.

featuresToMap(){void}

modules/tools/kmlImport/model.js, line 364
Loads features into the map

getFeaturesFromKML(){void}

modules/tools/kmlImport/model.js, line 102
Read features from KML (stored in "text").
Fires:

getProjections(sourceProj, destProj){Object}

modules/tools/kmlImport/model.js, line 276
todo
Name Type Description
sourceProj * todo
destProj * todo

getTextStyle(fontText, styleObject){ol/style}

modules/tools/kmlImport/model.js, line 218
Creates a style for text.
Name Type Description
fontText String font for the text
styleObject Object parsed Styles
Returns:
for text

importKML(){void}

modules/tools/kmlImport/model.js, line 75
Controls the kml import.

parseStyleFromKML(features, kmlText){Object}

modules/tools/kmlImport/model.js, line 159
Parse the style from the given kml data.
Name Type Description
features ol/features features to be drawn
kmlText XML features with style in kml-format
Returns:
Styles

setFeatures(value){void}

modules/tools/kmlImport/model.js, line 385
sets the features
Name Type Description
value * todo

setFormat(value){void}

modules/tools/kmlImport/model.js, line 412
sets the format
Name Type Description
value * todo

inherited setGlyphicon(value){void}

modules/core/modelList/item.js, line 69
Setter for glyphicon
Name Type Description
value String Glyphicon

inherited setId(value){void}

modules/core/modelList/item.js, line 34
Setter for id
Name Type Description
value String Id

inherited setIsActive(value){void}

modules/core/modelList/tool/model.js, line 129
Activates or deactivates tool
Name Type Description
value Boolean Flag if tool is active

inherited setIsInThemen(value){void}

modules/core/modelList/item.js, line 78
Setter for isInThemen
Name Type Description
value Boolean Flag if item is in themen

inherited setIsVisibleInMenu(value){void}

modules/core/modelList/item.js, line 105
Setter for setIsVisibleInMenu
Name Type Description
value Boolean Flag if item is visible in menu

inherited setIsVisibleInTree(value){void}

modules/core/modelList/item.js, line 96
Setter for isVisibleInTree
Name Type Description
value Boolean Flag if item is visible in layertree

setLayer(value){void}

modules/tools/kmlImport/model.js, line 403
sets the layer
Name Type Description
value * todo

inherited setLevel(value){void}

modules/core/modelList/item.js, line 87
Setter for level
Name Type Description
value String Level

inherited setName(value){void}

modules/core/modelList/item.js, line 52
Setter for name
Name Type Description
value String Name

inherited setParentId(value){void}

modules/core/modelList/item.js, line 43
Setter for parentId
Name Type Description
value String ParentId

setPropIfExist(key, value){void}

modules/tools/importer/model.js, line 115
Helper function to set model parameter. Is needed for a remote call of the model.
Name Type Description
key String Key to set
value String Value to set

setSource(value){void}

modules/tools/kmlImport/model.js, line 394
sets the source
Name Type Description
value * todo

setText(value){void}

modules/tools/kmlImport/model.js, line 376
sets the text
Name Type Description
value * todo

inherited setType(value){void}

modules/core/modelList/item.js, line 60
Setter for type
Name Type Description
value String Type

styleFeatures(features){void}

modules/tools/kmlImport/model.js, line 121
Sets the style to a feature.
Name Type Description
features ol/features features to be drawn

inherited superChangeLang(){Void}

modules/core/modelList/tool/model.js, line 113
change language - sets or translates the name of this tool, if property i18nextTranslate is no function. If name is defined in config.json, the name is not translated else property nameTranslationKey is used.

transformCoords(geometry, projections){Array}

modules/tools/kmlImport/model.js, line 290
Transforms the coordinates taking the geometry into account.
Name Type Description
geometry String geoemtzry of a feature
projections * todo
Fires:

transformFeatures(){void}

modules/tools/kmlImport/model.js, line 259
Transform the coordinate system of features.

transformLine(coords, projections, context){*}

modules/tools/kmlImport/model.js, line 339
todo
Name Type Description
coords * todo
projections * todo
context * todo

transformPoint(point, projections){*}

modules/tools/kmlImport/model.js, line 355
todo
Name Type Description
point * todo
projections * todo

transformPolygon(coords, projections, context){*}

modules/tools/kmlImport/model.js, line 320
todo
Name Type Description
coords * todo
projections * todo
context * todo