class InputDataFormatting extends groovy.lang.Script
| Constructor and description |
|---|
InputDataFormatting() |
InputDataFormatting(groovy.lang.Binding context) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
static java.lang.String |
columnsMapper(java.lang.Object inputColumns, java.lang.Object columnsToMap)Method to find the difference between two list right - left |
|
java.util.Map |
formatBuildingLayer(JdbcDataSource datasource, java.lang.String building, java.lang.String zone, java.lang.String urban_areas, int h_lev_min, java.lang.String jsonFilename)This process is used to format the OSM buildings table into a table that matches the constraints of the geoClimate Input Model |
|
java.lang.String |
formatImperviousLayer(JdbcDataSource datasource, java.lang.String impervious, java.lang.String zone, java.lang.String jsonFilename)This process is used to transform the raw impervious table into a table that matches the constraints of the geoClimate Input Model |
|
java.lang.String |
formatRailsLayer(JdbcDataSource datasource, java.lang.String rail, java.lang.String zone, java.lang.String jsonFilename)This process is used to transform the raw rails table into a table that matches the constraints of the geoClimate Input Model |
|
java.lang.String |
formatRoadLayer(JdbcDataSource datasource, java.lang.String road, java.lang.String zone, java.lang.String jsonFilename)This process is used to transform the OSM roads table into a table that matches the constraints of the geoClimate Input Model |
|
java.lang.String |
formatSeaLandMask(JdbcDataSource datasource, java.lang.String coastline, java.lang.String zone, java.lang.String water)This process is used to build a sea-land mask layer from the coastline and zone table |
|
java.lang.String |
formatUrbanAreas(JdbcDataSource datasource, java.lang.String urban_areas, java.lang.String zone, java.lang.String jsonFilename)This process is used to transform the urban areas table into a table that matches the constraints of the geoClimate Input Model |
|
java.lang.String |
formatVegetationLayer(JdbcDataSource datasource, java.lang.String vegetation, java.lang.String zone, java.lang.String jsonFilename)This process is used to transform the raw vegetation table into a table that matches the constraints of the geoClimate Input Model |
|
java.lang.String |
formatWaterLayer(JdbcDataSource datasource, java.lang.String water, java.lang.String zone)This process is used to transform the raw hydro table into a table that matches the constraints of the geoClimate Input Model |
|
static float |
getHeightRoof(java.lang.Object height, java.lang.Object heightPattern)This function defines the value of the column height_roof according to the values of height and b_height |
|
static float |
getHeightWall(java.lang.Object height, java.lang.Object r_height)This function defines the value of the column height_wall according to the values of height and r_height |
|
static int |
getNbLevels(java.lang.Object b_lev, java.lang.Object r_lev)This function defines the value of the column nb_lev according to the values of b_lev and r_lev |
|
static java.lang.String |
getSidewalk(java.lang.String sidewalk)This function defines the value of the column sidewalk according to the values of sidewalk from OSM |
|
static int |
getSpeedInKmh(java.lang.Object speedPattern, java.lang.String maxspeedValue)Return a maxspeed value expressed in kmh |
|
static java.lang.String[] |
getTypeAndUse(java.lang.Object row, java.lang.Object columnNames, java.lang.Object myMap)This function defines the input values for both columns type and use to follow the constraints of the geoClimate Input Model |
|
static java.lang.String |
getTypeValue(java.lang.Object row, java.lang.Object columnNames, java.lang.Object myMap)This function defines the input value for a column of the geoClimate Input Model according to a given mapping between the expected value and the set of key/values tag in OSM |
|
static java.lang.Float |
getWidth(java.lang.String width)This function defines the value of the column width according to the value of width from OSM |
|
static int |
getZIndex(java.lang.String zindex)This function defines the value of the column zindex according to the value of zindex from OSM |
|
static void |
main(java.lang.String[] args) |
|
static java.util.Map |
parametersMapping(java.lang.Object file, java.lang.Object altResourceStream)Get a set of parameters stored in a json file |
|
java.lang.Object |
run() |
|
static java.lang.String |
singleQuote(java.lang.String value) |
| Methods inherited from class | Name |
|---|---|
class groovy.lang.Script |
groovy.lang.Script#println(java.lang.Object), groovy.lang.Script#println(), groovy.lang.Script#run(java.io.File, [Ljava.lang.String;), groovy.lang.Script#run(), groovy.lang.Script#getProperty(java.lang.String), groovy.lang.Script#printf(java.lang.String, java.lang.Object), groovy.lang.Script#printf(java.lang.String, [Ljava.lang.Object;), groovy.lang.Script#setProperty(java.lang.String, java.lang.Object), groovy.lang.Script#print(java.lang.Object), groovy.lang.Script#evaluate(java.lang.String), groovy.lang.Script#evaluate(java.io.File), groovy.lang.Script#getBinding(), groovy.lang.Script#setBinding(groovy.lang.Binding), groovy.lang.Script#invokeMethod(java.lang.String, java.lang.Object), groovy.lang.Script#getMetaClass(), groovy.lang.Script#setMetaClass(groovy.lang.MetaClass), groovy.lang.Script#wait(long, int), groovy.lang.Script#wait(), groovy.lang.Script#wait(long), groovy.lang.Script#equals(java.lang.Object), groovy.lang.Script#toString(), groovy.lang.Script#hashCode(), groovy.lang.Script#getClass(), groovy.lang.Script#notify(), groovy.lang.Script#notifyAll() |
Method to find the difference between two list right - left
inputColumns - left listcolumnsToMap - right listThis process is used to format the OSM buildings table into a table that matches the constraints of the geoClimate Input Model
datasource - A connexion to a DB containing the raw buildings tablebuilding - The name of the raw buildings table in the DBzone - an envelope to reduce the study areaurban_areas - used to improved the building typehLevMin - Minimum building level heightjsonFilename - Name of the json formatted file containing the filtering parametersThis process is used to transform the raw impervious table into a table that matches the constraints of the geoClimate Input Model
datasource - A connexion to a DB containing the raw impervious tableimpervious - The name of the raw impervious table in the DBzone - an envelope to reduce the study areaThis process is used to transform the raw rails table into a table that matches the constraints of the geoClimate Input Model
datasource - A connexion to a DB containing the raw rails tablerail - The name of the raw rails table in the DBzone - an envelope to reduce the study areajsonFilename - name of the json formatted file containing the filtering parametersThis process is used to transform the OSM roads table into a table that matches the constraints of the geoClimate Input Model
datasource - A connexion to a DB containing the raw roads tableroad - The name of the raw roads table in the DBzone - an envelope to reduce the study areajsonFilename - name of the json formatted file containing the filtering parametersThis process is used to build a sea-land mask layer from the coastline and zone table
datasource - A connexion to a DB containing the raw buildings tablecoastline - The name of the coastlines table in the DBzone - The name of the zone table to limit the areawater - The name of the input water table to improve sea extractionThis process is used to transform the urban areas table into a table that matches the constraints of the geoClimate Input Model
datasource - A connexion to a DB containing the raw urban areas tableurban_areas - The name of the urban areas tablezone - an envelope to reduce the study areaThis process is used to transform the raw vegetation table into a table that matches the constraints of the geoClimate Input Model
datasource - A connexion to a DB containing the raw vegetation tablevegetation - The name of the raw vegetation table in the DBzone - an envelope to reduce the study areajsonFilename - name of the json formatted file containing the filtering parametersThis process is used to transform the raw hydro table into a table that matches the constraints of the geoClimate Input Model
datasource - A connexion to a DB containing the raw hydro table *water - The name of the raw hydro table in the DBzone - an envelope to reduce the study areaThis function defines the value of the column height_roof according to the values of height and b_height
row - The row of the raw table to examineThis function defines the value of the column height_wall according to the values of height and r_height
height - value of the building heightr_height - value of the roof heightThis function defines the value of the column nb_lev according to the values of b_lev and r_lev
row - The row of the raw table to examineThis function defines the value of the column sidewalk according to the values of sidewalk from OSM
width - The original sidewalk valueReturn a maxspeed value expressed in kmh @return
maxspeedValue - from OSMThis function defines the input values for both columns type and use to follow the constraints of the geoClimate Input Model
row - The row of the raw table to examinecolumnNames - the names of the column in the raw tablemyMap - A map between the target values in the model and the associated key/value tags retrieved from OSMThis function defines the input value for a column of the geoClimate Input Model according to a given mapping between the expected value and the set of key/values tag in OSM
row - The row of the raw table to examinecolumnNames - the names of the column in the raw tablemyMap - A map between the target values in the model and the associated key/value tags retrieved from OSMThis function defines the value of the column width according to the value of width from OSM
width - The original width valueThis function defines the value of the column zindex according to the value of zindex from OSM
width - The original zindex valueGet a set of parameters stored in a json file @return