From 0603d634930c65f72e4d828dd5d31d6db6bb9c1a Mon Sep 17 00:00:00 2001 From: IlkaCu Date: Thu, 1 Feb 2018 13:55:20 +0100 Subject: [PATCH 001/104] Create make.bat --- documentation/doc/make.bat | 263 +++++++++++++++++++++++++++++++++++++ 1 file changed, 263 insertions(+) create mode 100644 documentation/doc/make.bat diff --git a/documentation/doc/make.bat b/documentation/doc/make.bat new file mode 100644 index 00000000..ea3430fb --- /dev/null +++ b/documentation/doc/make.bat @@ -0,0 +1,263 @@ +@ECHO OFF + +REM Command file for Sphinx documentation + +if "%SPHINXBUILD%" == "" ( + set SPHINXBUILD=sphinx-build +) +set BUILDDIR=_build +set ALLSPHINXOPTS=-d %BUILDDIR%/doctrees %SPHINXOPTS% . +set I18NSPHINXOPTS=%SPHINXOPTS% . +if NOT "%PAPER%" == "" ( + set ALLSPHINXOPTS=-D latex_paper_size=%PAPER% %ALLSPHINXOPTS% + set I18NSPHINXOPTS=-D latex_paper_size=%PAPER% %I18NSPHINXOPTS% +) + +if "%1" == "" goto help + +if "%1" == "help" ( + :help + echo.Please use `make ^` where ^ is one of + echo. html to make standalone HTML files + echo. dirhtml to make HTML files named index.html in directories + echo. singlehtml to make a single large HTML file + echo. pickle to make pickle files + echo. json to make JSON files + echo. htmlhelp to make HTML files and a HTML help project + echo. qthelp to make HTML files and a qthelp project + echo. devhelp to make HTML files and a Devhelp project + echo. epub to make an epub + echo. latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter + echo. text to make text files + echo. man to make manual pages + echo. texinfo to make Texinfo files + echo. gettext to make PO message catalogs + echo. changes to make an overview over all changed/added/deprecated items + echo. xml to make Docutils-native XML files + echo. pseudoxml to make pseudoxml-XML files for display purposes + echo. linkcheck to check all external links for integrity + echo. doctest to run all doctests embedded in the documentation if enabled + echo. coverage to run coverage check of the documentation if enabled + goto end +) + +if "%1" == "clean" ( + for /d %%i in (%BUILDDIR%\*) do rmdir /q /s %%i + del /q /s %BUILDDIR%\* + goto end +) + + +REM Check if sphinx-build is available and fallback to Python version if any +%SPHINXBUILD% 2> nul +if errorlevel 9009 goto sphinx_python +goto sphinx_ok + +:sphinx_python + +set SPHINXBUILD=python -m sphinx.__init__ +%SPHINXBUILD% 2> nul +if errorlevel 9009 ( + echo. + echo.The 'sphinx-build' command was not found. Make sure you have Sphinx + echo.installed, then set the SPHINXBUILD environment variable to point + echo.to the full path of the 'sphinx-build' executable. Alternatively you + echo.may add the Sphinx directory to PATH. + echo. + echo.If you don't have Sphinx installed, grab it from + echo.http://sphinx-doc.org/ + exit /b 1 +) + +:sphinx_ok + + +if "%1" == "html" ( + %SPHINXBUILD% -b html %ALLSPHINXOPTS% %BUILDDIR%/html + if errorlevel 1 exit /b 1 + echo. + echo.Build finished. The HTML pages are in %BUILDDIR%/html. + goto end +) + +if "%1" == "dirhtml" ( + %SPHINXBUILD% -b dirhtml %ALLSPHINXOPTS% %BUILDDIR%/dirhtml + if errorlevel 1 exit /b 1 + echo. + echo.Build finished. The HTML pages are in %BUILDDIR%/dirhtml. + goto end +) + +if "%1" == "singlehtml" ( + %SPHINXBUILD% -b singlehtml %ALLSPHINXOPTS% %BUILDDIR%/singlehtml + if errorlevel 1 exit /b 1 + echo. + echo.Build finished. The HTML pages are in %BUILDDIR%/singlehtml. + goto end +) + +if "%1" == "pickle" ( + %SPHINXBUILD% -b pickle %ALLSPHINXOPTS% %BUILDDIR%/pickle + if errorlevel 1 exit /b 1 + echo. + echo.Build finished; now you can process the pickle files. + goto end +) + +if "%1" == "json" ( + %SPHINXBUILD% -b json %ALLSPHINXOPTS% %BUILDDIR%/json + if errorlevel 1 exit /b 1 + echo. + echo.Build finished; now you can process the JSON files. + goto end +) + +if "%1" == "htmlhelp" ( + %SPHINXBUILD% -b htmlhelp %ALLSPHINXOPTS% %BUILDDIR%/htmlhelp + if errorlevel 1 exit /b 1 + echo. + echo.Build finished; now you can run HTML Help Workshop with the ^ +.hhp project file in %BUILDDIR%/htmlhelp. + goto end +) + +if "%1" == "qthelp" ( + %SPHINXBUILD% -b qthelp %ALLSPHINXOPTS% %BUILDDIR%/qthelp + if errorlevel 1 exit /b 1 + echo. + echo.Build finished; now you can run "qcollectiongenerator" with the ^ +.qhcp project file in %BUILDDIR%/qthelp, like this: + echo.^> qcollectiongenerator %BUILDDIR%\qthelp\ding0.qhcp + echo.To view the help file: + echo.^> assistant -collectionFile %BUILDDIR%\qthelp\ding0.ghc + goto end +) + +if "%1" == "devhelp" ( + %SPHINXBUILD% -b devhelp %ALLSPHINXOPTS% %BUILDDIR%/devhelp + if errorlevel 1 exit /b 1 + echo. + echo.Build finished. + goto end +) + +if "%1" == "epub" ( + %SPHINXBUILD% -b epub %ALLSPHINXOPTS% %BUILDDIR%/epub + if errorlevel 1 exit /b 1 + echo. + echo.Build finished. The epub file is in %BUILDDIR%/epub. + goto end +) + +if "%1" == "latex" ( + %SPHINXBUILD% -b latex %ALLSPHINXOPTS% %BUILDDIR%/latex + if errorlevel 1 exit /b 1 + echo. + echo.Build finished; the LaTeX files are in %BUILDDIR%/latex. + goto end +) + +if "%1" == "latexpdf" ( + %SPHINXBUILD% -b latex %ALLSPHINXOPTS% %BUILDDIR%/latex + cd %BUILDDIR%/latex + make all-pdf + cd %~dp0 + echo. + echo.Build finished; the PDF files are in %BUILDDIR%/latex. + goto end +) + +if "%1" == "latexpdfja" ( + %SPHINXBUILD% -b latex %ALLSPHINXOPTS% %BUILDDIR%/latex + cd %BUILDDIR%/latex + make all-pdf-ja + cd %~dp0 + echo. + echo.Build finished; the PDF files are in %BUILDDIR%/latex. + goto end +) + +if "%1" == "text" ( + %SPHINXBUILD% -b text %ALLSPHINXOPTS% %BUILDDIR%/text + if errorlevel 1 exit /b 1 + echo. + echo.Build finished. The text files are in %BUILDDIR%/text. + goto end +) + +if "%1" == "man" ( + %SPHINXBUILD% -b man %ALLSPHINXOPTS% %BUILDDIR%/man + if errorlevel 1 exit /b 1 + echo. + echo.Build finished. The manual pages are in %BUILDDIR%/man. + goto end +) + +if "%1" == "texinfo" ( + %SPHINXBUILD% -b texinfo %ALLSPHINXOPTS% %BUILDDIR%/texinfo + if errorlevel 1 exit /b 1 + echo. + echo.Build finished. The Texinfo files are in %BUILDDIR%/texinfo. + goto end +) + +if "%1" == "gettext" ( + %SPHINXBUILD% -b gettext %I18NSPHINXOPTS% %BUILDDIR%/locale + if errorlevel 1 exit /b 1 + echo. + echo.Build finished. The message catalogs are in %BUILDDIR%/locale. + goto end +) + +if "%1" == "changes" ( + %SPHINXBUILD% -b changes %ALLSPHINXOPTS% %BUILDDIR%/changes + if errorlevel 1 exit /b 1 + echo. + echo.The overview file is in %BUILDDIR%/changes. + goto end +) + +if "%1" == "linkcheck" ( + %SPHINXBUILD% -b linkcheck %ALLSPHINXOPTS% %BUILDDIR%/linkcheck + if errorlevel 1 exit /b 1 + echo. + echo.Link check complete; look for any errors in the above output ^ +or in %BUILDDIR%/linkcheck/output.txt. + goto end +) + +if "%1" == "doctest" ( + %SPHINXBUILD% -b doctest %ALLSPHINXOPTS% %BUILDDIR%/doctest + if errorlevel 1 exit /b 1 + echo. + echo.Testing of doctests in the sources finished, look at the ^ +results in %BUILDDIR%/doctest/output.txt. + goto end +) + +if "%1" == "coverage" ( + %SPHINXBUILD% -b coverage %ALLSPHINXOPTS% %BUILDDIR%/coverage + if errorlevel 1 exit /b 1 + echo. + echo.Testing of coverage in the sources finished, look at the ^ +results in %BUILDDIR%/coverage/python.txt. + goto end +) + +if "%1" == "xml" ( + %SPHINXBUILD% -b xml %ALLSPHINXOPTS% %BUILDDIR%/xml + if errorlevel 1 exit /b 1 + echo. + echo.Build finished. The XML files are in %BUILDDIR%/xml. + goto end +) + +if "%1" == "pseudoxml" ( + %SPHINXBUILD% -b pseudoxml %ALLSPHINXOPTS% %BUILDDIR%/pseudoxml + if errorlevel 1 exit /b 1 + echo. + echo.Build finished. The pseudo-XML files are in %BUILDDIR%/pseudoxml. + goto end +) + +:end From 259956a40461f4013530bf10fac981144ab02726 Mon Sep 17 00:00:00 2001 From: IlkaCu Date: Thu, 1 Feb 2018 13:56:18 +0100 Subject: [PATCH 002/104] Create Makefile --- documentation/doc/Makefile | 192 +++++++++++++++++++++++++++++++++++++ 1 file changed, 192 insertions(+) create mode 100644 documentation/doc/Makefile diff --git a/documentation/doc/Makefile b/documentation/doc/Makefile new file mode 100644 index 00000000..9117f211 --- /dev/null +++ b/documentation/doc/Makefile @@ -0,0 +1,192 @@ +# Makefile for Sphinx documentation +# + +# You can set these variables from the command line. +SPHINXOPTS = +SPHINXBUILD = sphinx-build +PAPER = +BUILDDIR = _build + +# User-friendly check for sphinx-build +ifeq ($(shell which $(SPHINXBUILD) >/dev/null 2>&1; echo $$?), 1) +$(error The '$(SPHINXBUILD)' command was not found. Make sure you have Sphinx installed, then set the SPHINXBUILD environment variable to point to the full path of the '$(SPHINXBUILD)' executable. Alternatively you can add the directory with the executable to your PATH. If you don't have Sphinx installed, grab it from http://sphinx-doc.org/) +endif + +# Internal variables. +PAPEROPT_a4 = -D latex_paper_size=a4 +PAPEROPT_letter = -D latex_paper_size=letter +ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) . +# the i18n builder cannot share the environment and doctrees with the others +I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) . + +.PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest coverage gettext + +help: + @echo "Please use \`make ' where is one of" + @echo " html to make standalone HTML files" + @echo " dirhtml to make HTML files named index.html in directories" + @echo " singlehtml to make a single large HTML file" + @echo " pickle to make pickle files" + @echo " json to make JSON files" + @echo " htmlhelp to make HTML files and a HTML help project" + @echo " qthelp to make HTML files and a qthelp project" + @echo " applehelp to make an Apple Help Book" + @echo " devhelp to make HTML files and a Devhelp project" + @echo " epub to make an epub" + @echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter" + @echo " latexpdf to make LaTeX files and run them through pdflatex" + @echo " latexpdfja to make LaTeX files and run them through platex/dvipdfmx" + @echo " text to make text files" + @echo " man to make manual pages" + @echo " texinfo to make Texinfo files" + @echo " info to make Texinfo files and run them through makeinfo" + @echo " gettext to make PO message catalogs" + @echo " changes to make an overview of all changed/added/deprecated items" + @echo " xml to make Docutils-native XML files" + @echo " pseudoxml to make pseudoxml-XML files for display purposes" + @echo " linkcheck to check all external links for integrity" + @echo " doctest to run all doctests embedded in the documentation (if enabled)" + @echo " coverage to run coverage check of the documentation (if enabled)" + +clean: + rm -rf $(BUILDDIR)/* + +html: + $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html + @echo + @echo "Build finished. The HTML pages are in $(BUILDDIR)/html." + +dirhtml: + $(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml + @echo + @echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml." + +singlehtml: + $(SPHINXBUILD) -b singlehtml $(ALLSPHINXOPTS) $(BUILDDIR)/singlehtml + @echo + @echo "Build finished. The HTML page is in $(BUILDDIR)/singlehtml." + +pickle: + $(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) $(BUILDDIR)/pickle + @echo + @echo "Build finished; now you can process the pickle files." + +json: + $(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $(BUILDDIR)/json + @echo + @echo "Build finished; now you can process the JSON files." + +htmlhelp: + $(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) $(BUILDDIR)/htmlhelp + @echo + @echo "Build finished; now you can run HTML Help Workshop with the" \ + ".hhp project file in $(BUILDDIR)/htmlhelp." + +qthelp: + $(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) $(BUILDDIR)/qthelp + @echo + @echo "Build finished; now you can run "qcollectiongenerator" with the" \ + ".qhcp project file in $(BUILDDIR)/qthelp, like this:" + @echo "# qcollectiongenerator $(BUILDDIR)/qthelp/ding0.qhcp" + @echo "To view the help file:" + @echo "# assistant -collectionFile $(BUILDDIR)/qthelp/ding0.qhc" + +applehelp: + $(SPHINXBUILD) -b applehelp $(ALLSPHINXOPTS) $(BUILDDIR)/applehelp + @echo + @echo "Build finished. The help book is in $(BUILDDIR)/applehelp." + @echo "N.B. You won't be able to view it unless you put it in" \ + "~/Library/Documentation/Help or install it in your application" \ + "bundle." + +devhelp: + $(SPHINXBUILD) -b devhelp $(ALLSPHINXOPTS) $(BUILDDIR)/devhelp + @echo + @echo "Build finished." + @echo "To view the help file:" + @echo "# mkdir -p $$HOME/.local/share/devhelp/ding0" + @echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/ding0" + @echo "# devhelp" + +epub: + $(SPHINXBUILD) -b epub $(ALLSPHINXOPTS) $(BUILDDIR)/epub + @echo + @echo "Build finished. The epub file is in $(BUILDDIR)/epub." + +latex: + $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex + @echo + @echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex." + @echo "Run \`make' in that directory to run these through (pdf)latex" \ + "(use \`make latexpdf' here to do that automatically)." + +latexpdf: + $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex + @echo "Running LaTeX files through pdflatex..." + $(MAKE) -C $(BUILDDIR)/latex all-pdf + @echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex." + +latexpdfja: + $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex + @echo "Running LaTeX files through platex and dvipdfmx..." + $(MAKE) -C $(BUILDDIR)/latex all-pdf-ja + @echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex." + +text: + $(SPHINXBUILD) -b text $(ALLSPHINXOPTS) $(BUILDDIR)/text + @echo + @echo "Build finished. The text files are in $(BUILDDIR)/text." + +man: + $(SPHINXBUILD) -b man $(ALLSPHINXOPTS) $(BUILDDIR)/man + @echo + @echo "Build finished. The manual pages are in $(BUILDDIR)/man." + +texinfo: + $(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo + @echo + @echo "Build finished. The Texinfo files are in $(BUILDDIR)/texinfo." + @echo "Run \`make' in that directory to run these through makeinfo" \ + "(use \`make info' here to do that automatically)." + +info: + $(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo + @echo "Running Texinfo files through makeinfo..." + make -C $(BUILDDIR)/texinfo info + @echo "makeinfo finished; the Info files are in $(BUILDDIR)/texinfo." + +gettext: + $(SPHINXBUILD) -b gettext $(I18NSPHINXOPTS) $(BUILDDIR)/locale + @echo + @echo "Build finished. The message catalogs are in $(BUILDDIR)/locale." + +changes: + $(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $(BUILDDIR)/changes + @echo + @echo "The overview file is in $(BUILDDIR)/changes." + +linkcheck: + $(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck + @echo + @echo "Link check complete; look for any errors in the above output " \ + "or in $(BUILDDIR)/linkcheck/output.txt." + +doctest: + $(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest + @echo "Testing of doctests in the sources finished, look at the " \ + "results in $(BUILDDIR)/doctest/output.txt." + +coverage: + $(SPHINXBUILD) -b coverage $(ALLSPHINXOPTS) $(BUILDDIR)/coverage + @echo "Testing of coverage in the sources finished, look at the " \ + "results in $(BUILDDIR)/coverage/python.txt." + +xml: + $(SPHINXBUILD) -b xml $(ALLSPHINXOPTS) $(BUILDDIR)/xml + @echo + @echo "Build finished. The XML files are in $(BUILDDIR)/xml." + +pseudoxml: + $(SPHINXBUILD) -b pseudoxml $(ALLSPHINXOPTS) $(BUILDDIR)/pseudoxml + @echo +@echo "Build finished. The pseudo-XML files are in $(BUILDDIR)/pseudoxml." From f12c93d0d0f8c08f36cf452ecd9a0bd179fe3a9c Mon Sep 17 00:00:00 2001 From: wolfbunke Date: Wed, 7 Feb 2018 11:55:11 +0100 Subject: [PATCH 003/104] docu test wip --- .../sql_snippets/ego_dp_conv_by_scenario.sql | 2 + .../ego_dp_res_rea_by_scenario.sql | 619 +++++++++--------- .../ego_nep_2015_scenario_capacities.sql | 4 +- 3 files changed, 317 insertions(+), 308 deletions(-) diff --git a/preprocessing/sql_snippets/ego_dp_conv_by_scenario.sql b/preprocessing/sql_snippets/ego_dp_conv_by_scenario.sql index ee6b07a0..d4ae5c7d 100644 --- a/preprocessing/sql_snippets/ego_dp_conv_by_scenario.sql +++ b/preprocessing/sql_snippets/ego_dp_conv_by_scenario.sql @@ -1,4 +1,5 @@ /* +Start SQL Script which prepare and insert a conventional power plant data list by scenario for the project open_eGo and the tools eTraGo and eDisGo. @@ -26,6 +27,7 @@ Documentation: decommissioning: decommissioning of status quo units by a scenario assumption constantly: existing plant for status quo or other scenarios +End */ diff --git a/preprocessing/sql_snippets/ego_dp_res_rea_by_scenario.sql b/preprocessing/sql_snippets/ego_dp_res_rea_by_scenario.sql index 167de042..96207366 100644 --- a/preprocessing/sql_snippets/ego_dp_res_rea_by_scenario.sql +++ b/preprocessing/sql_snippets/ego_dp_res_rea_by_scenario.sql @@ -1,39 +1,44 @@ -/* -SQL Script which prepare and insert a renewable power plant data list by scenario -for the project open_eGo and the tools eTraGo and eDisGo. - -__copyright__ = "Europa-Universität Flensburg - ZNES" -__license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" -__url__ = "https://github.com/openego/data_processing/blob/master/LICENSE" -__author__ = "wolfbunke" - -Notes: ------- - This script is divided into two parts: - - Part II: - Development of new renewable power plants by NEP 2035 scenario data - Part III: - Development of new renewable power plants by ego 100% scenario data - -Documentation: --------------- - - flags: - repowering : old unit get an update of this electrical_capacity (plus or minus) - commissioning: New unit by a scenario assumption - decommissioning: decommissioning of status quo units by a scenario assumption - constantly: existing plant of status quo or other scenarios - - Scenario Names: - 'Status Quo' - 'NEP 2035' - 'eGo 100' +/* +SQL Script that prepare and insert single renewable power plant data by a given +scenario in order to create a high resulution allocation renewable energy expansion. + +For the project open_eGo and the tools eTraGo, eDisGo and eGo the scenarios are +named 'Status Quo' (2015), 'NEP 2035', 'eGo 100'. Learn more about the scenario here [link] + +This script is divided into two parts: + +Part I: + Development of new renewable power plants by NEP 2035 scenario data +Part II: + Development of new renewable power plants by ego 100% scenario data + +Methodology +----------- +Both parts of the script work more or less with the same Methodology of an expansion +and allocation of renewable energy plants. + +Renewable allocation +-------------------- + +Documentation +------------- +flags: +repowering : old unit get an update of this electrical_capacity (plus or minus) +commissioning: New unit by a scenario assumption +decommissioning: decommissioning of status quo units by a scenario assumption +constantly: existing plant of status quo or other scenarios + + +__copyright__ = "Europa-Universität Flensburg, Centre for Sustainable Energy Systems" +__license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" +__url__ = "https://github.com/openego/data_processing/blob/master/LICENSE" +__author__ = "wolfbunke" */ + -------------------------------------------------------------------------------- -- Part II --- Develop renewable allocation by generation type, voltage level +-- Develop renewable allocation by generation type, voltage level -- and municipality. Scenarios: NEP 2035 -------------------------------------------------------------------------------- --- @@ -42,9 +47,9 @@ Documentation: -- DELETE FROM model_draft.ego_dp_supply_res_powerplant WHERE scenario in('NEP 2035','eGo 100'); -- ego scenario log (version,io,schema_name,table_name,script_name,comment) -SELECT ego_scenario_log('v0.3.0','input','model_draft','ego_small_chp_plant_germany','ego_db_res_rea_by_scenario.sql',' '); +SELECT ego_scenario_log('v0.3.0','input','model_draft','ego_small_chp_plant_germany','ego_db_res_rea_by_scenario.sql',' '); -Insert into model_draft.ego_dp_supply_res_powerplant +Insert into model_draft.ego_dp_supply_res_powerplant SELECT 'v0.3.0'::text as preversion, b.max +row_number() over (ORDER BY id) as id, @@ -71,7 +76,7 @@ Insert into model_draft.ego_dp_supply_res_powerplant Null as power_plant_id, 'chp_small' as source, comment, - ST_Transform(geom,3035) as geom, + ST_Transform(geom,3035) as geom, Null as subst_id, Null as otg_id, Null as un_id, @@ -84,8 +89,8 @@ Insert into model_draft.ego_dp_supply_res_powerplant Null as rea_geom_new, 'NEP 2035'::text as scenario, 'commissioning'::text as flag, - NULL as nuts - FROM + NULL as nuts + FROM model_draft.ego_small_chp_plant_germany, ( SELECT max(id) as max @@ -97,12 +102,12 @@ Insert into model_draft.ego_dp_supply_res_powerplant -- set nuts UPDATE model_draft.ego_dp_supply_res_powerplant as upt set nuts = regions.nuts -from +from boundaries.bkg_vg250_2_lan_nuts_view as regions WHERE ST_Intersects(regions.geom, upt.geom) AND upt.nuts is NULL; ---- Use Buffer 1 km for units at the German Border +--- Use Buffer 1 km for units at the German Border UPDATE model_draft.ego_dp_supply_res_powerplant as upt set nuts = regions.nuts::varchar FROM @@ -112,7 +117,7 @@ AND upt.nuts IS NULL AND generation_subtype not in ('wind_offshore'); -- ego scenario log (version,io,schema_name,table_name,script_name,comment) -SELECT ego_scenario_log('v0.3.0','temp','model_draft','ego_dp_supply_res_powerplant','ego_db_res_rea_by_scenario.sql',' '); +SELECT ego_scenario_log('v0.3.0','temp','model_draft','ego_dp_supply_res_powerplant','ego_db_res_rea_by_scenario.sql',' '); --- -- Biomass power plants @@ -159,7 +164,7 @@ CREATE TABLE model_draft.ego_supply_res_biomass_2035_temp AS NULL::text as rea_geom_new, 'NEP 2035'::text as scenario, 'repowering'::text as flag, - nuts + nuts FROM model_draft.ego_dp_supply_res_powerplant WHERE @@ -184,9 +189,9 @@ set comment = upt.comment || ', Method ProxToNow Biomass', scenario = 'NEP 2035' , flag = 'repowering', preversion ='v0.3.0'::text, - electrical_capacity = CASE WHEN scn.capacity = 0 THEN 0 - ELSE (upt.electrical_capacity/ cap_sum)*scn.capacity*1000 - END + electrical_capacity = CASE WHEN scn.capacity = 0 THEN 0 + ELSE (upt.electrical_capacity/ cap_sum)*scn.capacity*1000 + END FROM model_draft.ego_supply_scenario_capacities as scn, (SELECT nuts, sum(electrical_capacity) as cap_sum @@ -194,32 +199,32 @@ FROM WHERE generation_type = 'biomass' Group by nuts ) count -WHERE scn.nuts = count.nuts -AND scn.nuts = upt.nuts +WHERE scn.nuts = count.nuts +AND scn.nuts = upt.nuts AND upt.nuts = count.nuts -AND scn.generation_type = 'biomass' +AND scn.generation_type = 'biomass' AND scn.scenario_name = 'NEP 2035' ; -- ego scenario log (version,io,schema_name,table_name,script_name,comment) --- SELECT ego_scenario_log('v0.3.0','input','model_draft','ego_dp_supply_res_powerplant','ego_db_res_rea_by_scenario.sql',' '); +-- SELECT ego_scenario_log('v0.3.0','input','model_draft','ego_dp_supply_res_powerplant','ego_db_res_rea_by_scenario.sql',' '); --- Insert ego_dp_supply_res_powerplant +-- Insert ego_dp_supply_res_powerplant Insert into model_draft.ego_dp_supply_res_powerplant SELECT * FROM model_draft.ego_supply_res_biomass_2035_temp WHERE scenario = 'NEP 2035'; - ---- + +--- -- Geothermal Method -- No changes set status quo --- ---- +--- -- Hydro / run_of_river --- Insert large Hydro reservoir and run_of_river units from status Quo +-- Insert large Hydro reservoir and run_of_river units from status Quo -- because of missing entries in NEP KW list -- No changes of voltage level or additional units --- @@ -232,7 +237,7 @@ set generation_type = 'hydro', */ -- ego scenario log (version,io,schema_name,table_name,script_name,comment) --- SELECT ego_scenario_log('v0.3.0','input','model_draft','ego_dp_supply_res_powerplant','ego_db_res_rea_by_scenario.sql',' '); +-- SELECT ego_scenario_log('v0.3.0','input','model_draft','ego_dp_supply_res_powerplant','ego_db_res_rea_by_scenario.sql',' '); -- NEP 2035 Hydro DROP TABLE IF EXISTS model_draft.ego_supply_res_hydro_2035_temp CASCADE; @@ -276,12 +281,12 @@ CREATE TABLE model_draft.ego_supply_res_hydro_2035_temp AS NULL::text as rea_geom_new, 'NEP 2035'::text as scenario, 'repowering'::text as flag, - nuts + nuts FROM model_draft.ego_dp_supply_res_powerplant WHERE generation_type = 'run_of_river' - AND scenario = 'Status Quo'; + AND scenario = 'Status Quo'; -- create index GIST (geom) CREATE INDEX ego_supply_res_hydro_2035_temp_geom_idx @@ -290,28 +295,28 @@ CREATE INDEX ego_supply_res_hydro_2035_temp_geom_idx -- grant (oeuser) ALTER TABLE model_draft.ego_supply_res_hydro_2035_temp OWNER TO oeuser; -INSERT INTO model_draft.ego_supply_res_hydro_2035_temp (preversion,id,start_up_date,electrical_capacity, generation_type, +INSERT INTO model_draft.ego_supply_res_hydro_2035_temp (preversion,id,start_up_date,electrical_capacity, generation_type, generation_subtype, lon, lat, voltage_level, network_node, source, comment, geom, voltage_level_var, subst_id, otg_id,un_id,scenario,flag) SELECT 'v0.3.0'::text as preversion, - b.max +row_number() over (ORDER BY id) as id, - '2034-12-31 00:00:00' as start_up_date, + b.max +row_number() over (ORDER BY id) as id, + '2034-12-31 00:00:00' as start_up_date, a.capacity *1000 as electrical_capacity, -- MW -> kW - a.fuel as generation_type, - 'hydro' as generation_subtype, - a.lon, - a.lat, - a.voltage_level, - a.network_node, - 'OPSD powerplant list' as source, - 'add Hydro plants from conventional list' as comment, - ST_Transform(a.geom,3035) as geom, - a.voltage AS voltage_level_var, - a.subst_id, - a.otg_id, + a.fuel as generation_type, + 'hydro' as generation_subtype, + a.lon, + a.lat, + a.voltage_level, + a.network_node, + 'OPSD powerplant list' as source, + 'add Hydro plants from conventional list' as comment, + ST_Transform(a.geom,3035) as geom, + a.voltage AS voltage_level_var, + a.subst_id, + a.otg_id, a.un_id, 'NEP 2035'::text as scenario, - 'repowering'::text as flag + 'repowering'::text as flag FROM model_draft.ego_dp_supply_conv_powerplant a, ( @@ -325,7 +330,7 @@ AND scenario ='Status Quo'; -- set nuts UPDATE model_draft.ego_supply_res_hydro_2035_temp as upt set nuts = regions.nuts -from +from boundaries.bkg_vg250_2_lan_nuts_view as regions WHERE ST_Intersects(regions.geom, upt.geom) and UPT.NUTS IS NULL; @@ -333,14 +338,14 @@ and UPT.NUTS IS NULL; --- Fill empty nuts values by buffer UPDATE model_draft.ego_supply_res_hydro_2035_temp as upt set nuts = regions.nuts -from +from boundaries.bkg_vg250_2_lan_nuts_view as regions WHERE ST_Intersects(St_Buffer(upt.geom,100), regions.geom) AND upt.nuts IS NULL AND generation_type in ('reservoir','hydro','run_of_river'); -- -UPDATE model_draft.ego_supply_res_hydro_2035_temp +UPDATE model_draft.ego_supply_res_hydro_2035_temp set nuts = 'AT' WHERE nuts IS NULL AND generation_type in ('reservoir','hydro','run_of_river'); -- @@ -349,23 +354,23 @@ set comment = upt.comment || ', Method ProxToNow Hydro', source = 'NEP 2015 B2035', flag = 'repowering', electrical_capacity = CASE WHEN scn.capacity = 0 THEN upt.electrical_capacity - ELSE (upt.electrical_capacity/ cap_sum)*scn.capacity*1000 - END + ELSE (upt.electrical_capacity/ cap_sum)*scn.capacity*1000 + END FROM model_draft.ego_supply_scenario_capacities as scn, (SELECT nuts, sum(electrical_capacity) as cap_sum FROM model_draft.ego_supply_res_hydro_2035_temp WHERE generation_type in ('reservoir','hydro','run_of_river') - AND scenario = 'NEP 2035' + AND scenario = 'NEP 2035' Group by nuts ) count -WHERE scn.nuts = count.nuts -AND scn.nuts = upt.nuts +WHERE scn.nuts = count.nuts +AND scn.nuts = upt.nuts AND upt.nuts = count.nuts AND scn.generation_type in ('reservoir','hydro','run_of_river') AND upt.generation_type in ('reservoir','hydro','run_of_river'); --- Insert ego_dp_supply_res_powerplant +-- Insert ego_dp_supply_res_powerplant Insert into model_draft.ego_dp_supply_res_powerplant SELECT * @@ -373,11 +378,11 @@ Insert into model_draft.ego_dp_supply_res_powerplant model_draft.ego_supply_res_hydro_2035_temp WHERE scenario = 'NEP 2035'; ---- +--- -- Photovoltaic Method -- /* -Step 0 Get Nuts id per Unit +Step 0 Get Nuts id per Unit Step 1 capacity per municipality -> Pro2Now Status Quo Step 2 Structure of PV ( voltage level, size, Number) @@ -388,13 +393,13 @@ Step 4 add volatage level, etc. -- Nep 2035 Photovoltaic -- Step 0 DROP TABLE IF EXISTS model_draft.ego_supply_res_pv_to_region_temp CASCADE; -CREATE TABLE model_draft.ego_supply_res_pv_to_region_temp +CREATE TABLE model_draft.ego_supply_res_pv_to_region_temp ( re_id bigint NOT NULL, -- id from renewable_power_plants - subst_id bigint, - otg_id bigint, - un_id bigint, - nuts character varying(5), + subst_id bigint, + otg_id bigint, + un_id bigint, + nuts character varying(5), rs character varying(12), -- German Regionalschlüssel id_vg250 bigint, -- ID of political_boundary.bkg_vg250_6_gem_rs_mview table CONSTRAINT ego_supply_res_pv_to_region_temp_pkey PRIMARY KEY (re_id) @@ -404,7 +409,7 @@ CREATE TABLE model_draft.ego_supply_res_pv_to_region_temp ALTER TABLE model_draft.ego_supply_res_pv_to_region_temp OWNER TO oeuser; -- ego scenario log (version,io,schema_name,table_name,script_name,comment) -SELECT ego_scenario_log('v0.3.0','temp','model_draft','ego_supply_res_pv_to_region_temp','ego_db_res_rea_by_scenario.sql',' '); +SELECT ego_scenario_log('v0.3.0','temp','model_draft','ego_supply_res_pv_to_region_temp','ego_db_res_rea_by_scenario.sql',' '); INSERT INTO model_draft.ego_supply_res_pv_to_region_temp (re_id,subst_id,otg_id,un_id) SELECT @@ -426,7 +431,7 @@ FROM ( D.id as re_id, C.id, C.rs, - C.nuts + C.nuts FROM boundaries.bkg_vg250_6_gem_rs_mview C, model_draft.ego_dp_supply_res_powerplant D WHERE ST_Intersects(C.geom, D.geom) @@ -442,7 +447,7 @@ FROM ( D.id as re_id, C.id, C.rs, - C.nuts + C.nuts FROM boundaries.bkg_vg250_6_gem_rs_mview C, model_draft.ego_dp_supply_res_powerplant D WHERE ST_Intersects(C.geom, St_Buffer(D.geom, 1000)) @@ -460,16 +465,16 @@ DROP SEQUENCE IF EXISTS model_draft.ego_supply_res_pv_2035_germany_mun_id_seq; CREATE SEQUENCE model_draft.ego_supply_res_pv_2035_germany_mun_id_seq START 1; DROP TABLE IF EXISTS model_draft.ego_supply_res_pv_2035_germany_mun_temp CASCADE; -CREATE TABLE model_draft.ego_supply_res_pv_2035_germany_mun_temp +CREATE TABLE model_draft.ego_supply_res_pv_2035_germany_mun_temp ( - id bigint NOT NULL DEFAULT nextval('model_draft.ego_supply_pv_dev_2035_germany_mun_id_seq'::regclass),-- own id PK - pv_units integer, -- number of PV units per mun and voltage level - pv_cap_2014 integer, -- sum per region of 2014 in kW - pv_add_cap_2035 integer, -- sum per region of additional Capacity in 2035 kW - voltage_level smallint, -- voltage_level from 1-7 + id bigint NOT NULL DEFAULT nextval('model_draft.ego_supply_pv_dev_2035_germany_mun_id_seq'::regclass),-- own id PK + pv_units integer, -- number of PV units per mun and voltage level + pv_cap_2014 integer, -- sum per region of 2014 in kW + pv_add_cap_2035 integer, -- sum per region of additional Capacity in 2035 kW + voltage_level smallint, -- voltage_level from 1-7 rs character varying(12), -- German Regionalschlüssel pv_avg_cap integer, -- average capacity per region and voltage level - pv_new_units integer, -- New number per region per voltage level + pv_new_units integer, -- New number per region per voltage level CONSTRAINT ego_supply_res_pv_2035_germany_mun_temp_pkey PRIMARY KEY (id) ); @@ -477,7 +482,7 @@ CREATE TABLE model_draft.ego_supply_res_pv_2035_germany_mun_temp ALTER TABLE model_draft.ego_supply_res_pv_2035_germany_mun_temp OWNER TO oeuser; -- ego scenario log (version,io,schema_name,table_name,script_name,comment) -SELECT ego_scenario_log('v0.3.0','temp','model_draft','ego_supply_res_pv_2035_germany_mun_temp','ego_db_res_rea_by_scenario.sql',' '); +SELECT ego_scenario_log('v0.3.0','temp','model_draft','ego_supply_res_pv_2035_germany_mun_temp','ego_db_res_rea_by_scenario.sql',' '); Insert into model_draft.ego_supply_res_pv_2035_germany_mun_temp (pv_units,pv_cap_2014,voltage_level,rs,pv_avg_cap) @@ -488,7 +493,7 @@ SELECT B.rs, avg(A.electrical_capacity) as pv_avg_cap FROM - model_draft.ego_dp_supply_res_powerplant A, + model_draft.ego_dp_supply_res_powerplant A, boundaries.bkg_vg250_6_gem_rs_mview B WHERE ST_Intersects(A.geom ,B.geom) @@ -500,8 +505,8 @@ Group by A.voltage_level, B.id, B.rs; -- Step 2 - Photovoltaic Prox2Now per municipality and voltage level UPDATE model_draft.ego_supply_res_pv_2035_germany_mun_temp AA -set pv_add_cap_2035 = ( (AA.pv_cap_2014::numeric / pv_sq_2014.fs_cap_2014::numeric)*pv_scn_2035.fs_cap_2035 - -AA.pv_cap_2014)::integer +set pv_add_cap_2035 = ( (AA.pv_cap_2014::numeric / pv_sq_2014.fs_cap_2014::numeric)*pv_scn_2035.fs_cap_2035 + -AA.pv_cap_2014)::integer FROM ( SELECT @@ -512,8 +517,8 @@ SELECT boundaries.bkg_vg250_6_gem_rs_mview A, model_draft.ego_supply_scenario_capacities scn WHERE scn.nuts = substring(A.nuts from 1 for 3) -AND scn.generation_type = 'solar' -AND scn.scenario_name = 'NEP 2035' +AND scn.generation_type = 'solar' +AND scn.scenario_name = 'NEP 2035' Group by substring(A.nuts from 1 for 3),rs,scn.capacity,scn.nuts Order by rs ) as pv_scn_2035, @@ -523,16 +528,16 @@ SELECT sum(A.pv_cap_2014) as fs_cap_2014 -- in kW FROM model_draft.ego_supply_res_pv_2035_germany_mun_temp A -Group by substring(A.rs from 1 for 2) +Group by substring(A.rs from 1 for 2) Order by rs -) as pv_sq_2014 +) as pv_sq_2014 Where pv_scn_2035.rs = pv_sq_2014.rs AND substring(AA.rs from 1 for 2) = pv_sq_2014.rs AND substring(AA.rs from 1 for 2) = pv_scn_2035.rs; -- Count new additional Units -> new_units UPDATE model_draft.ego_supply_res_pv_2035_germany_mun_temp AA -set pv_new_units = round(pv_add_cap_2035/pv_avg_cap,0)::int; +set pv_new_units = round(pv_add_cap_2035/pv_avg_cap,0)::int; -- Control Photovoltaic development per federal state SELECT @@ -553,7 +558,7 @@ FROM model_draft.ego_supply_scenario_capacities as scn WHERE scn.nuts = substring(AA.nuts from 1 for 3) AND scn.generation_type = 'solar' -AND scn.scenario_name = 'NEP 2035' +AND scn.scenario_name = 'NEP 2035' group by scn.nuts, substring(AA.rs from 1 for 2), substring(AA.nuts from 1 for 3), scn.capacity,scn.generation_type ) as scn, @@ -561,16 +566,16 @@ group by scn.nuts, substring(AA.rs from 1 for 2), substring(AA.nuts from 1 for 3 WHERE scn.rs = substring(A.rs from 1 for 2) Group by substring(A.rs from 1 for 2),scn.capacity_2035; --- Take status quo and add new Photovoltaic plants --- Insert new units by pv_new_units +-- Take status quo and add new Photovoltaic plants +-- Insert new units by pv_new_units -- geom = centroid of municipality geom , see http://postgis.net/docs/ST_Centroid.html -- generation_subtype defined as solar -- ego scenario log (version,io,schema_name,table_name,script_name,comment) -SELECT ego_scenario_log('v0.3.0','output','model_draft','ego_supply_res_pv_2035_germany_mun_temp','ego_db_res_rea_by_scenario.sql',' '); +SELECT ego_scenario_log('v0.3.0','output','model_draft','ego_supply_res_pv_2035_germany_mun_temp','ego_db_res_rea_by_scenario.sql',' '); --- Add new PV units --- Step 3-4 +-- Add new PV units +-- Step 3-4 Insert into model_draft.ego_dp_supply_res_powerplant (preversion,id, start_up_date,electrical_capacity, generation_type, generation_subtype, voltage_level, source, comment,geom, scenario,flag) SELECT @@ -582,7 +587,7 @@ generation_type, generation_subtype, voltage_level, source, comment,geom, scenar 'solar'::text as generation_subtype, sub.voltage_level, 'NEP 2015 for 2035'::text as source, - ', Method ProxToNow solar'::text as comment, + ', Method ProxToNow solar'::text as comment, sub.geom, 'NEP 2035'::text as scenario, 'commissioning'::text as flag @@ -591,12 +596,12 @@ generation_type, generation_subtype, voltage_level, source, comment,geom, scenar A.rs, A.voltage_level, Case when A.pv_new_units = 0 Then A.pv_add_cap_2035 - else unnest(array_fill((A.pv_add_cap_2035/A.pv_new_units), Array[A.pv_new_units])) END as electrical_capacity , -- in kW - ST_Centroid(B.geom) as geom - FROM + else unnest(array_fill((A.pv_add_cap_2035/A.pv_new_units), Array[A.pv_new_units])) END as electrical_capacity , -- in kW + ST_Centroid(B.geom) as geom + FROM model_draft.ego_supply_res_pv_2035_germany_mun_temp A, boundaries.bkg_vg250_6_gem_rs_mview B - Where A.rs = B.rs + Where A.rs = B.rs ) as sub , (Select max(id) as max_rown @@ -607,7 +612,7 @@ generation_type, generation_subtype, voltage_level, source, comment,geom, scenar -- set nuts UPDATE model_draft.ego_dp_supply_res_powerplant as upt set nuts = regions.nuts -from +from boundaries.bkg_vg250_2_lan_nuts_view as regions WHERE ST_Intersects(regions.geom, upt.geom) AND generation_type = 'solar' @@ -615,162 +620,162 @@ AND upt.scenario = 'NEP 2035' AND upt.nuts is null; --- --- Offshore Wind +-- Offshore Wind -- Add NEP 2035 Wind parks from own data research --- -- ego scenario log (version,io,schema_name,table_name,script_name,comment) -SELECT ego_scenario_log('v0.3.0','input','model_draft','ego_dp_supply_res_powerplant','ego_db_res_rea_by_scenario.sql',' '); +SELECT ego_scenario_log('v0.3.0','input','model_draft','ego_dp_supply_res_powerplant','ego_db_res_rea_by_scenario.sql',' '); -- 1 -INSERT INTO model_draft.ego_dp_supply_res_powerplant (preversion,id, start_up_date, electrical_capacity, generation_type, generation_subtype, thermal_capacity, - nuts, lon, lat, voltage_level, network_node, source, comment, geom, voltage_level_var, subst_id, +INSERT INTO model_draft.ego_dp_supply_res_powerplant (preversion,id, start_up_date, electrical_capacity, generation_type, generation_subtype, thermal_capacity, + nuts, lon, lat, voltage_level, network_node, source, comment, geom, voltage_level_var, subst_id, otg_id, un_id, scenario, flag) SELECT 'v0.3.0'::text as preversion, max(id)+ row_number() over () as id, - '2034-12-31 00:00:00' as start_up_date, - 840850, 'wind', 'wind_offshore', NULL, NULL, NULL, NULL, 1, NULL, 'ONEP', - 'NVP: Büttel', ST_Transform('0101000020E6100000AD05BE1A878A1B40003C769B02924B40'::geometry,3035), + '2034-12-31 00:00:00' as start_up_date, + 840850, 'wind', 'wind_offshore', NULL, NULL, NULL, NULL, 1, NULL, 'ONEP', + 'NVP: Büttel', ST_Transform('0101000020E6100000AD05BE1A878A1B40003C769B02924B40'::geometry,3035), '380', NULL, NULL, NULL,'NEP 2035','commissioning' FROM model_draft.ego_dp_supply_res_powerplant; -- 2 -INSERT INTO model_draft.ego_dp_supply_res_powerplant (preversion, id, start_up_date, electrical_capacity, generation_type, generation_subtype, thermal_capacity, - nuts, lon, lat, voltage_level, network_node, source, comment, geom, voltage_level_var, subst_id, +INSERT INTO model_draft.ego_dp_supply_res_powerplant (preversion, id, start_up_date, electrical_capacity, generation_type, generation_subtype, thermal_capacity, + nuts, lon, lat, voltage_level, network_node, source, comment, geom, voltage_level_var, subst_id, otg_id, un_id, scenario, flag) SELECT 'v0.3.0'::text as preversion, - max(id)+ row_number() over () as id , - '2034-12-31 00:00:00' as start_up_date, 900000, 'wind', 'wind_offshore', NULL, NULL, NULL, - NULL, 1, NULL, 'ONEP', 'NVP: Segeberg', ST_Transform('0101000020E610000097549B90767B1940BD49396624894B40'::geometry,3035), + max(id)+ row_number() over () as id , + '2034-12-31 00:00:00' as start_up_date, 900000, 'wind', 'wind_offshore', NULL, NULL, NULL, + NULL, 1, NULL, 'ONEP', 'NVP: Segeberg', ST_Transform('0101000020E610000097549B90767B1940BD49396624894B40'::geometry,3035), '380', NULL, NULL, NULL,'NEP 2035','commissioning' FROM model_draft.ego_dp_supply_res_powerplant; -- 3 -INSERT INTO model_draft.ego_dp_supply_res_powerplant (preversion,id, start_up_date, electrical_capacity, generation_type, generation_subtype, thermal_capacity, - nuts, lon, lat, voltage_level, network_node, source, comment, geom, voltage_level_var, subst_id, +INSERT INTO model_draft.ego_dp_supply_res_powerplant (preversion,id, start_up_date, electrical_capacity, generation_type, generation_subtype, thermal_capacity, + nuts, lon, lat, voltage_level, network_node, source, comment, geom, voltage_level_var, subst_id, otg_id, un_id, scenario, flag) SELECT 'v0.3.0'::text as preversion, - max(id)+ row_number() over () as id , - '2034-12-31 00:00:00' as start_up_date, 900000, 'wind', 'wind_offshore', NULL, NULL, NULL, - NULL, 1, NULL, 'ONEP', 'NVP: Cloppenburg', ST_Transform('0101000020E6100000734ECF8CED571C40D2AE3F9F8B044B40'::geometry,3035), + max(id)+ row_number() over () as id , + '2034-12-31 00:00:00' as start_up_date, 900000, 'wind', 'wind_offshore', NULL, NULL, NULL, + NULL, 1, NULL, 'ONEP', 'NVP: Cloppenburg', ST_Transform('0101000020E6100000734ECF8CED571C40D2AE3F9F8B044B40'::geometry,3035), '380', NULL, NULL, NULL,'NEP 2035','commissioning' FROM model_draft.ego_dp_supply_res_powerplant; -- 4 -INSERT INTO model_draft.ego_dp_supply_res_powerplant (preversion,id, start_up_date, electrical_capacity, generation_type, generation_subtype, thermal_capacity, - nuts, lon, lat, voltage_level, network_node, source, comment, geom, voltage_level_var, subst_id, +INSERT INTO model_draft.ego_dp_supply_res_powerplant (preversion,id, start_up_date, electrical_capacity, generation_type, generation_subtype, thermal_capacity, + nuts, lon, lat, voltage_level, network_node, source, comment, geom, voltage_level_var, subst_id, otg_id, un_id, scenario, flag) SELECT 'v0.3.0'::text as preversion, - max(id)+ row_number() over () as id , - '2034-12-31 00:00:00' as start_up_date, 900000, 'wind', 'wind_offshore', NULL, NULL, NULL, - NULL, 1, NULL, 'ONEP', 'NVP: Cloppenburg', ST_Transform('0101000020E61000007B81CED535641940C088D9991E294B40'::geometry,3035), + max(id)+ row_number() over () as id , + '2034-12-31 00:00:00' as start_up_date, 900000, 'wind', 'wind_offshore', NULL, NULL, NULL, + NULL, 1, NULL, 'ONEP', 'NVP: Cloppenburg', ST_Transform('0101000020E61000007B81CED535641940C088D9991E294B40'::geometry,3035), '380', NULL, NULL, NULL,'NEP 2035','commissioning' FROM model_draft.ego_dp_supply_res_powerplant; -- 5 -INSERT INTO model_draft.ego_dp_supply_res_powerplant (preversion,id, start_up_date, electrical_capacity, generation_type, generation_subtype, thermal_capacity, - nuts, lon, lat, voltage_level, network_node, source, comment, geom, voltage_level_var, subst_id, +INSERT INTO model_draft.ego_dp_supply_res_powerplant (preversion,id, start_up_date, electrical_capacity, generation_type, generation_subtype, thermal_capacity, + nuts, lon, lat, voltage_level, network_node, source, comment, geom, voltage_level_var, subst_id, otg_id, un_id, scenario, flag) SELECT 'v0.3.0'::text as preversion, - max(id)+ row_number() over () as id , - '2034-12-31 00:00:00' as start_up_date, 900000, 'wind', 'wind_offshore', NULL, NULL, NULL, - NULL, 1, NULL, 'ONEP', 'NVP: Cloppenburg', ST_Transform('0101000020E6100000760FAC97AC3D184000CF66EFA2204B40'::geometry,3035), + max(id)+ row_number() over () as id , + '2034-12-31 00:00:00' as start_up_date, 900000, 'wind', 'wind_offshore', NULL, NULL, NULL, + NULL, 1, NULL, 'ONEP', 'NVP: Cloppenburg', ST_Transform('0101000020E6100000760FAC97AC3D184000CF66EFA2204B40'::geometry,3035), '380', NULL, NULL, NULL,'NEP 2035','commissioning' FROM model_draft.ego_dp_supply_res_powerplant; -- 6 -INSERT INTO model_draft.ego_dp_supply_res_powerplant (preversion,id, start_up_date, electrical_capacity, generation_type, generation_subtype, thermal_capacity, - nuts, lon, lat, voltage_level, network_node, source, comment, geom, voltage_level_var, subst_id, +INSERT INTO model_draft.ego_dp_supply_res_powerplant (preversion,id, start_up_date, electrical_capacity, generation_type, generation_subtype, thermal_capacity, + nuts, lon, lat, voltage_level, network_node, source, comment, geom, voltage_level_var, subst_id, otg_id, un_id, scenario, flag) SELECT 'v0.3.0'::text as preversion, - max(id)+ row_number() over () as id , - '2034-12-31 00:00:00' as start_up_date, 1188400, 'wind', 'wind_offshore', NULL, NULL, NULL, - NULL, 1, NULL, 'ONEP', 'NVP: Dörpen West', ST_Transform('0101000020E610000044D62300A7711B400FE3B7CDB9034B40'::geometry,3035), + max(id)+ row_number() over () as id , + '2034-12-31 00:00:00' as start_up_date, 1188400, 'wind', 'wind_offshore', NULL, NULL, NULL, + NULL, 1, NULL, 'ONEP', 'NVP: Dörpen West', ST_Transform('0101000020E610000044D62300A7711B400FE3B7CDB9034B40'::geometry,3035), '380', NULL, NULL, NULL,'NEP 2035','commissioning' FROM model_draft.ego_dp_supply_res_powerplant; -- 7 -INSERT INTO model_draft.ego_dp_supply_res_powerplant (preversion,id, start_up_date, electrical_capacity, generation_type, generation_subtype, thermal_capacity, - nuts, lon, lat, voltage_level, network_node, source, comment, geom, voltage_level_var, subst_id, +INSERT INTO model_draft.ego_dp_supply_res_powerplant (preversion,id, start_up_date, electrical_capacity, generation_type, generation_subtype, thermal_capacity, + nuts, lon, lat, voltage_level, network_node, source, comment, geom, voltage_level_var, subst_id, otg_id, un_id, scenario, flag) SELECT 'v0.3.0'::text as preversion, - max(id)+ row_number() over () as id , - '2034-12-31 00:00:00' as start_up_date, 1800000, 'wind', 'wind_offshore', NULL, NULL, NULL, - NULL, 1, NULL, 'ONEP', 'NVP: Emden Ost', ST_Transform('0101000020E610000083B2A1AEEAF91B40343FC1825E054B40'::geometry,3035), + max(id)+ row_number() over () as id , + '2034-12-31 00:00:00' as start_up_date, 1800000, 'wind', 'wind_offshore', NULL, NULL, NULL, + NULL, 1, NULL, 'ONEP', 'NVP: Emden Ost', ST_Transform('0101000020E610000083B2A1AEEAF91B40343FC1825E054B40'::geometry,3035), '380', NULL, NULL, NULL,'NEP 2035','commissioning' FROM model_draft.ego_dp_supply_res_powerplant; -- 8 -INSERT INTO model_draft.ego_dp_supply_res_powerplant (preversion,id, start_up_date, electrical_capacity, generation_type, generation_subtype, thermal_capacity, - nuts, lon, lat, voltage_level, network_node, source, comment, geom, voltage_level_var, subst_id, +INSERT INTO model_draft.ego_dp_supply_res_powerplant (preversion,id, start_up_date, electrical_capacity, generation_type, generation_subtype, thermal_capacity, + nuts, lon, lat, voltage_level, network_node, source, comment, geom, voltage_level_var, subst_id, otg_id, un_id, scenario, flag) SELECT 'v0.3.0'::text as preversion, - max(id)+ row_number() over () as id , - '2034-12-31 00:00:00' as start_up_date, 450000, 'wind', 'wind_offshore', NULL, NULL, NULL, - NULL, 1, NULL, 'ONEP', 'NVP: Unterweser', ST_Transform('0101000020E6100000BAF8659652801740D869CBBDC1284B40'::geometry,3035), + max(id)+ row_number() over () as id , + '2034-12-31 00:00:00' as start_up_date, 450000, 'wind', 'wind_offshore', NULL, NULL, NULL, + NULL, 1, NULL, 'ONEP', 'NVP: Unterweser', ST_Transform('0101000020E6100000BAF8659652801740D869CBBDC1284B40'::geometry,3035), '380', NULL, NULL, NULL,'NEP 2035','commissioning' FROM model_draft.ego_dp_supply_res_powerplant; -- 9 -INSERT INTO model_draft.ego_dp_supply_res_powerplant (preversion,id, start_up_date, electrical_capacity, generation_type, generation_subtype, thermal_capacity, - nuts, lon, lat, voltage_level, network_node, source, comment, geom, voltage_level_var, subst_id, +INSERT INTO model_draft.ego_dp_supply_res_powerplant (preversion,id, start_up_date, electrical_capacity, generation_type, generation_subtype, thermal_capacity, + nuts, lon, lat, voltage_level, network_node, source, comment, geom, voltage_level_var, subst_id, otg_id, un_id, scenario, flag) SELECT 'v0.3.0'::text as preversion, - max(id)+ row_number() over () as id , - '2034-12-31 00:00:00' as start_up_date, 900000, 'wind', 'wind_offshore', NULL, NULL, NULL, - NULL, 1, NULL, 'ONEP', 'NVP: Wilhelmshaven 2', ST_Transform('0101000020E610000033F5B4B394751940EA0712BD2E294B40'::geometry,3035), + max(id)+ row_number() over () as id , + '2034-12-31 00:00:00' as start_up_date, 900000, 'wind', 'wind_offshore', NULL, NULL, NULL, + NULL, 1, NULL, 'ONEP', 'NVP: Wilhelmshaven 2', ST_Transform('0101000020E610000033F5B4B394751940EA0712BD2E294B40'::geometry,3035), '380', NULL, NULL, NULL,'NEP 2035','commissioning' FROM model_draft.ego_dp_supply_res_powerplant; -- 10 -INSERT INTO model_draft.ego_dp_supply_res_powerplant (preversion,id, start_up_date, electrical_capacity, generation_type, generation_subtype, thermal_capacity, - nuts, lon, lat, voltage_level, network_node, source, comment, geom, voltage_level_var, subst_id, +INSERT INTO model_draft.ego_dp_supply_res_powerplant (preversion,id, start_up_date, electrical_capacity, generation_type, generation_subtype, thermal_capacity, + nuts, lon, lat, voltage_level, network_node, source, comment, geom, voltage_level_var, subst_id, otg_id, un_id, scenario, flag) SELECT 'v0.3.0'::text as preversion, - max(id)+ row_number() over () as id , - '2034-12-31 00:00:00' as start_up_date, 900000, 'wind', 'wind_offshore', NULL, NULL, NULL, - NULL, 1, NULL, 'ONEP', 'NVP: Wilhelmshaven 2', ST_Transform('0101000020E6100000E75D445985E61740F70188073D684B40'::geometry,3035), + max(id)+ row_number() over () as id , + '2034-12-31 00:00:00' as start_up_date, 900000, 'wind', 'wind_offshore', NULL, NULL, NULL, + NULL, 1, NULL, 'ONEP', 'NVP: Wilhelmshaven 2', ST_Transform('0101000020E6100000E75D445985E61740F70188073D684B40'::geometry,3035), '380', NULL, NULL, NULL,'NEP 2035','commissioning' FROM model_draft.ego_dp_supply_res_powerplant; -- 11 -INSERT INTO model_draft.ego_dp_supply_res_powerplant (preversion,id, start_up_date, electrical_capacity, generation_type, generation_subtype, thermal_capacity, - nuts, lon, lat, voltage_level, network_node, source, comment, geom, voltage_level_var, subst_id, +INSERT INTO model_draft.ego_dp_supply_res_powerplant (preversion,id, start_up_date, electrical_capacity, generation_type, generation_subtype, thermal_capacity, + nuts, lon, lat, voltage_level, network_node, source, comment, geom, voltage_level_var, subst_id, otg_id, un_id, scenario, flag) SELECT 'v0.3.0'::text as preversion, - max(id)+ row_number() over () as id , - '2034-12-31 00:00:00' as start_up_date, 900000, 'wind', 'wind_offshore', NULL, NULL, NULL, - NULL, 1, NULL, 'ONEP', 'NVP: Wilhelmshaven 2', ST_Transform('0101000020E610000046E764017AE71840ADB08899CC684B40'::geometry,3035), + max(id)+ row_number() over () as id , + '2034-12-31 00:00:00' as start_up_date, 900000, 'wind', 'wind_offshore', NULL, NULL, NULL, + NULL, 1, NULL, 'ONEP', 'NVP: Wilhelmshaven 2', ST_Transform('0101000020E610000046E764017AE71840ADB08899CC684B40'::geometry,3035), '380', NULL, NULL, NULL,'NEP 2035','commissioning' FROM model_draft.ego_dp_supply_res_powerplant; -- 12 -INSERT INTO model_draft.ego_dp_supply_res_powerplant (preversion,id, start_up_date, electrical_capacity, generation_type, generation_subtype, thermal_capacity, - nuts, lon, lat, voltage_level, network_node, source, comment, geom, voltage_level_var, subst_id, +INSERT INTO model_draft.ego_dp_supply_res_powerplant (preversion,id, start_up_date, electrical_capacity, generation_type, generation_subtype, thermal_capacity, + nuts, lon, lat, voltage_level, network_node, source, comment, geom, voltage_level_var, subst_id, otg_id, un_id, scenario, flag) SELECT 'v0.3.0'::text as preversion, - max(id)+ row_number() over () as id , - '2034-12-31 00:00:00' as start_up_date, 900000, 'wind', 'wind_offshore', NULL, NULL, NULL, - NULL, 1, NULL, 'ONEP', 'NVP: Halbemond', ST_Transform('0101000020E610000011DD88C5680E1940A8A8439C94004B40'::geometry,3035), + max(id)+ row_number() over () as id , + '2034-12-31 00:00:00' as start_up_date, 900000, 'wind', 'wind_offshore', NULL, NULL, NULL, + NULL, 1, NULL, 'ONEP', 'NVP: Halbemond', ST_Transform('0101000020E610000011DD88C5680E1940A8A8439C94004B40'::geometry,3035), '380', NULL, NULL, NULL,'NEP 2035','commissioning' FROM model_draft.ego_dp_supply_res_powerplant; -- 13 -INSERT INTO model_draft.ego_dp_supply_res_powerplant (preversion,id, start_up_date, electrical_capacity, generation_type, generation_subtype, thermal_capacity, - nuts, lon, lat, voltage_level, network_node, source, comment, geom, voltage_level_var, subst_id, +INSERT INTO model_draft.ego_dp_supply_res_powerplant (preversion,id, start_up_date, electrical_capacity, generation_type, generation_subtype, thermal_capacity, + nuts, lon, lat, voltage_level, network_node, source, comment, geom, voltage_level_var, subst_id, otg_id, un_id, scenario, flag) SELECT 'v0.3.0'::text as preversion, - max(id)+ row_number() over () as id , - '2034-12-31 00:00:00' as start_up_date, 1585000, 'wind', 'wind_offshore', NULL, NULL, NULL, - NULL, 1, NULL, 'ONEP', 'NVP: Lubmin', ST_Transform('0101000020E6100000C396890D74072A404ADF5A5C48744B40'::geometry,3035), + max(id)+ row_number() over () as id , + '2034-12-31 00:00:00' as start_up_date, 1585000, 'wind', 'wind_offshore', NULL, NULL, NULL, + NULL, 1, NULL, 'ONEP', 'NVP: Lubmin', ST_Transform('0101000020E6100000C396890D74072A404ADF5A5C48744B40'::geometry,3035), '380', NULL, NULL, NULL,'NEP 2035','commissioning' FROM model_draft.ego_dp_supply_res_powerplant; ---- --- Wind Onshore --- Use of "easy" Prox2Now Method like Photovoltaic +--- +-- Wind Onshore +-- Use of "easy" Prox2Now Method like Photovoltaic /* -Step 0 Get Nuts id per Unit +Step 0 Get Nuts id per Unit Step 1 capacity per municipality -> Pro2Now Status Quo Step 2 Structure of Wind Onshore ( volatage level, size, Number) @@ -784,16 +789,16 @@ DROP SEQUENCE IF EXISTS model_draft.ego_supply_res_wo_2035_germany_mun_id_seq CA CREATE SEQUENCE model_draft.ego_supply_res_wo_2035_germany_mun_id_seq START 1; DROP TABLE IF EXISTS model_draft.ego_supply_res_wo_2035_germany_mun_temp CASCADE; -CREATE TABLE model_draft.ego_supply_res_wo_2035_germany_mun_temp +CREATE TABLE model_draft.ego_supply_res_wo_2035_germany_mun_temp ( - id bigint NOT NULL DEFAULT nextval('model_draft.ego_supply_res_wo_2035_germany_mun_id_seq'::regclass),-- own id PK - wo_units integer, -- number of onshore units per mun and voltage level - wo_cap_2014 integer, -- sum per region of 2014 in kW - wo_add_cap_2035 integer, -- sum per region of additional Capacity in 2035 kW - voltage_level smallint, -- voltage_level from 1-7 + id bigint NOT NULL DEFAULT nextval('model_draft.ego_supply_res_wo_2035_germany_mun_id_seq'::regclass),-- own id PK + wo_units integer, -- number of onshore units per mun and voltage level + wo_cap_2014 integer, -- sum per region of 2014 in kW + wo_add_cap_2035 integer, -- sum per region of additional Capacity in 2035 kW + voltage_level smallint, -- voltage_level from 1-7 rs character varying(12), -- German Regionalschlüssel wo_avg_cap integer, -- average capacity per region and voltage level - wo_new_units integer, -- New number of region per voltage level + wo_new_units integer, -- New number of region per voltage level CONSTRAINT ego_supply_res_wo_2035_germany_mun_temp_pkey PRIMARY KEY (id) ); @@ -801,7 +806,7 @@ CREATE TABLE model_draft.ego_supply_res_wo_2035_germany_mun_temp ALTER TABLE model_draft.ego_supply_res_wo_2035_germany_mun_temp OWNER TO oeuser; -- ego scenario log (version,io,schema_name,table_name,script_name,comment) -SELECT ego_scenario_log('v0.3.0','temp','model_draft','ego_supply_res_wo_2035_germany_mun_temp','ego_db_res_rea_by_scenario.sql',' '); +SELECT ego_scenario_log('v0.3.0','temp','model_draft','ego_supply_res_wo_2035_germany_mun_temp','ego_db_res_rea_by_scenario.sql',' '); Insert into model_draft.ego_supply_res_wo_2035_germany_mun_temp (wo_units,wo_cap_2014,voltage_level,rs,wo_avg_cap) SELECT @@ -811,7 +816,7 @@ SELECT B.rs, avg(A.electrical_capacity) as wo_avg_cap FROM - model_draft.ego_dp_supply_res_powerplant A, + model_draft.ego_dp_supply_res_powerplant A, boundaries.bkg_vg250_6_gem_rs_mview B WHERE ST_Intersects(B.geom, A.geom) @@ -821,8 +826,8 @@ AND scenario = 'Status Quo' Group by A.voltage_level, B.id, B.rs; UPDATE model_draft.ego_supply_res_wo_2035_germany_mun_temp AA -set wo_add_cap_2035 = ( (AA.wo_cap_2014::numeric / wo_sq_2014.fs_cap_2014::numeric)*wo_scn_2035.fs_cap_2035 - -AA.wo_cap_2014)::integer +set wo_add_cap_2035 = ( (AA.wo_cap_2014::numeric / wo_sq_2014.fs_cap_2014::numeric)*wo_scn_2035.fs_cap_2035 + -AA.wo_cap_2014)::integer FROM ( SELECT @@ -833,7 +838,7 @@ SELECT boundaries.bkg_vg250_6_gem_rs_mview A, model_draft.ego_supply_scenario_capacities scn WHERE scn.nuts = substring(A.nuts from 1 for 3) -AND scn.generation_type = 'wind_onshore' +AND scn.generation_type = 'wind_onshore' AND scn.scenario_name ='NEP 2035' AND scn.state not in ('Deutschland') Group by substring(A.nuts from 1 for 3),rs,scn.capacity,scn.nuts @@ -844,7 +849,7 @@ SELECT sum(A.wo_cap_2014) as fs_cap_2014 -- in kW FROM model_draft.ego_supply_res_wo_2035_germany_mun_temp A -Group by substring(A.rs from 1 for 2) +Group by substring(A.rs from 1 for 2) ) as wo_sq_2014 Where wo_scn_2035.rs = wo_sq_2014.rs AND substring(AA.rs from 1 for 2) = wo_sq_2014.rs @@ -855,9 +860,9 @@ DELETE FROM model_draft.ego_supply_res_wo_2035_germany_mun_temp WHERE wo_add_cap -- Count new additional Units -> new_units UPDATE model_draft.ego_supply_res_wo_2035_germany_mun_temp AA - set wo_new_units = round(wo_add_cap_2035/wo_avg_cap,0)::int; + set wo_new_units = round(wo_add_cap_2035/wo_avg_cap,0)::int; --- Control wind onshore development +-- Control wind onshore development SELECT scn.state, substring(A.rs from 1 for 2) rs_fs, -- fs ID @@ -867,7 +872,7 @@ scn.capacity_2035, -- Scenario capacity 2035 in MW (SUM(A.wo_add_cap_2035) +sum(A.wo_cap_2014))/1000 total -- in MW FROM ( -SELECT +SELECT scn.state, scn.nuts, substring(AA.rs from 1 for 2) as rs, @@ -891,16 +896,16 @@ Order by scn.state; -- set nuts UPDATE model_draft.ego_dp_supply_res_powerplant as upt set nuts = regions.nuts -from +from boundaries.bkg_vg250_2_lan_nuts_view as regions WHERE ST_Intersects(regions.geom, upt.geom) AND generation_subtype = 'wind_onshore' AND upt.nuts IS NULL; -- ego scenario log (version,io,schema_name,table_name,script_name,comment) -SELECT ego_scenario_log('v0.3.0','output','model_draft','ego_supply_res_wo_2035_germany_mun_temp','ego_db_res_rea_by_scenario.sql',' '); +SELECT ego_scenario_log('v0.3.0','output','model_draft','ego_supply_res_wo_2035_germany_mun_temp','ego_db_res_rea_by_scenario.sql',' '); --- Add new wind onshore units +-- Add new wind onshore units Insert into model_draft.ego_dp_supply_res_powerplant (preversion,id,start_up_date,electrical_capacity, generation_type, generation_subtype, voltage_level, source, comment,geom, scenario,flag) SELECT @@ -912,7 +917,7 @@ Insert into model_draft.ego_dp_supply_res_powerplant (preversion,id,start_up_dat 'wind_onshore'::text as generation_subtype, sub.voltage_level, 'NEP 2015 scenario B2035'::text as source, - 'Method ProxToNow wind onshore'::text as comment, + 'Method ProxToNow wind onshore'::text as comment, sub.geom, 'NEP 2035'::text as scenario, 'commissioning'::text as flag @@ -921,9 +926,9 @@ Insert into model_draft.ego_dp_supply_res_powerplant (preversion,id,start_up_dat A.rs, A.voltage_level, Case when A.wo_new_units = 0 Then A.wo_add_cap_2035 - else unnest(array_fill((A.wo_add_cap_2035/A.wo_new_units), Array[A.wo_new_units])) END as electrical_capacity , -- in kW - ST_Centroid(B.geom) as geom - FROM + else unnest(array_fill((A.wo_add_cap_2035/A.wo_new_units), Array[A.wo_new_units])) END as electrical_capacity , -- in kW + ST_Centroid(B.geom) as geom + FROM model_draft.ego_supply_res_wo_2035_germany_mun_temp A, boundaries.bkg_vg250_6_gem_rs_mview B Where A.rs = B.rs @@ -933,22 +938,22 @@ Insert into model_draft.ego_dp_supply_res_powerplant (preversion,id,start_up_dat FROM model_draft.ego_dp_supply_res_powerplant ) as sub2 ; - + -- set nuts UPDATE model_draft.ego_dp_supply_res_powerplant as upt set nuts = regions.nuts -from +from boundaries.bkg_vg250_2_lan_nuts_view as regions WHERE ST_Intersects(regions.geom, upt.geom) AND generation_subtype = 'wind_onshore' AND scenario ='NEP 2035'; -- VACUUM FULL ANALYZE model_draft.ego_dp_supply_res_powerplant; - + -------------------------------------------------------------------------------- --- Part III +-- Part III -- Develop renewable allocation by generation type, voltage level --- and municipality. Scenarios: ego-100RES +-- and municipality. Scenarios: ego-100RES -------------------------------------------------------------------------------- --- @@ -957,15 +962,15 @@ AND scenario ='NEP 2035'; -- eGo 100 Biomass DROP TABLE IF EXISTS model_draft.ego_supply_res_biomass_2050_temp CASCADE; CREATE TABLE model_draft.ego_supply_res_biomass_2050_temp AS - SELECT * - FROM + SELECT * + FROM model_draft.ego_dp_supply_res_powerplant WHERE generation_type = 'biomass' AND scenario in ( 'Status Quo'); -- ego scenario log (version,io,schema_name,table_name,script_name,comment) -SELECT ego_scenario_log('v0.3.0','temp','model_draft','ego_dp_supply_res_powerplant','ego_db_res_rea_by_scenario.sql',' '); +SELECT ego_scenario_log('v0.3.0','temp','model_draft','ego_dp_supply_res_powerplant','ego_db_res_rea_by_scenario.sql',' '); -- Biomass Method Prox2Now -- increase installed capacity by scenario data @@ -977,13 +982,13 @@ set comment = upt.comment || ', Method ProxToNow Biomass', scenario = 'eGo 100' , flag = 'repowering', preversion = 'v0.3.0'::text, - electrical_capacity = CASE WHEN scn.capacity = 0 THEN 0 - ELSE (upt.electrical_capacity/ cap_sum)*scn.capacity*1000 - END + electrical_capacity = CASE WHEN scn.capacity = 0 THEN 0 + ELSE (upt.electrical_capacity/ cap_sum)*scn.capacity*1000 + END FROM model_draft.ego_supply_scenario_capacities as scn, (SELECT 'DE'::text as nuts, sum(electrical_capacity) as cap_sum - FROM model_draft.ego_dp_supply_res_powerplant + FROM model_draft.ego_dp_supply_res_powerplant WHERE generation_type = 'biomass' AND scenario in ( 'Status Quo') ) count @@ -1001,7 +1006,7 @@ CREATE INDEX ego_supply_res_biomass_2050_temp_geom_idx ALTER TABLE model_draft.ego_supply_res_biomass_2050_temp OWNER TO oeuser; -- ego scenario log (version,io,schema_name,table_name,script_name,comment) -SELECT ego_scenario_log('v0.3.0','input','model_draft','ego_dp_supply_res_powerplant','ego_db_res_rea_by_scenario.sql',' '); +SELECT ego_scenario_log('v0.3.0','input','model_draft','ego_dp_supply_res_powerplant','ego_db_res_rea_by_scenario.sql',' '); -- Insert ego_dp_supply_res_powerplant Insert into model_draft.ego_dp_supply_res_powerplant @@ -1010,20 +1015,20 @@ Insert into model_draft.ego_dp_supply_res_powerplant FROM model_draft.ego_supply_res_biomass_2050_temp WHERE scenario = 'eGo 100'; - ---- + +--- -- Geothermal Method -- No changes set status quo --- ---- +--- -- CHP Method -- No Units set all NULL --- DROP TABLE IF EXISTS model_draft.ego_supply_res_chp_2050_temp CASCADE; CREATE TABLE model_draft.ego_supply_res_chp_2050_temp AS - SELECT * - FROM + SELECT * + FROM model_draft.ego_dp_supply_res_powerplant WHERE comment = 'KWK_NEP_2035_distribution' @@ -1034,7 +1039,7 @@ Update model_draft.ego_supply_res_chp_2050_temp flag = 'decommissioning', start_up_date = '2034-12-31 00:00:00', preversion = 'v0.3.0'::text, - electrical_capacity = 0; + electrical_capacity = 0; -- create index GIST (geom) CREATE INDEX ego_supply_res_chp_2050_temp_geom_idx @@ -1048,15 +1053,15 @@ Insert into model_draft.ego_dp_supply_res_powerplant FROM model_draft.ego_supply_res_chp_2050_temp WHERE scenario = 'eGo 100'; ---- +--- -- Hydro / run_of_river -- Repowering Units from NEP 2035 Scenario --- DROP TABLE IF EXISTS model_draft.ego_supply_res_hydro_2050_temp CASCADE; CREATE TABLE model_draft.ego_supply_res_hydro_2050_temp AS - SELECT * - FROM + SELECT * + FROM model_draft.ego_dp_supply_res_powerplant WHERE generation_subtype = 'hydro' @@ -1077,8 +1082,8 @@ set comment = upt.comment || ', Method ProxToNow Hydro', flag = 'repowering', preversion = 'v0.3.0'::text, electrical_capacity = CASE WHEN scn.capacity = 0 THEN upt.electrical_capacity - ELSE (upt.electrical_capacity/ cap_sum)*scn.capacity*1000 - END + ELSE (upt.electrical_capacity/ cap_sum)*scn.capacity*1000 + END FROM model_draft.ego_supply_scenario_capacities as scn, (SELECT 'DE'::text as nuts, sum(electrical_capacity) as cap_sum @@ -1088,7 +1093,7 @@ FROM WHERE scn.nuts = substring(count.nuts from 1 for 2) AND scn.nuts = substring(upt.nuts from 1 for 2) AND substring(upt.nuts from 1 for 2) = substring(count.nuts from 1 for 2) -AND scn.generation_type = 'run_of_river' +AND scn.generation_type = 'run_of_river' AND upt.generation_subtype = 'hydro' AND scn.scenario_name = 'eGo 100'; @@ -1098,11 +1103,11 @@ Insert into model_draft.ego_dp_supply_res_powerplant FROM model_draft.ego_supply_res_hydro_2050_temp WHERE scenario = 'eGo 100'; --- --- Photovoltaic Methode ---- +-- Photovoltaic Methode +--- /* -Step 0 Create temp temp +Step 0 Create temp temp Step 1 capacity per municipality -> Pro2Now Status Quo Step 2 Structure of PV ( voltage level, size, Number) @@ -1114,13 +1119,13 @@ Step 4 add volatage level, etc. -- eGo 100 Photovoltaic -- Step 0 DROP TABLE IF EXISTS model_draft.ego_supply_res_pv_to_region_temp CASCADE; -CREATE TABLE model_draft.ego_supply_res_pv_to_region_temp +CREATE TABLE model_draft.ego_supply_res_pv_to_region_temp ( re_id bigint NOT NULL, -- id from renewable_power_plants - subst_id bigint, - otg_id bigint, - un_id bigint, - nuts character varying(5), + subst_id bigint, + otg_id bigint, + un_id bigint, + nuts character varying(5), rs character varying(12), -- German Regionalschlüssel id_vg250 bigint, -- ID of boundaries.bkg_vg250_6_gem_rs_mview table CONSTRAINT ego_supply_res_pv_to_region_temp_pkey PRIMARY KEY (re_id) @@ -1130,7 +1135,7 @@ CREATE TABLE model_draft.ego_supply_res_pv_to_region_temp ALTER TABLE model_draft.ego_supply_res_pv_to_region_temp OWNER TO oeuser; -- ego scenario log (version,io,schema_name,table_name,script_name,comment) -SELECT ego_scenario_log('v0.3.0','temp','model_draft','ego_supply_res_pv_to_region_temp','ego_db_res_rea_by_scenario.sql',' '); +SELECT ego_scenario_log('v0.3.0','temp','model_draft','ego_supply_res_pv_to_region_temp','ego_db_res_rea_by_scenario.sql',' '); INSERT INTO model_draft.ego_supply_res_pv_to_region_temp (re_id,subst_id,otg_id,un_id) SELECT @@ -1141,7 +1146,7 @@ INSERT INTO model_draft.ego_supply_res_pv_to_region_temp (re_id,subst_id,otg_id, FROM model_draft.ego_dp_supply_res_powerplant WHERE scenario in ( 'Status Quo','NEP 2035') - AND generation_type = 'solar' + AND generation_type = 'solar' AND flag in ('commissioning','constantly'); Update model_draft.ego_supply_res_pv_to_region_temp A @@ -1153,14 +1158,14 @@ FROM ( D.id as re_id, C.id, C.rs, - C.nuts + C.nuts FROM boundaries.bkg_vg250_6_gem_rs_mview C, model_draft.ego_dp_supply_res_powerplant D WHERE ST_Intersects(C.geom, D.geom) ) as B WHERE B.re_id = A.re_id; --- Get nuts ID by buffering geometry +-- Get nuts ID by buffering geometry Update model_draft.ego_supply_res_pv_to_region_temp A set id_vg250 = C.id, rs = C.rs, @@ -1174,7 +1179,7 @@ FROM model_draft.ego_supply_res_pv_to_region_temp A, model_draft.ego_dp_supply_res_powerplant B WHERE A.re_id = B.id - AND A.nuts IS NULL + AND A.nuts IS NULL ) as AA, boundaries.bkg_vg250_6_gem_rs_mview C WHERE ST_Intersects(C.geom, ST_Buffer(AA.geom,1000)) @@ -1189,16 +1194,16 @@ DROP SEQUENCE IF EXISTS model_draft.ego_supply_res_pv_2050_germany_mun_id_seq CA CREATE SEQUENCE model_draft.ego_supply_res_pv_2050_germany_mun_id_seq START 1; DROP TABLE IF EXISTS model_draft.ego_supply_res_pv_2050_germany_mun_temp CASCADE; -CREATE TABLE model_draft.ego_supply_res_pv_2050_germany_mun_temp +CREATE TABLE model_draft.ego_supply_res_pv_2050_germany_mun_temp ( - id bigint NOT NULL DEFAULT nextval('model_draft.ego_supply_res_pv_2050_germany_mun_id_seq'::regclass),-- own id PK - pv_units integer, -- number of PV units per mun and voltage level - pv_cap_2035 integer, -- sum per region of 2014 in kW - pv_add_cap_2050 integer, -- sum per region of additional Capacity in 2035 kW - voltage_level smallint, -- voltage_level from 1-7 + id bigint NOT NULL DEFAULT nextval('model_draft.ego_supply_res_pv_2050_germany_mun_id_seq'::regclass),-- own id PK + pv_units integer, -- number of PV units per mun and voltage level + pv_cap_2035 integer, -- sum per region of 2014 in kW + pv_add_cap_2050 integer, -- sum per region of additional Capacity in 2035 kW + voltage_level smallint, -- voltage_level from 1-7 rs character varying(12), -- German Regionalschlüssel pv_avg_cap integer, -- average capacity per region and voltage level - pv_new_units integer, -- New number of region per voltage level + pv_new_units integer, -- New number of region per voltage level CONSTRAINT ego_supply_res_pv_2050_germany_mun_temp_pkey PRIMARY KEY (id) ); @@ -1206,7 +1211,7 @@ CREATE TABLE model_draft.ego_supply_res_pv_2050_germany_mun_temp ALTER TABLE model_draft.ego_supply_res_pv_2050_germany_mun_temp OWNER TO oeuser; -- ego scenario log (version,io,schema_name,table_name,script_name,comment) -SELECT ego_scenario_log('v0.3.0','temp','model_draft','ego_supply_res_pv_2050_germany_mun_temp','ego_db_res_rea_by_scenario.sql',' '); +SELECT ego_scenario_log('v0.3.0','temp','model_draft','ego_supply_res_pv_2050_germany_mun_temp','ego_db_res_rea_by_scenario.sql',' '); Insert into model_draft.ego_supply_res_pv_2050_germany_mun_temp (pv_units,pv_cap_2035,voltage_level,rs,pv_avg_cap) @@ -1217,7 +1222,7 @@ SELECT B.rs, avg(A.electrical_capacity) as pv_avg_cap FROM - model_draft.ego_dp_supply_res_powerplant A, + model_draft.ego_dp_supply_res_powerplant A, boundaries.bkg_vg250_6_gem_rs_mview B WHERE ST_Intersects(B.geom, A.geom) @@ -1232,7 +1237,7 @@ Group by A.voltage_level, B.id, B.rs; --- UPDATE model_draft.ego_supply_res_pv_2050_germany_mun_temp AA -set pv_add_cap_2050 = ( (AA.pv_cap_2035::numeric / pv_sq_2035.fs_cap_2035::numeric)*pv_scn_2050.fs_cap_2050 +set pv_add_cap_2050 = ( (AA.pv_cap_2035::numeric / pv_sq_2035.fs_cap_2035::numeric)*pv_scn_2050.fs_cap_2050 -AA.pv_cap_2035)::integer FROM ( @@ -1243,7 +1248,7 @@ SELECT boundaries.bkg_vg250_6_gem_rs_mview A, model_draft.ego_supply_scenario_capacities scn WHERE scn.nuts = substring(A.nuts from 1 for 2) -AND scn.generation_type = 'solar' +AND scn.generation_type = 'solar' AND scn.scenario_name = 'eGo 100' Group by fs_cap_2050 ,scn.nuts ) as pv_scn_2050, @@ -1256,9 +1261,9 @@ FROM -- Count new additional Units -> new_units UPDATE model_draft.ego_supply_res_pv_2050_germany_mun_temp - set pv_new_units = CASE WHEN pv_add_cap_2050 = 0 Then pv_add_cap_2050 ELSE round(pv_add_cap_2050/pv_avg_cap,0)::int END; + set pv_new_units = CASE WHEN pv_add_cap_2050 = 0 Then pv_add_cap_2050 ELSE round(pv_add_cap_2050/pv_avg_cap,0)::int END; --- Control Photovoltaic development +-- Control Photovoltaic development SELECT sum(A.pv_add_cap_2050)/1000 pv_add_cap_2035, -- additional Capacity in MW sum(A.pv_cap_2035)/1000 pv_cap_2035, -- capacity 2035 im MW @@ -1284,22 +1289,22 @@ Group by scn.capacity_2050; -- set nuts UPDATE model_draft.ego_dp_supply_res_powerplant as upt set nuts = regions.nuts -from +from boundaries.bkg_vg250_2_lan_nuts_view as regions WHERE ST_Intersects(regions.geom, upt.geom) AND generation_type = 'solar' AND upt.scenario in ( 'Status Quo','NEP 2035') AND upt.nuts IS NULL; --- Take status quo and add new Photovoltaic plants --- Insert new units by pv_new_units +-- Take status quo and add new Photovoltaic plants +-- Insert new units by pv_new_units -- geom = centroid of municipality geom , see http://postgis.net/docs/ST_Centroid.html -- generation_subtype is defined as solar -- ego scenario log (version,io,schema_name,table_name,script_name,comment) -SELECT ego_scenario_log('v0.3.0','output','model_draft','ego_supply_res_pv_2050_germany_mun_temp','ego_db_res_rea_by_scenario.sql',' '); +SELECT ego_scenario_log('v0.3.0','output','model_draft','ego_supply_res_pv_2050_germany_mun_temp','ego_db_res_rea_by_scenario.sql',' '); --- Add new PV units +-- Add new PV units Insert into model_draft.ego_dp_supply_res_powerplant (preversion,id,start_up_date, electrical_capacity, generation_type, generation_subtype, voltage_level, source, comment,geom, scenario,flag) @@ -1312,7 +1317,7 @@ generation_type, generation_subtype, voltage_level, source, comment,geom, scenar 'solar'::text as generation_subtype, sub.voltage_level, 'open_ego 100'::text as source, - ', Method ProxToNow solar'::text as comment, + ', Method ProxToNow solar'::text as comment, sub.geom, 'eGo 100'::text as scenario, 'commissioning'::text as flag @@ -1321,9 +1326,9 @@ generation_type, generation_subtype, voltage_level, source, comment,geom, scenar A.rs, A.voltage_level, Case when A.pv_new_units = 0 Then A.pv_add_cap_2050 - else unnest(array_fill((A.pv_add_cap_2050/A.pv_new_units), Array[A.pv_new_units])) END as electrical_capacity , -- in kW - ST_Centroid(B.geom) as geom - FROM + else unnest(array_fill((A.pv_add_cap_2050/A.pv_new_units), Array[A.pv_new_units])) END as electrical_capacity , -- in kW + ST_Centroid(B.geom) as geom + FROM model_draft.ego_supply_res_pv_2050_germany_mun_temp A, boundaries.bkg_vg250_6_gem_rs_mview B Where A.rs = B.rs @@ -1337,7 +1342,7 @@ generation_type, generation_subtype, voltage_level, source, comment,geom, scenar -- set nuts UPDATE model_draft.ego_dp_supply_res_powerplant as upt set nuts = regions.nuts -from +from boundaries.bkg_vg250_2_lan_nuts_view as regions WHERE ST_Intersects(regions.geom, upt.geom) AND generation_type = 'solar' @@ -1349,8 +1354,8 @@ AND upt.nuts is NULL; DROP TABLE IF EXISTS model_draft.ego_supply_res_woff_2050_temp CASCADE; CREATE TABLE model_draft.ego_supply_res_woff_2050_temp AS - SELECT * - FROM + SELECT * + FROM model_draft.ego_dp_supply_res_powerplant WHERE generation_subtype = 'wind_offshore' @@ -1369,19 +1374,19 @@ set source = 'open_ego 2050', scenario = 'eGo 100', flag = 'repowering', preversion = 'v0.3.0'::text, - electrical_capacity = scn2050.electrical_capacity + round(scn2050.electrical_capacity*q1.pp) + electrical_capacity = scn2050.electrical_capacity + round(scn2050.electrical_capacity*q1.pp) From ( Select (scn.capacity*1000 - sum(base.electrical_capacity))/(scn.capacity*1000) as pp From model_draft.ego_supply_scenario_capacities as scn, model_draft.ego_supply_res_woff_2050_temp as base -Where scn.generation_type = 'wind_offshore' +Where scn.generation_type = 'wind_offshore' And scn.scenario_name = 'eGo 100' And base.generation_subtype = 'wind_offshore' Group by scn.capacity ) as q1 -WHERE +WHERE scn2050.generation_subtype = 'wind_offshore'; Insert into model_draft.ego_dp_supply_res_powerplant @@ -1389,12 +1394,12 @@ Insert into model_draft.ego_dp_supply_res_powerplant FROM model_draft.ego_supply_res_woff_2050_temp WHERE scenario = 'eGo 100'; ---- --- Wind Onshore +--- +-- Wind Onshore -- Use of "easy" Prox2Now Method like Photovoltaic ---- +--- /* -Step 0 Get Nuts id per Unit +Step 0 Get Nuts id per Unit Step 1 capacity per municipality -> Pro2Now Status Quo Step 2 Structure of Wind Onshore ( volatage level, size, Number) @@ -1408,16 +1413,16 @@ DROP SEQUENCE IF EXISTS model_draft.ego_supply_res_wo_2050_germany_mun_id_seq CA CREATE SEQUENCE model_draft.ego_supply_res_wo_2050_germany_mun_id_seq START 1; DROP TABLE IF EXISTS model_draft.ego_supply_res_wo_2050_germany_mun_temp CASCADE; -CREATE TABLE model_draft.ego_supply_res_wo_2050_germany_mun_temp +CREATE TABLE model_draft.ego_supply_res_wo_2050_germany_mun_temp ( - id bigint NOT NULL DEFAULT nextval('model_draft.ego_supply_res_wo_2050_germany_mun_id_seq'::regclass),-- own id PK - wo_units integer, -- number of onshore units per mun and voltage level - wo_cap_2035 integer, -- sum per region of 2035 in kW - wo_add_cap_2050 integer, -- sum per region of additional Capacity in 2050 kW - voltage_level smallint, -- voltage_level from 1-7 + id bigint NOT NULL DEFAULT nextval('model_draft.ego_supply_res_wo_2050_germany_mun_id_seq'::regclass),-- own id PK + wo_units integer, -- number of onshore units per mun and voltage level + wo_cap_2035 integer, -- sum per region of 2035 in kW + wo_add_cap_2050 integer, -- sum per region of additional Capacity in 2050 kW + voltage_level smallint, -- voltage_level from 1-7 rs character varying(12), -- German Regionalschlüssel wo_avg_cap integer, -- average capacity per region and voltage level - wo_new_units integer, -- New number of region per voltage level + wo_new_units integer, -- New number of region per voltage level CONSTRAINT ego_supply_res_wo_2050_germany_mun_temp_pkey PRIMARY KEY (id) ); @@ -1425,7 +1430,7 @@ CREATE TABLE model_draft.ego_supply_res_wo_2050_germany_mun_temp ALTER TABLE model_draft.ego_supply_res_wo_2050_germany_mun_temp OWNER TO oeuser; -- ego scenario log (version,io,schema_name,table_name,script_name,comment) -SELECT ego_scenario_log('v0.3.0','temp','model_draft','ego_supply_res_wo_2050_germany_mun_temp','ego_db_res_rea_by_scenario.sql',' '); +SELECT ego_scenario_log('v0.3.0','temp','model_draft','ego_supply_res_wo_2050_germany_mun_temp','ego_db_res_rea_by_scenario.sql',' '); Insert into model_draft.ego_supply_res_wo_2050_germany_mun_temp (wo_units, wo_cap_2035, voltage_level,rs,wo_avg_cap) SELECT @@ -1435,7 +1440,7 @@ SELECT B.rs, avg(A.electrical_capacity) as wo_avg_cap FROM - model_draft.ego_dp_supply_res_powerplant A, + model_draft.ego_dp_supply_res_powerplant A, boundaries.bkg_vg250_6_gem_rs_mview B WHERE ST_Intersects(B.geom, A.geom) @@ -1447,8 +1452,8 @@ Group by A.voltage_level, B.id, B.rs; UPDATE model_draft.ego_supply_res_wo_2050_germany_mun_temp AA -set wo_add_cap_2050 = ((AA.wo_cap_2035::numeric / wo_sq_2035.fs_cap_2035::numeric)*wo_scn_2050.fs_cap_2050 - -AA.wo_cap_2035)::integer +set wo_add_cap_2050 = ((AA.wo_cap_2035::numeric / wo_sq_2035.fs_cap_2035::numeric)*wo_scn_2050.fs_cap_2050 + -AA.wo_cap_2035)::integer FROM ( SELECT @@ -1458,7 +1463,7 @@ SELECT boundaries.bkg_vg250_6_gem_rs_mview A, model_draft.ego_supply_scenario_capacities scn WHERE scn.nuts = substring(A.nuts from 1 for 2) -AND scn.generation_type = 'wind_onshore' +AND scn.generation_type = 'wind_onshore' And scn.scenario_name = 'eGo 100' Group by substring(A.nuts from 1 for 2),scn.capacity,scn.nuts ) as wo_scn_2050, @@ -1474,9 +1479,9 @@ DELETE FROM model_draft.ego_supply_res_wo_2050_germany_mun_temp WHERE wo_add_cap -- Count new additional Units -> new_units UPDATE model_draft.ego_supply_res_wo_2050_germany_mun_temp AA - set wo_new_units = round(wo_add_cap_2050/wo_avg_cap); + set wo_new_units = round(wo_add_cap_2050/wo_avg_cap); --- Control wind onshore development +-- Control wind onshore development SELECT scn.state, SUM(A.wo_add_cap_2050)/1000 wo_add_cap_2050, -- additional Capacity in MW @@ -1485,7 +1490,7 @@ scn.capacity_2050, -- Scenario capacity 2050 in MW (SUM(A.wo_add_cap_2050) +sum(A.wo_cap_2035))/1000 total -- in MW FROM ( -SELECT +SELECT scn.state, scn.nuts, scn.capacity as capacity_2050, @@ -1506,16 +1511,16 @@ Order by scn.state; -- set nuts UPDATE model_draft.ego_dp_supply_res_powerplant as upt set nuts = regions.nuts -from +from boundaries.bkg_vg250_2_lan_nuts_view as regions WHERE ST_Intersects(regions.geom, upt.geom) AND generation_subtype = 'wind_onshore' AND upt.nuts is Null; -- ego scenario log (version,io,schema_name,table_name,script_name,comment) -SELECT ego_scenario_log('v0.3.0','output','model_draft','ego_supply_res_wo_2050_germany_mun_temp','ego_db_res_rea_by_scenario.sql',' '); +SELECT ego_scenario_log('v0.3.0','output','model_draft','ego_supply_res_wo_2050_germany_mun_temp','ego_db_res_rea_by_scenario.sql',' '); --- Add new wind shore units +-- Add new wind shore units Insert into model_draft.ego_dp_supply_res_powerplant (preversion,id,start_up_date, electrical_capacity, generation_type, generation_subtype, voltage_level, source, comment,geom,scenario,flag) SELECT @@ -1527,7 +1532,7 @@ Insert into model_draft.ego_dp_supply_res_powerplant (preversion,id,start_up_dat 'wind_onshore'::text as generation_subtype, sub.voltage_level, 'open_ego 100'::text as source, - 'Method ProxToNow wind onshore'::text as comment, + 'Method ProxToNow wind onshore'::text as comment, sub.geom, 'eGo 100'::text as scenario, 'commissioning'::text as flag @@ -1536,9 +1541,9 @@ Insert into model_draft.ego_dp_supply_res_powerplant (preversion,id,start_up_dat A.rs, A.voltage_level, Case when A.wo_new_units = 0 Then A.wo_add_cap_2050 - else unnest(array_fill((A.wo_add_cap_2050/A.wo_new_units), Array[A.wo_new_units])) END as electrical_capacity , -- in kW - ST_Centroid(B.geom) as geom - FROM + else unnest(array_fill((A.wo_add_cap_2050/A.wo_new_units), Array[A.wo_new_units])) END as electrical_capacity , -- in kW + ST_Centroid(B.geom) as geom + FROM model_draft.ego_supply_res_wo_2050_germany_mun_temp A, boundaries.bkg_vg250_6_gem_rs_mview B Where A.rs = B.rs @@ -1552,7 +1557,7 @@ Insert into model_draft.ego_dp_supply_res_powerplant (preversion,id,start_up_dat -- set nuts UPDATE model_draft.ego_dp_supply_res_powerplant as upt set nuts = regions.nuts -from +from boundaries.bkg_vg250_2_lan_nuts_view as regions WHERE ST_Intersects(regions.geom, upt.geom) AND generation_subtype = 'wind_onshore' @@ -1576,7 +1581,7 @@ DROP TABLE IF EXISTS model_draft.ego_supply_res_wo_2035_germany_mun_temp CASCADE DROP TABLE IF EXISTS model_draft.ego_supply_res_hydro_2035_temp CASCADE; DROP TABLE IF EXISTS model_draft.ego_supply_res_pv_to_region_temp CASCADE; DROP TABLE IF EXISTS model_draft.ego_supply_res_pv_2035_germany_mun_temp CASCADE; -DROP TABLE IF EXISTS model_draft.ego_supply_res_wo_2050_germany_mun_temp CASCADE; +DROP TABLE IF EXISTS model_draft.ego_supply_res_wo_2050_germany_mun_temp CASCADE; DROP TABLE IF EXISTS model_draft.ego_supply_res_woff_2050_temp CASCADE; DROP TABLE IF EXISTS model_draft.ego_supply_res_biomass_2050_temp CASCADE; DROP TABLE IF EXISTS model_draft.ego_supply_res_pv_2050_germany_mun_temp CASCADE; diff --git a/preprocessing/sql_snippets/ego_nep_2015_scenario_capacities.sql b/preprocessing/sql_snippets/ego_nep_2015_scenario_capacities.sql index c801f783..d74311ac 100644 --- a/preprocessing/sql_snippets/ego_nep_2015_scenario_capacities.sql +++ b/preprocessing/sql_snippets/ego_nep_2015_scenario_capacities.sql @@ -1,5 +1,7 @@ /* -Setup for scenario capacities NEP 2015 +Setup for scenario capacities NEP 2015 + + __copyright__ = "Europa-Universität Flensburg, Centre for Sustainable Energy Systems" __license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" __url__ = "https://github.com/openego/data_processing/blob/master/LICENSE" From 128805d40f302f5a51176da04afc29c2ac58d67a Mon Sep 17 00:00:00 2001 From: wolfbunke Date: Wed, 7 Feb 2018 13:59:19 +0100 Subject: [PATCH 004/104] add file for scenario wip --- documentation/doc/scenario.rst | 46 ++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 documentation/doc/scenario.rst diff --git a/documentation/doc/scenario.rst b/documentation/doc/scenario.rst new file mode 100644 index 00000000..a6ede372 --- /dev/null +++ b/documentation/doc/scenario.rst @@ -0,0 +1,46 @@ +================== +Scenario framework +================== + + + +[NEP2015] + + +********** +Status Quo +********** + + + + +.. include:: https://raw.githubusercontent.com/znes/FlEnS/master/open_eGo/NEP_2035/README.rst + + + + + +.. csv-table:: List of variables and units + :file: https://raw.githubusercontent.com/openego/eDisGo/dev/doc/units_table.csv + :delim: ; + :header-rows: 1 + :widths: 5, 1, 1, 5 + :stub-columns: 0 + + +.. inclued:: + +https://raw.githubusercontent.com/znes/FlEnS/master/open_eGo/NEP_2035/README.rst + + + +References +---------- + +.. [NEP2015] Übertragungsnetzbetreiber Deutschland, Netzentwicklungsplan + Strom 2025, Version 2015, 1. Entwurf, 2015. + + + + +https://osf.io/bpf36/ From 92a31e0e22fbbc6195e1b98e43d243990ce859a1 Mon Sep 17 00:00:00 2001 From: wolfbunke Date: Wed, 7 Feb 2018 15:01:28 +0100 Subject: [PATCH 005/104] add files for rtd testing --- documentation/doc/conf.py | 372 +++++++++++++++++++++++++++++++++ documentation/doc/index.rst | 27 +++ documentation/doc/scenario.rst | 1 + 3 files changed, 400 insertions(+) create mode 100644 documentation/doc/conf.py create mode 100644 documentation/doc/index.rst diff --git a/documentation/doc/conf.py b/documentation/doc/conf.py new file mode 100644 index 00000000..0c6ef8c2 --- /dev/null +++ b/documentation/doc/conf.py @@ -0,0 +1,372 @@ +""" +This file is part of the open_eGo project open_eGo: https://openegoproject.wordpress.com + +eGo lives at github: https://github.com/openego/eGo/ +The documentation is available on RTD: https://openego.readthedocs.io""" + +__copyright__ = "Flensburg University of Applied Sciences, Europa-Universität Flensburg, Centre for Sustainable Energy Systems, DLR-Institute for Networked Energy Systems" +__license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" +__author__ = "wolf_bunke" + + +# -*- coding: utf-8 -*- +# +# eGo documentation build configuration file, created by +# sphinx-quickstart on Fri Sep 29 10:55:47 2017. +# +# This file is execfile()d with the current directory set to its +# containing dir. +# +# Note that not all possible configuration values are present in this +# autogenerated file. +# +# All configuration values have a default; values that are commented out +# serve to show the default. + +import sys +import os +import shlex +from unittest.mock import MagicMock +#from mock import Mock as MagicMock + +# If extensions (or modules to document with autodoc) are in another directory, +# add these directories to sys.path here. If the directory is relative to the +# documentation root, use os.path.abspath to make it absolute, like shown here. +#sys.path.insert(0, os.path.abspath('.')) +sys.path.insert(0, os.path.abspath('../')) + +# -- General configuration ------------------------------------------------ + +# If your documentation needs a minimal Sphinx version, state it here. +#needs_sphinx = '1.0' + +# Add any Sphinx extension module names here, as strings. They can be +# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom +# ones. +extensions = [ + 'sphinx.ext.autodoc', + 'sphinx.ext.intersphinx', + 'sphinx.ext.todo', + 'sphinx.ext.coverage', + 'sphinx.ext.imgmath' , + 'sphinx.ext.viewcode', +# 'sphinx.ext.autosummary', +# 'sphinxcontrib.napoleon',#enable Napoleon interpreter of docstrings Sphinx v<=1.2 + 'sphinx.ext.napoleon', #enable Napoleon Sphinx v>1.3 +# 'sphinx_paramlinks',#to have links to the types of the parameters of the functions + 'numpydoc', + 'sphinx.ext.extlinks' # enables external links with a key +] + +# Napoleon settings +napoleon_google_docstring = True +napoleon_numpy_docstring = True +napoleon_include_init_with_doc = False +napoleon_include_private_with_doc = False +napoleon_include_special_with_doc = False +napoleon_use_admonition_for_examples = False +napoleon_use_admonition_for_notes = False +napoleon_use_admonition_for_references = False +napoleon_use_ivar = False +napoleon_use_param = True +napoleon_use_rtype = True +napoleon_use_keyword = False + + +# Dictionary of external links +extlinks = {'pandas':('http://pandas.pydata.org/pandas-docs/stable/api.html#%s', + 'pandas.'), + 'sqlalchemy':('http://docs.sqlalchemy.org/en/latest/orm/session_basics.html%s', + 'SQLAlchemy session object'), + 'shapely':('http://toblerity.org/shapely/manual.html#%s', + 'Shapely object') +} + + + + + +# Add any paths that contain templates here, relative to this directory. +templates_path = ['_templates'] + +# The suffix(es) of source filenames. +# You can specify multiple suffix as a list of string: +# source_suffix = ['.rst', '.md'] +source_suffix = '.rst' + +# The encoding of source files. +#source_encoding = 'utf-8-sig' + +# The master toctree document. +master_doc = 'index' + +# General information about the project. +project = u'open_eGo Data Processing' +copyright = u'2015-2017, open_eGo-Team' +author = u'open_eGo-Team' + + +# The version info for the project you're documenting, acts as replacement for +# |version| and |release|, also used in various other places throughout the +# built documents. +# +# The short X.Y version. +version = 'v0.3.0' +# The full version, including alpha/beta/rc tags. +release = 'V0.3.0dev' + + +# The language for content autogenerated by Sphinx. Refer to documentation +# for a list of supported languages. +# +# This is also used if you do content translation via gettext catalogs. +# Usually you set "language" from the command line for these cases. +language = None + +# There are two options for replacing |today|: either, you set today to some +# non-false value, then it is used: +#today = '' +# Else, today_fmt is used as the format for a strftime call. +#today_fmt = '%B %d, %Y' + +# List of patterns, relative to source directory, that match files and +# directories to ignore when looking for source files. +exclude_patterns = ['_build', 'whatsnew'] + +# The reST default role (used for this markup: `text`) to use for all +# documents. +#default_role = None + +# If true, '()' will be appended to :func: etc. cross-reference text. +#add_function_parentheses = True + +# If true, the current module name will be prepended to all description +# unit titles (such as .. function::). +#add_module_names = True + +# If true, sectionauthor and moduleauthor directives will be shown in the +# output. They are ignored by default. +#show_authors = False + +# The name of the Pygments (syntax highlighting) style to use. +pygments_style = 'sphinx' + +# A list of ignored prefixes for module index sorting. +#modindex_common_prefix = [] + +# If true, keep warnings as "system message" paragraphs in the built documents. +#keep_warnings = False + +# If true, `todo` and `todoList` produce output, else they produce nothing. +todo_include_todos = True + + +# Fix import error of modules which depend on C modules (mock out the imports for these modules) +# see http://read-the-docs.readthedocs.io/en/latest/faq.html#i-get-import-errors-on-libraries-that-depend-on-c-modules + + +if 'READTHEDOCS' in os.environ: + class Mock(MagicMock): + @classmethod + def __getattr__(cls, name): + return MagicMock() + + MOCK_MODULES = ['ding0', 'ding0.results', 'shapely'] + sys.modules.update((mod_name, Mock()) for mod_name in MOCK_MODULES) + + MOCK_MODULES = ['libgeos', 'geos', 'libgeos_c', 'geos_c','libgeos_c.so.1', + 'libgeos_c.so', 'shapely', 'geoalchemy2', 'geoalchemy2.shape '] + + + +# -- Options for HTML output ---------------------------------------------- + +# The theme to use for HTML and HTML Help pages. See the documentation for +# a list of builtin themes. +# html_theme = 'alabaster' + +import sphinx_rtd_theme +html_theme_path = [sphinx_rtd_theme.get_html_theme_path()] +html_theme = 'sphinx_rtd_theme' + +# Theme options are theme-specific and customize the look and feel of a theme +# further. For a list of options available for each theme, see the +# documentation. +#html_theme_options = {} + +# Add any paths that contain custom themes here, relative to this directory. +#html_theme_path = [] + +# The name for this set of Sphinx documents. If None, it defaults to +# " v documentation". +#html_title = None + +# A shorter title for the navigation bar. Default is the same as html_title. +#html_short_title = None + +# The name of an image file (relative to this directory) to place at the top +# of the sidebar. +#html_logo = None + +# The name of an image file (within the static path) to use as favicon of the +# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32 +# pixels large. +#html_favicon = None + +# Add any paths that contain custom static files (such as style sheets) here, +# relative to this directory. They are copied after the builtin static files, +# so a file named "default.css" will overwrite the builtin "default.css". +# html_static_path = ['_static'] + +# Add any extra paths that contain custom files (such as robots.txt or +# .htaccess) here, relative to this directory. These files are copied +# directly to the root of the documentation. +#html_extra_path = [] + +# If not '', a 'Last updated on:' timestamp is inserted at every page bottom, +# using the given strftime format. +#html_last_updated_fmt = '%b %d, %Y' + +# If true, SmartyPants will be used to convert quotes and dashes to +# typographically correct entities. +#html_use_smartypants = True + +# Custom sidebar templates, maps document names to template names. +#html_sidebars = {} + +# Additional templates that should be rendered to pages, maps page names to +# template names. +#html_additional_pages = {} + +# If false, no module index is generated. +#html_domain_indices = True + +# If false, no index is generated. +#html_use_index = True + +# If true, the index is split into individual pages for each letter. +#html_split_index = False + +# If true, links to the reST sources are added to the pages. +#html_show_sourcelink = True + +# If true, "Created using Sphinx" is shown in the HTML footer. Default is True. +#html_show_sphinx = True + +# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True. +#html_show_copyright = True + +# If true, an OpenSearch description file will be output, and all pages will +# contain a tag referring to it. The value of this option must be the +# base URL from which the finished HTML is served. +#html_use_opensearch = '' + +# This is the file name suffix for HTML files (e.g. ".xhtml"). +#html_file_suffix = None + +# Language to be used for generating the HTML full-text search index. +# Sphinx supports the following languages: +# 'da', 'de', 'en', 'es', 'fi', 'fr', 'hu', 'it', 'ja' +# 'nl', 'no', 'pt', 'ro', 'ru', 'sv', 'tr' +#html_search_language = 'en' + +# A dictionary with options for the search language support, empty by default. +# Now only 'ja' uses this config value +#html_search_options = {'type': 'default'} + +# The name of a javascript file (relative to the configuration directory) that +# implements a search results scorer. If empty, the default will be used. +#html_search_scorer = 'scorer.js' + +# Output file base name for HTML help builder. +htmlhelp_basename = 'eGodoc' + +# -- Options for LaTeX output --------------------------------------------- + +latex_elements = { +# The paper size ('letterpaper' or 'a4paper'). +#'papersize': 'letterpaper', + +# The font size ('10pt', '11pt' or '12pt'). +#'pointsize': '10pt', + +# Additional stuff for the LaTeX preamble. +#'preamble': '', + +# Latex figure (float) alignment +#'figure_align': 'htbp', +} + +# Grouping the document tree into LaTeX files. List of tuples +# (source start file, target name, title, +# author, documentclass [howto, manual, or own class]). +latex_documents = [ + (master_doc, 'open_eGo_Data_Processing.tex', u'open_eGo Documentation', + u'open_eGo-Team', 'manual'), +] + +# The name of an image file (relative to this directory) to place at the top of +# the title page. +#latex_logo = None + +# For "manual" documents, if this is true, then toplevel headings are parts, +# not chapters. +#latex_use_parts = False + +# If true, show page references after internal links. +#latex_show_pagerefs = False + +# If true, show URL addresses after external links. +#latex_show_urls = False + +# Documents to append as an appendix to all manuals. +#latex_appendices = [] + +# If false, no module index is generated. +#latex_domain_indices = True + + +# -- Options for manual page output --------------------------------------- + +# One entry per manual page. List of tuples +# (source start file, name, description, authors, manual section). +man_pages = [ + (master_doc, 'data_processing', u'eGo Documentation', + [author], 1) +] + +# If true, show URL addresses after external links. +#man_show_urls = False + + +# -- Options for Texinfo output ------------------------------------------- + +# Grouping the document tree into Texinfo files. List of tuples +# (source start file, target name, title, author, +# dir menu entry, description, category) +texinfo_documents = [ + (master_doc, 'data_processing', u'eGo Documentation', + author, 'data_processing', 'Titel', + 'Miscellaneous'), +] + +# Documents to append as an appendix to all manuals. +#texinfo_appendices = [] + +# If false, no module index is generated. +#texinfo_domain_indices = True + +# How to display URL addresses: 'footnote', 'no', or 'inline'. +#texinfo_show_urls = 'footnote' + +# If true, do not generate a @detailmenu in the "Top" node's menu. +#texinfo_no_detailmenu = False + + +# Example configuration for intersphinx: refer to the Python standard library. +intersphinx_mapping = {'python': ('https://docs.python.org/3', None)} + +# Numbered figures +numfig = True + +autodoc_member_order = 'bysource' diff --git a/documentation/doc/index.rst b/documentation/doc/index.rst new file mode 100644 index 00000000..3040564c --- /dev/null +++ b/documentation/doc/index.rst @@ -0,0 +1,27 @@ +Welcome to Data processing documentation of open_eGo +==================================================== + + + + + +.. image:: https://openegoproject.files.wordpress.com/2017/02/open_ego_logo_breit.png?w=400 + :align: right + :scale: 100% + + +.. toctree:: + :maxdepth: 7 + :titlesonly: + + scenario + + + + +Indices and tables +================== + +* :ref:`genindex` +* :ref:`modindex` +* :ref:`search` diff --git a/documentation/doc/scenario.rst b/documentation/doc/scenario.rst index a6ede372..219d4b56 100644 --- a/documentation/doc/scenario.rst +++ b/documentation/doc/scenario.rst @@ -14,6 +14,7 @@ Status Quo + .. include:: https://raw.githubusercontent.com/znes/FlEnS/master/open_eGo/NEP_2035/README.rst From b18d62eff1388b0705e44b6688ded8a6d664c2cd Mon Sep 17 00:00:00 2001 From: wolfbunke Date: Wed, 7 Feb 2018 16:17:37 +0100 Subject: [PATCH 006/104] update scenario text --- documentation/doc/scenario.rst | 61 ++++++++++++++++++++++++++-------- 1 file changed, 47 insertions(+), 14 deletions(-) diff --git a/documentation/doc/scenario.rst b/documentation/doc/scenario.rst index 219d4b56..7845df4a 100644 --- a/documentation/doc/scenario.rst +++ b/documentation/doc/scenario.rst @@ -4,7 +4,29 @@ Scenario framework -[NEP2015] + +.. csv-table:: Overview of eGo Scenarios + :file: https://raw.githubusercontent.com/openego/.... + :delim: ; + :header-rows: 1 + :widths: 5, 1, 1, 5 + :stub-columns: 0 + + + +***************** +Global assumption +***************** + +Weater year +=========== + All scenarios using the reanalysis weater data of coastDat-2 Hindcast data model + from the Helmholtz-Zentrum Geesthacht (HZG). + + + + + ********** @@ -15,33 +37,44 @@ Status Quo +******** +NEP 2035 +******** + +[NEP2015] + + +Scenario definition of renpassG!S +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + .. include:: https://raw.githubusercontent.com/znes/FlEnS/master/open_eGo/NEP_2035/README.rst +******** +eGo 100 +******** -.. csv-table:: List of variables and units - :file: https://raw.githubusercontent.com/openego/eDisGo/dev/doc/units_table.csv - :delim: ; - :header-rows: 1 - :widths: 5, 1, 1, 5 - :stub-columns: 0 -.. inclued:: -https://raw.githubusercontent.com/znes/FlEnS/master/open_eGo/NEP_2035/README.rst +*********** +Methodology +*********** + +********** References ----------- +********** .. [NEP2015] Übertragungsnetzbetreiber Deutschland, Netzentwicklungsplan - Strom 2025, Version 2015, 1. Entwurf, 2015. - - + Strom 2025, Version 2015, 1. Entwurf, 2015. https://www.netzentwicklungsplan.de/sites/default/files/paragraphs-files/NEP_2025_1_Entwurf_Teil1_0_0.pdf +.. [coastdat-2] coastDat-2 Hindcast model http://www.coastdat.de/data/index.php.en -https://osf.io/bpf36/ +.. [FlEnS] Wolf-Dieter Bunke Martin Söthe Marion Christ Cord Kaldemeyer + *(Fl)ensburg (En)ergy (S)cenarios - open_eGo Scenarios for 2014/2035/2050*. + https://osf.io/bpf36/ From 21024baf026ba3fa334268a3c2e7b5ba637ac4e4 Mon Sep 17 00:00:00 2001 From: wolfbunke Date: Wed, 7 Feb 2018 16:18:20 +0100 Subject: [PATCH 007/104] add file --- documentation/doc/renewables.rst | 50 ++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 documentation/doc/renewables.rst diff --git a/documentation/doc/renewables.rst b/documentation/doc/renewables.rst new file mode 100644 index 00000000..3f187530 --- /dev/null +++ b/documentation/doc/renewables.rst @@ -0,0 +1,50 @@ +======================================== +Methodologies of Renewable Energy Plants +======================================== + +[Intro] + +******************** +Renewable allocation +******************** + +The Methodology of the expansion and allocation of renewable energy plants is +done in two parts. The first part is the developent and expansion of renewable +power palnts by a scenario input of installed capacities. The allocation based on +the spacial level of municipalities. The second part allocated the surplus of +power plants power plants on a high spacial resultion by white areas and other +Polygon objects (see XXX). + + + +Expansion of power plants by technology +======================================= + + +Wind onshore +------------ + Text + +Wind offshore +------------- + text + +Solar +----- + text + +Hydro Power +----------- + run of river and reservoir + + +Pumped Storage +-------------- + +Biomass +------- + text + +geothermal +---------- + text From 59401ec78d2cb4702b89aa438163db0736b55311 Mon Sep 17 00:00:00 2001 From: Ludee Date: Wed, 7 Feb 2018 16:29:08 +0100 Subject: [PATCH 008/104] move bpmn to documentation folder --- .../bpmn}/BPMN_Netzinsel_Gemeindegrenzen.graphml | 0 {bpmn => documentation/bpmn}/BPMN_Palette_oep.graphml | 0 {bpmn => documentation/bpmn}/archiv/eGo_osm_urban_landuse.graphml | 0 .../bpmn}/archiv/eGo_zensus_population_per_ha.graphml | 0 .../bpmn}/archiv/ego_deu_loads_per_grid_district.graphml | 0 {bpmn => documentation/bpmn}/archiv/ego_rea.graphml | 0 {bpmn => documentation/bpmn}/eGo_bpmn_dataprocessing.graphml | 0 .../bpmn}/eGo_bpmn_dataprocessing_sections.graphml | 0 {bpmn => documentation/bpmn}/eGo_bpmn_legend_key.graphml | 0 {bpmn => documentation/bpmn}/eGo_bpmn_palette.graphml | 0 {bpmn => documentation/bpmn}/eGo_bpmn_pp_mviews.graphml | 0 .../eGo_bpmn_preprocessing_conv_development_by_scenario.graphml | 0 .../eGo_bpmn_preprocessing_res_development_by_scenario.graphml | 0 {bpmn => documentation/bpmn}/ego_preprocessing_bpmn.graphml | 0 14 files changed, 0 insertions(+), 0 deletions(-) rename {bpmn => documentation/bpmn}/BPMN_Netzinsel_Gemeindegrenzen.graphml (100%) rename {bpmn => documentation/bpmn}/BPMN_Palette_oep.graphml (100%) rename {bpmn => documentation/bpmn}/archiv/eGo_osm_urban_landuse.graphml (100%) rename {bpmn => documentation/bpmn}/archiv/eGo_zensus_population_per_ha.graphml (100%) rename {bpmn => documentation/bpmn}/archiv/ego_deu_loads_per_grid_district.graphml (100%) rename {bpmn => documentation/bpmn}/archiv/ego_rea.graphml (100%) rename {bpmn => documentation/bpmn}/eGo_bpmn_dataprocessing.graphml (100%) rename {bpmn => documentation/bpmn}/eGo_bpmn_dataprocessing_sections.graphml (100%) rename {bpmn => documentation/bpmn}/eGo_bpmn_legend_key.graphml (100%) rename {bpmn => documentation/bpmn}/eGo_bpmn_palette.graphml (100%) rename {bpmn => documentation/bpmn}/eGo_bpmn_pp_mviews.graphml (100%) rename {bpmn => documentation/bpmn}/eGo_bpmn_preprocessing_conv_development_by_scenario.graphml (100%) rename {bpmn => documentation/bpmn}/eGo_bpmn_preprocessing_res_development_by_scenario.graphml (100%) rename {bpmn => documentation/bpmn}/ego_preprocessing_bpmn.graphml (100%) diff --git a/bpmn/BPMN_Netzinsel_Gemeindegrenzen.graphml b/documentation/bpmn/BPMN_Netzinsel_Gemeindegrenzen.graphml similarity index 100% rename from bpmn/BPMN_Netzinsel_Gemeindegrenzen.graphml rename to documentation/bpmn/BPMN_Netzinsel_Gemeindegrenzen.graphml diff --git a/bpmn/BPMN_Palette_oep.graphml b/documentation/bpmn/BPMN_Palette_oep.graphml similarity index 100% rename from bpmn/BPMN_Palette_oep.graphml rename to documentation/bpmn/BPMN_Palette_oep.graphml diff --git a/bpmn/archiv/eGo_osm_urban_landuse.graphml b/documentation/bpmn/archiv/eGo_osm_urban_landuse.graphml similarity index 100% rename from bpmn/archiv/eGo_osm_urban_landuse.graphml rename to documentation/bpmn/archiv/eGo_osm_urban_landuse.graphml diff --git a/bpmn/archiv/eGo_zensus_population_per_ha.graphml b/documentation/bpmn/archiv/eGo_zensus_population_per_ha.graphml similarity index 100% rename from bpmn/archiv/eGo_zensus_population_per_ha.graphml rename to documentation/bpmn/archiv/eGo_zensus_population_per_ha.graphml diff --git a/bpmn/archiv/ego_deu_loads_per_grid_district.graphml b/documentation/bpmn/archiv/ego_deu_loads_per_grid_district.graphml similarity index 100% rename from bpmn/archiv/ego_deu_loads_per_grid_district.graphml rename to documentation/bpmn/archiv/ego_deu_loads_per_grid_district.graphml diff --git a/bpmn/archiv/ego_rea.graphml b/documentation/bpmn/archiv/ego_rea.graphml similarity index 100% rename from bpmn/archiv/ego_rea.graphml rename to documentation/bpmn/archiv/ego_rea.graphml diff --git a/bpmn/eGo_bpmn_dataprocessing.graphml b/documentation/bpmn/eGo_bpmn_dataprocessing.graphml similarity index 100% rename from bpmn/eGo_bpmn_dataprocessing.graphml rename to documentation/bpmn/eGo_bpmn_dataprocessing.graphml diff --git a/bpmn/eGo_bpmn_dataprocessing_sections.graphml b/documentation/bpmn/eGo_bpmn_dataprocessing_sections.graphml similarity index 100% rename from bpmn/eGo_bpmn_dataprocessing_sections.graphml rename to documentation/bpmn/eGo_bpmn_dataprocessing_sections.graphml diff --git a/bpmn/eGo_bpmn_legend_key.graphml b/documentation/bpmn/eGo_bpmn_legend_key.graphml similarity index 100% rename from bpmn/eGo_bpmn_legend_key.graphml rename to documentation/bpmn/eGo_bpmn_legend_key.graphml diff --git a/bpmn/eGo_bpmn_palette.graphml b/documentation/bpmn/eGo_bpmn_palette.graphml similarity index 100% rename from bpmn/eGo_bpmn_palette.graphml rename to documentation/bpmn/eGo_bpmn_palette.graphml diff --git a/bpmn/eGo_bpmn_pp_mviews.graphml b/documentation/bpmn/eGo_bpmn_pp_mviews.graphml similarity index 100% rename from bpmn/eGo_bpmn_pp_mviews.graphml rename to documentation/bpmn/eGo_bpmn_pp_mviews.graphml diff --git a/bpmn/eGo_bpmn_preprocessing_conv_development_by_scenario.graphml b/documentation/bpmn/eGo_bpmn_preprocessing_conv_development_by_scenario.graphml similarity index 100% rename from bpmn/eGo_bpmn_preprocessing_conv_development_by_scenario.graphml rename to documentation/bpmn/eGo_bpmn_preprocessing_conv_development_by_scenario.graphml diff --git a/bpmn/eGo_bpmn_preprocessing_res_development_by_scenario.graphml b/documentation/bpmn/eGo_bpmn_preprocessing_res_development_by_scenario.graphml similarity index 100% rename from bpmn/eGo_bpmn_preprocessing_res_development_by_scenario.graphml rename to documentation/bpmn/eGo_bpmn_preprocessing_res_development_by_scenario.graphml diff --git a/bpmn/ego_preprocessing_bpmn.graphml b/documentation/bpmn/ego_preprocessing_bpmn.graphml similarity index 100% rename from bpmn/ego_preprocessing_bpmn.graphml rename to documentation/bpmn/ego_preprocessing_bpmn.graphml From b16e43c18c4bf600da1e1efbf58c6978c0ce10f9 Mon Sep 17 00:00:00 2001 From: Ludee Date: Wed, 7 Feb 2018 16:35:47 +0100 Subject: [PATCH 009/104] renamed bpmn palette --- .../bpmn_palette.graphml} | 96 +- documentation/bpmn/eGo_bpmn_palette.graphml | 2106 ----------------- 2 files changed, 48 insertions(+), 2154 deletions(-) rename documentation/bpmn/{BPMN_Palette_oep.graphml => bpmn_key/bpmn_palette.graphml} (99%) delete mode 100644 documentation/bpmn/eGo_bpmn_palette.graphml diff --git a/documentation/bpmn/BPMN_Palette_oep.graphml b/documentation/bpmn/bpmn_key/bpmn_palette.graphml similarity index 99% rename from documentation/bpmn/BPMN_Palette_oep.graphml rename to documentation/bpmn/bpmn_key/bpmn_palette.graphml index 28cf1bcd..4db97842 100644 --- a/documentation/bpmn/BPMN_Palette_oep.graphml +++ b/documentation/bpmn/bpmn_key/bpmn_palette.graphml @@ -1,6 +1,6 @@ - + @@ -691,8 +691,8 @@ - + @@ -717,8 +717,8 @@ - + @@ -743,8 +743,8 @@ - + @@ -769,8 +769,8 @@ - + @@ -795,8 +795,8 @@ - + @@ -821,8 +821,8 @@ - + @@ -847,8 +847,8 @@ - + @@ -873,8 +873,8 @@ - + @@ -899,8 +899,8 @@ - + @@ -925,8 +925,8 @@ - + @@ -951,8 +951,8 @@ - + @@ -977,8 +977,8 @@ - + @@ -1003,8 +1003,8 @@ - + @@ -1029,8 +1029,8 @@ - + @@ -1055,8 +1055,8 @@ - + @@ -1082,8 +1082,8 @@ - + @@ -1108,10 +1108,10 @@ + - @@ -1134,10 +1134,10 @@ + - @@ -1160,10 +1160,10 @@ + - @@ -1390,10 +1390,10 @@ + - @@ -1416,10 +1416,10 @@ + - @@ -1442,10 +1442,10 @@ + - @@ -1468,10 +1468,10 @@ + - @@ -1494,10 +1494,10 @@ + - @@ -1513,22 +1513,22 @@ Pool + + + - - - - - + + @@ -1566,10 +1566,10 @@ xls + - @@ -1585,10 +1585,10 @@ xls + - @@ -1624,10 +1624,10 @@ - + - + @@ -1650,10 +1650,10 @@ + - @@ -1669,10 +1669,10 @@ pdf + - @@ -1688,10 +1688,10 @@ xls + - @@ -1707,17 +1707,17 @@ + - + - @@ -1729,8 +1729,8 @@ + - @@ -1742,8 +1742,8 @@ + - @@ -1755,8 +1755,8 @@ + - @@ -1768,8 +1768,8 @@ + - @@ -1781,8 +1781,8 @@ + - @@ -1794,8 +1794,8 @@ + - @@ -1807,8 +1807,8 @@ + - @@ -1840,8 +1840,8 @@ + - @@ -1853,8 +1853,8 @@ + - diff --git a/documentation/bpmn/eGo_bpmn_palette.graphml b/documentation/bpmn/eGo_bpmn_palette.graphml deleted file mode 100644 index bb7bcf4d..00000000 --- a/documentation/bpmn/eGo_bpmn_palette.graphml +++ /dev/null @@ -1,2106 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - Pool - Lane 1 - - - - - - - Lane 2 - - - - - - - Lane 3 - - - - - - - Column 1 - - - - - - - Column 2 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Pool - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Pool - Lane 1 - - - - - - - Lane 2 - - - - - - - Lane 3 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Pool - Column 1 - - - - - - - Column 2 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - name - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - II. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - From d2562690ec4175d4e1b4a053d38644cf6b4c3cb3 Mon Sep 17 00:00:00 2001 From: Ludee Date: Wed, 7 Feb 2018 16:36:57 +0100 Subject: [PATCH 010/104] rename bpmn key --- .../{eGo_bpmn_legend_key.graphml => bpmn_key/bpmn_key.graphml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename documentation/bpmn/{eGo_bpmn_legend_key.graphml => bpmn_key/bpmn_key.graphml} (100%) diff --git a/documentation/bpmn/eGo_bpmn_legend_key.graphml b/documentation/bpmn/bpmn_key/bpmn_key.graphml similarity index 100% rename from documentation/bpmn/eGo_bpmn_legend_key.graphml rename to documentation/bpmn/bpmn_key/bpmn_key.graphml From 7a8666e7357bfea81bd613703a44d2f2d075db71 Mon Sep 17 00:00:00 2001 From: Ludee Date: Wed, 7 Feb 2018 16:45:30 +0100 Subject: [PATCH 011/104] move old bpmn to archiv --- .../bpmn/{ => archiv}/BPMN_Netzinsel_Gemeindegrenzen.graphml | 0 documentation/bpmn/{ => archiv}/eGo_bpmn_pp_mviews.graphml | 0 .../eGo_bpmn_preprocessing_conv_development_by_scenario.graphml | 0 .../eGo_bpmn_preprocessing_res_development_by_scenario.graphml | 0 documentation/bpmn/{ => archiv}/ego_preprocessing_bpmn.graphml | 0 5 files changed, 0 insertions(+), 0 deletions(-) rename documentation/bpmn/{ => archiv}/BPMN_Netzinsel_Gemeindegrenzen.graphml (100%) rename documentation/bpmn/{ => archiv}/eGo_bpmn_pp_mviews.graphml (100%) rename documentation/bpmn/{ => archiv}/eGo_bpmn_preprocessing_conv_development_by_scenario.graphml (100%) rename documentation/bpmn/{ => archiv}/eGo_bpmn_preprocessing_res_development_by_scenario.graphml (100%) rename documentation/bpmn/{ => archiv}/ego_preprocessing_bpmn.graphml (100%) diff --git a/documentation/bpmn/BPMN_Netzinsel_Gemeindegrenzen.graphml b/documentation/bpmn/archiv/BPMN_Netzinsel_Gemeindegrenzen.graphml similarity index 100% rename from documentation/bpmn/BPMN_Netzinsel_Gemeindegrenzen.graphml rename to documentation/bpmn/archiv/BPMN_Netzinsel_Gemeindegrenzen.graphml diff --git a/documentation/bpmn/eGo_bpmn_pp_mviews.graphml b/documentation/bpmn/archiv/eGo_bpmn_pp_mviews.graphml similarity index 100% rename from documentation/bpmn/eGo_bpmn_pp_mviews.graphml rename to documentation/bpmn/archiv/eGo_bpmn_pp_mviews.graphml diff --git a/documentation/bpmn/eGo_bpmn_preprocessing_conv_development_by_scenario.graphml b/documentation/bpmn/archiv/eGo_bpmn_preprocessing_conv_development_by_scenario.graphml similarity index 100% rename from documentation/bpmn/eGo_bpmn_preprocessing_conv_development_by_scenario.graphml rename to documentation/bpmn/archiv/eGo_bpmn_preprocessing_conv_development_by_scenario.graphml diff --git a/documentation/bpmn/eGo_bpmn_preprocessing_res_development_by_scenario.graphml b/documentation/bpmn/archiv/eGo_bpmn_preprocessing_res_development_by_scenario.graphml similarity index 100% rename from documentation/bpmn/eGo_bpmn_preprocessing_res_development_by_scenario.graphml rename to documentation/bpmn/archiv/eGo_bpmn_preprocessing_res_development_by_scenario.graphml diff --git a/documentation/bpmn/ego_preprocessing_bpmn.graphml b/documentation/bpmn/archiv/ego_preprocessing_bpmn.graphml similarity index 100% rename from documentation/bpmn/ego_preprocessing_bpmn.graphml rename to documentation/bpmn/archiv/ego_preprocessing_bpmn.graphml From b2c48a5434660a3c4533f6f708489a81bda2ebb5 Mon Sep 17 00:00:00 2001 From: Ludee Date: Wed, 7 Feb 2018 16:46:45 +0100 Subject: [PATCH 012/104] rename dp bpmn --- .../bpmn/{eGo_bpmn_dataprocessing.graphml => ego_dp_bpmn.graphml} | 0 ...taprocessing_sections.graphml => ego_dp_bpmn_sections.graphml} | 0 2 files changed, 0 insertions(+), 0 deletions(-) rename documentation/bpmn/{eGo_bpmn_dataprocessing.graphml => ego_dp_bpmn.graphml} (100%) rename documentation/bpmn/{eGo_bpmn_dataprocessing_sections.graphml => ego_dp_bpmn_sections.graphml} (100%) diff --git a/documentation/bpmn/eGo_bpmn_dataprocessing.graphml b/documentation/bpmn/ego_dp_bpmn.graphml similarity index 100% rename from documentation/bpmn/eGo_bpmn_dataprocessing.graphml rename to documentation/bpmn/ego_dp_bpmn.graphml diff --git a/documentation/bpmn/eGo_bpmn_dataprocessing_sections.graphml b/documentation/bpmn/ego_dp_bpmn_sections.graphml similarity index 100% rename from documentation/bpmn/eGo_bpmn_dataprocessing_sections.graphml rename to documentation/bpmn/ego_dp_bpmn_sections.graphml From 66fcd45f9278404c1721123047f9826df0d5bb32 Mon Sep 17 00:00:00 2001 From: Ludee Date: Wed, 7 Feb 2018 17:23:10 +0100 Subject: [PATCH 013/104] update documentation #92 --- dataprocessing/eGo_data_processing.py | 21 ++++----- .../ego_dp_structure_input_verification.sql | 44 ++++++++++++++----- .../bpmn/ego_dp_bpmn_sections.graphml | 8 ++-- 3 files changed, 46 insertions(+), 27 deletions(-) diff --git a/dataprocessing/eGo_data_processing.py b/dataprocessing/eGo_data_processing.py index 610bf553..a022a344 100644 --- a/dataprocessing/eGo_data_processing.py +++ b/dataprocessing/eGo_data_processing.py @@ -40,18 +40,15 @@ def data_processing(): 'python_scripts')) snippets = [ - ## VACUUM FULL -# 'ego_dp_vacuum_full.sql', - - ## INPUT DATA CHECK eGoPP - 'ego_dp_structure_input_verification.sql', # Check input tables and versions from eGoPP - - ## SUBSTATION - 'ego_dp_substation_hvmv.sql', # Abstract HVMV Substations of the high voltage level from OSM - 'ego_dp_substation_ehv.sql', # Abstract EHV Substations of the extra high voltage level from OSM - 'ego_dp_substation_otg.sql', # Assign osmTGmod-id to HVMV and EHV substations - 'ego_dp_substation_hvmv_voronoi.sql', # HVMV Voronoi cells based on HVMV substations - 'ego_dp_substation_ehv_voronoi.sql', # EHV Voronoi cells based on EHV substations + ## INPUT DATA CHECK (eGoPP) + 'ego_dp_structure_input_verification.sql', # Input verification (eGoPP) + + ## SUBSTATION + 'ego_dp_substation_hvmv.sql', # Abstract HVMV Substations of the high voltage level from OSM + 'ego_dp_substation_ehv.sql', # Abstract EHV Substations of the extra high voltage level from OSM + 'ego_dp_substation_otg.sql', # Assign osmTGmod-id to HVMV and EHV substations + 'ego_dp_substation_hvmv_voronoi.sql', # HVMV Voronoi cells based on HVMV substations + 'ego_dp_substation_ehv_voronoi.sql', # EHV Voronoi cells based on EHV substations ## GRIDDISTRICT 'ego_dp_mv_griddistrict.sql', # MV Griddistricts from municipalities and Voronoi cells diff --git a/dataprocessing/sql_snippets/ego_dp_structure_input_verification.sql b/dataprocessing/sql_snippets/ego_dp_structure_input_verification.sql index fdd8a0d8..c6222ab3 100644 --- a/dataprocessing/sql_snippets/ego_dp_structure_input_verification.sql +++ b/dataprocessing/sql_snippets/ego_dp_structure_input_verification.sql @@ -1,13 +1,36 @@ /* -Check the necessary input tables. +Input verification (eGoPP) +Check the necessary input tables from eGo PreProcessing. Return version of input tables. +Input +----- +boundaries.bkg_vg250_1_sta +boundaries.bkg_vg250_2_lan +boundaries.bkg_vg250_4_krs +boundaries.bkg_vg250_6_gem +openstreetmap.osm_deu_polygon +openstreetmap.osm_deu_ways +openstreetmap.osm_deu_nodes +openstreetmap.osm_deu_line +society.destatis_zensus_population_per_ha +economy.destatis_gva_per_district +demand.ego_demand_federalstate +supply.vernetzen_wind_potential_area +model_draft.ego_supply_res_powerplant_sq_mview +model_draft.ego_supply_conv_powerplant_sq_mview + +Output +------ +model_draft.ego_scenario_input + __copyright__ = "Reiner Lemoine Institut" __license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" __url__ = "https://github.com/openego/data_processing/blob/master/LICENSE" __author__ = "Ludee" */ + -- ego scenario log (version,io,schema_name,table_name,script_name,comment) SELECT ego_scenario_log('v0.3.0','check','boundaries','bkg_vg250_1_sta','ego_dp_structure_input_verification.sql','preprocessing verification'); SELECT ego_scenario_log('v0.3.0','check','boundaries','bkg_vg250_2_lan','ego_dp_structure_input_verification.sql','preprocessing verification'); @@ -28,13 +51,13 @@ SELECT ego_scenario_log('v0.3.0','check','model_draft','ego_supply_conv_powerpla -- input tables DROP TABLE IF EXISTS model_draft.ego_scenario_input CASCADE; CREATE TABLE model_draft.ego_scenario_input ( - id serial, - version text, - oid oid, - database varchar, - table_schema varchar, - table_name varchar, - path text, + id serial, + version text, + oid oid, + database varchar, + table_schema varchar, + table_name varchar, + path text, metadata_title text, metadata_reference_date text, metadata text, @@ -46,7 +69,7 @@ ALTER TABLE model_draft.ego_scenario_input OWNER TO oeuser; -- metadata template COMMENT ON TABLE model_draft.ego_scenario_input IS '{ "title": "eGoDP input data verification", - "description": "Checks input tables and gathers meta infos", + "description": "Check input tables and gathers meta infos", "language": [ "eng" ], "spatial": {"location": "none", @@ -58,8 +81,7 @@ COMMENT ON TABLE model_draft.ego_scenario_input IS '{ "end": "none", "resolution": "none"}, "sources": [ - {"name": "eGo dataprocessing", "description": "", "url": "https://github.com/openego/data_processing", "license": "GNU Affero General Public License Version 3 (AGPL-3.0)", "copyright": "© Reiner Lemoine Institut"}, - {"name": "", "description": "", "url": "", "license": "", "copyright": ""} ], + {"name": "none", "description": "", "url": "", "license": "", "copyright": ""} ], "license": {"id": "ODbL-1.0", "name": "Open Data Commons Open Database License 1.0", diff --git a/documentation/bpmn/ego_dp_bpmn_sections.graphml b/documentation/bpmn/ego_dp_bpmn_sections.graphml index f935449a..cd8fa677 100644 --- a/documentation/bpmn/ego_dp_bpmn_sections.graphml +++ b/documentation/bpmn/ego_dp_bpmn_sections.graphml @@ -1,6 +1,6 @@ - + @@ -20,7 +20,7 @@ - eGo dataprocessing + eGo DataProcessing @@ -326,10 +326,10 @@ grid.ego_ehv_substation + - @@ -349,10 +349,10 @@ grid.ego_ehv_substation + - From 7e19cc5352177ec4e3eb39b9055f2b9e80383ba0 Mon Sep 17 00:00:00 2001 From: Ludee Date: Wed, 7 Feb 2018 17:50:24 +0100 Subject: [PATCH 014/104] improve documentation #92 --- .../ego_dp_structure_input_verification.sql | 21 ------------------- .../sql_snippets/ego_dp_substation_ehv.sql | 10 +++++---- .../ego_dp_substation_ehv_voronoi.sql | 15 +++++++------ .../sql_snippets/ego_dp_substation_hvmv.sql | 11 ++++++---- .../ego_dp_substation_hvmv_voronoi.sql | 15 ++++++------- .../sql_snippets/ego_dp_substation_otg.sql | 12 ++++++----- .../bpmn/ego_dp_bpmn_sections.graphml | 6 +++--- 7 files changed, 40 insertions(+), 50 deletions(-) diff --git a/dataprocessing/sql_snippets/ego_dp_structure_input_verification.sql b/dataprocessing/sql_snippets/ego_dp_structure_input_verification.sql index c6222ab3..ae78a3ab 100644 --- a/dataprocessing/sql_snippets/ego_dp_structure_input_verification.sql +++ b/dataprocessing/sql_snippets/ego_dp_structure_input_verification.sql @@ -3,27 +3,6 @@ Input verification (eGoPP) Check the necessary input tables from eGo PreProcessing. Return version of input tables. -Input ------ -boundaries.bkg_vg250_1_sta -boundaries.bkg_vg250_2_lan -boundaries.bkg_vg250_4_krs -boundaries.bkg_vg250_6_gem -openstreetmap.osm_deu_polygon -openstreetmap.osm_deu_ways -openstreetmap.osm_deu_nodes -openstreetmap.osm_deu_line -society.destatis_zensus_population_per_ha -economy.destatis_gva_per_district -demand.ego_demand_federalstate -supply.vernetzen_wind_potential_area -model_draft.ego_supply_res_powerplant_sq_mview -model_draft.ego_supply_conv_powerplant_sq_mview - -Output ------- -model_draft.ego_scenario_input - __copyright__ = "Reiner Lemoine Institut" __license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" __url__ = "https://github.com/openego/data_processing/blob/master/LICENSE" diff --git a/dataprocessing/sql_snippets/ego_dp_substation_ehv.sql b/dataprocessing/sql_snippets/ego_dp_substation_ehv.sql index ee7be4d0..91634516 100644 --- a/dataprocessing/sql_snippets/ego_dp_substation_ehv.sql +++ b/dataprocessing/sql_snippets/ego_dp_substation_ehv.sql @@ -1,10 +1,12 @@ /* +EHV Substation +Abstract EHV Substations of the extra high voltage level from OSM. This script abstracts substations of the extra high voltage level from openstreetmap data. -__copyright__ = "DLR Institute for Networked Energy Systems" -__license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" -__url__ = "https://github.com/openego/data_processing/blob/master/LICENSE" -__author__ = "lukasol, C. Matke, Ludee" +__copyright__ = "DLR Institute for Networked Energy Systems" +__license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" +__url__ = "https://github.com/openego/data_processing/blob/master/LICENSE" +__author__ = "lukasol, C. Matke, Ludee" */ diff --git a/dataprocessing/sql_snippets/ego_dp_substation_ehv_voronoi.sql b/dataprocessing/sql_snippets/ego_dp_substation_ehv_voronoi.sql index c7c45f30..5824765d 100644 --- a/dataprocessing/sql_snippets/ego_dp_substation_ehv_voronoi.sql +++ b/dataprocessing/sql_snippets/ego_dp_substation_ehv_voronoi.sql @@ -1,12 +1,15 @@ /* -Executes a voronoi algorithmn based on EHV substations. - -__copyright__ = "Flensburg University of Applied Sciences, Centre for Sustainable Energy Systems" -__license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" -__url__ = "https://github.com/openego/data_processing/blob/master/LICENSE" -__author__ = "IlkaCu, Ludee" +EHV Substation Voronoi +Voronoi polygons with eucldean distance on EHV Substation. +Manhattan distance would be better but not available in sql. + +__copyright__ = "Flensburg University of Applied Sciences, Centre for Sustainable Energy Systems" +__license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" +__url__ = "https://github.com/openego/data_processing/blob/master/LICENSE" +__author__ = "IlkaCu, Ludee" */ + ---------------------------------------------------------- -- VORONOI with 220 and 380 kV substations ---------------------------------------------------------- diff --git a/dataprocessing/sql_snippets/ego_dp_substation_hvmv.sql b/dataprocessing/sql_snippets/ego_dp_substation_hvmv.sql index f16202f8..111d7c49 100644 --- a/dataprocessing/sql_snippets/ego_dp_substation_hvmv.sql +++ b/dataprocessing/sql_snippets/ego_dp_substation_hvmv.sql @@ -1,13 +1,16 @@ /* +HVMV Substation +Abstract HVMV Substations of the high voltage level from OSM. This script abstracts substations of the high voltage level from openstreetmap data. All substations that are relevant transition points between the transmission and distribution grid are identified, irrelevant ones are disregarded. -__copyright__ = "DLR Institute for Networked Energy Systems" -__license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" -__url__ = "https://github.com/openego/data_processing/blob/master/LICENSE" -__author__ = "lukasol, C. Matke, Ludee" +__copyright__ = "DLR Institute for Networked Energy Systems" +__license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" +__url__ = "https://github.com/openego/data_processing/blob/master/LICENSE" +__author__ = "lukasol, C. Matke, Ludee" */ + -- hvmv substations DROP TABLE IF EXISTS model_draft.ego_grid_hvmv_substation CASCADE; CREATE TABLE model_draft.ego_grid_hvmv_substation ( diff --git a/dataprocessing/sql_snippets/ego_dp_substation_hvmv_voronoi.sql b/dataprocessing/sql_snippets/ego_dp_substation_hvmv_voronoi.sql index 93e1c02c..92455482 100644 --- a/dataprocessing/sql_snippets/ego_dp_substation_hvmv_voronoi.sql +++ b/dataprocessing/sql_snippets/ego_dp_substation_hvmv_voronoi.sql @@ -1,11 +1,12 @@ /* -hvmv substation voronoi -voronoi polygons with eucldean distance / manhattan distance would be better but not available in sql - -__copyright__ = "Reiner Lemoine Institut" -__license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" -__url__ = "https://github.com/openego/data_processing/blob/master/LICENSE" -__author__ = "Ludee" +HVMV Substation Voronoi +Voronoi polygons with eucldean distance on HVMV Substation. +Manhattan distance would be better but not available in sql. + +__copyright__ = "Reiner Lemoine Institut" +__license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" +__url__ = "https://github.com/openego/data_processing/blob/master/LICENSE" +__author__ = "Ludee" */ -- ego scenario log (version,io,schema_name,table_name,script_name,comment) diff --git a/dataprocessing/sql_snippets/ego_dp_substation_otg.sql b/dataprocessing/sql_snippets/ego_dp_substation_otg.sql index fb9d7c73..d2d789f3 100644 --- a/dataprocessing/sql_snippets/ego_dp_substation_otg.sql +++ b/dataprocessing/sql_snippets/ego_dp_substation_otg.sql @@ -1,12 +1,14 @@ /* -Script to assign osmTGmod-id to substation +Substation OTG-ID +Script to assign osmTGmod-id (OTG) to substation. -__copyright__ = "DLR Institute for Networked Energy Systems" -__license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" -__url__ = "https://github.com/openego/data_processing/blob/master/LICENSE" -__author__ = "lukasol, C. Matke" +__copyright__ = "DLR Institute for Networked Energy Systems" +__license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" +__url__ = "https://github.com/openego/data_processing/blob/master/LICENSE" +__author__ = "lukasol, C. Matke" */ + -- ego scenario log (version,io,schema_name,table_name,script_name,comment) SELECT ego_scenario_log('v0.3.0','input','grid','otg_ehvhv_bus_data','ego_dp_substation_otg.sql',' '); SELECT ego_scenario_log('v0.3.0','input','model_draft','ego_grid_hvmv_substation','ego_dp_substation_otg.sql',' '); diff --git a/documentation/bpmn/ego_dp_bpmn_sections.graphml b/documentation/bpmn/ego_dp_bpmn_sections.graphml index cd8fa677..f0305d78 100644 --- a/documentation/bpmn/ego_dp_bpmn_sections.graphml +++ b/documentation/bpmn/ego_dp_bpmn_sections.graphml @@ -101,8 +101,8 @@ - STRUCTURE -& SETUP + INPUT DATA +CHECK @@ -317,7 +317,7 @@ grid.ego_ehv_substation - model_draft.ego_scenario_log + model_draft.ego_scenario_input From debadfed255b8fb0ccc6c312e3935701ca0ec1a2 Mon Sep 17 00:00:00 2001 From: Ludee Date: Wed, 7 Feb 2018 18:10:14 +0100 Subject: [PATCH 015/104] create bpmn section substation #92 --- .../ego_dp_structure_input_verification.sql | 2 + .../ego_dp_bpmn_section_substation.graphml | 1470 +++++++++++++++++ 2 files changed, 1472 insertions(+) create mode 100644 documentation/bpmn/ego_dp_bpmn_section_substation.graphml diff --git a/dataprocessing/sql_snippets/ego_dp_structure_input_verification.sql b/dataprocessing/sql_snippets/ego_dp_structure_input_verification.sql index ae78a3ab..c0eadbe4 100644 --- a/dataprocessing/sql_snippets/ego_dp_structure_input_verification.sql +++ b/dataprocessing/sql_snippets/ego_dp_structure_input_verification.sql @@ -19,6 +19,7 @@ SELECT ego_scenario_log('v0.3.0','check','openstreetmap','osm_deu_polygon','ego_ SELECT ego_scenario_log('v0.3.0','check','openstreetmap','osm_deu_ways','ego_dp_structure_input_verification.sql','preprocessing verification'); SELECT ego_scenario_log('v0.3.0','check','openstreetmap','osm_deu_nodes','ego_dp_structure_input_verification.sql','preprocessing verification'); SELECT ego_scenario_log('v0.3.0','check','openstreetmap','osm_deu_line','ego_dp_structure_input_verification.sql','preprocessing verification'); +SELECT ego_scenario_log('v0.3.0','check','grid','otg_ehvhv_bus_data','ego_dp_structure_input_verification.sql','preprocessing verification'); SELECT ego_scenario_log('v0.3.0','check','society','destatis_zensus_population_per_ha','ego_dp_structure_input_verification.sql','preprocessing verification'); SELECT ego_scenario_log('v0.3.0','check','economy','destatis_gva_per_district','ego_dp_structure_input_verification.sql','preprocessing verification'); SELECT ego_scenario_log('v0.3.0','check','demand','ego_demand_federalstate','ego_dp_structure_input_verification.sql','preprocessing verification'); @@ -122,6 +123,7 @@ INSERT INTO model_draft.ego_scenario_input(version,oid,database,table_schema (table_schema='openstreetmap' AND table_name='osm_deu_ways') OR (table_schema='openstreetmap' AND table_name='osm_deu_nodes') OR (table_schema='openstreetmap' AND table_name='osm_deu_line') OR + (table_schema='grid' AND table_name='otg_ehvhv_bus_data') OR (table_schema='society' AND table_name='destatis_zensus_population_per_ha') OR (table_schema='economy' AND table_name='destatis_gva_per_district') OR (table_schema='demand' AND table_name='ego_demand_federalstate') OR diff --git a/documentation/bpmn/ego_dp_bpmn_section_substation.graphml b/documentation/bpmn/ego_dp_bpmn_section_substation.graphml new file mode 100644 index 00000000..6363f55a --- /dev/null +++ b/documentation/bpmn/ego_dp_bpmn_section_substation.graphml @@ -0,0 +1,1470 @@ + + + + + + + + + + + + + + + + + + + + + + + eGo DataProcessing + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ego_dp_substation_hvmv_voronoi.sql + + + + + + + + + + + + + + + + + + model_draft.ego_grid_hvmv_substation_dummy +model_draft.ego_grid_hvmv_substation_voronoi + + + + + + + + + + + + + + + + + + + + + + + 6 min + + + + + + + + + + + + + + + + + + + + + + model_draft.ego_grid_hvmv_substation + + + + + + + + + + + + + + + + + + + + + + + model_draft.ego_grid_hvmv_substation + + + + + + + + + + + + + + + + + + + + + + + + +ego_dp_substation_hvmv.sql + + + + + + + + + + + + + + + + + + + +ego_dp_substation_ehv.sql + + + + + + + + + + + + + + + + + + 32 min + + + + + + + + + + + + + + + + + + + + + + 3 min + + + + + + + + + + + + + + + + + + + + + + openstreetmap.osm_deu_ways +openstreetmap.osm_deu_polygon +openstreetmap.osm_deu_nodes +openstreetmap.osm_deu_rels +political_boundary.bkg_vg250_1_sta_union_mview + + + + + + + + + + + + + + + + + + + + + + + openstreetmap.osm_deu_ways +openstreetmap.osm_deu_polygon +openstreetmap.osm_deu_nodes +openstreetmap.osm_deu_rels +political_bkg_vg250_1_sta_union_mview + + + + + + + + + + + + + + + + + + + + + + + model_draft.ego_grid_ehv_substation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +ego_dp_substation_otg.sql + + + + + + + + + + + + + + + + + + 1 sec + + + + + + + + + + + + + + + + + + + + + + grid.otg_ehvhv_bus_data +model_draft.ego_grid_ehv_substation +model_draft.ego_grid_hvmv_substation + + + + + + + + + + + + + + + + + + + + + + + model_draft.ego_grid_ehv_substation +model_draft.ego_grid_hvmv_substation + + + + + + + + + + + + + + + + + + + + + + + Open Database License (ODbL) v1.0 +© OpenStreetMap contributors + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + openstreetmap.osm_deu + + + + + + + + + + + + + + + + + + + + + + + Geodatenzugangsgesetz (GeoZG) +© GeoBasis-DE / BKG 2016 (Daten verändert) + + + + + + + + + + + + + + + + + + + + + + political_boundary.bkg_vg250 + + + + + + + + + + + + + + + + + + + + + + + Open Database License (ODbL) v1.0 +© OpenStreetMap contributors + + + + + + + + + + + + + + + + + + + + + + Open Database License (ODbL) v1.0 +© OpenStreetMap contributors + + + + + + + + + + + + + + + + + + + + + + Open Database License (ODbL) v1.0 +© OpenStreetMap contributors + + + + + + + + + + + + + + + + + + + + + + Open Database License (ODbL) v1.0 +© OpenStreetMap contributors + + + + + + + + + + + + + + + + + + + + + + Open Database License (ODbL) v1.0 +© OpenStreetMap contributors + + + + + + + + + + + + + + + + + + + + + + Geodatenzugangsgesetz (GeoZG) +© GeoBasis-DE / BKG 2016 (Daten verändert) + + + + + + + + + + + + + + + + + + + + + + Geodatenzugangsgesetz (GeoZG) +© GeoBasis-DE / BKG 2016 (Daten verändert) + + + + + + + + + + + + + + + + + + + + + + Geodatenzugangsgesetz (GeoZG) +© GeoBasis-DE / BKG 2016 (Daten verändert) + + + + + + + + + + + + + + + + + + + + + + Geodatenzugangsgesetz (GeoZG) +© GeoBasis-DE / BKG 2016 (Daten verändert) + + + + + + + + + + + + + + + + + + + + + + model_draft.ego_grid_hvmv_substation +grid.ego_hvmv_substation + + + + + + + + + + + + + + + + + + + + + + + Open Database License (ODbL) v1.0 +© OpenStreetMap contributors + + + + + + + + + + + + + + + + + + + + + + Geodatenzugangsgesetz (GeoZG) +© GeoBasis-DE / BKG 2016 (Daten verändert) + + + + + + + + + + + + + + + + + + + + + + ego_dp_substation_ehv_voronoi.sql + + + + + + + + + + + + + + + + + + + model_draft.ego_grid_ehv_substation_voronoi + + + + + + + + + + + + + + + + + + + + + + + ? + + + + + + + + + + + + + + + + + + + + + + model_draft.ego_grid_ehv_substation + + + + + + + + + + + + + + + + + + + + + + + model_draft.ego_grid_ehv_substation +grid.ego_ehv_substation + + + + + + + + + + + + + + + + + + + + + + + Open Database License (ODbL) v1.0 +© OpenStreetMap contributors + + + + + + + + + + + + + + + + + + + + + + Geodatenzugangsgesetz (GeoZG) +© GeoBasis-DE / BKG 2016 (Daten verändert) + + + + + + + + + + + + + + + + + + + + + + Open Database License (ODbL) v1.0 +© OpenStreetMap contributors + + + + + + + + + + + + + + + + + + + + + + Geodatenzugangsgesetz (GeoZG) +© GeoBasis-DE / BKG 2016 (Daten verändert) + + + + + + + + + + + + + + + + + + + + + + grid.otg_ehvhv_bus_data + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + From f8a5bb1210e7729cc3720c62cbbb2262eb59bb41 Mon Sep 17 00:00:00 2001 From: IlkaCu Date: Wed, 7 Feb 2018 18:21:59 +0100 Subject: [PATCH 016/104] start dp docu for section powerflow #92 --- .../sql_snippets/ego_dp_powerflow_assignment_otgid.sql | 5 ++++- .../sql_snippets/ego_dp_powerflow_assignment_unid.sql | 4 +++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/dataprocessing/sql_snippets/ego_dp_powerflow_assignment_otgid.sql b/dataprocessing/sql_snippets/ego_dp_powerflow_assignment_otgid.sql index 1e2350c3..654892a6 100644 --- a/dataprocessing/sql_snippets/ego_dp_powerflow_assignment_otgid.sql +++ b/dataprocessing/sql_snippets/ego_dp_powerflow_assignment_otgid.sql @@ -1,5 +1,8 @@ /* -Powerplant lists are updated with information on the otg_id of substations which the generators are assigned to. +This scripts updates tables containing `renewable power plants `_ and `conventional power plants `_ with information on the otg_id of substations which the generator is assigned to. +The otg_id and subst_id of the substations are matched in tables containing information on `HV/MV substations `_ and `EHV substations `_. + +Additionally the otg_id of offshore wind turbines is updated manually. The geometry of offshore wind power plants is matched with polygons representing a catchment area per relevant offshore grid connection point. __copyright__ = "Flensburg University of Applied Sciences, Centre for Sustainable Energy Systems" __license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" diff --git a/dataprocessing/sql_snippets/ego_dp_powerflow_assignment_unid.sql b/dataprocessing/sql_snippets/ego_dp_powerflow_assignment_unid.sql index baa6d95a..793c73f7 100644 --- a/dataprocessing/sql_snippets/ego_dp_powerflow_assignment_unid.sql +++ b/dataprocessing/sql_snippets/ego_dp_powerflow_assignment_unid.sql @@ -1,5 +1,7 @@ /* -All generators (conventional and renewable) are listed in a central table and a unified id (un_id) is assigned. + +All generators from the `conventional `_ and `renewable `_ power plant list are brought together in a `central generator list `_. +A unified id (un_id) is assigned to those generators listed. Information on the un_id is then added to the conventional and renewable power plant lists. __copyright__ = "Flensburg University of Applied Sciences, Centre for Sustainable Energy Systems" __license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" From 86f0816d63a0ad17370d65927c0fcddca403e9f5 Mon Sep 17 00:00:00 2001 From: wolfbunke Date: Thu, 8 Feb 2018 09:05:12 +0100 Subject: [PATCH 017/104] add requirements for rtd --- .../QGIS/ego_paper_map_consumption.qpt | 906 +++++ .../QGIS/ego_paper_map_generation.qpt | 846 +++++ .../QGIS/ego_paper_map_hvmvsubst_mvgd.qpt | 150 + .../SQL Documentation/calc_ego_grid.sql | 54 + .../calc_ego_grid_district.sql | 475 +++ .../calc_ego_hv_powerflow.sql | 791 +++++ .../SQL Documentation/calc_ego_loads.sql | 1338 +++++++ .../calc_ego_mv_powerflow.sql | 557 +++ .../SQL Documentation/calc_ego_osmtgmod.sql | 584 ++++ .../SQL Documentation/calc_ego_re.sql | 1108 ++++++ .../SQL Documentation/calc_ego_substation.sql | 567 +++ .../SQL Documentation/calc_gridcells_znes.sql | 79 + .../SQL Documentation/calc_renpass_gis.sql | 486 +++ .../SQL Documentation/geo_ego_jg.sql | 2261 ++++++++++++ .../orig_consumption_e_mobility.sql | 1100 ++++++ .../SQL Documentation/orig_destatis.sql | 1182 +++++++ .../SQL Documentation/orig_ego.sql | 1677 +++++++++ .../orig_ego_consumption.sql | 199 ++ .../SQL Documentation/orig_geo_copernicus.sql | 208 ++ .../SQL Documentation/orig_geo_dlm250.sql | 2834 +++++++++++++++ .../SQL Documentation/orig_geo_ego_jg.sql | 3094 +++++++++++++++++ .../SQL Documentation/orig_geo_geonames.sql | 66 + .../SQL Documentation/orig_geo_gn250.sql | 282 ++ .../SQL Documentation/orig_geo_opsd.sql | 502 +++ .../orig_geo_powerplants.sql | 810 +++++ .../SQL Documentation/orig_ioer.sql | 43 + .../SQL Documentation/orig_osm.sql | 1206 +++++++ .../SQL Documentation/orig_scenario_data.sql | 45 + .../res_ego_hv_powerflow.sql | 355 ++ requirements.txt/doc/Makefile | 192 + requirements.txt/doc/conf.py | 372 ++ requirements.txt/doc/index.rst | 27 + requirements.txt/doc/make.bat | 263 ++ requirements.txt/doc/renewables.rst | 50 + requirements.txt/doc/scenario.rst | 80 + requirements.txt/ego_scenario_log_example.sql | 12 + .../metadata_on_table_example.sql | 118 + requirements.txt/requirements.txt | 6 + requirements.txt/script_header_example.py | 16 + requirements.txt/script_header_example.sql | 11 + 40 files changed, 24952 insertions(+) create mode 100644 requirements.txt/QGIS/ego_paper_map_consumption.qpt create mode 100644 requirements.txt/QGIS/ego_paper_map_generation.qpt create mode 100644 requirements.txt/QGIS/ego_paper_map_hvmvsubst_mvgd.qpt create mode 100644 requirements.txt/SQL Documentation/calc_ego_grid.sql create mode 100644 requirements.txt/SQL Documentation/calc_ego_grid_district.sql create mode 100644 requirements.txt/SQL Documentation/calc_ego_hv_powerflow.sql create mode 100644 requirements.txt/SQL Documentation/calc_ego_loads.sql create mode 100644 requirements.txt/SQL Documentation/calc_ego_mv_powerflow.sql create mode 100644 requirements.txt/SQL Documentation/calc_ego_osmtgmod.sql create mode 100644 requirements.txt/SQL Documentation/calc_ego_re.sql create mode 100644 requirements.txt/SQL Documentation/calc_ego_substation.sql create mode 100644 requirements.txt/SQL Documentation/calc_gridcells_znes.sql create mode 100644 requirements.txt/SQL Documentation/calc_renpass_gis.sql create mode 100644 requirements.txt/SQL Documentation/geo_ego_jg.sql create mode 100644 requirements.txt/SQL Documentation/orig_consumption_e_mobility.sql create mode 100644 requirements.txt/SQL Documentation/orig_destatis.sql create mode 100644 requirements.txt/SQL Documentation/orig_ego.sql create mode 100644 requirements.txt/SQL Documentation/orig_ego_consumption.sql create mode 100644 requirements.txt/SQL Documentation/orig_geo_copernicus.sql create mode 100644 requirements.txt/SQL Documentation/orig_geo_dlm250.sql create mode 100644 requirements.txt/SQL Documentation/orig_geo_ego_jg.sql create mode 100644 requirements.txt/SQL Documentation/orig_geo_geonames.sql create mode 100644 requirements.txt/SQL Documentation/orig_geo_gn250.sql create mode 100644 requirements.txt/SQL Documentation/orig_geo_opsd.sql create mode 100644 requirements.txt/SQL Documentation/orig_geo_powerplants.sql create mode 100644 requirements.txt/SQL Documentation/orig_ioer.sql create mode 100644 requirements.txt/SQL Documentation/orig_osm.sql create mode 100644 requirements.txt/SQL Documentation/orig_scenario_data.sql create mode 100644 requirements.txt/SQL Documentation/res_ego_hv_powerflow.sql create mode 100644 requirements.txt/doc/Makefile create mode 100644 requirements.txt/doc/conf.py create mode 100644 requirements.txt/doc/index.rst create mode 100644 requirements.txt/doc/make.bat create mode 100644 requirements.txt/doc/renewables.rst create mode 100644 requirements.txt/doc/scenario.rst create mode 100644 requirements.txt/ego_scenario_log_example.sql create mode 100644 requirements.txt/metadata_on_table_example.sql create mode 100644 requirements.txt/requirements.txt create mode 100644 requirements.txt/script_header_example.py create mode 100644 requirements.txt/script_header_example.sql diff --git a/requirements.txt/QGIS/ego_paper_map_consumption.qpt b/requirements.txt/QGIS/ego_paper_map_consumption.qpt new file mode 100644 index 00000000..143e99b0 --- /dev/null +++ b/requirements.txt/QGIS/ego_paper_map_consumption.qpt @@ -0,0 +1,906 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ego_data_processing_results_mvgd20170125234108774 + bkg_vg250_1_sta_union_mview20170125161746337 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0 + 0 + 0 + OBJID + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ../loads_per_grid_districts + + + + + + + + + + + + + + ../loads_per_grid_districts + + 0 + ../loads_per_grid_districts + + 0 + generatedlayout + + + + + + 2 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0 + 0 + 0 + subst_id + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + . + + + + + + + + + + + + + + + + + + + + + + + + + + + + + . + + 0 + . + + 0 + generatedlayout + + + + + + 2 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/requirements.txt/QGIS/ego_paper_map_generation.qpt b/requirements.txt/QGIS/ego_paper_map_generation.qpt new file mode 100644 index 00000000..346a4ffb --- /dev/null +++ b/requirements.txt/QGIS/ego_paper_map_generation.qpt @@ -0,0 +1,846 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ego_supply_rea_per_mvgd20170126005907941 + bkg_vg250_1_sta_union_mview20170125161746337 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0 + 0 + 0 + OBJID + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ../loads_per_grid_districts + + + + + + + + + + + + + + ../loads_per_grid_districts + + 0 + ../loads_per_grid_districts + + 0 + generatedlayout + + + + + + 2 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0 + 0 + 0 + subst_id + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + . + + + + + + + + + + + + + + + + + . + + 0 + . + + 0 + generatedlayout + + + + + + 2 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/requirements.txt/QGIS/ego_paper_map_hvmvsubst_mvgd.qpt b/requirements.txt/QGIS/ego_paper_map_hvmvsubst_mvgd.qpt new file mode 100644 index 00000000..2c434cf7 --- /dev/null +++ b/requirements.txt/QGIS/ego_paper_map_hvmvsubst_mvgd.qpt @@ -0,0 +1,150 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/requirements.txt/SQL Documentation/calc_ego_grid.sql b/requirements.txt/SQL Documentation/calc_ego_grid.sql new file mode 100644 index 00000000..4bc22f1c --- /dev/null +++ b/requirements.txt/SQL Documentation/calc_ego_grid.sql @@ -0,0 +1,54 @@ + +-- + +COMMENT ON TABLE calc_ego_grid.ego_deu_mv_grids_vis IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "grid_id", + "Description": "...", + "Unit": "" }, + {"Name": "geom_mv_station", + "Description": "...", + "Unit": "" }, + {"Name": "geom_mv_cable_dists", + "Description": "...", + "Unit": "" }, + {"Name": "geom_mv_circuit_breakers", + "Description": "...", + "Unit": "" }, + {"Name": "geom_lv_load_area_centres", + "Description": "...", + "Unit": "" }, + {"Name": "geom_lv_station", + "Description": "...", + "Unit": "" }, + {"Name": "geom_mv_generators", + "Description": "...", + "Unit": "" }, + {"Name": "geom_mv_lines", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "04.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('calc_ego_grid.ego_deu_mv_grids_vis'::regclass)::json; + +-- diff --git a/requirements.txt/SQL Documentation/calc_ego_grid_district.sql b/requirements.txt/SQL Documentation/calc_ego_grid_district.sql new file mode 100644 index 00000000..6e65c9bd --- /dev/null +++ b/requirements.txt/SQL Documentation/calc_ego_grid_district.sql @@ -0,0 +1,475 @@ + +-- + +COMMENT ON TABLE calc_ego_grid_district.grid_district IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "subst_id", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }, + {"Name": "subst_sum", + "Description": "...", + "Unit": "" }, + {"Name": "area_ha", + "Description": "...", + "Unit": "" }, + {"Name": "geom_type", + "Description": "...", + "Unit": "..." }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "04.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('*calc_ego_grid_district.grid_district'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE calc_ego_grid_district.grid_district_collect IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "subst_id", + "Description": "...", + "Unit": "" }, + {"Name": "subst_name", + "Description": "...", + "Unit": "" }, + {"Name": "ags_0", + "Description": "...", + "Unit": "" }, + {"Name": "geom_sub", + "Description": "...", + "Unit": "" }, + {"Name": "subst_sum", + "Description": "...", + "Unit": "" }, + {"Name": "subst_type", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "..." }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "04.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('calc_ego_grid_district.grid_district_collect'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE calc_ego_grid_district.grid_district_dump IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "subst_id", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }, + {"Name": "subst_sum", + "Description": "...", + "Unit": "" }, + {"Name": "subst_cnt", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "04.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('calc_ego_grid_district.grid_district_dump'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE calc_ego_grid_district.grid_district_ta IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "subst_id", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }, + {"Name": "subst_sum", + "Description": "...", + "Unit": "" }, + {"Name": "area_ha", + "Description": "...", + "Unit": "" }, + {"Name": "geom_type", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "04.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('calc_ego_grid_district.grid_district_ta'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE calc_ego_grid_district.grid_district_type_1 IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "subst_id", + "Description": "...", + "Unit": "" }, + {"Name": "subst_name", + "Description": "...", + "Unit": "" }, + {"Name": "ags_0", + "Description": "...", + "Unit": "" }, + {"Name": "geom_sub", + "Description": "...", + "Unit": "" }, + {"Name": "subst_sum", + "Description": "...", + "Unit": "" }, + {"Name": "subst_type", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "04.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('calc_ego_grid_district.grid_district_type_1'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE calc_ego_grid_district.grid_district_type_2 IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "subst_id", + "Description": "...", + "Unit": "" }, + {"Name": "subst_name", + "Description": "...", + "Unit": "" }, + {"Name": "ags_0", + "Description": "...", + "Unit": "" }, + {"Name": "geom_sub", + "Description": "...", + "Unit": "" }, + {"Name": "subst_sum", + "Description": "...", + "Unit": "" }, + {"Name": "subst_type", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "04.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('calc_ego_grid_district.grid_district_type_2'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE calc_ego_grid_district.grid_district_type_3 IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "subst_id", + "Description": "...", + "Unit": "" }, + {"Name": "subst_name", + "Description": "...", + "Unit": "" }, + {"Name": "ags_0", + "Description": "...", + "Unit": "" }, + {"Name": "geom_sub", + "Description": "...", + "Unit": "" }, + {"Name": "subst_sum", + "Description": "...", + "Unit": "" }, + {"Name": "subst_type", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "04.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('calc_ego_grid_district.grid_district_type_3'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE calc_ego_grid_district.municipalities_subst IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "gid", + "Description": "...", + "Unit": "" }, + {"Name": "gen", + "Description": "...", + "Unit": "" }, + {"Name": "bez", + "Description": "...", + "Unit": "" }, + {"Name": "bem", + "Description": "...", + "Unit": "" }, + {"Name": "nuts", + "Description": "...", + "Unit": "" }, + {"Name": "rs_0", + "Description": "...", + "Unit": "" }, + {"Name": "ags_0", + "Description": "...", + "Unit": "" }, + {"Name": "area_ha", + "Description": "...", + "Unit": "" }, + {"Name": "count_ring", + "Description": "...", + "Unit": "" }, + {"Name": "path", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }, + {"Name": "is_ring", + "Description": "...", + "Unit": "" }, + {"Name": "subst_sum", + "Description": "...", + "Unit": "" }, + {"Name": "subst_type", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "04.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('calc_ego_grid_district.municipalities_subst'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE calc_ego_grid_district.municipalities_subst_3_nn IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "mun_id", + "Description": "...", + "Unit": "" }, + {"Name": "mun_ags_0", + "Description": "...", + "Unit": "" }, + {"Name": "subst_ags_0", + "Description": "...", + "Unit": "" }, + {"Name": "subst_id", + "Description": "...", + "Unit": "" }, + {"Name": "subst_type", + "Description": "...", + "Unit": "" }, + {"Name": "geom_sub", + "Description": "...", + "Unit": "" }, + {"Name": "distance", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "04.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('calc_ego_grid_district.municipalities_subst_3_nn'::regclass)::json; + +-- diff --git a/requirements.txt/SQL Documentation/calc_ego_hv_powerflow.sql b/requirements.txt/SQL Documentation/calc_ego_hv_powerflow.sql new file mode 100644 index 00000000..01046aa4 --- /dev/null +++ b/requirements.txt/SQL Documentation/calc_ego_hv_powerflow.sql @@ -0,0 +1,791 @@ + +-- + +COMMENT ON TABLE calc_ego_hv_powerflow.bus IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "scn_name", + "Description": "...", + "Unit": "" }, + {"Name": "bus_id", + "Description": "...", + "Unit": "" }, + {"Name": "v_nom", + "Description": "...", + "Unit": "" }, + {"Name": "current_type", + "Description": "...", + "Unit": "" }, + {"Name": "area_ha", + "Description": "...", + "Unit": "" }, + {"Name": "area_ha", + "Description": "...", + "Unit": "" }, + {"Name": "geom_type", + "Description": "...", + "Unit": "..." }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "04.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('calc_ego_hv_powerflow.bus'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE calc_ego_hv_powerflow.bus_v_mag_set IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "scn_name", + "Description": "...", + "Unit": "" }, + {"Name": "bus_id", + "Description": "...", + "Unit": "" }, + {"Name": "temp_id", + "Description": "...", + "Unit": "" }, + {"Name": "v_mag_pu_set", + "Description": "...", + "Unit": "..." }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "04.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('calc_ego_hv_powerflow.bus_v_mag_set'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE calc_ego_hv_powerflow.generator IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "scn_name", + "Description": "...", + "Unit": "" }, + {"Name": "generator_id", + "Description": "...", + "Unit": "" }, + {"Name": "bus", + "Description": "...", + "Unit": "" }, + {"Name": "dispatch", + "Description": "...", + "Unit": "" }, + {"Name": "control", + "Description": "...", + "Unit": "" }, + {"Name": "p_nom", + "Description": "...", + "Unit": "" }, + {"Name": "p_nom_extendable", + "Description": "...", + "Unit": "" }, + {"Name": "p_nom_min", + "Description": "...", + "Unit": "" }, + {"Name": "p_nom_max", + "Description": "...", + "Unit": "" }, + {"Name": "p_min_pu_fixed", + "Description": "...", + "Unit": "" }, + {"Name": "p_max_pu_fixed", + "Description": "...", + "Unit": "" }, + {"Name": "sign", + "Description": "...", + "Unit": "" }, + {"Name": "source", + "Description": "...", + "Unit": "" }, + {"Name": "marginal_cost", + "Description": "...", + "Unit": "" }, + {"Name": "capital_cost", + "Description": "...", + "Unit": "" }, + {"Name": "efficiency", + "Description": "...", + "Unit": "..." }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "04.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('calc_ego_hv_powerflow.generator'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE calc_ego_hv_powerflow.generator_pq_set IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "scn_name", + "Description": "...", + "Unit": "" }, + {"Name": "generator_id", + "Description": "...", + "Unit": "" }, + {"Name": "temp_id", + "Description": "...", + "Unit": "" }, + {"Name": "p_set", + "Description": "...", + "Unit": "" }, + {"Name": "q_set", + "Description": "...", + "Unit": "" }, + {"Name": "p_min_pu", + "Description": "...", + "Unit": "" }, + {"Name": "p_max_pu", + "Description": "...", + "Unit": "..." }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "04.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('calc_ego_hv_powerflow.generator_pq_set'::regclass)::json; + + +-- + +COMMENT ON TABLE calc_ego_hv_powerflow.line IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "scn_name", + "Description": "...", + "Unit": "" }, + {"Name": "line_id", + "Description": "...", + "Unit": "" }, + {"Name": "bus0", + "Description": "...", + "Unit": "" }, + {"Name": "bus1", + "Description": "...", + "Unit": "" }, + {"Name": "x", + "Description": "...", + "Unit": "" }, + {"Name": "r", + "Description": "...", + "Unit": "" }, + {"Name": "g", + "Description": "...", + "Unit": "" }, + {"Name": "b", + "Description": "...", + "Unit": "" }, + {"Name": "s_nom", + "Description": "...", + "Unit": "" }, + {"Name": "s_nom_extendable", + "Description": "...", + "Unit": "" }, + {"Name": "s_nom_min", + "Description": "...", + "Unit": "" }, + {"Name": "s_nom_max", + "Description": "...", + "Unit": "" }, + {"Name": "capital_cost", + "Description": "...", + "Unit": "" }, + {"Name": "length", + "Description": "...", + "Unit": "" }, + {"Name": "cables", + "Description": "...", + "Unit": "" }, + {"Name": "frequency", + "Description": "...", + "Unit": "" }, + {"Name": "terrain_factor", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }, + {"Name": "topo", + "Description": "...", + "Unit": "..." }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "04.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('calc_ego_hv_powerflow.line'::regclass)::json; + + +-- + +COMMENT ON TABLE calc_ego_hv_powerflow.load IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "scn_name", + "Description": "...", + "Unit": "" }, + {"Name": "load_id", + "Description": "...", + "Unit": "" }, + {"Name": "bus", + "Description": "...", + "Unit": "" }, + {"Name": "sign", + "Description": "...", + "Unit": "" }, + {"Name": "e_annual", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "04.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('calc_ego_hv_powerflow.load'::regclass)::json; + + + +-- + +COMMENT ON TABLE calc_ego_hv_powerflow.load_pq_set IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "scn_name", + "Description": "...", + "Unit": "" }, + {"Name": "load_id", + "Description": "...", + "Unit": "" }, + {"Name": "temp_id", + "Description": "...", + "Unit": "" }, + {"Name": "p_set", + "Description": "...", + "Unit": "" }, + {"Name": "q_set", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "04.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('calc_ego_hv_powerflow.load_pq_set'::regclass)::json; + + + +-- + +COMMENT ON TABLE calc_ego_hv_powerflow.scenario_settings IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "scn_name", + "Description": "...", + "Unit": "" }, + {"Name": "bus", + "Description": "...", + "Unit": "" }, + {"Name": "bus_v_mag_set", + "Description": "...", + "Unit": "" }, + {"Name": "generator", + "Description": "...", + "Unit": "" }, + {"Name": "generator_pq_set", + "Description": "...", + "Unit": "" }, + {"Name": "line", + "Description": "...", + "Unit": "" }, + {"Name": "load", + "Description": "...", + "Unit": "" }, + {"Name": "load_pq_set", + "Description": "...", + "Unit": "" }, + {"Name": "storage", + "Description": "...", + "Unit": "" }, + {"Name": "storage_pq_set", + "Description": "...", + "Unit": "" }, + {"Name": "temp_resolution", + "Description": "...", + "Unit": "" }, + {"Name": "transformer", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "04.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('calc_ego_hv_powerflow.scenario_settings'::regclass)::json; + + + +-- + +COMMENT ON TABLE calc_ego_hv_powerflow.source IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "source_id", + "Description": "...", + "Unit": "" }, + {"Name": "name", + "Description": "...", + "Unit": "" }, + {"Name": "co2_emissions", + "Description": "...", + "Unit": "" }, + {"Name": "commentary", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "04.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('calc_ego_hv_powerflow.source'::regclass)::json; + + + + +-- + +COMMENT ON TABLE calc_ego_hv_powerflow.storage IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "scn_name", + "Description": "...", + "Unit": "" }, + {"Name": "storage_id", + "Description": "...", + "Unit": "" }, + {"Name": "bus", + "Description": "...", + "Unit": "" }, + {"Name": "dispatch", + "Description": "...", + "Unit": "" }, + {"Name": "control", + "Description": "...", + "Unit": "" }, + {"Name": "p_nom", + "Description": "...", + "Unit": "" }, + {"Name": "p_nom_extendable", + "Description": "...", + "Unit": "" }, + {"Name": "p_nom_min", + "Description": "...", + "Unit": "" }, + {"Name": "p_nom_max", + "Description": "...", + "Unit": "" }, + {"Name": "p_min_pu_fixed", + "Description": "...", + "Unit": "" }, + {"Name": "p_max_pu_fixed", + "Description": "...", + "Unit": "" }, + {"Name": "sign", + "Description": "...", + "Unit": "" }, + {"Name": "source", + "Description": "...", + "Unit": "" }, + {"Name": "marginal_cost", + "Description": "...", + "Unit": "" }, + {"Name": "capital_cost", + "Description": "...", + "Unit": "" }, + {"Name": "efficiency", + "Description": "...", + "Unit": "" }, + {"Name": "soc_initial", + "Description": "...", + "Unit": "" }, + {"Name": "soc_cyclic", + "Description": "...", + "Unit": "" }, + {"Name": "max_hours", + "Description": "...", + "Unit": "" }, + {"Name": "efficiency_store", + "Description": "...", + "Unit": "" }, + {"Name": "efficiency_dispatch", + "Description": "...", + "Unit": "" }, + {"Name": "standing_loss", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "04.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('calc_ego_hv_powerflow.storage'::regclass)::json; + + + + +-- + +COMMENT ON TABLE calc_ego_hv_powerflow.storage_pq_set IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "scn_name", + "Description": "...", + "Unit": "" }, + {"Name": "storage_id", + "Description": "...", + "Unit": "" }, + {"Name": "temp_id", + "Description": "...", + "Unit": "" }, + {"Name": "p_set", + "Description": "...", + "Unit": "" }, + {"Name": "q_set", + "Description": "...", + "Unit": "" }, + {"Name": "p_min_pu", + "Description": "...", + "Unit": "" }, + {"Name": "p_max_pu", + "Description": "...", + "Unit": "" }, + {"Name": "soc_set", + "Description": "...", + "Unit": "" }, + {"Name": "inflow", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "04.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('calc_ego_hv_powerflow.storage_pq_set'::regclass)::json; + + +-- + +COMMENT ON TABLE calc_ego_hv_powerflow.temp_resolution IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "temp_id", + "Description": "...", + "Unit": "" }, + {"Name": "timesteps", + "Description": "...", + "Unit": "" }, + {"Name": "resolution", + "Description": "...", + "Unit": "" }, + {"Name": "start_time", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "04.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('calc_ego_hv_powerflow.temp_resolution'::regclass)::json; + + + +-- + +COMMENT ON TABLE calc_ego_hv_powerflow.transformer IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "scn_name", + "Description": "...", + "Unit": "" }, + {"Name": "trafo_id", + "Description": "...", + "Unit": "" }, + {"Name": "bus0", + "Description": "...", + "Unit": "" }, + {"Name": "bus1", + "Description": "...", + "Unit": "" }, + {"Name": "x", + "Description": "...", + "Unit": "" }, + {"Name": "r", + "Description": "...", + "Unit": "" }, + {"Name": "g", + "Description": "...", + "Unit": "" }, + {"Name": "b", + "Description": "...", + "Unit": "" }, + {"Name": "s_nom", + "Description": "...", + "Unit": "" }, + {"Name": "s_nom_extendable", + "Description": "...", + "Unit": "" }, + {"Name": "s_nom_min", + "Description": "...", + "Unit": "" }, + {"Name": "s_nom_max", + "Description": "...", + "Unit": "" }, + {"Name": "tap_ratio", + "Description": "...", + "Unit": "" }, + {"Name": "phase_shift", + "Description": "...", + "Unit": "" }, + {"Name": "capital_cost", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }, + {"Name": "topo", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "04.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('calc_ego_hv_powerflow.transformer'::regclass)::json; + + + + + + + + diff --git a/requirements.txt/SQL Documentation/calc_ego_loads.sql b/requirements.txt/SQL Documentation/calc_ego_loads.sql new file mode 100644 index 00000000..b049ee25 --- /dev/null +++ b/requirements.txt/SQL Documentation/calc_ego_loads.sql @@ -0,0 +1,1338 @@ + +-- + +COMMENT ON TABLE calc_ego_loads.calc_ego_peak_load IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "retail", + "Description": "...", + "Unit": "" }, + {"Name": "residential", + "Description": "...", + "Unit": "" }, + {"Name": "industrial", + "Description": "...", + "Unit": "" }, + {"Name": "agricultural", + "Description": "...", + "Unit": "..." }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "04.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('calc_ego_loads.calc_ego_peak_load'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE calc_ego_loads.calc_ego_peak_load_ta IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "retail", + "Description": "...", + "Unit": "" }, + {"Name": "residential", + "Description": "...", + "Unit": "" }, + {"Name": "industrial", + "Description": "...", + "Unit": "" }, + {"Name": "agricultural", + "Description": "...", + "Unit": "..." }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "04.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('calc_ego_loads.calc_ego_peak_load_ta'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE calc_ego_loads.calc_ego_peak_load_test IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "g0", + "Description": "...", + "Unit": "" }, + {"Name": "h0", + "Description": "...", + "Unit": "" }, + {"Name": "l0", + "Description": "...", + "Unit": "" }, + {"Name": "i0", + "Description": "...", + "Unit": "..." }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "04.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('calc_ego_loads.calc_ego_peak_load_test'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE calc_ego_loads.ego_demand_per_transition_point IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "p_set", + "Description": "...", + "Unit": "" }, + {"Name": "q_set", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "04.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('calc_ego_loads.ego_demand_per_transition_point'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE calc_ego_loads.ego_deu_consumption IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "subst_id", + "Description": "...", + "Unit": "" }, + {"Name": "sector_area_residential", + "Description": "...", + "Unit": "" }, + {"Name": "sector_area_retail", + "Description": "...", + "Unit": "" }, + {"Name": "sector_area_industrial", + "Description": "...", + "Unit": "" }, + {"Name": "sector_area_agricultural", + "Description": "...", + "Unit": "" }, + {"Name": "sector_consumption_residential", + "Description": "...", + "Unit": "" }, + {"Name": "sector_consumption_retail", + "Description": "...", + "Unit": "" }, + {"Name": "sector_consumption_industrial", + "Description": "...", + "Unit": "" }, + {"Name": "sector_consumption_agricultural", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "04.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('calc_ego_loads.ego_deu_consumption'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE calc_ego_loads.ego_deu_consumption_area IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "subst_id", + "Description": "...", + "Unit": "" }, + {"Name": "sector_area_residential", + "Description": "...", + "Unit": "" }, + {"Name": "sector_area_retail", + "Description": "...", + "Unit": "" }, + {"Name": "sector_area_industrial", + "Description": "...", + "Unit": "" }, + {"Name": "sector_area_agricultural", + "Description": "...", + "Unit": "" }, + {"Name": "sector_consumption_residential", + "Description": "...", + "Unit": "" }, + {"Name": "sector_consumption_retail", + "Description": "...", + "Unit": "" }, + {"Name": "sector_consumption_industrial", + "Description": "...", + "Unit": "" }, + {"Name": "sector_consumption_agricultural", + "Description": "...", + "Unit": "" }, + {"Name": "consumption_sum", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "04.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('calc_ego_loads.ego_deu_consumption_area'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE calc_ego_loads.ego_deu_consumption_area_ta IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "subst_id", + "Description": "...", + "Unit": "" }, + {"Name": "sector_area_residential", + "Description": "...", + "Unit": "" }, + {"Name": "sector_area_retail", + "Description": "...", + "Unit": "" }, + {"Name": "sector_area_industrial", + "Description": "...", + "Unit": "" }, + {"Name": "sector_area_agricultural", + "Description": "...", + "Unit": "" }, + {"Name": "sector_consumption_residential", + "Description": "...", + "Unit": "" }, + {"Name": "sector_consumption_retail", + "Description": "...", + "Unit": "" }, + {"Name": "sector_consumption_industrial", + "Description": "...", + "Unit": "" }, + {"Name": "sector_consumption_agricultural", + "Description": "...", + "Unit": "" }, + {"Name": "consumption_sum", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "04.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('calc_ego_loads.ego_deu_consumption_area_ta'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE calc_ego_loads.ego_deu_consumption_ta IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "subst_id", + "Description": "...", + "Unit": "" }, + {"Name": "sector_area_residential", + "Description": "...", + "Unit": "" }, + {"Name": "sector_area_retail", + "Description": "...", + "Unit": "" }, + {"Name": "sector_area_industrial", + "Description": "...", + "Unit": "" }, + {"Name": "sector_area_agricultural", + "Description": "...", + "Unit": "" }, + {"Name": "sector_consumption_residential", + "Description": "...", + "Unit": "" }, + {"Name": "sector_consumption_retail", + "Description": "...", + "Unit": "" }, + {"Name": "sector_consumption_industrial", + "Description": "...", + "Unit": "" }, + {"Name": "sector_consumption_agricultural", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "04.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('calc_ego_loads.ego_deu_consumption_ta'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE calc_ego_loads.ego_deu_load_area IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }, + {"Name": "zensus_sum", + "Description": "...", + "Unit": "" }, + {"Name": "zensus_count", + "Description": "...", + "Unit": "" }, + {"Name": "zensus_density", + "Description": "...", + "Unit": "" }, + {"Name": "ioer_sum", + "Description": "...", + "Unit": "" }, + {"Name": "ioer_count", + "Description": "...", + "Unit": "" }, + {"Name": "ioer_density", + "Description": "...", + "Unit": "" }, + {"Name": "area_ha", + "Description": "...", + "Unit": "" }, + {"Name": "sector_area_residential", + "Description": "...", + "Unit": "" }, + {"Name": "sector_area_retail", + "Description": "...", + "Unit": "" }, + {"Name": "sector_area_industrial", + "Description": "...", + "Unit": "" }, + {"Name": "sector_area_agricultural", + "Description": "...", + "Unit": "" }, + {"Name": "sector_area_sum", + "Description": "...", + "Unit": "" }, + {"Name": "sector_share_residential", + "Description": "...", + "Unit": "" }, + {"Name": "sector_share_retail", + "Description": "...", + "Unit": "" }, + {"Name": "sector_share_industrial", + "Description": "...", + "Unit": "" }, + {"Name": "sector_share_agricultural", + "Description": "...", + "Unit": "" }, + {"Name": "sector_share_sum", + "Description": "...", + "Unit": "" }, + {"Name": "sector_count_residential", + "Description": "...", + "Unit": "" }, + {"Name": "sector_count_retail", + "Description": "...", + "Unit": "" }, + {"Name": "sector_count_industrial", + "Description": "...", + "Unit": "" }, + {"Name": "sector_count_agricultural", + "Description": "...", + "Unit": "" }, + {"Name": "sector_consumption_residential", + "Description": "...", + "Unit": "" }, + {"Name": "sector_consumption_retail", + "Description": "...", + "Unit": "" }, + {"Name": "sector_consumption_industrial", + "Description": "...", + "Unit": "" }, + {"Name": "sector_consumption_agricultural", + "Description": "...", + "Unit": "" }, + {"Name": "sector_consumption_sum", + "Description": "...", + "Unit": "" }, + {"Name": "subst_id", + "Description": "...", + "Unit": "" }, + {"Name": "nuts", + "Description": "...", + "Unit": "" }, + {"Name": "rs_0", + "Description": "...", + "Unit": "" }, + {"Name": "ags_0", + "Description": "...", + "Unit": "" }, + {"Name": "geom_centroid", + "Description": "...", + "Unit": "" }, + {"Name": "geom_surfacepoint", + "Description": "...", + "Unit": "" }, + {"Name": "geom_centre", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "04.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('calc_ego_loads.ego_deu_load_area'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE calc_ego_loads.ego_deu_load_area_little_ta IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }, + {"Name": "zensus_sum", + "Description": "...", + "Unit": "" }, + {"Name": "zensus_count", + "Description": "...", + "Unit": "" }, + {"Name": "zensus_density", + "Description": "...", + "Unit": "" }, + {"Name": "ioer_sum", + "Description": "...", + "Unit": "" }, + {"Name": "ioer_count", + "Description": "...", + "Unit": "" }, + {"Name": "ioer_density", + "Description": "...", + "Unit": "" }, + {"Name": "area_ha", + "Description": "...", + "Unit": "" }, + {"Name": "sector_area_residential", + "Description": "...", + "Unit": "" }, + {"Name": "sector_area_retail", + "Description": "...", + "Unit": "" }, + {"Name": "sector_area_industrial", + "Description": "...", + "Unit": "" }, + {"Name": "sector_area_agricultural", + "Description": "...", + "Unit": "" }, + {"Name": "sector_share_residential", + "Description": "...", + "Unit": "" }, + {"Name": "sector_share_retail", + "Description": "...", + "Unit": "" }, + {"Name": "sector_share_industrial", + "Description": "...", + "Unit": "" }, + {"Name": "sector_share_agricultural", + "Description": "...", + "Unit": "" }, + {"Name": "sector_count_residential", + "Description": "...", + "Unit": "" }, + {"Name": "sector_count_retail", + "Description": "...", + "Unit": "" }, + {"Name": "sector_count_industrial", + "Description": "...", + "Unit": "" }, + {"Name": "sector_count_agricultural", + "Description": "...", + "Unit": "" }, + {"Name": "subst_id", + "Description": "...", + "Unit": "" }, + {"Name": "nuts", + "Description": "...", + "Unit": "" }, + {"Name": "rs_0", + "Description": "...", + "Unit": "" }, + {"Name": "ags_0", + "Description": "...", + "Unit": "" }, + {"Name": "geom_centroid", + "Description": "...", + "Unit": "" }, + {"Name": "geom_surfacepoint", + "Description": "...", + "Unit": "" }, + {"Name": "geom_centre", + "Description": "...", + "Unit": "" } + {"Name": "sector_area_sum", + "Description": "...", + "Unit": "" }, + {"Name": "sector_share_sum", + "Description": "...", + "Unit": "" }, + {"Name": "sector_consumption_residential", + "Description": "...", + "Unit": "" }, + {"Name": "sector_consumption_retail", + "Description": "...", + "Unit": "" }, + {"Name": "sector_consumption_industrial", + "Description": "...", + "Unit": "" }, + {"Name": "sector_consumption_agricultural", + "Description": "...", + "Unit": "" }, + {"Name": "sector_consumption_sum", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "04.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('calc_ego_loads.ego_deu_load_area_little_ta'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE calc_ego_loads.ego_deu_load_area_ta IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }, + {"Name": "zensus_sum", + "Description": "...", + "Unit": "" }, + {"Name": "zensus_count", + "Description": "...", + "Unit": "" }, + {"Name": "zensus_density", + "Description": "...", + "Unit": "" }, + {"Name": "ioer_sum", + "Description": "...", + "Unit": "" }, + {"Name": "ioer_count", + "Description": "...", + "Unit": "" }, + {"Name": "ioer_density", + "Description": "...", + "Unit": "" }, + {"Name": "area_ha", + "Description": "...", + "Unit": "" }, + {"Name": "sector_area_residential", + "Description": "...", + "Unit": "" }, + {"Name": "sector_area_retail", + "Description": "...", + "Unit": "" }, + {"Name": "sector_area_industrial", + "Description": "...", + "Unit": "" }, + {"Name": "sector_area_agricultural", + "Description": "...", + "Unit": "" }, + {"Name": "sector_area_sum", + "Description": "...", + "Unit": "" }, + {"Name": "sector_share_residential", + "Description": "...", + "Unit": "" }, + {"Name": "sector_share_retail", + "Description": "...", + "Unit": "" }, + {"Name": "sector_share_industrial", + "Description": "...", + "Unit": "" }, + {"Name": "sector_share_agricultural", + "Description": "...", + "Unit": "" }, + {"Name": "sector_share_sum", + "Description": "...", + "Unit": "" }, + {"Name": "sector_count_residential", + "Description": "...", + "Unit": "" }, + {"Name": "sector_count_retail", + "Description": "...", + "Unit": "" }, + {"Name": "sector_count_industrial", + "Description": "...", + "Unit": "" }, + {"Name": "sector_count_agricultural", + "Description": "...", + "Unit": "" }, + {"Name": "sector_consumption_residential", + "Description": "...", + "Unit": "" }, + {"Name": "sector_consumption_retail", + "Description": "...", + "Unit": "" }, + {"Name": "sector_consumption_industrial", + "Description": "...", + "Unit": "" }, + {"Name": "sector_consumption_agricultural", + "Description": "...", + "Unit": "" }, + {"Name": "sector_consumption_sum", + "Description": "...", + "Unit": "" }, + {"Name": "subst_id", + "Description": "...", + "Unit": "" }, + {"Name": "nuts", + "Description": "...", + "Unit": "" }, + {"Name": "rs_0", + "Description": "...", + "Unit": "" }, + {"Name": "ags_0", + "Description": "...", + "Unit": "" }, + {"Name": "geom_centroid", + "Description": "...", + "Unit": "" }, + {"Name": "geom_surfacepoint", + "Description": "...", + "Unit": "" }, + {"Name": "geom_centre", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "04.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('calc_ego_loads.ego_deu_load_area_ta'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE calc_ego_loads.ego_deu_loads_collect IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "04.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('calc_ego_loads.ego_deu_loads_collect'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE calc_ego_loads.ego_deu_loads_melted IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "04.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('calc_ego_loads.ego_deu_loads_melted'::regclass)::json; + +-- + + + +-- + +COMMENT ON TABLE calc_ego_loads.landuse_industry IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "gid", + "Description": "...", + "Unit": "" }, + {"Name": "osm_id", + "Description": "...", + "Unit": "" }, + {"Name": "name", + "Description": "...", + "Unit": "" }, + {"Name": "sector", + "Description": "...", + "Unit": "" }, + {"Name": "area_ha", + "Description": "...", + "Unit": "" }, + {"Name": "tags", + "Description": "...", + "Unit": "" }, + {"Name": "vg250", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }, + {"Name": "geom_centroid", + "Description": "...", + "Unit": "" }, + {"Name": "geom_surfacepoint", + "Description": "...", + "Unit": "" }, + {"Name": "geom_centre", + "Description": "...", + "Unit": "" }, + {"Name": "nuts", + "Description": "...", + "Unit": "" }, + {"Name": "consumption", + "Description": "...", + "Unit": "" }, + {"Name": "peak_load", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "04.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('calc_ego_loads.landuse_industry'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE calc_ego_loads.large_scale_consumer IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "polygon_id", + "Description": "...", + "Unit": "" }, + {"Name": "area_ha", + "Description": "...", + "Unit": "" }, + {"Name": "powerplant_id", + "Description": "...", + "Unit": "" }, + {"Name": "voltage_level", + "Description": "...", + "Unit": "" }, + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "consumption", + "Description": "...", + "Unit": "" }, + {"Name": "peak_load", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }, + {"Name": "geom_centre", + "Description": "...", + "Unit": "" }, + {"Name": "subst_id", + "Description": "...", + "Unit": "" }, + {"Name": "otg_id", + "Description": "...", + "Unit": "" }, + {"Name": "un_id", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "04.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('calc_ego_loads.large_scale_consumer'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE calc_ego_loads.load_per_griddistrict IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "subst_id", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }, + {"Name": "consumption", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "04.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('calc_ego_loads.load_per_griddistrict'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE calc_ego_loads.loads_total IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "un_id", + "Description": "...", + "Unit": "" }, + {"Name": "ssc_id", + "Description": "...", + "Unit": "" }, + {"Name": "lsc_id", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "04.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('calc_ego_loads.loads_total'::regclass)::json; + +-- + + + +-- + +COMMENT ON TABLE calc_ego_loads.pf_load_single IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "scn_name", + "Description": "...", + "Unit": "" }, + {"Name": "load_id", + "Description": "...", + "Unit": "" }, + {"Name": "bus", + "Description": "...", + "Unit": "" }, + {"Name": "sign", + "Description": "...", + "Unit": "" }, + {"Name": "e_annual", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "04.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('calc_ego_loads.pf_load_single'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE calc_ego_loads.urban_sector_per_grid_district_1_residential IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "04.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('calc_ego_loads.urban_sector_per_grid_district_1_residential'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE calc_ego_loads.urban_sector_per_grid_district_2_retail IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "04.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('calc_ego_loads.urban_sector_per_grid_district_2_retail'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE calc_ego_loads.urban_sector_per_grid_district_3_industrial IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "04.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('calc_ego_loads.urban_sector_per_grid_district_3_industrial'::regclass)::json; + +-- + + + +-- + +COMMENT ON TABLE calc_ego_loads.urban_sector_per_grid_district_4_agricultural IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "04.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('calc_ego_loads.urban_sector_per_grid_district_4_agricultural'::regclass)::json; + +-- + + + diff --git a/requirements.txt/SQL Documentation/calc_ego_mv_powerflow.sql b/requirements.txt/SQL Documentation/calc_ego_mv_powerflow.sql new file mode 100644 index 00000000..680b5492 --- /dev/null +++ b/requirements.txt/SQL Documentation/calc_ego_mv_powerflow.sql @@ -0,0 +1,557 @@ + +-- + +COMMENT ON TABLE calc_ego_mv_powerflow.bus IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "bus_id", + "Description": "...", + "Unit": "" }, + {"Name": "v_nom", + "Description": "...", + "Unit": "" }, + {"Name": "v_mag_pu_min", + "Description": "...", + "Unit": "" }, + {"Name": "v_mag_pu_max", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }, + {"Name": "scn_name", + "Description": "...", + "Unit": "" }, + {"Name": "grid_id", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "04.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('calc_ego_mv_powerflow.bus'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE calc_ego_mv_powerflow.bus_v_mag_set IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "scn_name", + "Description": "...", + "Unit": "" }, + {"Name": "bus_id", + "Description": "...", + "Unit": "" }, + {"Name": "temp_id", + "Description": "...", + "Unit": "" }, + {"Name": "v_mag_pu_set", + "Description": "...", + "Unit": "" }, + {"Name": "grid_id", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "04.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('calc_ego_mv_powerflow.bus_v_mag_set'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE calc_ego_mv_powerflow.generator IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "scn_name", + "Description": "...", + "Unit": "" }, + {"Name": "generator_id", + "Description": "...", + "Unit": "" }, + {"Name": "bus", + "Description": "...", + "Unit": "" }, + {"Name": "control", + "Description": "...", + "Unit": "" }, + {"Name": "p_nom", + "Description": "...", + "Unit": "" }, + {"Name": "p_min_pu_fixed", + "Description": "...", + "Unit": "" }, + {"Name": "p_max_pu_fixed", + "Description": "...", + "Unit": "" }, + {"Name": "sign", + "Description": "...", + "Unit": "" }, + {"Name": "grid_id", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "04.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('calc_ego_mv_powerflow.generator'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE calc_ego_mv_powerflow.generator_pq_set IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "scn_name", + "Description": "...", + "Unit": "" }, + {"Name": "generator_id", + "Description": "...", + "Unit": "" } + {"Name": "temp_id", + "Description": "...", + "Unit": "" } + {"Name": "p_set", + "Description": "...", + "Unit": "" } + {"Name": "q_set", + "Description": "...", + "Unit": "" } + {"Name": "p_min_pu", + "Description": "...", + "Unit": "" } + {"Name": "p_max_pu", + "Description": "...", + "Unit": "" } + {"Name": "grid_id", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "04.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('calc_ego_mv_powerflow.generator_pq_set'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE calc_ego_mv_powerflow.line IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "scn_name", + "Description": "...", + "Unit": "" }, + {"Name": "line_id", + "Description": "...", + "Unit": "" }, + {"Name": "bus0", + "Description": "...", + "Unit": "" }, + {"Name": "bus1", + "Description": "...", + "Unit": "" }, + {"Name": "x", + "Description": "...", + "Unit": "" }, + {"Name": "r", + "Description": "...", + "Unit": "" }, + {"Name": "g", + "Description": "...", + "Unit": "" }, + {"Name": "b", + "Description": "...", + "Unit": "" }, + {"Name": "s_nom", + "Description": "...", + "Unit": "" }, + {"Name": "lenght", + "Description": "...", + "Unit": "" }, + {"Name": "cables", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }, + {"Name": "grid_id", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "04.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('calc_ego_mv_powerflow.line'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE calc_ego_mv_powerflow.load IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "scn_name", + "Description": "...", + "Unit": "" }, + {"Name": "load_id", + "Description": "...", + "Unit": "" }, + {"Name": "bus", + "Description": "...", + "Unit": "" }, + {"Name": "sign", + "Description": "...", + "Unit": "" }, + {"Name": "grid_id", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "04.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('calc_ego_mv_powerflow.load'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE calc_ego_mv_powerflow.load_pq_set IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "scn_name", + "Description": "...", + "Unit": "" }, + {"Name": "load_id", + "Description": "...", + "Unit": "" }, + {"Name": "temp_id", + "Description": "...", + "Unit": "" }, + {"Name": "p_set", + "Description": "...", + "Unit": "" }, + {"Name": "q_set", + "Description": "...", + "Unit": "" }, + {"Name": "grid_id", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "04.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('calc_ego_mv_powerflow.load_pq_set'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE calc_ego_mv_powerflow.scenario_settings IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "scn_name", + "Description": "...", + "Unit": "" }, + {"Name": "bus", + "Description": "...", + "Unit": "" }, + {"Name": "bus_v_mag_set", + "Description": "...", + "Unit": "" }, + {"Name": "generator", + "Description": "...", + "Unit": "" }, + {"Name": "generator_pq_set", + "Description": "...", + "Unit": "" }, + {"Name": "line", + "Description": "...", + "Unit": "" }, + {"Name": "load", + "Description": "...", + "Unit": "" }, + {"Name": "load_pq_set", + "Description": "...", + "Unit": "" }, + {"Name": "storage", + "Description": "...", + "Unit": "" }, + {"Name": "storage_pq_set", + "Description": "...", + "Unit": "" }, + {"Name": "temp_resolution", + "Description": "...", + "Unit": "" }, + {"Name": "transformer", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "04.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('calc_ego_mv_powerflow.scenario_settings'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE calc_ego_mv_powerflow.temp_resolution IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "temp_id", + "Description": "...", + "Unit": "" }, + {"Name": "timesteps", + "Description": "...", + "Unit": "" }, + {"Name": "resolution", + "Description": "...", + "Unit": "" }, + {"Name": "start_time", + "Description": "...", + "Unit": "" }, + {"Name": "grid_id", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "04.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('calc_ego_mv_powerflow.temp_resolution'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE calc_ego_mv_powerflow.transformer IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "scn_name", + "Description": "...", + "Unit": "" }, + {"Name": "trafo_id", + "Description": "...", + "Unit": "" }, + {"Name": "bus0", + "Description": "...", + "Unit": "" }, + {"Name": "bus1", + "Description": "...", + "Unit": "" }, + {"Name": "x", + "Description": "...", + "Unit": "" }, + {"Name": "r", + "Description": "...", + "Unit": "" }, + {"Name": "g", + "Description": "...", + "Unit": "" }, + {"Name": "b", + "Description": "...", + "Unit": "" }, + {"Name": "s_nom", + "Description": "...", + "Unit": "" }, + {"Name": "tap_ratio", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }, + {"Name": "grid_id", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "04.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('calc_ego_mv_powerflow.transformer'::regclass)::json; + +-- + + diff --git a/requirements.txt/SQL Documentation/calc_ego_osmtgmod.sql b/requirements.txt/SQL Documentation/calc_ego_osmtgmod.sql new file mode 100644 index 00000000..7f90bdb0 --- /dev/null +++ b/requirements.txt/SQL Documentation/calc_ego_osmtgmod.sql @@ -0,0 +1,584 @@ + +-- + +COMMENT ON TABLE calc_ego_osmtgmod.branch_data IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "result_id", + "Description": "...", + "Unit": "" }, + {"Name": "view_id", + "Description": "...", + "Unit": "" }, + {"Name": "branch_id", + "Description": "...", + "Unit": "" }, + {"Name": "f_bus", + "Description": "...", + "Unit": "" }, + {"Name": "t_bus", + "Description": "...", + "Unit": "" }, + {"Name": "br_r", + "Description": "...", + "Unit": "" }, + {"Name": "br_x", + "Description": "...", + "Unit": "" }, + {"Name": "br_b", + "Description": "...", + "Unit": "" }, + {"Name": "rate_a", + "Description": "...", + "Unit": "" }, + {"Name": "rate_b", + "Description": "...", + "Unit": "" }, + {"Name": "rate_c", + "Description": "...", + "Unit": "" }, + {"Name": "tap", + "Description": "...", + "Unit": "" }, + {"Name": "shift", + "Description": "...", + "Unit": "" }, + {"Name": "br_status", + "Description": "...", + "Unit": "" }, + {"Name": "link_type", + "Description": "...", + "Unit": "" }, + {"Name": "branch_voltage", + "Description": "...", + "Unit": "" }, + {"Name": "cables", + "Description": "...", + "Unit": "" }, + {"Name": "frequency", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }, + {"Name": "topo", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "04.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('calc_ego_osmtgmod.branch_data'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE calc_ego_osmtgmod.bus_data IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "result_id", + "Description": "...", + "Unit": "" }, + {"Name": "view_id", + "Description": "...", + "Unit": "" }, + {"Name": "bus_i", + "Description": "...", + "Unit": "" }, + {"Name": "bus_type", + "Description": "...", + "Unit": "" }, + {"Name": "pd", + "Description": "...", + "Unit": "" }, + {"Name": "qd", + "Description": "...", + "Unit": "" }, + {"Name": "gs", + "Description": "...", + "Unit": "" }, + {"Name": "bs", + "Description": "...", + "Unit": "" }, + {"Name": "bus_area", + "Description": "...", + "Unit": "" }, + {"Name": "vm", + "Description": "...", + "Unit": "" }, + {"Name": "va", + "Description": "...", + "Unit": "" }, + {"Name": "base_kv", + "Description": "...", + "Unit": "" }, + {"Name": "zone", + "Description": "...", + "Unit": "" }, + {"Name": "vmax", + "Description": "...", + "Unit": "" }, + {"Name": "vmin", + "Description": "...", + "Unit": "" }, + {"Name": "osm_substation_id", + "Description": "...", + "Unit": "" }, + {"Name": "cntr_id", + "Description": "...", + "Unit": "" }, + {"Name": "frequency", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }, + {"Name": "osm_name", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "04.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('calc_ego_osmtgmod.bus_data'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE calc_ego_osmtgmod.dcline_data IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "result_id", + "Description": "...", + "Unit": "" }, + {"Name": "view_id", + "Description": "...", + "Unit": "" }, + {"Name": "dcline_id", + "Description": "...", + "Unit": "" }, + {"Name": "f_bus", + "Description": "...", + "Unit": "" }, + {"Name": "t_bus", + "Description": "...", + "Unit": "" }, + {"Name": "br_status", + "Description": "...", + "Unit": "" }, + {"Name": "pf", + "Description": "...", + "Unit": "" }, + {"Name": "pt", + "Description": "...", + "Unit": "" }, + {"Name": "qf", + "Description": "...", + "Unit": "" }, + {"Name": "qt", + "Description": "...", + "Unit": "" }, + {"Name": "vf", + "Description": "...", + "Unit": "" }, + {"Name": "vt", + "Description": "...", + "Unit": "" }, + {"Name": "pmin", + "Description": "...", + "Unit": "" }, + {"Name": "pmax", + "Description": "...", + "Unit": "" }, + {"Name": "qminf", + "Description": "...", + "Unit": "" }, + {"Name": "qmaxf", + "Description": "...", + "Unit": "" }, + {"Name": "qmint", + "Description": "...", + "Unit": "" }, + {"Name": "qmaxt", + "Description": "...", + "Unit": "" }, + {"Name": "loss0", + "Description": "...", + "Unit": "" }, + {"Name": "loss1", + "Description": "...", + "Unit": "" }, + {"Name": "link_type", + "Description": "...", + "Unit": "" }, + {"Name": "branch_voltage", + "Description": "...", + "Unit": "" }, + {"Name": "cables", + "Description": "...", + "Unit": "" }, + {"Name": "frequency", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }, + {"Name": "topo", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "04.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('calc_ego_osmtgmod.dcline_data'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE calc_ego_osmtgmod.nuts3_subst IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "result_id", + "Description": "...", + "Unit": "" }, + {"Name": "nuts_id", + "Description": "...", + "Unit": "" }, + {"Name": "substation_id", + "Description": "...", + "Unit": "" }, + {"Name": "percentage", + "Description": "...", + "Unit": "" }, + {"Name": "distance", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "04.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('calc_ego_osmtgmod.nuts3_subst'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE calc_ego_osmtgmod.plz_subst IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "result_id", + "Description": "...", + "Unit": "" }, + {"Name": "plz", + "Description": "...", + "Unit": "" }, + {"Name": "substation_id", + "Description": "...", + "Unit": "" }, + {"Name": "percentage", + "Description": "...", + "Unit": "" }, + {"Name": "distance", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "04.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('calc_ego_osmtgmod.plz_subst'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE calc_ego_osmtgmod.problem_log IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "result_id", + "Description": "...", + "Unit": "" }, + {"Name": "view_id", + "Description": "...", + "Unit": "" }, + {"Name": "object_type", + "Description": "...", + "Unit": "" }, + {"Name": "line_id", + "Description": "...", + "Unit": "" }, + {"Name": "relation_id", + "Description": "...", + "Unit": "" }, + {"Name": "way", + "Description": "...", + "Unit": "" }, + {"Name": "voltage", + "Description": "...", + "Unit": "" }, + {"Name": "cables", + "Description": "...", + "Unit": "" }, + {"Name": "wires", + "Description": "...", + "Unit": "" }, + {"Name": "frequency", + "Description": "...", + "Unit": "" }, + {"Name": "problem", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "04.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('calc_ego_osmtgmod.problem_log'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE calc_ego_osmtgmod.results_metadata IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "osm_date", + "Description": "...", + "Unit": "" }, + {"Name": "abstraction_date", + "Description": "...", + "Unit": "" }, + {"Name": "applied_plans", + "Description": "...", + "Unit": "" }, + {"Name": "applied_year", + "Description": "...", + "Unit": "" }, + {"Name": "user_comment", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "04.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('calc_ego_osmtgmod.results_metadata'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE calc_ego_osmtgmod.substations IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "result_id", + "Description": "...", + "Unit": "" }, + {"Name": "view_id", + "Description": "...", + "Unit": "" }, + {"Name": "osm_id", + "Description": "...", + "Unit": "" }, + {"Name": "voltage", + "Description": "...", + "Unit": "" }, + {"Name": "s_long", + "Description": "...", + "Unit": "" }, + {"Name": "name", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }, + {"Name": "center_geom", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "04.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('calc_ego_osmtgmod.substations'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE calc_ego_osmtgmod.view_results IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "result_id", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "04.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('calc_ego_osmtgmod.view_results'::regclass)::json; + +-- + + diff --git a/requirements.txt/SQL Documentation/calc_ego_re.sql b/requirements.txt/SQL Documentation/calc_ego_re.sql new file mode 100644 index 00000000..47c75cee --- /dev/null +++ b/requirements.txt/SQL Documentation/calc_ego_re.sql @@ -0,0 +1,1108 @@ + +-- + +COMMENT ON TABLE calc_ego_re.dea_germany_per_generation_type_and_voltage_level IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "generation_type", + "Description": "...", + "Unit": "" }, + {"Name": "generation_subtype", + "Description": "...", + "Unit": "" }, + {"Name": "voltage_level", + "Description": "...", + "Unit": "" }, + {"Name": "capacity", + "Description": "...", + "Unit": "" }, + {"Name": "count", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "04.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('calc_ego_re.dea_germany_per_generation_type_and_voltage_level'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE calc_ego_re.dea_germany_per_grid_district IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "subst_id", + "Description": "...", + "Unit": "" }, + {"Name": "lv_dea_cnt", + "Description": "...", + "Unit": "" }, + {"Name": "lv_dea_capacity", + "Description": "...", + "Unit": "" }, + {"Name": "mv_dea_cnt", + "Description": "...", + "Unit": "" }, + {"Name": "mv_dea_capacity", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "04.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('calc_ego_re.dea_germany_per_grid_district'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE calc_ego_re.dea_germany_per_load_area IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "subst_id", + "Description": "...", + "Unit": "" }, + {"Name": "lv_dea_cnt", + "Description": "...", + "Unit": "" }, + {"Name": "lv_dea_capacity", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "04.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('calc_ego_re.dea_germany_per_load_area'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE calc_ego_re.deu_grid_34m_la IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "subst_id", + "Description": "...", + "Unit": "" }, + {"Name": "area_type", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "04.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('calc_ego_re.deu_grid_34m_la'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE calc_ego_re.deu_grid_500m IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "subst_id", + "Description": "...", + "Unit": "" }, + {"Name": "area_type", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "04.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('calc_ego_re.deu_grid_500m'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE calc_ego_re.deu_grid_50m_la IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "subst_id", + "Description": "...", + "Unit": "" }, + {"Name": "area_type", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "04.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('calc_ego_re.deu_grid_50m_la'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE calc_ego_re.ego_deu_dea IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "sort", + "Description": "...", + "Unit": "" }, + {"Name": "electrical_capacity", + "Description": "...", + "Unit": "" }, + {"Name": "generator_type", + "Description": "...", + "Unit": "" }, + {"Name": "generator_subtype", + "Description": "...", + "Unit": "" }, + {"Name": "voltage_level", + "Description": "...", + "Unit": "" }, + {"Name": "voltage_type", + "Description": "...", + "Unit": "" }, + {"Name": "subst_id", + "Description": "...", + "Unit": "" }, + {"Name": "la_id", + "Description": "...", + "Unit": "" }, + {"Name": "geom_line", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }, + {"Name": "geom_new", + "Description": "...", + "Unit": "" }, + {"Name": "flag", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "04.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('calc_ego_re.ego_deu_dea'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE calc_ego_re.egp_deu_dea_m2_windfarm IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "farm_id", + "Description": "...", + "Unit": "" }, + {"Name": "subst_id", + "Description": "...", + "Unit": "" }, + {"Name": "area_ha", + "Description": "...", + "Unit": "" }, + {"Name": "dea_cnt", + "Description": "...", + "Unit": "" }, + {"Name": "electrical_capacity_sum", + "Description": "...", + "Unit": "" }, + {"Name": "geom_new", + "Description": "...", + "Unit": "" }, + {"Name": "geom_line", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "04.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('calc_ego_re.egp_deu_dea_m2_windfarm'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE calc_ego_re.ego_deu_dea_out_nn IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "dea_id", + "Description": "...", + "Unit": "" }, + {"Name": "generator_type", + "Description": "...", + "Unit": "" }, + {"Name": "subst_id", + "Description": "...", + "Unit": "" }, + {"Name": "geom_sub", + "Description": "...", + "Unit": "" }, + {"Name": "distance", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "04.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('calc_ego_re.ego_deu_dea_out_nn'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE calc_ego_re.geo_pot_area IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "region_key", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "04.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('calc_ego_re.geo_pot_area'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE calc_ego_re.geo_pot_area_dump IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "04.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('calc_ego_re.geo_pot_area_dump'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE calc_ego_re.geo_pot_area_per_grid_district IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "subst_id", + "Description": "...", + "Unit": "" }, + {"Name": "area_ha", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "04.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('calc_ego_re.geo_pot_area_per_grid_district'::regclass)::json; + +-- + + + +-- + +COMMENT ON TABLE calc_ego_re.grid_in_pot_area IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "grid_id", + "Description": "...", + "Unit": "" }, + {"Name": "subst_id", + "Description": "...", + "Unit": "" }, + {"Name": "pot_id", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "04.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('calc_ego_re.grid_in_pot_area'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE calc_ego_re.m3_grid_wpa_temp IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "sorted", + "Description": "...", + "Unit": "" }, + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "subst_id", + "Description": "...", + "Unit": "" }, + {"Name": "area_type", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "04.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('calc_ego_re.m3_grid_wpa_temp'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE calc_ego_re.m4_dea_temp IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "sorted", + "Description": "...", + "Unit": "" }, + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "electrical_capacity", + "Description": "...", + "Unit": "" }, + {"Name": "generation_type", + "Description": "...", + "Unit": "" }, + {"Name": "generation_subtype", + "Description": "...", + "Unit": "" }, + {"Name": "voltage_level", + "Description": "...", + "Unit": "" }, + {"Name": "subst_id", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }, + {"Name": "flag", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "04.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('calc_ego_re.m4_dea_temp'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE calc_ego_re.m4_grid_wpa_temp IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "sorted", + "Description": "...", + "Unit": "" }, + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "subst_id", + "Description": "...", + "Unit": "" }, + {"Name": "area_type", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "04.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('calc_ego_re.m4_grid_wpa_temp'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE calc_ego_re.m4_int_temp IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "sorted", + "Description": "...", + "Unit": "" }, + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "geom_line", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "04.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('calc_ego_re.m4_int_temp'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE calc_ego_re.m5_dea_temp IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "sorted", + "Description": "...", + "Unit": "" }, + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "electrical_capacity", + "Description": "...", + "Unit": "" }, + {"Name": "generation_type", + "Description": "...", + "Unit": "" }, + {"Name": "generation_subtype", + "Description": "...", + "Unit": "" }, + {"Name": "voltage_level", + "Description": "...", + "Unit": "" }, + {"Name": "subst_id", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }, + {"Name": "flag", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "04.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('calc_ego_re.m5_dea_temp'::regclass)::json; + +-- + + + +-- + +COMMENT ON TABLE calc_ego_re.m5_grid_la_temp IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "sorted", + "Description": "...", + "Unit": "" }, + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "subst_id", + "Description": "...", + "Unit": "" }, + {"Name": "area_type", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "04.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('calc_ego_re.m5_grid_la_temp'::regclass)::json; + +-- + + + +-- + +COMMENT ON TABLE calc_ego_re.m5_int_temp IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "sorted", + "Description": "...", + "Unit": "" }, + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "geom_line", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "04.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('calc_ego_re.m5_int_temp'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE calc_ego_re.py_deu_grid_34m IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "geom", + "Description": "...", + "Unit": "" }, + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "geom_pnt", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "04.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('calc_ego_re.py_deu_grid_34m'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE calc_ego_re.py_deu_grid_500m IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "geom", + "Description": "...", + "Unit": "" }, + {"Name": "id", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "04.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('calc_ego_re.py_deu_grid_500m'::regclass)::json; + +-- + + + +-- + +COMMENT ON TABLE calc_ego_re.py_deu_grid_50m IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "geom", + "Description": "...", + "Unit": "" }, + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "geom_pnt", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "04.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('calc_ego_re.py_deu_grid_50m'::regclass)::json; + +-- + + + +-- + +COMMENT ON TABLE calc_ego_re.urban_sector_per_grid_district_4_agricultural IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "subst_id", + "Description": "...", + "Unit": "" }, + {"Name": "area_ha", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "04.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('calc_ego_re.urban_sector_per_grid_district_4_agricultural'::regclass)::json; + +-- + + + diff --git a/requirements.txt/SQL Documentation/calc_ego_substation.sql b/requirements.txt/SQL Documentation/calc_ego_substation.sql new file mode 100644 index 00000000..1ecee766 --- /dev/null +++ b/requirements.txt/SQL Documentation/calc_ego_substation.sql @@ -0,0 +1,567 @@ + +-- + +COMMENT ON TABLE calc_ego_substation.ego_deu_onts IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "geom", + "Description": "...", + "Unit": "" }, + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "is_dummy", + "Description": "...", + "Unit": "" }, + {"Name": "subst_id", + "Description": "...", + "Unit": "" }, + {"Name": "load_area_id", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "04.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('calc_ego_substation.ego_deu_onts'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE calc_ego_substation.ego_deu_onts_little_ta IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }, + {"Name": "load_area_id", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "04.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('calc_ego_substation.ego_deu_onts_little_ta'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE calc_ego_substation.ego_deu_onts_ta IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }, + {"Name": "load_area_id", + "Description": "...", + "Unit": "" }, + {"Name": "is_dummy", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "04.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('calc_ego_substation.ego_deu_onts_ta'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE calc_ego_substation.ego_deu_substations IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "lon", + "Description": "...", + "Unit": "" }, + {"Name": "lat", + "Description": "...", + "Unit": "" }, + {"Name": "point", + "Description": "...", + "Unit": "" }, + {"Name": "polygon", + "Description": "...", + "Unit": "" }, + {"Name": "voltage", + "Description": "...", + "Unit": "" }, + {"Name": "power_type", + "Description": "...", + "Unit": "" }, + {"Name": "substation", + "Description": "...", + "Unit": "" }, + {"Name": "osm_id", + "Description": "...", + "Unit": "" }, + {"Name": "osm_www", + "Description": "...", + "Unit": "" }, + {"Name": "frequency", + "Description": "...", + "Unit": "" }, + {"Name": "name", + "Description": "...", + "Unit": "" }, + {"Name": "ref", + "Description": "...", + "Unit": "" }, + {"Name": "operator", + "Description": "...", + "Unit": "" }, + {"Name": "dbahn", + "Description": "...", + "Unit": "" }, + {"Name": "status", + "Description": "...", + "Unit": "" }, + {"Name": "visible", + "Description": "...", + "Unit": "" }, + {"Name": "otg_id", + "Description": "...", + "Unit": "" }, + {"Name": "subst_id", + "Description": "...", + "Unit": "" }, + {"Name": "subst_name", + "Description": "...", + "Unit": "" }, + {"Name": "ags_0", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "04.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('calc_ego_substation.ego_deu_substations'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE calc_ego_substation.ego_deu_substations_ehv IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "lon", + "Description": "...", + "Unit": "" }, + {"Name": "lat", + "Description": "...", + "Unit": "" }, + {"Name": "point", + "Description": "...", + "Unit": "" }, + {"Name": "polygon", + "Description": "...", + "Unit": "" }, + {"Name": "voltage", + "Description": "...", + "Unit": "" }, + {"Name": "power_type", + "Description": "...", + "Unit": "" }, + {"Name": "substation", + "Description": "...", + "Unit": "" }, + {"Name": "osm_id", + "Description": "...", + "Unit": "" }, + {"Name": "osm_www", + "Description": "...", + "Unit": "" }, + {"Name": "frequency", + "Description": "...", + "Unit": "" }, + {"Name": "name", + "Description": "...", + "Unit": "" }, + {"Name": "ref", + "Description": "...", + "Unit": "" }, + {"Name": "operator", + "Description": "...", + "Unit": "" }, + {"Name": "dbahn", + "Description": "...", + "Unit": "" }, + {"Name": "status", + "Description": "...", + "Unit": "" }, + {"Name": "visible", + "Description": "...", + "Unit": "" }, + {"Name": "otg_id", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "04.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('calc_ego_substation.ego_deu_substations_ehv'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE calc_ego_substation.ego_deu_substations_voronoi IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "geom", + "Description": "...", + "Unit": "" }, + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "subst_id", + "Description": "...", + "Unit": "" }, + {"Name": "subst_sum", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "04.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('calc_ego_substation.ego_deu_substations_voronoi'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE calc_ego_substation.ego_deu_substations_voronoi_cut IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "subst_id", + "Description": "...", + "Unit": "" }, + {"Name": "mun_id", + "Description": "...", + "Unit": "" }, + {"Name": "voi_id", + "Description": "...", + "Unit": "" }, + {"Name": "ags_0", + "Description": "...", + "Unit": "" }, + {"Name": "subst_type", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }, + {"Name": "subst_sum", + "Description": "...", + "Unit": "" }, + {"Name": "geom_sub", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "04.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('calc_ego_substation.ego_deu_substations_voronoi_cut'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE calc_ego_substation.ego_deu_substation_voronoi_cut_nn_collect IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "subst_id", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "04.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('calc_ego_substation.ego_deu_substation_voronoi_cut_nn_collect'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE calc_ego_substation.ego_deu_voronoi_ehv IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "geom", + "Description": "...", + "Unit": "" }, + {"Name": "subst_id", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "04.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('calc_ego_substation.ego_deu_voronoi_ehv'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE calc_ego_substation.subs_dea IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "subst_id", + "Description": "...", + "Unit": "" }, + {"Name": "wea_osm", + "Description": "...", + "Unit": "" }, + {"Name": "wea_opsd", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "04.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('calc_ego_substation.subs_dea'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE calc_ego_substation.substation_dummy IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "subst_id", + "Description": "...", + "Unit": "" }, + {"Name": "subst_name", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "04.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('calc_ego_substation.substation_dummy'::regclass)::json; + +-- + diff --git a/requirements.txt/SQL Documentation/calc_gridcells_znes.sql b/requirements.txt/SQL Documentation/calc_gridcells_znes.sql new file mode 100644 index 00000000..f100a4fe --- /dev/null +++ b/requirements.txt/SQL Documentation/calc_gridcells_znes.sql @@ -0,0 +1,79 @@ + +-- + +COMMENT ON TABLE calc_gridcells_znes.substation_dummy IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "subst_id", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }, + {"Name": "lon", + "Description": "...", + "Unit": "" }, + {"Name": "lat", + "Description": "...", + "Unit": "" }, + {"Name": "voltage", + "Description": "...", + "Unit": "" }, + {"Name": "power_typ", + "Description": "...", + "Unit": "" }, + {"Name": "osm_id", + "Description": "...", + "Unit": "" }, + {"Name": "osm_typ", + "Description": "...", + "Unit": "" }, + {"Name": "osm_www", + "Description": "...", + "Unit": "" }, + {"Name": "frequency", + "Description": "...", + "Unit": "" }, + {"Name": "name", + "Description": "...", + "Unit": "" }, + {"Name": "ref", + "Description": "...", + "Unit": "" }, + {"Name": "substation", + "Description": "...", + "Unit": "" }, + {"Name": "operator", + "Description": "...", + "Unit": "" }, + {"Name": "status", + "Description": "...", + "Unit": "" }, + {"Name": "visible", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "04.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('calc_gridcells_znes.substation_dummy'::regclass)::json; + +-- + diff --git a/requirements.txt/SQL Documentation/calc_renpass_gis.sql b/requirements.txt/SQL Documentation/calc_renpass_gis.sql new file mode 100644 index 00000000..0719c62b --- /dev/null +++ b/requirements.txt/SQL Documentation/calc_renpass_gis.sql @@ -0,0 +1,486 @@ + +-- + +COMMENT ON TABLE calc_renpass_gis.parameter_solar_feedin IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "gid", + "Description": "...", + "Unit": "" }, + {"Name": "year", + "Description": "...", + "Unit": "" }, + {"Name": "feedin", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "04.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('calc_renpass_gis.parameter_solar_feedin'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE calc_renpass_gis.parameter_wind_feedin IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "gid", + "Description": "...", + "Unit": "" }, + {"Name": "year", + "Description": "...", + "Unit": "" }, + {"Name": "feedin", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "04.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('calc_renpass_gis.parameter_wind_feedin'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE calc_renpass_gis.renpass_gis_linear_transformer IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "scenario_id", + "Description": "...", + "Unit": "" }, + {"Name": "label", + "Description": "...", + "Unit": "" }, + {"Name": "source", + "Description": "...", + "Unit": "" }, + {"Name": "target", + "Description": "...", + "Unit": "" }, + {"Name": "conversion_factors", + "Description": "...", + "Unit": "" }, + {"Name": "summed_min", + "Description": "...", + "Unit": "" }, + {"Name": "nominal_value", + "Description": "...", + "Unit": "" }, + {"Name": "actual_value", + "Description": "...", + "Unit": "" }, + {"Name": "fixed", + "Description": "...", + "Unit": "" }, + {"Name": "variable_costs", + "Description": "...", + "Unit": "" }, + {"Name": "fixed_costs", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "04.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('calc_renpass_gis.renpass_gis_linear_transformer'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE calc_renpass_gis.renpass_gis_result IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "scenario_id", + "Description": "...", + "Unit": "" }, + {"Name": "bus_label", + "Description": "...", + "Unit": "" }, + {"Name": "type", + "Description": "...", + "Unit": "" }, + {"Name": "obj_label", + "Description": "...", + "Unit": "" }, + {"Name": "datetime", + "Description": "...", + "Unit": "" }, + {"Name": "val", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "04.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('calc_renpass_gis.renpass_gis_result'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE calc_renpass_gis.renpass_gis_scenario IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "name", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "04.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('calc_renpass_gis.renpass_gis_scenario'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE calc_renpass_gis.renpass_gis_sink IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "scenario_id", + "Description": "...", + "Unit": "" }, + {"Name": "label", + "Description": "...", + "Unit": "" }, + {"Name": "source", + "Description": "...", + "Unit": "" }, + {"Name": "target", + "Description": "...", + "Unit": "" }, + {"Name": "nominal_value", + "Description": "...", + "Unit": "" }, + {"Name": "actual_value", + "Description": "...", + "Unit": "" }, + {"Name": "fixed", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "04.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('calc_renpass_gis.renpass_gis_sink'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE calc_renpass_gis.renpass_gis_source IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "scenario_id", + "Description": "...", + "Unit": "" }, + {"Name": "label", + "Description": "...", + "Unit": "" }, + {"Name": "source", + "Description": "...", + "Unit": "" }, + {"Name": "target", + "Description": "...", + "Unit": "" }, + {"Name": "nominal_value", + "Description": "...", + "Unit": "" }, + {"Name": "actual_value", + "Description": "...", + "Unit": "" }, + {"Name": "variable_costs", + "Description": "...", + "Unit": "" }, + {"Name": "fixed", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "04.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('calc_renpass_gis.renpass_gis_source'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE calc_renpass_gis.renpass_gis_storage IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "scenario_id", + "Description": "...", + "Unit": "" }, + {"Name": "label", + "Description": "...", + "Unit": "" }, + {"Name": "source", + "Description": "...", + "Unit": "" }, + {"Name": "target", + "Description": "...", + "Unit": "" }, + {"Name": "conversion_factors", + "Description": "...", + "Unit": "" }, + {"Name": "summed_min", + "Description": "...", + "Unit": "" }, + {"Name": "nominal_value", + "Description": "...", + "Unit": "" }, + {"Name": "min", + "Description": "...", + "Unit": "" }, + {"Name": "max", + "Description": "...", + "Unit": "" }, + {"Name": "actual_value", + "Description": "...", + "Unit": "" }, + {"Name": "fixed", + "Description": "...", + "Unit": "" }, + {"Name": "variable_costs", + "Description": "...", + "Unit": "" }, + {"Name": "fixed_costs", + "Description": "...", + "Unit": "" }, + {"Name": "nominal_capacity", + "Description": "...", + "Unit": "" }, + {"Name": "capacity_loss", + "Description": "...", + "Unit": "" }, + {"Name": "inflow_conversion_factor", + "Description": "...", + "Unit": "" }, + {"Name": "outflow_conversion_factor", + "Description": "...", + "Unit": "" }, + {"Name": "initial_capacity", + "Description": "...", + "Unit": "" }, + {"Name": "capacity_min", + "Description": "...", + "Unit": "" }, + {"Name": "capacity_max", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "04.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('calc_renpass_gis.renpass_gis_storage'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE calc_renpass_gis.voronoi_weatherpoint IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "geom", + "Description": "...", + "Unit": "" }, + {"Name": "id", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "04.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('calc_renpass_gis.voronoi_weatherpoint'::regclass)::json; + +-- + diff --git a/requirements.txt/SQL Documentation/geo_ego_jg.sql b/requirements.txt/SQL Documentation/geo_ego_jg.sql new file mode 100644 index 00000000..659de5b6 --- /dev/null +++ b/requirements.txt/SQL Documentation/geo_ego_jg.sql @@ -0,0 +1,2261 @@ + +-- + +COMMENT ON TABLE geo_ego_jg.MS_Trafos_Lines_Bies IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }, + {"Name": "name", + "Description": "...", + "Unit": "" }, + {"Name": "descriptio", + "Description": "...", + "Unit": "" }, + {"Name": "timestamp", + "Description": "...", + "Unit": "" }, + {"Name": "begin", + "Description": "...", + "Unit": "" }, + {"Name": "end", + "Description": "...", + "Unit": "" }, + {"Name": "altitudemo", + "Description": "...", + "Unit": "" }, + {"Name": "tessellate", + "Description": "...", + "Unit": "" }, + {"Name": "extrude", + "Description": "...", + "Unit": "" }, + {"Name": "visibility", + "Description": "...", + "Unit": "" }, + {"Name": "draworder", + "Description": "...", + "Unit": "" }, + {"Name": "icon", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('geo_ego_jg.MS_Trafos_Lines_Bies'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE geo_ego_jg.MS_Trafos_Lines_Breit IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }, + {"Name": "name", + "Description": "...", + "Unit": "" }, + {"Name": "descriptio", + "Description": "...", + "Unit": "" }, + {"Name": "timestamp", + "Description": "...", + "Unit": "" }, + {"Name": "begin", + "Description": "...", + "Unit": "" }, + {"Name": "end", + "Description": "...", + "Unit": "" }, + {"Name": "altitudemo", + "Description": "...", + "Unit": "" }, + {"Name": "tessellate", + "Description": "...", + "Unit": "" }, + {"Name": "extrude", + "Description": "...", + "Unit": "" }, + {"Name": "visibility", + "Description": "...", + "Unit": "" }, + {"Name": "draworder", + "Description": "...", + "Unit": "" }, + {"Name": "icon", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('geo_ego_jg.MS_Trafos_Lines_Breit'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE geo_ego_jg.MS_Trafos_Lines_Buch IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }, + {"Name": "name", + "Description": "...", + "Unit": "" }, + {"Name": "descriptio", + "Description": "...", + "Unit": "" }, + {"Name": "timestamp", + "Description": "...", + "Unit": "" }, + {"Name": "begin", + "Description": "...", + "Unit": "" }, + {"Name": "end", + "Description": "...", + "Unit": "" }, + {"Name": "altitudemo", + "Description": "...", + "Unit": "" }, + {"Name": "tessellate", + "Description": "...", + "Unit": "" }, + {"Name": "extrude", + "Description": "...", + "Unit": "" }, + {"Name": "visibility", + "Description": "...", + "Unit": "" }, + {"Name": "draworder", + "Description": "...", + "Unit": "" }, + {"Name": "icon", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('geo_ego_jg.MS_Trafos_Lines_Buch'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE geo_ego_jg.MS_Trafos_Lines_Burg IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }, + {"Name": "name", + "Description": "...", + "Unit": "" }, + {"Name": "descriptio", + "Description": "...", + "Unit": "" }, + {"Name": "timestamp", + "Description": "...", + "Unit": "" }, + {"Name": "begin", + "Description": "...", + "Unit": "" }, + {"Name": "end", + "Description": "...", + "Unit": "" }, + {"Name": "altitudemo", + "Description": "...", + "Unit": "" }, + {"Name": "tessellate", + "Description": "...", + "Unit": "" }, + {"Name": "extrude", + "Description": "...", + "Unit": "" }, + {"Name": "visibility", + "Description": "...", + "Unit": "" }, + {"Name": "draworder", + "Description": "...", + "Unit": "" }, + {"Name": "icon", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('geo_ego_jg.MS_Trafos_Lines_Burg'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE geo_ego_jg.MS_Trafos_Lines_Horg IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }, + {"Name": "name", + "Description": "...", + "Unit": "" }, + {"Name": "descriptio", + "Description": "...", + "Unit": "" }, + {"Name": "timestamp", + "Description": "...", + "Unit": "" }, + {"Name": "begin", + "Description": "...", + "Unit": "" }, + {"Name": "end", + "Description": "...", + "Unit": "" }, + {"Name": "altitudemo", + "Description": "...", + "Unit": "" }, + {"Name": "tessellate", + "Description": "...", + "Unit": "" }, + {"Name": "extrude", + "Description": "...", + "Unit": "" }, + {"Name": "visibility", + "Description": "...", + "Unit": "" }, + {"Name": "draworder", + "Description": "...", + "Unit": "" }, + {"Name": "icon", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('geo_ego_jg.MS_Trafos_Lines_Horg'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE geo_ego_jg.MS_Trafos_Lines_Lager IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }, + {"Name": "name", + "Description": "...", + "Unit": "" }, + {"Name": "descriptio", + "Description": "...", + "Unit": "" }, + {"Name": "timestamp", + "Description": "...", + "Unit": "" }, + {"Name": "begin", + "Description": "...", + "Unit": "" }, + {"Name": "end", + "Description": "...", + "Unit": "" }, + {"Name": "altitudemo", + "Description": "...", + "Unit": "" }, + {"Name": "tessellate", + "Description": "...", + "Unit": "" }, + {"Name": "extrude", + "Description": "...", + "Unit": "" }, + {"Name": "visibility", + "Description": "...", + "Unit": "" }, + {"Name": "draworder", + "Description": "...", + "Unit": "" }, + {"Name": "icon", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('geo_ego_jg.MS_Trafos_Lines_Lager'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE geo_ego_jg.MS_Trafos_Lines_Leng IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }, + {"Name": "name", + "Description": "...", + "Unit": "" }, + {"Name": "descriptio", + "Description": "...", + "Unit": "" }, + {"Name": "timestamp", + "Description": "...", + "Unit": "" }, + {"Name": "begin", + "Description": "...", + "Unit": "" }, + {"Name": "end", + "Description": "...", + "Unit": "" }, + {"Name": "altitudemo", + "Description": "...", + "Unit": "" }, + {"Name": "tessellate", + "Description": "...", + "Unit": "" }, + {"Name": "extrude", + "Description": "...", + "Unit": "" }, + {"Name": "visibility", + "Description": "...", + "Unit": "" }, + {"Name": "draworder", + "Description": "...", + "Unit": "" }, + {"Name": "icon", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('geo_ego_jg.MS_Trafos_Lines_Leng'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE geo_ego_jg.MS_Trafos_Lines_Mem2 IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }, + {"Name": "name", + "Description": "...", + "Unit": "" }, + {"Name": "descriptio", + "Description": "...", + "Unit": "" }, + {"Name": "timestamp", + "Description": "...", + "Unit": "" }, + {"Name": "begin", + "Description": "...", + "Unit": "" }, + {"Name": "end", + "Description": "...", + "Unit": "" }, + {"Name": "altitudemo", + "Description": "...", + "Unit": "" }, + {"Name": "tessellate", + "Description": "...", + "Unit": "" }, + {"Name": "extrude", + "Description": "...", + "Unit": "" }, + {"Name": "visibility", + "Description": "...", + "Unit": "" }, + {"Name": "draworder", + "Description": "...", + "Unit": "" }, + {"Name": "icon", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('geo_ego_jg.MS_Trafos_Lines_Mem2'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE geo_ego_jg.MS_Trafos_Lines_Obau IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }, + {"Name": "name", + "Description": "...", + "Unit": "" }, + {"Name": "descriptio", + "Description": "...", + "Unit": "" }, + {"Name": "timestamp", + "Description": "...", + "Unit": "" }, + {"Name": "begin", + "Description": "...", + "Unit": "" }, + {"Name": "end", + "Description": "...", + "Unit": "" }, + {"Name": "altitudemo", + "Description": "...", + "Unit": "" }, + {"Name": "tessellate", + "Description": "...", + "Unit": "" }, + {"Name": "extrude", + "Description": "...", + "Unit": "" }, + {"Name": "visibility", + "Description": "...", + "Unit": "" }, + {"Name": "draworder", + "Description": "...", + "Unit": "" }, + {"Name": "icon", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('geo_ego_jg.MS_Trafos_Lines_Obau'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE geo_ego_jg.MS_Trafos_Lines_Otto IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }, + {"Name": "name", + "Description": "...", + "Unit": "" }, + {"Name": "descriptio", + "Description": "...", + "Unit": "" }, + {"Name": "timestamp", + "Description": "...", + "Unit": "" }, + {"Name": "begin", + "Description": "...", + "Unit": "" }, + {"Name": "end", + "Description": "...", + "Unit": "" }, + {"Name": "altitudemo", + "Description": "...", + "Unit": "" }, + {"Name": "tessellate", + "Description": "...", + "Unit": "" }, + {"Name": "extrude", + "Description": "...", + "Unit": "" }, + {"Name": "visibility", + "Description": "...", + "Unit": "" }, + {"Name": "draworder", + "Description": "...", + "Unit": "" }, + {"Name": "icon", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('geo_ego_jg.MS_Trafos_Lines_Otto'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE geo_ego_jg.MS_Trafos_Lines_Untei IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }, + {"Name": "name", + "Description": "...", + "Unit": "" }, + {"Name": "descriptio", + "Description": "...", + "Unit": "" }, + {"Name": "timestamp", + "Description": "...", + "Unit": "" }, + {"Name": "begin", + "Description": "...", + "Unit": "" }, + {"Name": "end", + "Description": "...", + "Unit": "" }, + {"Name": "altitudemo", + "Description": "...", + "Unit": "" }, + {"Name": "tessellate", + "Description": "...", + "Unit": "" }, + {"Name": "extrude", + "Description": "...", + "Unit": "" }, + {"Name": "visibility", + "Description": "...", + "Unit": "" }, + {"Name": "draworder", + "Description": "...", + "Unit": "" }, + {"Name": "icon", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('geo_ego_jg.MS_Trafos_Lines_Untei'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE geo_ego_jg.MS_Trafos_ges_Trafos_Points IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "name", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }, + {"Name": "id", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('geo_ego_jg.MS_Trafos_ges_Trafos_Points'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE geo_ego_jg.NS_Tus IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }, + {"Name": "name", + "Description": "...", + "Unit": "" }, + {"Name": "descriptio", + "Description": "...", + "Unit": "" }, + {"Name": "timestamp", + "Description": "...", + "Unit": "" }, + {"Name": "begin", + "Description": "...", + "Unit": "" }, + {"Name": "end", + "Description": "...", + "Unit": "" }, + {"Name": "altitudemo", + "Description": "...", + "Unit": "" }, + {"Name": "tessellate", + "Description": "...", + "Unit": "" }, + {"Name": "extrude", + "Description": "...", + "Unit": "" }, + {"Name": "visibility", + "Description": "...", + "Unit": "" }, + {"Name": "draworder", + "Description": "...", + "Unit": "" }, + {"Name": "icon", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('geo_ego_jg.NS_Tus'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE geo_ego_jg.NS_Tus_Elements IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "Element_ID", + "Description": "...", + "Unit": "" }, + {"Name": "Name", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('geo_ego_jg.NS_Tus_Elements'::regclass)::json; + +-- + + + +-- + +COMMENT ON TABLE geo_ego_jg.NS_Tus_Hausanschluesse IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "geom", + "Description": "...", + "Unit": "" }, + {"Name": "Element_ID", + "Description": "...", + "Unit": "" }, + {"Name": "Name", + "Description": "...", + "Unit": "" }, + {"Name": "Flag_LineTyp", + "Description": "...", + "Unit": "" }, + {"Name": "LineTyp", + "Description": "...", + "Unit": "" }, + {"Name": "Typ_ID", + "Description": "...", + "Unit": "" }, + {"Name": "Flag_Typ_ID", + "Description": "...", + "Unit": "" }, + {"Name": "q", + "Description": "...", + "Unit": "" }, + {"Name": "l", + "Description": "...", + "Unit": "" }, + {"Name": "ParSys", + "Description": "...", + "Unit": "" }, + {"Name": "Flag_Vart", + "Description": "...", + "Unit": "" }, + {"Name": "Flag_LI", + "Description": "...", + "Unit": "" }, + {"Name": "fr", + "Description": "...", + "Unit": "" }, + {"Name": "Flag_Tend", + "Description": "...", + "Unit": "" }, + {"Name": "Tend", + "Description": "...", + "Unit": "" }, + {"Name": "r", + "Description": "...", + "Unit": "" }, + {"Name": "x", + "Description": "...", + "Unit": "" }, + {"Name": "c", + "Description": "...", + "Unit": "" }, + {"Name": "Un", + "Description": "...", + "Unit": "" }, + {"Name": "Flag_Mat", + "Description": "...", + "Unit": "" }, + {"Name": "Flag_Cond", + "Description": "...", + "Unit": "" }, + {"Name": "va", + "Description": "...", + "Unit": "" }, + {"Name": "lth", + "Description": "...", + "Unit": "" }, + {"Name": "fn", + "Description": "...", + "Unit": "" }, + {"Name": "l1s", + "Description": "...", + "Unit": "" }, + {"Name": "Flag_Z0_lnp", + "Description": "...", + "Unit": "" }, + {"Name": "X0_X1", + "Description": "...", + "Unit": "" }, + {"Name": "R0_R1", + "Description": "...", + "Unit": "" }, + {"Name": "r0", + "Description": "...", + "Unit": "" }, + {"Name": "x0", + "Description": "...", + "Unit": "" }, + {"Name": "c0", + "Description": "...", + "Unit": "" }, + {"Name": "q0", + "Description": "...", + "Unit": "" }, + {"Name": "Flag_Ground", + "Description": "...", + "Unit": "" }, + {"Name": "flk", + "Description": "...", + "Unit": "" }, + {"Name": "Umax", + "Description": "...", + "Unit": "" }, + {"Name": "d", + "Description": "...", + "Unit": "" }, + {"Name": "da", + "Description": "...", + "Unit": "" }, + {"Name": "Flag_Har", + "Description": "...", + "Unit": "" }, + {"Name": "qr", + "Description": "...", + "Unit": "" }, + {"Name": "ql", + "Description": "...", + "Unit": "" }, + {"Name": "HarImp_ID", + "Description": "...", + "Unit": "" }, + {"Name": "Flag_Reliability", + "Description": "...", + "Unit": "" }, + {"Name": "Flag_SF1", + "Description": "...", + "Unit": "" }, + {"Name": "Flag_SF2", + "Description": "...", + "Unit": "" }, + {"Name": "LineType_ID", + "Description": "...", + "Unit": "" }, + {"Name": "Overload_ID", + "Description": "...", + "Unit": "" }, + {"Name": "V_S", + "Description": "...", + "Unit": "" }, + {"Name": "Flag_ZU", + "Description": "...", + "Unit": "" }, + {"Name": "Flag_ZUP", + "Description": "...", + "Unit": "" }, + {"Name": "T_ZU", + "Description": "...", + "Unit": "" }, + {"Name": "Flag_ESB", + "Description": "...", + "Unit": "" }, + {"Name": "lth1", + "Description": "...", + "Unit": "" }, + {"Name": "lth2", + "Description": "...", + "Unit": "" }, + {"Name": "lth3", + "Description": "...", + "Unit": "" }, + {"Name": "Flag_Macro", + "Description": "...", + "Unit": "" }, + {"Name": "Macro_ID", + "Description": "...", + "Unit": "" }, + {"Name": "Flag_Variant", + "Description": "...", + "Unit": "" }, + {"Name": "Variant_ID", + "Description": "...", + "Unit": "" }, + {"Name": "LineInfo", + "Description": "...", + "Unit": "" }, + {"Name": "alpha", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('geo_ego_jg.NS_Tus_Hausanschluesse'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE geo_ego_jg.NS_Tus_Lines IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "Ele_ID", + "Description": "...", + "Unit": "" }, + {"Name": "Flag_LineTyp", + "Description": "...", + "Unit": "" }, + {"Name": "LineTyp", + "Description": "...", + "Unit": "" }, + {"Name": "Typ_ID", + "Description": "...", + "Unit": "" }, + {"Name": "Flag_Typ_ID", + "Description": "...", + "Unit": "" }, + {"Name": "q", + "Description": "...", + "Unit": "" }, + {"Name": "l", + "Description": "...", + "Unit": "" }, + {"Name": "ParSys", + "Description": "...", + "Unit": "" }, + {"Name": "Flag_Vart", + "Description": "...", + "Unit": "" }, + {"Name": "Flag_LI", + "Description": "...", + "Unit": "" }, + {"Name": "fr", + "Description": "...", + "Unit": "" }, + {"Name": "Flag_Tend", + "Description": "...", + "Unit": "" }, + {"Name": "Tend", + "Description": "...", + "Unit": "" }, + {"Name": "r", + "Description": "...", + "Unit": "" }, + {"Name": "x", + "Description": "...", + "Unit": "" }, + {"Name": "c", + "Description": "...", + "Unit": "" }, + {"Name": "Un", + "Description": "...", + "Unit": "" }, + {"Name": "Flag_Mat", + "Description": "...", + "Unit": "" }, + {"Name": "Flag_Cond", + "Description": "...", + "Unit": "" }, + {"Name": "va", + "Description": "...", + "Unit": "" }, + {"Name": "lth", + "Description": "...", + "Unit": "" }, + {"Name": "fn", + "Description": "...", + "Unit": "" }, + {"Name": "l1s", + "Description": "...", + "Unit": "" }, + {"Name": "Flag_Z0_lnp", + "Description": "...", + "Unit": "" }, + {"Name": "X0_X1", + "Description": "...", + "Unit": "" }, + {"Name": "R0_R1", + "Description": "...", + "Unit": "" }, + {"Name": "r0", + "Description": "...", + "Unit": "" }, + {"Name": "x0", + "Description": "...", + "Unit": "" }, + {"Name": "c0", + "Description": "...", + "Unit": "" }, + {"Name": "q0", + "Description": "...", + "Unit": "" }, + {"Name": "Flag_Ground", + "Description": "...", + "Unit": "" }, + {"Name": "flk", + "Description": "...", + "Unit": "" }, + {"Name": "Umax", + "Description": "...", + "Unit": "" }, + {"Name": "d", + "Description": "...", + "Unit": "" }, + {"Name": "da", + "Description": "...", + "Unit": "" }, + {"Name": "Flag_Har", + "Description": "...", + "Unit": "" }, + {"Name": "qr", + "Description": "...", + "Unit": "" }, + {"Name": "ql", + "Description": "...", + "Unit": "" }, + {"Name": "HarImp_ID", + "Description": "...", + "Unit": "" }, + {"Name": "Flag_Reliability", + "Description": "...", + "Unit": "" }, + {"Name": "Flag_SF1", + "Description": "...", + "Unit": "" }, + {"Name": "Flag_SF2", + "Description": "...", + "Unit": "" }, + {"Name": "LineType_ID", + "Description": "...", + "Unit": "" }, + {"Name": "Overload_ID", + "Description": "...", + "Unit": "" }, + {"Name": "V_S", + "Description": "...", + "Unit": "" }, + {"Name": "Flag_ZU", + "Description": "...", + "Unit": "" }, + {"Name": "Flag_ZUP", + "Description": "...", + "Unit": "" }, + {"Name": "T_ZU", + "Description": "...", + "Unit": "" }, + {"Name": "Flag_ESB", + "Description": "...", + "Unit": "" }, + {"Name": "lth1", + "Description": "...", + "Unit": "" }, + {"Name": "lth2", + "Description": "...", + "Unit": "" }, + {"Name": "lth3", + "Description": "...", + "Unit": "" }, + {"Name": "Flag_Macro", + "Description": "...", + "Unit": "" }, + {"Name": "Macro_ID", + "Description": "...", + "Unit": "" }, + {"Name": "Flag_Variant", + "Description": "...", + "Unit": "" }, + {"Name": "Variant_ID", + "Description": "...", + "Unit": "" }, + {"Name": "LineInfo", + "Description": "...", + "Unit": "" }, + {"Name": "alpha", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('geo_ego_jg.NS_Tus_Lines'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE geo_ego_jg.NS_Tus_Straenge IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "geom", + "Description": "...", + "Unit": "" }, + {"Name": "Name", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('geo_ego_jg.NS_Tus_Straenge'::regclass)::json; + +-- + + + +-- + +COMMENT ON TABLE geo_ego_jg.NS_Tus_Straenge_Fortsetzung IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "geom", + "Description": "...", + "Unit": "" }, + {"Name": "Name", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('geo_ego_jg.NS_Tus_Straenge_Fortsetzung'::regclass)::json; + +-- + + + +-- + +COMMENT ON TABLE geo_ego_jg.NS_Tus_Straenge_vertices IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "geom", + "Description": "...", + "Unit": "" }, + {"Name": "test", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('geo_ego_jg.NS_Tus_Straenge_vertices'::regclass)::json; + +-- + + + +-- + +COMMENT ON TABLE geo_ego_jg.NS_Tus_cont_10_75 IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "geom", + "Description": "...", + "Unit": "" }, + {"Name": "id", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('geo_ego_jg.NS_Tus_cont_10_75'::regclass)::json; + +-- + + + + +-- + +COMMENT ON TABLE geo_ego_jg.NS_Tus_final IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "name", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }, + {"Name": "Element_ID", + "Description": "...", + "Unit": "" }, + {"Name": "Name", + "Description": "...", + "Unit": "" }, + {"Name": "Ele_ID", + "Description": "...", + "Unit": "" }, + {"Name": "Flag_LineTyp", + "Description": "...", + "Unit": "" }, + {"Name": "LineTyp", + "Description": "...", + "Unit": "" }, + {"Name": "Typ_ID", + "Description": "...", + "Unit": "" }, + {"Name": "Flag_Typ_ID", + "Description": "...", + "Unit": "" }, + {"Name": "q", + "Description": "...", + "Unit": "" }, + {"Name": "l", + "Description": "...", + "Unit": "" }, + {"Name": "ParSys", + "Description": "...", + "Unit": "" }, + {"Name": "Flag_Vart", + "Description": "...", + "Unit": "" }, + {"Name": "Flag_LI", + "Description": "...", + "Unit": "" }, + {"Name": "fr", + "Description": "...", + "Unit": "" }, + {"Name": "Flag_Tend", + "Description": "...", + "Unit": "" }, + {"Name": "Tend", + "Description": "...", + "Unit": "" }, + {"Name": "r", + "Description": "...", + "Unit": "" }, + {"Name": "x", + "Description": "...", + "Unit": "" }, + {"Name": "c", + "Description": "...", + "Unit": "" }, + {"Name": "Un", + "Description": "...", + "Unit": "" }, + {"Name": "Flag_Mat", + "Description": "...", + "Unit": "" }, + {"Name": "Flag_Cond", + "Description": "...", + "Unit": "" }, + {"Name": "va", + "Description": "...", + "Unit": "" }, + {"Name": "lth", + "Description": "...", + "Unit": "" }, + {"Name": "fn", + "Description": "...", + "Unit": "" }, + {"Name": "l1s", + "Description": "...", + "Unit": "" }, + {"Name": "Flag_Z0_lnp", + "Description": "...", + "Unit": "" }, + {"Name": "X0_X1", + "Description": "...", + "Unit": "" }, + {"Name": "R0_R1", + "Description": "...", + "Unit": "" }, + {"Name": "r0", + "Description": "...", + "Unit": "" }, + {"Name": "x0", + "Description": "...", + "Unit": "" }, + {"Name": "c0", + "Description": "...", + "Unit": "" }, + {"Name": "q0", + "Description": "...", + "Unit": "" }, + {"Name": "Flag_Ground", + "Description": "...", + "Unit": "" }, + {"Name": "flk", + "Description": "...", + "Unit": "" }, + {"Name": "Umax", + "Description": "...", + "Unit": "" }, + {"Name": "d", + "Description": "...", + "Unit": "" }, + {"Name": "da", + "Description": "...", + "Unit": "" }, + {"Name": "Flag_Har", + "Description": "...", + "Unit": "" }, + {"Name": "qr", + "Description": "...", + "Unit": "" }, + {"Name": "ql", + "Description": "...", + "Unit": "" }, + {"Name": "HarImp_ID", + "Description": "...", + "Unit": "" }, + {"Name": "Flag_Reliability", + "Description": "...", + "Unit": "" }, + {"Name": "Flag_SF1", + "Description": "...", + "Unit": "" }, + {"Name": "Flag_SF2", + "Description": "...", + "Unit": "" }, + {"Name": "LineType_ID", + "Description": "...", + "Unit": "" }, + {"Name": "Overload_ID", + "Description": "...", + "Unit": "" }, + {"Name": "V_S", + "Description": "...", + "Unit": "" }, + {"Name": "Flag_ZU", + "Description": "...", + "Unit": "" }, + {"Name": "Flag_ZUP", + "Description": "...", + "Unit": "" }, + {"Name": "T_ZU", + "Description": "...", + "Unit": "" }, + {"Name": "Flag_ESB", + "Description": "...", + "Unit": "" }, + {"Name": "lth1", + "Description": "...", + "Unit": "" }, + {"Name": "lth2", + "Description": "...", + "Unit": "" }, + {"Name": "lth3", + "Description": "...", + "Unit": "" }, + {"Name": "Flag_Macro", + "Description": "...", + "Unit": "" }, + {"Name": "Macro_ID", + "Description": "...", + "Unit": "" }, + {"Name": "Flag_Variant", + "Description": "...", + "Unit": "" }, + {"Name": "Variant_ID", + "Description": "...", + "Unit": "" }, + {"Name": "LineInfo", + "Description": "...", + "Unit": "" }, + {"Name": "alpha", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('geo_ego_jg.NS_Tus_final'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE geo_ego_jg.NS_Tus_ohne_Hausanschluesse IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "geom", + "Description": "...", + "Unit": "" }, + {"Name": "Element_ID", + "Description": "...", + "Unit": "" }, + {"Name": "Name", + "Description": "...", + "Unit": "" }, + {"Name": "Flag_LineTyp", + "Description": "...", + "Unit": "" }, + {"Name": "LineTyp", + "Description": "...", + "Unit": "" }, + {"Name": "Typ_ID", + "Description": "...", + "Unit": "" }, + {"Name": "Flag_Typ_ID", + "Description": "...", + "Unit": "" }, + {"Name": "q", + "Description": "...", + "Unit": "" }, + {"Name": "l", + "Description": "...", + "Unit": "" }, + {"Name": "ParSys", + "Description": "...", + "Unit": "" }, + {"Name": "Flag_Vart", + "Description": "...", + "Unit": "" }, + {"Name": "Flag_LI", + "Description": "...", + "Unit": "" }, + {"Name": "fr", + "Description": "...", + "Unit": "" }, + {"Name": "Flag_Tend", + "Description": "...", + "Unit": "" }, + {"Name": "Tend", + "Description": "...", + "Unit": "" }, + {"Name": "r", + "Description": "...", + "Unit": "" }, + {"Name": "x", + "Description": "...", + "Unit": "" }, + {"Name": "c", + "Description": "...", + "Unit": "" }, + {"Name": "Un", + "Description": "...", + "Unit": "" }, + {"Name": "Flag_Mat", + "Description": "...", + "Unit": "" }, + {"Name": "Flag_Cond", + "Description": "...", + "Unit": "" }, + {"Name": "va", + "Description": "...", + "Unit": "" }, + {"Name": "lth", + "Description": "...", + "Unit": "" }, + {"Name": "fn", + "Description": "...", + "Unit": "" }, + {"Name": "l1s", + "Description": "...", + "Unit": "" }, + {"Name": "Flag_Z0_lnp", + "Description": "...", + "Unit": "" }, + {"Name": "X0_X1", + "Description": "...", + "Unit": "" }, + {"Name": "R0_R1", + "Description": "...", + "Unit": "" }, + {"Name": "r0", + "Description": "...", + "Unit": "" }, + {"Name": "x0", + "Description": "...", + "Unit": "" }, + {"Name": "c0", + "Description": "...", + "Unit": "" }, + {"Name": "q0", + "Description": "...", + "Unit": "" }, + {"Name": "Flag_Ground", + "Description": "...", + "Unit": "" }, + {"Name": "flk", + "Description": "...", + "Unit": "" }, + {"Name": "Umax", + "Description": "...", + "Unit": "" }, + {"Name": "d", + "Description": "...", + "Unit": "" }, + {"Name": "da", + "Description": "...", + "Unit": "" }, + {"Name": "Flag_Har", + "Description": "...", + "Unit": "" }, + {"Name": "qr", + "Description": "...", + "Unit": "" }, + {"Name": "ql", + "Description": "...", + "Unit": "" }, + {"Name": "HarImp_ID", + "Description": "...", + "Unit": "" }, + {"Name": "Flag_Reliability", + "Description": "...", + "Unit": "" }, + {"Name": "Flag_SF1", + "Description": "...", + "Unit": "" }, + {"Name": "Flag_SF2", + "Description": "...", + "Unit": "" }, + {"Name": "LineType_ID", + "Description": "...", + "Unit": "" }, + {"Name": "Overload_ID", + "Description": "...", + "Unit": "" }, + {"Name": "V_S", + "Description": "...", + "Unit": "" }, + {"Name": "Flag_ZU", + "Description": "...", + "Unit": "" }, + {"Name": "Flag_ZUP", + "Description": "...", + "Unit": "" }, + {"Name": "T_ZU", + "Description": "...", + "Unit": "" }, + {"Name": "Flag_ESB", + "Description": "...", + "Unit": "" }, + {"Name": "lth1", + "Description": "...", + "Unit": "" }, + {"Name": "lth2", + "Description": "...", + "Unit": "" }, + {"Name": "lth3", + "Description": "...", + "Unit": "" }, + {"Name": "Flag_Macro", + "Description": "...", + "Unit": "" }, + {"Name": "Macro_ID", + "Description": "...", + "Unit": "" }, + {"Name": "Flag_Variant", + "Description": "...", + "Unit": "" }, + {"Name": "Variant_ID", + "Description": "...", + "Unit": "" }, + {"Name": "LineInfo", + "Description": "...", + "Unit": "" }, + {"Name": "alpha", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('geo_ego_jg.NS_Tus_ohne_Hausanschluesse'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE geo_ego_jg.OSM_Tus_streets IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "osm_id", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }, + {"Name": "name", + "Description": "...", + "Unit": "" }, + {"Name": "highway", + "Description": "...", + "Unit": "" }, + {"Name": "waterway", + "Description": "...", + "Unit": "" }, + {"Name": "aerialway", + "Description": "...", + "Unit": "" }, + {"Name": "barrier", + "Description": "...", + "Unit": "" }, + {"Name": "man_made", + "Description": "...", + "Unit": "" }, + {"Name": "z_order", + "Description": "...", + "Unit": "" }, + {"Name": "other_tags", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('geo_ego_jg.OSM_Tus_streets'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE geo_ego_jg.OSM_Tus_streets_final IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "osm_id", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('geo_ego_jg.OSM_Tus_streets_final'::regclass)::json; + +-- + + + +-- + +COMMENT ON TABLE geo_ego_jg.Tus_Trafos_Lines IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "ID", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }, + {"Name": "name", + "Description": "...", + "Unit": "" }, + {"Name": "descriptio", + "Description": "...", + "Unit": "" }, + {"Name": "timestamp", + "Description": "...", + "Unit": "" }, + {"Name": "begin", + "Description": "...", + "Unit": "" }, + {"Name": "end", + "Description": "...", + "Unit": "" }, + {"Name": "altitudemo", + "Description": "...", + "Unit": "" }, + {"Name": "tessellate", + "Description": "...", + "Unit": "" }, + {"Name": "extrude", + "Description": "...", + "Unit": "" }, + {"Name": "visibility", + "Description": "...", + "Unit": "" }, + {"Name": "draworder", + "Description": "...", + "Unit": "" }, + {"Name": "icon", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('geo_ego_jg.Tus_Trafos_Lines'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE geo_ego_jg.Tus_Trafos_Points IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "ID", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('geo_ego_jg.Tus_Trafos_Points'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE geo_ego_jg.ego_deu_load_area_test IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }, + {"Name": "zensus_sum", + "Description": "...", + "Unit": "" }, + {"Name": "zensus_count", + "Description": "...", + "Unit": "" }, + {"Name": "zensus_density", + "Description": "...", + "Unit": "" }, + {"Name": "ioer_sum", + "Description": "...", + "Unit": "" }, + {"Name": "ioer_count", + "Description": "...", + "Unit": "" }, + {"Name": "ioer_density", + "Description": "...", + "Unit": "" }, + {"Name": "area_ha", + "Description": "...", + "Unit": "" }, + {"Name": "sector_area_residential", + "Description": "...", + "Unit": "" }, + {"Name": "sector_area_retail", + "Description": "...", + "Unit": "" }, + {"Name": "sector_area_industrial", + "Description": "...", + "Unit": "" }, + {"Name": "sector_area_agricultural", + "Description": "...", + "Unit": "" }, + {"Name": "sector_share_residential", + "Description": "...", + "Unit": "" }, + {"Name": "sector_share_retail", + "Description": "...", + "Unit": "" }, + {"Name": "sector_share_industrial", + "Description": "...", + "Unit": "" }, + {"Name": "sector_share_agricultural", + "Description": "...", + "Unit": "" }, + {"Name": "sector_count_residential", + "Description": "...", + "Unit": "" }, + {"Name": "sector_count_retail", + "Description": "...", + "Unit": "" }, + {"Name": "sector_count_industrial", + "Description": "...", + "Unit": "" }, + {"Name": "sector_count_agricultural", + "Description": "...", + "Unit": "" }, + {"Name": "subst_id", + "Description": "...", + "Unit": "" }, + {"Name": "nuts", + "Description": "...", + "Unit": "" }, + {"Name": "rs_0", + "Description": "...", + "Unit": "" }, + {"Name": "ags_0", + "Description": "...", + "Unit": "" }, + {"Name": "geom_centroid", + "Description": "...", + "Unit": "" }, + {"Name": "geom_surfacepoint", + "Description": "...", + "Unit": "" }, + {"Name": "geom_centre", + "Description": "...", + "Unit": "" }, + {"Name": "sector_area_sum", + "Description": "...", + "Unit": "" }, + {"Name": "sector_share_sum", + "Description": "...", + "Unit": "" }, + {"Name": "sector_consumption_residential", + "Description": "...", + "Unit": "" }, + {"Name": "sector_consumption_retail", + "Description": "...", + "Unit": "" }, + {"Name": "sector_consumption_industrial", + "Description": "...", + "Unit": "" }, + {"Name": "sector_consumption_agricultural", + "Description": "...", + "Unit": "" }, + {"Name": "sector_consumption_sum", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('geo_ego_jg.ego_deu_load_area_test'::regclass)::json; + +-- + + + + + + + + + diff --git a/requirements.txt/SQL Documentation/orig_consumption_e_mobility.sql b/requirements.txt/SQL Documentation/orig_consumption_e_mobility.sql new file mode 100644 index 00000000..3fad3fe1 --- /dev/null +++ b/requirements.txt/SQL Documentation/orig_consumption_e_mobility.sql @@ -0,0 +1,1100 @@ +-- + +COMMENT ON TABLE orig_consumption_e_mobility.result_e_mobility_2020_2a_11001 IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "time_step", + "Description": "...", + "Unit": "" }, + {"Name": "pause", + "Description": "...", + "Unit": "" }, + {"Name": "driven_dist", + "Description": "...", + "Unit": "" }, + {"Name": "swap", + "Description": "...", + "Unit": "" }, + {"Name": "battery_state", + "Description": "...", + "Unit": "" }, + {"Name": "load", + "Description": "...", + "Unit": "" }, + {"Name": "swap_state", + "Description": "...", + "Unit": "" }, + {"Name": "swap_load", + "Description": "...", + "Unit": "" }, + {"Name": "real_swap", + "Description": "...", + "Unit": "" }, + {"Name": "week_id", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_consumption_e_mobility.result_e_mobility_2020_2a_11001'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE orig_consumption_e_mobility.result_e_mobility_2020_2a_11002 IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "time_step", + "Description": "...", + "Unit": "" }, + {"Name": "pause", + "Description": "...", + "Unit": "" }, + {"Name": "driven_dist", + "Description": "...", + "Unit": "" }, + {"Name": "swap", + "Description": "...", + "Unit": "" }, + {"Name": "battery_state", + "Description": "...", + "Unit": "" }, + {"Name": "load", + "Description": "...", + "Unit": "" }, + {"Name": "swap_state", + "Description": "...", + "Unit": "" }, + {"Name": "swap_load", + "Description": "...", + "Unit": "" }, + {"Name": "real_swap", + "Description": "...", + "Unit": "" }, + {"Name": "week_id", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_consumption_e_mobility.result_e_mobility_2020_2a_11002'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE orig_consumption_e_mobility.result_e_mobility_2020_2a_11003 IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "time_step", + "Description": "...", + "Unit": "" }, + {"Name": "pause", + "Description": "...", + "Unit": "" }, + {"Name": "driven_dist", + "Description": "...", + "Unit": "" }, + {"Name": "swap", + "Description": "...", + "Unit": "" }, + {"Name": "battery_state", + "Description": "...", + "Unit": "" }, + {"Name": "load", + "Description": "...", + "Unit": "" }, + {"Name": "swap_state", + "Description": "...", + "Unit": "" }, + {"Name": "swap_load", + "Description": "...", + "Unit": "" }, + {"Name": "real_swap", + "Description": "...", + "Unit": "" }, + {"Name": "week_id", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_consumption_e_mobility.result_e_mobility_2020_2a_11003'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE orig_consumption_e_mobility.result_e_mobility_2020_2a_11004 IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "time_step", + "Description": "...", + "Unit": "" }, + {"Name": "pause", + "Description": "...", + "Unit": "" }, + {"Name": "driven_dist", + "Description": "...", + "Unit": "" }, + {"Name": "swap", + "Description": "...", + "Unit": "" }, + {"Name": "battery_state", + "Description": "...", + "Unit": "" }, + {"Name": "load", + "Description": "...", + "Unit": "" }, + {"Name": "swap_state", + "Description": "...", + "Unit": "" }, + {"Name": "swap_load", + "Description": "...", + "Unit": "" }, + {"Name": "real_swap", + "Description": "...", + "Unit": "" }, + {"Name": "week_id", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_consumption_e_mobility.result_e_mobility_2020_2a_11004'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE orig_consumption_e_mobility.result_e_mobility_2020_2a_11005 IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "time_step", + "Description": "...", + "Unit": "" }, + {"Name": "pause", + "Description": "...", + "Unit": "" }, + {"Name": "driven_dist", + "Description": "...", + "Unit": "" }, + {"Name": "swap", + "Description": "...", + "Unit": "" }, + {"Name": "battery_state", + "Description": "...", + "Unit": "" }, + {"Name": "load", + "Description": "...", + "Unit": "" }, + {"Name": "swap_state", + "Description": "...", + "Unit": "" }, + {"Name": "swap_load", + "Description": "...", + "Unit": "" }, + {"Name": "real_swap", + "Description": "...", + "Unit": "" }, + {"Name": "week_id", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_consumption_e_mobility.result_e_mobility_2020_2a_11005'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE orig_consumption_e_mobility.result_e_mobility_2020_2a_11006 IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "time_step", + "Description": "...", + "Unit": "" }, + {"Name": "pause", + "Description": "...", + "Unit": "" }, + {"Name": "driven_dist", + "Description": "...", + "Unit": "" }, + {"Name": "swap", + "Description": "...", + "Unit": "" }, + {"Name": "battery_state", + "Description": "...", + "Unit": "" }, + {"Name": "load", + "Description": "...", + "Unit": "" }, + {"Name": "swap_state", + "Description": "...", + "Unit": "" }, + {"Name": "swap_load", + "Description": "...", + "Unit": "" }, + {"Name": "real_swap", + "Description": "...", + "Unit": "" }, + {"Name": "week_id", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_consumption_e_mobility.result_e_mobility_2020_2a_11006'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE orig_consumption_e_mobility.result_e_mobility_2020_2a_11007 IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "time_step", + "Description": "...", + "Unit": "" }, + {"Name": "pause", + "Description": "...", + "Unit": "" }, + {"Name": "driven_dist", + "Description": "...", + "Unit": "" }, + {"Name": "swap", + "Description": "...", + "Unit": "" }, + {"Name": "battery_state", + "Description": "...", + "Unit": "" }, + {"Name": "load", + "Description": "...", + "Unit": "" }, + {"Name": "swap_state", + "Description": "...", + "Unit": "" }, + {"Name": "swap_load", + "Description": "...", + "Unit": "" }, + {"Name": "real_swap", + "Description": "...", + "Unit": "" }, + {"Name": "week_id", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_consumption_e_mobility.result_e_mobility_2020_2a_11007'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE orig_consumption_e_mobility.result_e_mobility_2020_2a_11008 IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "time_step", + "Description": "...", + "Unit": "" }, + {"Name": "pause", + "Description": "...", + "Unit": "" }, + {"Name": "driven_dist", + "Description": "...", + "Unit": "" }, + {"Name": "swap", + "Description": "...", + "Unit": "" }, + {"Name": "battery_state", + "Description": "...", + "Unit": "" }, + {"Name": "load", + "Description": "...", + "Unit": "" }, + {"Name": "swap_state", + "Description": "...", + "Unit": "" }, + {"Name": "swap_load", + "Description": "...", + "Unit": "" }, + {"Name": "real_swap", + "Description": "...", + "Unit": "" }, + {"Name": "week_id", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_consumption_e_mobility.result_e_mobility_2020_2a_11008'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE orig_consumption_e_mobility.result_e_mobility_2020_2a_11009 IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "time_step", + "Description": "...", + "Unit": "" }, + {"Name": "pause", + "Description": "...", + "Unit": "" }, + {"Name": "driven_dist", + "Description": "...", + "Unit": "" }, + {"Name": "swap", + "Description": "...", + "Unit": "" }, + {"Name": "battery_state", + "Description": "...", + "Unit": "" }, + {"Name": "load", + "Description": "...", + "Unit": "" }, + {"Name": "swap_state", + "Description": "...", + "Unit": "" }, + {"Name": "swap_load", + "Description": "...", + "Unit": "" }, + {"Name": "real_swap", + "Description": "...", + "Unit": "" }, + {"Name": "week_id", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_consumption_e_mobility.result_e_mobility_2020_2a_11009'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE orig_consumption_e_mobility.result_e_mobility_2020_2a_11010 IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "time_step", + "Description": "...", + "Unit": "" }, + {"Name": "pause", + "Description": "...", + "Unit": "" }, + {"Name": "driven_dist", + "Description": "...", + "Unit": "" }, + {"Name": "swap", + "Description": "...", + "Unit": "" }, + {"Name": "battery_state", + "Description": "...", + "Unit": "" }, + {"Name": "load", + "Description": "...", + "Unit": "" }, + {"Name": "swap_state", + "Description": "...", + "Unit": "" }, + {"Name": "swap_load", + "Description": "...", + "Unit": "" }, + {"Name": "real_swap", + "Description": "...", + "Unit": "" }, + {"Name": "week_id", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_consumption_e_mobility.result_e_mobility_2020_2a_11010'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE orig_consumption_e_mobility.result_e_mobility_2020_2a_11011 IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "time_step", + "Description": "...", + "Unit": "" }, + {"Name": "pause", + "Description": "...", + "Unit": "" }, + {"Name": "driven_dist", + "Description": "...", + "Unit": "" }, + {"Name": "swap", + "Description": "...", + "Unit": "" }, + {"Name": "battery_state", + "Description": "...", + "Unit": "" }, + {"Name": "load", + "Description": "...", + "Unit": "" }, + {"Name": "swap_state", + "Description": "...", + "Unit": "" }, + {"Name": "swap_load", + "Description": "...", + "Unit": "" }, + {"Name": "real_swap", + "Description": "...", + "Unit": "" }, + {"Name": "week_id", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_consumption_e_mobility.result_e_mobility_2020_2a_11011'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE orig_consumption_e_mobility.result_e_mobility_2020_2a_11012 IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "time_step", + "Description": "...", + "Unit": "" }, + {"Name": "pause", + "Description": "...", + "Unit": "" }, + {"Name": "driven_dist", + "Description": "...", + "Unit": "" }, + {"Name": "swap", + "Description": "...", + "Unit": "" }, + {"Name": "battery_state", + "Description": "...", + "Unit": "" }, + {"Name": "load", + "Description": "...", + "Unit": "" }, + {"Name": "swap_state", + "Description": "...", + "Unit": "" }, + {"Name": "swap_load", + "Description": "...", + "Unit": "" }, + {"Name": "real_swap", + "Description": "...", + "Unit": "" }, + {"Name": "week_id", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_consumption_e_mobility.result_e_mobility_2020_2a_11012'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE orig_consumption_e_mobility.result_e_mobility_2020_2a_11013 IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "time_step", + "Description": "...", + "Unit": "" }, + {"Name": "pause", + "Description": "...", + "Unit": "" }, + {"Name": "driven_dist", + "Description": "...", + "Unit": "" }, + {"Name": "swap", + "Description": "...", + "Unit": "" }, + {"Name": "battery_state", + "Description": "...", + "Unit": "" }, + {"Name": "load", + "Description": "...", + "Unit": "" }, + {"Name": "swap_state", + "Description": "...", + "Unit": "" }, + {"Name": "swap_load", + "Description": "...", + "Unit": "" }, + {"Name": "real_swap", + "Description": "...", + "Unit": "" }, + {"Name": "week_id", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_consumption_e_mobility.result_e_mobility_2020_2a_11013'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE orig_consumption_e_mobility.result_e_mobility_2020_2a_11014 IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "time_step", + "Description": "...", + "Unit": "" }, + {"Name": "pause", + "Description": "...", + "Unit": "" }, + {"Name": "driven_dist", + "Description": "...", + "Unit": "" }, + {"Name": "swap", + "Description": "...", + "Unit": "" }, + {"Name": "battery_state", + "Description": "...", + "Unit": "" }, + {"Name": "load", + "Description": "...", + "Unit": "" }, + {"Name": "swap_state", + "Description": "...", + "Unit": "" }, + {"Name": "swap_load", + "Description": "...", + "Unit": "" }, + {"Name": "real_swap", + "Description": "...", + "Unit": "" }, + {"Name": "week_id", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_consumption_e_mobility.result_e_mobility_2020_2a_11014'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE orig_consumption_e_mobility.result_e_mobility_2020_2a_11015 IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "time_step", + "Description": "...", + "Unit": "" }, + {"Name": "pause", + "Description": "...", + "Unit": "" }, + {"Name": "driven_dist", + "Description": "...", + "Unit": "" }, + {"Name": "swap", + "Description": "...", + "Unit": "" }, + {"Name": "battery_state", + "Description": "...", + "Unit": "" }, + {"Name": "load", + "Description": "...", + "Unit": "" }, + {"Name": "swap_state", + "Description": "...", + "Unit": "" }, + {"Name": "swap_load", + "Description": "...", + "Unit": "" }, + {"Name": "real_swap", + "Description": "...", + "Unit": "" }, + {"Name": "week_id", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_consumption_e_mobility.result_e_mobility_2020_2a_11015'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE orig_consumption_e_mobility.result_e_mobility_2020_2a_11016 IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "time_step", + "Description": "...", + "Unit": "" }, + {"Name": "pause", + "Description": "...", + "Unit": "" }, + {"Name": "driven_dist", + "Description": "...", + "Unit": "" }, + {"Name": "swap", + "Description": "...", + "Unit": "" }, + {"Name": "battery_state", + "Description": "...", + "Unit": "" }, + {"Name": "load", + "Description": "...", + "Unit": "" }, + {"Name": "swap_state", + "Description": "...", + "Unit": "" }, + {"Name": "swap_load", + "Description": "...", + "Unit": "" }, + {"Name": "real_swap", + "Description": "...", + "Unit": "" }, + {"Name": "week_id", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_consumption_e_mobility.result_e_mobility_2020_2a_11016'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE orig_consumption_e_mobility.result_e_mobility_2020_2a_11017 IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "time_step", + "Description": "...", + "Unit": "" }, + {"Name": "pause", + "Description": "...", + "Unit": "" }, + {"Name": "driven_dist", + "Description": "...", + "Unit": "" }, + {"Name": "swap", + "Description": "...", + "Unit": "" }, + {"Name": "battery_state", + "Description": "...", + "Unit": "" }, + {"Name": "load", + "Description": "...", + "Unit": "" }, + {"Name": "swap_state", + "Description": "...", + "Unit": "" }, + {"Name": "swap_load", + "Description": "...", + "Unit": "" }, + {"Name": "real_swap", + "Description": "...", + "Unit": "" }, + {"Name": "week_id", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_consumption_e_mobility.result_e_mobility_2020_2a_11017'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE orig_consumption_e_mobility.result_e_mobility_2020_2a_11018 IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "time_step", + "Description": "...", + "Unit": "" }, + {"Name": "pause", + "Description": "...", + "Unit": "" }, + {"Name": "driven_dist", + "Description": "...", + "Unit": "" }, + {"Name": "swap", + "Description": "...", + "Unit": "" }, + {"Name": "battery_state", + "Description": "...", + "Unit": "" }, + {"Name": "load", + "Description": "...", + "Unit": "" }, + {"Name": "swap_state", + "Description": "...", + "Unit": "" }, + {"Name": "swap_load", + "Description": "...", + "Unit": "" }, + {"Name": "real_swap", + "Description": "...", + "Unit": "" }, + {"Name": "week_id", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_consumption_e_mobility.result_e_mobility_2020_2a_11018'::regclass)::json; + +-- + + + + + + + + + + + + + diff --git a/requirements.txt/SQL Documentation/orig_destatis.sql b/requirements.txt/SQL Documentation/orig_destatis.sql new file mode 100644 index 00000000..ac7e7b98 --- /dev/null +++ b/requirements.txt/SQL Documentation/orig_destatis.sql @@ -0,0 +1,1182 @@ +/* +All tables from social have to be moved to social. +Metadata needs to be updatetd with newer version, new schema and error checking. +*/ + +-- +COMMENT ON TABLE social.bbsr_rag_city_and_mun_types_per_mun IS '{ + "Name": "BBSR - Raumabgrenzungen - Stadt- und Gemeindetyp - 2013", + "Source": [{ + "Name": "Bundesinstitut für Bau-, Stadt- und Raumforschung (BBSR) - Downloads - Raumabgrenzungen: Referenzdateien und Karten", + "URL": "http://www.bbsr.bund.de/BBSR/DE/Raumbeobachtung/Downloads/downloads_node.html" }], + "Reference date": "2013", + "Date of collection": "08.12.2015", + "Original file": "XXX", + "Spatial resolution": ["Germany, Municipality"], + "Description": ["City and Municipality types"], + "Column": [ + {"Name": "mun_id", "Description": "Municipality key 2013", "Description German":"Kreisschlüssel 2013", "Unit": "" }, + {"Name": "mun_name", "Description": "Municipality name 2013", "Description German":"Kreisname 2013", "Unit": "" }, + {"Name": "munassn_id", "Description": "Municipal association key 2013", "Description German":"Kreisschlüssel 2013", "Unit": "" }, + {"Name": "munassn_name", "Description": "Municipal association name 2013", "Description German":"Kreisname 2013", "Unit": "" }, + {"Name": "pop_2013", "Description": "Population 2013", "Description German":"Bevölkerung 2013", "Unit": "" }, + {"Name": "area_sqm", "Description": "Area in square meter", "Description German":"Fläche in Quadratmeter", "Unit": "" }, + {"Name": "cm_typ", "Description": "City and municipality key 2013", "Description German":"Stadt- und Gemeindetyp 2013", "Unit": "" }, + {"Name": "cm_typ_name", "Description": "City and municipality name 2013", "Description German":"Stadt- und Gemeindetyp Name 2013", "Unit": "" }, + {"Name": "cm_typ_d", "Description": "City and municipality key differentiated 2013", "Description German":"Stadt- und Gemeindetyp differenziert 2013", "Unit": "" }, + {"Name": "cm_typ_d_name", "Description": "City and municipality name differentiated 2013", "Description German":"Stadt- und Gemeindetyp Name differenziert 2013", "Unit": "" }], + "Changes":[ + {"Name":"Ludwig Schneider", "Mail":"ludwig.schenider@rl-institut.de", + "Date":"08.12.2015", "Comment":"Created table"}, + {"Name":"Ludwig Hülk", "Mail":"ludwig.huelk@rl-institut.de", + "Date":"26.10.2016","Comment":"Moved table and update metadata"} ], + "ToDo": [""], + "Licence": ["Datenlizenz Deutschland – Namensnennung – Version 2.0 (dl-de/by-2-0; http://www.govdata.de/dl-de/by-2-0)"], + "Instructions for proper use": ["Die Nutzer haben sicherzustellen, dass 1. alle den Daten, Metadaten, Karten und Webdiensten beigegebenen Quellenvermerke und sonstigen rechtlichen Hinweise erkennbar und in optischem Zusammenhang eingebunden werden. Die Nutzung bzw. der Abdruck ist nur mit vollständiger Angabe des Quellenvermerks (© BBSR Bonn 2015) gestattet. Bei der Darstellung auf einer Webseite ist (© Bundesinstitut für Bau-, Stadt- und Raumforschung) mit der URL (http://www.bbsr.bund.de) zu verlinken. 2. bei Veränderungen (insbesondere durch Hinzufügen neuer Inhalte), Bearbeitungen, neuen Gestaltungen oder sonstigen Abwandlungen mit einem Veränderungshinweis im beigegebenen Quellenvermerk Art und Urheberschaft der Veränderungen deutlich kenntlich gemacht wird. Bei Karten ist in diesem Fall das Logo des BBSR zu entfernen."] + }'; + +SELECT obj_description('social.bbsr_rag_city_and_mun_types_per_mun' ::regclass) ::json; + +-- + + +-- + +COMMENT ON TABLE social.bbsr_rag_municipality_and_municipal_association IS +'{ +"Name": "XXX", +"Source": [{ + "Name": "XXX", + "URL": "XXX" }], +"Reference date": "XXX", +"Date of collection": "XXX", +"Original file": "XXX", +"Spatial resolution": ["Germany"], +"Description": ["XXX"], +"Column": [ + {"Name": "mun_id", + "Description": "XXX", + "Unit": "" }, + {"Name": "mun_name", + "Description": "XXX", + "Unit": "" }, + {"Name": "munassn_id", + "Description": "XXX", + "Unit": "" }, + {"Name": "munassn_name", + "Description": "XXX", + "Unit": "" }, + {"Name": "munassn_location", + "Description": "XXX", + "Unit": "" }, + {"Name": "area_sqm", + "Description": "XXX", + "Unit": "" }, + {"Name": "pop_2013", + "Description": "XXX", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "XXX" } + ], +"ToDo": ["Please complete"], +"Licence": ["XXX"], +"Instructions for proper use": ["XXX"] +}'; + + +SELECT obj_description('social.bbsr_rag_municipality_and_municipal_association'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE social.bbsr_rag_spatial_types_per_mun IS +'{ +"Name": "XXX", +"Source": [{ + "Name": "XXX", + "URL": "XXX" }], +"Reference date": "XXX", +"Date of collection": "XXX", +"Original file": "XXX", +"Spatial resolution": ["Germany"], +"Description": ["XXX"], +"Column": [ + {"Name": "mun_id", + "Description": "XXX", + "Unit": "" }, + {"Name": "mun_name", + "Description": "XXX", + "Unit": "" }, + {"Name": "munassn_id", + "Description": "XXX", + "Unit": "" }, + {"Name": "munassn_name", + "Description": "XXX", + "Unit": "" }, + {"Name": "sp_typ_pop", + "Description": "XXX", + "Unit": "" }, + {"Name": "sp_typ_loc", + "Description": "XXX", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "XXX" } + ], +"ToDo": ["Please complete"], +"Licence": ["XXX"], +"Instructions for proper use": ["XXX"] +}'; + + +SELECT obj_description('social.bbsr_rag_spatial_types_per_mun'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE social.bbsr_rag_spatial_types_per_mun_key_loc IS +'{ +"Name": "XXX", +"Source": [{ + "Name": "XXX", + "URL": "XXX" }], +"Reference date": "XXX", +"Date of collection": "XXX", +"Original file": "XXX", +"Spatial resolution": ["Germany"], +"Description": ["XXX"], +"Column": [ + {"Name": "sp_typ_loc", + "Description": "XXX", + "Unit": "" }, + {"Name": "sp_typ_loc_name", + "Description": "XXX", + "Unit": "" }, + {"Name": "sp_typ_loc_name_ger", + "Description": "XXX", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "XXX" } + ], +"ToDo": ["Please complete"], +"Licence": ["XXX"], +"Instructions for proper use": ["XXX"] +}'; + + +SELECT obj_description('social.bbsr_rag_spatial_types_per_mun_key_loc'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE social.bbsr_rag_spatial_types_per_mun_key_pop IS +'{ +"Name": "XXX", +"Source": [{ + "Name": "XXX", + "URL": "XXX" }], +"Reference date": "XXX", +"Date of collection": "XXX", +"Original file": "XXX", +"Spatial resolution": ["Germany"], +"Description": ["XXX"], +"Column": [ + {"Name": "sp_typ_pop", + "Description": "XXX", + "Unit": "" }, + {"Name": "sp_typ_pop_name", + "Description": "XXX", + "Unit": "" }, + {"Name": "sp_typ_pop_name_ger", + "Description": "XXX", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "XXX" } + ], +"ToDo": ["Please complete"], +"Licence": ["XXX"], +"Instructions for proper use": ["XXX"] +}'; + + +SELECT obj_description('social.bbsr_rag_spatial_types_per_mun_key_pop'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE social.bbsr_rop2035_pop_forecast_by_agegroups_per_dist IS +'{ +"Name": "XXX", +"Source": [{ + "Name": "XXX", + "URL": "XXX" }], +"Reference date": "XXX", +"Date of collection": "XXX", +"Original file": "XXX", +"Spatial resolution": ["Germany"], +"Description": ["XXX"], +"Column": [ + {"Name": "district_id", + "Description": "XXX", + "Unit": "" }, + {"Name": "district_name", + "Description": "XXX", + "Unit": "" }, + {"Name": "age_group", + "Description": "XXX", + "Unit": "" }, + {"Name": "pop_2012", + "Description": "XXX", + "Unit": "" }, + {"Name": "pop_2013", + "Description": "XXX", + "Unit": "" }, + {"Name": "pop_2014", + "Description": "XXX", + "Unit": "" }, + {"Name": "pop_2015", + "Description": "XXX", + "Unit": "" }, + {"Name": "pop_2016", + "Description": "XXX", + "Unit": "" }, + {"Name": "pop_2017", + "Description": "XXX", + "Unit": "" }, + {"Name": "pop_2018", + "Description": "XXX", + "Unit": "" }, + {"Name": "pop_2019", + "Description": "XXX", + "Unit": "" }, + {"Name": "pop_2020", + "Description": "XXX", + "Unit": "" }, + {"Name": "pop_2021", + "Description": "XXX", + "Unit": "" }, + {"Name": "pop_2022", + "Description": "XXX", + "Unit": "" }, + {"Name": "pop_2023", + "Description": "XXX", + "Unit": "" }, + {"Name": "pop_2024", + "Description": "XXX", + "Unit": "" }, + {"Name": "pop_2025", + "Description": "XXX", + "Unit": "" }, + {"Name": "pop_2026", + "Description": "XXX", + "Unit": "" }, + {"Name": "pop_2027", + "Description": "XXX", + "Unit": "" }, + {"Name": "pop_2028", + "Description": "XXX", + "Unit": "" }, + {"Name": "pop_2029", + "Description": "XXX", + "Unit": "" }, + {"Name": "pop_2030", + "Description": "XXX", + "Unit": "" }, + {"Name": "pop_2031", + "Description": "XXX", + "Unit": "" }, + {"Name": "pop_2032", + "Description": "XXX", + "Unit": "" }, + {"Name": "pop_2033", + "Description": "XXX", + "Unit": "" }, + {"Name": "pop_2034", + "Description": "XXX", + "Unit": "" }, + {"Name": "pop_2035", + "Description": "XXX", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "XXX" } + ], +"ToDo": ["Please complete"], +"Licence": ["XXX"], +"Instructions for proper use": ["XXX"] +}'; + + +SELECT obj_description('social.bbsr_rop2035_pop_forecast_by_agegroups_per_dist'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE social.bbsr_rop2035_pop_forecast_total_per_dist IS +'{ +"Name": "XXX", +"Source": [{ + "Name": "XXX", + "URL": "XXX" }], +"Reference date": "XXX", +"Date of collection": "XXX", +"Original file": "XXX", +"Spatial resolution": ["Germany"], +"Description": ["XXX"], +"Column": [ + {"Name": "district_id", + "Description": "XXX", + "Unit": "" }, + {"Name": "district_name", + "Description": "XXX", + "Unit": "" }, + {"Name": "age_group", + "Description": "XXX", + "Unit": "" }, + {"Name": "pop_2012", + "Description": "XXX", + "Unit": "" }, + {"Name": "pop_2013", + "Description": "XXX", + "Unit": "" }, + {"Name": "pop_2014", + "Description": "XXX", + "Unit": "" }, + {"Name": "pop_2015", + "Description": "XXX", + "Unit": "" }, + {"Name": "pop_2016", + "Description": "XXX", + "Unit": "" }, + {"Name": "pop_2017", + "Description": "XXX", + "Unit": "" }, + {"Name": "pop_2018", + "Description": "XXX", + "Unit": "" }, + {"Name": "pop_2019", + "Description": "XXX", + "Unit": "" }, + {"Name": "pop_2020", + "Description": "XXX", + "Unit": "" }, + {"Name": "pop_2021", + "Description": "XXX", + "Unit": "" }, + {"Name": "pop_2022", + "Description": "XXX", + "Unit": "" }, + {"Name": "pop_2023", + "Description": "XXX", + "Unit": "" }, + {"Name": "pop_2024", + "Description": "XXX", + "Unit": "" }, + {"Name": "pop_2025", + "Description": "XXX", + "Unit": "" }, + {"Name": "pop_2026", + "Description": "XXX", + "Unit": "" }, + {"Name": "pop_2027", + "Description": "XXX", + "Unit": "" }, + {"Name": "pop_2028", + "Description": "XXX", + "Unit": "" }, + {"Name": "pop_2029", + "Description": "XXX", + "Unit": "" }, + {"Name": "pop_2030", + "Description": "XXX", + "Unit": "" }, + {"Name": "pop_2031", + "Description": "XXX", + "Unit": "" }, + {"Name": "pop_2032", + "Description": "XXX", + "Unit": "" }, + {"Name": "pop_2033", + "Description": "XXX", + "Unit": "" }, + {"Name": "pop_2034", + "Description": "XXX", + "Unit": "" }, + {"Name": "pop_2035", + "Description": "XXX", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "XXX" } + ], +"ToDo": ["Please complete"], +"Licence": ["XXX"], +"Instructions for proper use": ["XXX"] +}'; + + +SELECT obj_description('social.bbsr_rop2035_pop_forecast_total_per_dist'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE social.ego_deu_loads_zensus IS +'{ +"Name": "XXX", +"Source": [{ + "Name": "XXX", + "URL": "XXX" }], +"Reference date": "XXX", +"Date of collection": "XXX", +"Original file": "XXX", +"Spatial resolution": ["Germany"], +"Description": ["XXX"], +"Column": [ + {"Name": "id", + "Description": "XXX", + "Unit": "" }, + {"Name": "gid", + "Description": "XXX", + "Unit": "" }, + {"Name": "population", + "Description": "XXX", + "Unit": "" }, + {"Name": "inside_la", + "Description": "XXX", + "Unit": "" }, + {"Name": "geom", + "Description": "XXX", + "Unit": "" }, + {"Name": "geom_grid", + "Description": "XXX", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "XXX" } + ], +"ToDo": ["Please complete"], +"Licence": ["XXX"], +"Instructions for proper use": ["XXX"] +}'; + + +SELECT obj_description('social.ego_deu_loads_zensus'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE social.ego_deu_loads_zensus_cluster IS +'{ +"Name": "XXX", +"Source": [{ + "Name": "XXX", + "URL": "XXX" }], +"Reference date": "XXX", +"Date of collection": "XXX", +"Original file": "XXX", +"Spatial resolution": ["Germany"], +"Description": ["XXX"], +"Column": [ + {"Name": "cid", + "Description": "XXX", + "Unit": "" }, + {"Name": "zensus_sum", + "Description": "XXX", + "Unit": "" }, + {"Name": "area_ha", + "Description": "XXX", + "Unit": "" }, + {"Name": "geom", + "Description": "XXX", + "Unit": "" }, + {"Name": "geom_buffer", + "Description": "XXX", + "Unit": "" }, + {"Name": "geom_centroid", + "Description": "XXX", + "Unit": "" }, + {"Name": "geom_surfacepoint", + "Description": "XXX", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "XXX" } + ], +"ToDo": ["Please complete"], +"Licence": ["XXX"], +"Instructions for proper use": ["XXX"] +}'; + + +SELECT obj_description('social.ego_deu_loads_zensus_cluster'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE social.genesis_bldg_with_housing_and_flats_by_bldg_type_per_mun IS +'{ +"Name": "XXX", +"Source": [{ + "Name": "XXX", + "URL": "XXX" }], +"Reference date": "XXX", +"Date of collection": "XXX", +"Original file": "XXX", +"Spatial resolution": ["Germany"], +"Description": ["XXX"], +"Column": [ + {"Name": "mun_id", + "Description": "XXX", + "Unit": "" }, + {"Name": "mun_name", + "Description": "XXX", + "Unit": "" }, + {"Name": "bldg_housing_total", + "Description": "XXX", + "Unit": "" }, + {"Name": "bldg_housing_house", + "Description": "XXX", + "Unit": "" }, + {"Name": "bldg_housing_reshome", + "Description": "XXX", + "Unit": "" }, + {"Name": "bldg_housing_other", + "Description": "XXX", + "Unit": "" }, + {"Name": "flat_housing_total", + "Description": "XXX", + "Unit": "" }, + {"Name": "flat_housing_house", + "Description": "XXX", + "Unit": "" }, + {"Name": "flat_housing_reshome", + "Description": "XXX", + "Unit": "" }, + {"Name": "flat_housing_other", + "Description": "XXX", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "XXX" } + ], +"ToDo": ["Please complete"], +"Licence": ["XXX"], +"Instructions for proper use": ["XXX"] +}'; + + +SELECT obj_description('social.genesis_bldg_with_housing_and_flats_by_bldg_type_per_mun'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE social.genesis_bldg_with_housing_by_number_flats_per_mun IS +'{ +"Name": "XXX", +"Source": [{ + "Name": "XXX", + "URL": "XXX" }], +"Reference date": "XXX", +"Date of collection": "XXX", +"Original file": "XXX", +"Spatial resolution": ["Germany"], +"Description": ["XXX"], +"Column": [ + {"Name": "mun_id", + "Description": "XXX", + "Unit": "" }, + {"Name": "mun_name", + "Description": "XXX", + "Unit": "" }, + {"Name": "bldg_housing_total", + "Description": "XXX", + "Unit": "" }, + {"Name": "bldg_housing_flat_1", + "Description": "XXX", + "Unit": "" }, + {"Name": "bldg_housing_flat_2", + "Description": "XXX", + "Unit": "" }, + {"Name": "bldg_housing_flat_3-6", + "Description": "XXX", + "Unit": "" }, + {"Name": "bldg_housing_flat_7-12", + "Description": "XXX", + "Unit": "" }, + {"Name": "bldg_housing_flat_13-", + "Description": "XXX", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "XXX" } + ], +"ToDo": ["Please complete"], +"Licence": ["XXX"], +"Instructions for proper use": ["XXX"] +}'; + + +SELECT obj_description('social.genesis_bldg_with_housing_by_number_flats_per_mun'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE social.genesis_flats_by_living_space_classes_per_mun IS +'{ +"Name": "XXX", +"Source": [{ + "Name": "XXX", + "URL": "XXX" }], +"Reference date": "XXX", +"Date of collection": "XXX", +"Original file": "XXX", +"Spatial resolution": ["Germany"], +"Description": ["XXX"], +"Column": [ + {"Name": "mun_id", + "Description": "XXX", + "Unit": "" }, + {"Name": "mun_name", + "Description": "XXX", + "Unit": "" }, + {"Name": "flats_total", + "Description": "XXX", + "Unit": "" }, + {"Name": "flats_0-40", + "Description": "XXX", + "Unit": "" }, + {"Name": "flats_40-59", + "Description": "XXX", + "Unit": "" }, + {"Name": "flats_60-79", + "Description": "XXX", + "Unit": "" }, + {"Name": "flats_80-99", + "Description": "XXX", + "Unit": "" }, + {"Name": "flats_100-119", + "Description": "XXX", + "Unit": "" }, + {"Name": "flats_120-139", + "Description": "XXX", + "Unit": "" }, + {"Name": "flats_140-159", + "Description": "XXX", + "Unit": "" }, + {"Name": "flats_160-179", + "Description": "XXX", + "Unit": "" }, + {"Name": "flats_180-199", + "Description": "XXX", + "Unit": "" }, + {"Name": "flats_200-", + "Description": "XXX", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "XXX" } + ], +"ToDo": ["Please complete"], +"Licence": ["XXX"], +"Instructions for proper use": ["XXX"] +}'; + + +SELECT obj_description('social.genesis_flats_by_living_space_classes_per_mun'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE social.genesis_pop_dev_by_gender_per_mun IS +'{ +"Name": "XXX", +"Source": [{ + "Name": "XXX", + "URL": "XXX" }], +"Reference date": "XXX", +"Date of collection": "XXX", +"Original file": "XXX", +"Spatial resolution": ["Germany"], +"Description": ["XXX"], +"Column": [ + {"Name": "mun_id", + "Description": "XXX", + "Unit": "" }, + {"Name": "mun_name", + "Description": "XXX", + "Unit": "" }, + {"Name": "pop_2013_total", + "Description": "XXX", + "Unit": "" }, + {"Name": "pop_2013_male", + "Description": "XXX", + "Unit": "" }, + {"Name": "pop_2013_female", + "Description": "XXX", + "Unit": "" }, + {"Name": "pop_2012_total", + "Description": "XXX", + "Unit": "" }, + {"Name": "pop_2012_male", + "Description": "XXX", + "Unit": "" }, + {"Name": "pop_2012_female", + "Description": "XXX", + "Unit": "" }, + {"Name": "pop_2011_total", + "Description": "XXX", + "Unit": "" }, + {"Name": "pop_2011_male", + "Description": "XXX", + "Unit": "" }, + {"Name": "pop_2011_female", + "Description": "XXX", + "Unit": "" }, + {"Name": "pop_2010_total", + "Description": "XXX", + "Unit": "" }, + {"Name": "pop_2010_male", + "Description": "XXX", + "Unit": "" }, + {"Name": "pop_2010_female", + "Description": "XXX", + "Unit": "" }, + {"Name": "pop_2009_total", + "Description": "XXX", + "Unit": "" }, + {"Name": "pop_2009_male", + "Description": "XXX", + "Unit": "" }, + {"Name": "pop_2009_female", + "Description": "XXX", + "Unit": "" }, + {"Name": "pop_2008_total", + "Description": "XXX", + "Unit": "" }, + {"Name": "pop_2008_male", + "Description": "XXX", + "Unit": "" }, + {"Name": "pop_2008_female", + "Description": "XXX", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "XXX" } + ], +"ToDo": ["Please complete"], +"Licence": ["XXX"], +"Instructions for proper use": ["XXX"] +}'; + + +SELECT obj_description('social.genesis_pop_dev_by_gender_per_mun'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE social.genesis_residential_bldg_by_number_flats_per_mun IS +'{ +"Name": "XXX", +"Source": [{ + "Name": "XXX", + "URL": "XXX" }], +"Reference date": "XXX", +"Date of collection": "XXX", +"Original file": "XXX", +"Spatial resolution": ["Germany"], +"Description": ["XXX"], +"Column": [ + {"Name": "mun_id", + "Description": "XXX", + "Unit": "" }, + {"Name": "mun_name", + "Description": "XXX", + "Unit": "" }, + {"Name": "r_bldg_total", + "Description": "XXX", + "Unit": "" }, + {"Name": "r_bldg_flat_1", + "Description": "XXX", + "Unit": "" }, + {"Name": "r_bldg_flat_2", + "Description": "XXX", + "Unit": "" }, + {"Name": "r_bldg_flat_3-6", + "Description": "XXX", + "Unit": "" }, + {"Name": "r_bldg_flat_7-12", + "Description": "XXX", + "Unit": "" }, + {"Name": "r_bldg_flat_13-", + "Description": "XXX", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "XXX" } + ], +"ToDo": ["Please complete"], +"Licence": ["XXX"], +"Instructions for proper use": ["XXX"] +}'; + + +SELECT obj_description('social.genesis_residential_bldg_by_number_flats_per_mun'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE social.zensus_population_by_gender_per_mun IS +'{ +"Name": "XXX", +"Source": [{ + "Name": "XXX", + "URL": "XXX" }], +"Reference date": "XXX", +"Date of collection": "XXX", +"Original file": "XXX", +"Spatial resolution": ["Germany"], +"Description": ["XXX"], +"Column": [ + {"Name": "state_id", + "Description": "XXX", + "Unit": "" }, + {"Name": "state_name", + "Description": "XXX", + "Unit": "" }, + {"Name": "mun_id", + "Description": "XXX", + "Unit": "" }, + {"Name": "mun_name", + "Description": "XXX", + "Unit": "" }, + {"Name": "population", + "Description": "XXX", + "Unit": "" }, + {"Name": "pop_male", + "Description": "XXX", + "Unit": "" }, + {"Name": "pop_female", + "Description": "XXX", + "Unit": "" }, + {"Name": "population_old", + "Description": "XXX", + "Unit": "" }, + {"Name": "pop_male_old", + "Description": "XXX", + "Unit": "" }, + {"Name": "pop_female_old", + "Description": "XXX", + "Unit": "" }, + {"Name": "pop_diff", + "Description": "XXX", + "Unit": "" }, + {"Name": "pop_pct", + "Description": "XXX", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "XXX" } + ], +"ToDo": ["Please complete"], +"Licence": ["XXX"], +"Instructions for proper use": ["XXX"] +}'; + + +SELECT obj_description('social.zensus_population_by_gender_per_mun'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE social.destatis_zensus_population_per_ha IS '{ + "Name": "German Census 2011 - Population in 100m grid", + "Source": [{ + "Name": "Statistisches Bundesamt (Destatis)", + "URL": "https://www.destatis.de/DE/Methoden/Zensus_/Zensus.html" }], + "Reference date": "2011", + "Date of collection": "03.02.2016", + "Original file": "https://www.zensus2011.de/SharedDocs/Downloads/DE/Pressemitteilung/DemografischeGrunddaten/csv_Bevoelkerung_100m_Gitter.zip", + "Spatial resolution": ["Germany"], + "Description": ["National census in Germany in 2011"], + "Column": [ + {"Name": "gid", "Description": "Unique identifier", "Unit": "" }, + {"Name": "grid_id", "Description": "Grid number of source", "Unit": "" }, + {"Name": "x_mp", "Description": "Latitude of centroid in (ETRS89 - LAEA; EPSG:3035)", "Unit": "" }, + {"Name": "y_mp", "Description": "Longitude of centroid in (ETRS89 - LAEA; EPSG:3035)", "Unit": "" }, + {"Name": "population", "Description": "Number of registred residents", "Unit": "human" }, + {"Name": "geom_point", "Description": "Geometry centroid", "Unit": "" }, + {"Name": "geom", "Description": "Geometry", "Unit": "" } ], + "Changes":[ + {"Name": "Ludwig Hülk", "Mail": "ludwig.huelk@rl-institut.de", + "Date": "03.02.2016","Comment": "Added Table"}, + {"Name": "Ludwig Hülk", "Mail": "ludwig.huelk@rl-institut.de", + "Date": "25.10.2016","Comment": "Moved table and add metadata"} ], + "ToDo": [""], + "Licence": ["Datenlizenz Deutschland – Namensnennung – Version 2.0"], + "Instructions for proper use": ["Empfohlene Zitierweise des Quellennachweises: Datenquelle: Statistisches Bundesamt, Wiesbaden, Genesis-Online, Abrufdatum; Datenlizenz by-2-0. Quellenvermerk bei eigener Berechnung / Darstellung: Datenquelle: Statistisches Bundesamt, Wiesbaden, Genesis-Online, Abrufdatum; Datenlizenz by-2-0; eigene Berechnung/eigene Darstellung. In elektronischen Werken ist im Quellenverweis dem Begriff (Datenlizenz by-2-0) der Link www.govdata.de/dl-de/by-2-0 als Verknüpfung zu hinterlegen."] + }'; + +SELECT obj_description('social.destatis_zensus_population_per_ha' ::regclass) ::json; + +-- + + +-- + +COMMENT ON TABLE social.zensus_population_per_ha_grid IS +'{ +"Name": "XXX", +"Source": [{ + "Name": "XXX", + "URL": "XXX" }], +"Reference date": "XXX", +"Date of collection": "XXX", +"Original file": "XXX", +"Spatial resolution": ["Germany"], +"Description": ["XXX"], +"Column": [ + {"Name": "gid", + "Description": "XXX", + "Unit": "" }, + {"Name": "gid_id", + "Description": "XXX", + "Unit": "" }, + {"Name": "x_mp", + "Description": "XXX", + "Unit": "" }, + {"Name": "y_mp", + "Description": "XXX", + "Unit": "" }, + {"Name": "population", + "Description": "XXX", + "Unit": "" }, + {"Name": "geom", + "Description": "XXX", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "XXX" } + ], +"ToDo": ["Please complete"], +"Licence": ["XXX"], +"Instructions for proper use": ["XXX"] +}'; + + +SELECT obj_description('social.zensus_population_per_ha_grid'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE social.zensus_population_per_ha_grid_cluster IS +'{ +"Name": "XXX", +"Source": [{ + "Name": "XXX", + "URL": "XXX" }], +"Reference date": "XXX", +"Date of collection": "XXX", +"Original file": "XXX", +"Spatial resolution": ["Germany"], +"Description": ["XXX"], +"Column": [ + {"Name": "cid", + "Description": "XXX", + "Unit": "" }, + {"Name": "population", + "Description": "XXX", + "Unit": "" }, + {"Name": "area_ha", + "Description": "XXX", + "Unit": "" }, + {"Name": "geom", + "Description": "XXX", + "Unit": "" }, + {"Name": "geom_pts", + "Description": "XXX", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "XXX" } + ], +"ToDo": ["Please complete"], +"Licence": ["XXX"], +"Instructions for proper use": ["XXX"] +}'; + + +SELECT obj_description('social.zensus_population_per_ha_grid_cluster'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE social.zensus_population_per_ha_raster IS +'{ +"Name": "XXX", +"Source": [{ + "Name": "XXX", + "URL": "XXX" }], +"Reference date": "XXX", +"Date of collection": "XXX", +"Original file": "XXX", +"Spatial resolution": ["Germany"], +"Description": ["XXX"], +"Column": [ + {"Name": "rid", + "Description": "XXX", + "Unit": "" }, + {"Name": "rast", + "Description": "XXX", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "XXX" } + ], +"ToDo": ["Please complete"], +"Licence": ["XXX"], +"Instructions for proper use": ["XXX"] +}'; + + +SELECT obj_description('social.zensus_population_per_ha_raster'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE social.zensus_population_per_ha_raster_title100 IS +'{ +"Name": "XXX", +"Source": [{ + "Name": "XXX", + "URL": "XXX" }], +"Reference date": "XXX", +"Date of collection": "XXX", +"Original file": "XXX", +"Spatial resolution": ["Germany"], +"Description": ["XXX"], +"Column": [ + {"Name": "rid", + "Description": "XXX", + "Unit": "" }, + {"Name": "rast", + "Description": "XXX", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "XXX" } + ], +"ToDo": ["Please complete"], +"Licence": ["XXX"], +"Instructions for proper use": ["XXX"] +}'; + + +SELECT obj_description('social.zensus_population_per_ha_raster_title100'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE social.zensus_stats IS +'{ +"Name": "XXX", +"Source": [{ + "Name": "XXX", + "URL": "XXX" }], +"Reference date": "XXX", +"Date of collection": "XXX", +"Original file": "XXX", +"Spatial resolution": ["Germany"], +"Description": ["XXX"], +"Column": [ + {"Name": "scale", + "Description": "XXX", + "Unit": "" }, + {"Name": "summe_einwohner", + "Description": "XXX", + "Unit": "" }, + {"Name": "anzahl_zellen", + "Description": "XXX", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "XXX" } + ], +"ToDo": ["Please complete"], +"Licence": ["XXX"], +"Instructions for proper use": ["XXX"] +}'; + + +SELECT obj_description('social.zensus_stats'::regclass)::json; + +-- + + + diff --git a/requirements.txt/SQL Documentation/orig_ego.sql b/requirements.txt/SQL Documentation/orig_ego.sql new file mode 100644 index 00000000..402b5fa1 --- /dev/null +++ b/requirements.txt/SQL Documentation/orig_ego.sql @@ -0,0 +1,1677 @@ +-- + +COMMENT ON TABLE orig_ego.ego_deu_loads IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_ego.ego_deu_loads'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE orig_ego.ego_deu_loads_collect IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_ego.ego_deu_loads_collect'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE orig_ego.ego_deu_loads_consumption_spf IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "sector_consumption_residential", + "Description": "...", + "Unit": "" }, + {"Name": "sector_consumption_retail", + "Description": "...", + "Unit": "" }, + {"Name": "sector_consumption_industrial", + "Description": "...", + "Unit": "" }, + {"Name": "sector_consumption_agricultural", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_ego.ego_deu_loads_consumption_spf'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE orig_ego.ego_deu_loads_melted IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_ego.ego_deu_loads_melted'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE orig_ego.ego_deu_loads_melted_cut_gem IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_ego.ego_deu_loads_melted_cut_gem'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE orig_ego.ego_deu_loads_melted_spf IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }, + {"Name": "geom_centre", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_ego.ego_deu_loads_melted_spf'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE orig_ego.ego_deu_loads_osm IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "area_ha", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_ego.ego_deu_loads_osm'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE orig_ego.ego_deu_loads_spf IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }, + {"Name": "zensus_sum", + "Description": "...", + "Unit": "" }, + {"Name": "zensus_count", + "Description": "...", + "Unit": "" }, + {"Name": "zensus_density", + "Description": "...", + "Unit": "" }, + {"Name": "ioer_sum", + "Description": "...", + "Unit": "" }, + {"Name": "ioer_count", + "Description": "...", + "Unit": "" }, + {"Name": "ioer_density", + "Description": "...", + "Unit": "" }, + {"Name": "area_ha", + "Description": "...", + "Unit": "" }, + {"Name": "sector_area_residential", + "Description": "...", + "Unit": "" }, + {"Name": "sector_area_retail", + "Description": "...", + "Unit": "" }, + {"Name": "sector_area_industrial", + "Description": "...", + "Unit": "" }, + {"Name": "sector_area_agricultural", + "Description": "...", + "Unit": "" }, + {"Name": "sector_share_residential", + "Description": "...", + "Unit": "" }, + {"Name": "sector_share_retail", + "Description": "...", + "Unit": "" }, + {"Name": "sector_share_industrial", + "Description": "...", + "Unit": "" }, + {"Name": "sector_share_agricultural", + "Description": "...", + "Unit": "" }, + {"Name": "sector_count_residential", + "Description": "...", + "Unit": "" }, + {"Name": "sector_count_retail", + "Description": "...", + "Unit": "" }, + {"Name": "sector_count_industrial", + "Description": "...", + "Unit": "" }, + {"Name": "sector_count_agricultural", + "Description": "...", + "Unit": "" }, + {"Name": "subst_id", + "Description": "...", + "Unit": "" }, + {"Name": "nuts", + "Description": "...", + "Unit": "" }, + {"Name": "rs", + "Description": "...", + "Unit": "" }, + {"Name": "ags_0", + "Description": "...", + "Unit": "" }, + {"Name": "geom_centroid", + "Description": "...", + "Unit": "" }, + {"Name": "geom_surfacepoint", + "Description": "...", + "Unit": "" }, + {"Name": "geom_centre", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_ego.ego_deu_loads_spf'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE orig_ego.ego_deu_loads_zensus IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "gid", + "Description": "...", + "Unit": "" }, + {"Name": "population", + "Description": "...", + "Unit": "" }, + {"Name": "inside_ha", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }, + {"Name": "geom_grid", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_ego.ego_deu_loads_zensus'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE orig_ego.ego_deu_loads_zensus_cluster IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "cid", + "Description": "...", + "Unit": "" }, + {"Name": "zensus_sum", + "Description": "...", + "Unit": "" }, + {"Name": "area_ha", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }, + {"Name": "geom_buffer", + "Description": "...", + "Unit": "" }, + {"Name": "geom_centroid", + "Description": "...", + "Unit": "" }, + {"Name": "geom_surfacepoint", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_ego.ego_deu_loads_zensus_cluster'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE orig_ego.ego_deu_municipalities_sub IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "gid", + "Description": "...", + "Unit": "" }, + {"Name": "gen", + "Description": "...", + "Unit": "" }, + {"Name": "bez", + "Description": "...", + "Unit": "" }, + {"Name": "bem", + "Description": "...", + "Unit": "" }, + {"Name": "nuts", + "Description": "...", + "Unit": "" }, + {"Name": "rs_0", + "Description": "...", + "Unit": "" }, + {"Name": "ags_0", + "Description": "...", + "Unit": "" }, + {"Name": "area_ha", + "Description": "...", + "Unit": "" }, + {"Name": "count_ring", + "Description": "...", + "Unit": "" }, + {"Name": "path", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }, + {"Name": "is_ring", + "Description": "...", + "Unit": "" }, + {"Name": "sub_sum", + "Description": "...", + "Unit": "" }, + {"Name": "sub_type", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_ego.ego_deu_municipalities_sub'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE orig_ego.ego_deu_municipalities_sub_3_nn IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "mun_id", + "Description": "...", + "Unit": "" }, + {"Name": "mun_ags_0", + "Description": "...", + "Unit": "" }, + {"Name": "sub_ags_0", + "Description": "...", + "Unit": "" }, + {"Name": "sub_id", + "Description": "...", + "Unit": "" }, + {"Name": "sub_type", + "Description": "...", + "Unit": "" }, + {"Name": "geom_sub", + "Description": "...", + "Unit": "" }, + {"Name": "distance", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_ego.ego_deu_municipalities_sub_3_nn'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE orig_ego.ego_deu_peak_load_spf IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "retail", + "Description": "...", + "Unit": "" }, + {"Name": "residential", + "Description": "...", + "Unit": "" }, + {"Name": "industrial", + "Description": "...", + "Unit": "" }, + {"Name": "agricultural", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_ego.ego_deu_peak_load_spf'::regclass)::json; + +-- + + + +-- + +COMMENT ON TABLE orig_ego.ego_deu_substations_110 IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "sub_name", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }, + {"Name": "ags_0", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_ego.ego_deu_substations_110'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE orig_ego.ego_deu_substations_110_voronoi IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "geom", + "Description": "...", + "Unit": "" }, + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "sub_id", + "Description": "...", + "Unit": "" }, + {"Name": "sub_sum", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_ego.ego_deu_substations_110_voronoi'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE orig_ego.ego_deu_substations_110_voronoi_cut IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "sub_id", + "Description": "...", + "Unit": "" }, + {"Name": "mun_id", + "Description": "...", + "Unit": "" }, + {"Name": "voi_id", + "Description": "...", + "Unit": "" }, + {"Name": "ags_0", + "Description": "...", + "Unit": "" }, + {"Name": "sub_type", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }, + {"Name": "sub_sum", + "Description": "...", + "Unit": "" }, + {"Name": "geom_sub", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_ego.ego_deu_substations_110_voronoi_cut'::regclass)::json; + +-- + + + +-- + +COMMENT ON TABLE orig_ego.ego_deu_substations_110_voronoi_cut_nn_collect IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "sub_id", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_ego.ego_deu_substations_110_voronoi_cut_nn_collect'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE orig_ego.ego_substations_add IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "lon", + "Description": "...", + "Unit": "" }, + {"Name": "lat", + "Description": "...", + "Unit": "" }, + {"Name": "point", + "Description": "...", + "Unit": "" }, + {"Name": "polygon", + "Description": "...", + "Unit": "" }, + {"Name": "voltage", + "Description": "...", + "Unit": "" }, + {"Name": "power_type", + "Description": "...", + "Unit": "" }, + {"Name": "substation", + "Description": "...", + "Unit": "" }, + {"Name": "osm_id", + "Description": "...", + "Unit": "" }, + {"Name": "osm_www", + "Description": "...", + "Unit": "" }, + {"Name": "frequency", + "Description": "...", + "Unit": "" }, + {"Name": "name", + "Description": "...", + "Unit": "" }, + {"Name": "ref", + "Description": "...", + "Unit": "" }, + {"Name": "operator", + "Description": "...", + "Unit": "" }, + {"Name": "dbahn", + "Description": "...", + "Unit": "" }, + {"Name": "status", + "Description": "...", + "Unit": "" }, + {"Name": "visible", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }, + {"Name": "ags_0", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_ego.ego_substations_add'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE orig_ego.ego_deu_substations_plus IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_ego.ego_deu_substations_plus'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE orig_ego.ego_deu_substations_voronoi IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "geom", + "Description": "...", + "Unit": "" }, + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "subst_id", + "Description": "...", + "Unit": "" }, + {"Name": "subst_sum", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_ego.ego_deu_substations_voronoi'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE orig_ego.ego_deu_substations_voronoi_cut IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "subst_id", + "Description": "...", + "Unit": "" }, + {"Name": "mun_id", + "Description": "...", + "Unit": "" }, + {"Name": "voi_id", + "Description": "...", + "Unit": "" }, + {"Name": "ags_0", + "Description": "...", + "Unit": "" }, + {"Name": "subst_typ", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }, + {"Name": "subst_sum", + "Description": "...", + "Unit": "" }, + {"Name": "geom_sub", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_ego.ego_deu_substations_voronoi_cut'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE orig_ego.ego_deu_substations_voronoi_cut_nn IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "subst_id", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_ego.ego_deu_substations_voronoi_cut_nn'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE orig_ego.ego_deu_substations_voronoi_cut_nn_collect IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "subst_id", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_ego.ego_deu_substations_voronoi_cut_nn_collect'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE orig_ego.ego_deu_voronoi_ehv IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "geom", + "Description": "...", + "Unit": "" }, + {"Name": "subst_id", + "Description": "...", + "Unit": "" }, + {"Name": "id", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_ego.ego_deu_voronoi_ehv'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE orig_ego.ego_grid_districts IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "subst_id", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }, + {"Name": "subst_sum", + "Description": "...", + "Unit": "" }, + {"Name": "area_ha", + "Description": "...", + "Unit": "" }, + {"Name": "geom_type", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_ego.ego_grid_districts'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE orig_ego.ego_grid_districts_collect IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "sub_id", + "Description": "...", + "Unit": "" }, + {"Name": "sub_name", + "Description": "...", + "Unit": "" }, + {"Name": "ags_0", + "Description": "...", + "Unit": "" }, + {"Name": "geom_sub", + "Description": "...", + "Unit": "" }, + {"Name": "sub_sum", + "Description": "...", + "Unit": "" }, + {"Name": "sub_type", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_ego.ego_grid_districts_collect'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE orig_ego.ego_grid_districts_dump IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "subst_id", + "Description": "...", + "Unit": "" }, + {"Name": "area_ha", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }, + {"Name": "subst_sum", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_ego.ego_grid_districts_dump'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE orig_ego.ego_grid_districts_hull IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "subst_id", + "Description": "...", + "Unit": "" }, + {"Name": "area_ha", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }, + {"Name": "subst_sum", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_ego.ego_grid_districts_hull'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE orig_ego.ego_grid_districts_type_1 IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "sub_id", + "Description": "...", + "Unit": "" }, + {"Name": "sub_name", + "Description": "...", + "Unit": "" }, + {"Name": "ags_0", + "Description": "...", + "Unit": "" }, + {"Name": "geom_sub", + "Description": "...", + "Unit": "" }, + {"Name": "sub_sum", + "Description": "...", + "Unit": "" }, + {"Name": "sub_type", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_ego.ego_grid_districts_type_1'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE orig_ego.ego_grid_districts_type_2 IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "sub_id", + "Description": "...", + "Unit": "" }, + {"Name": "sub_name", + "Description": "...", + "Unit": "" }, + {"Name": "ags_0", + "Description": "...", + "Unit": "" }, + {"Name": "geom_sub", + "Description": "...", + "Unit": "" }, + {"Name": "sub_sum", + "Description": "...", + "Unit": "" }, + {"Name": "sub_type", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_ego.ego_grid_districts_type_2'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE orig_ego.ego_grid_districts_type_3 IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "sub_id", + "Description": "...", + "Unit": "" }, + {"Name": "sub_name", + "Description": "...", + "Unit": "" }, + {"Name": "ags_0", + "Description": "...", + "Unit": "" }, + {"Name": "geom_sub", + "Description": "...", + "Unit": "" }, + {"Name": "sub_sum", + "Description": "...", + "Unit": "" }, + {"Name": "sub_type", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_ego.ego_grid_districts_type_3'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE orig_ego.netzinseln_110 IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "lon", + "Description": "...", + "Unit": "" }, + {"Name": "lat", + "Description": "...", + "Unit": "" }, + {"Name": "point", + "Description": "...", + "Unit": "" }, + {"Name": "polygon", + "Description": "...", + "Unit": "" }, + {"Name": "voltage", + "Description": "...", + "Unit": "" }, + {"Name": "power_type", + "Description": "...", + "Unit": "" }, + {"Name": "substation", + "Description": "...", + "Unit": "" }, + {"Name": "osm_id", + "Description": "...", + "Unit": "" }, + {"Name": "osm_www", + "Description": "...", + "Unit": "" }, + {"Name": "frequency", + "Description": "...", + "Unit": "" }, + {"Name": "name", + "Description": "...", + "Unit": "" }, + {"Name": "ref", + "Description": "...", + "Unit": "" }, + {"Name": "operator", + "Description": "...", + "Unit": "" }, + {"Name": "dbahn", + "Description": "...", + "Unit": "" }, + {"Name": "status", + "Description": "...", + "Unit": "" }, + {"Name": "visible", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_ego.netzinseln_110'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE orig_ego.vg250_6_gem_clean IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "gid", + "Description": "...", + "Unit": "" }, + {"Name": "gen", + "Description": "...", + "Unit": "" }, + {"Name": "bez", + "Description": "...", + "Unit": "" }, + {"Name": "bem", + "Description": "...", + "Unit": "" }, + {"Name": "nuts", + "Description": "...", + "Unit": "" }, + {"Name": "rs_0", + "Description": "...", + "Unit": "" }, + {"Name": "ags_0", + "Description": "...", + "Unit": "" }, + {"Name": "area_ha", + "Description": "...", + "Unit": "" }, + {"Name": "count_ring", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_ego.vg250_6_gem_clean'::regclass)::json; + +-- + + + + + diff --git a/requirements.txt/SQL Documentation/orig_ego_consumption.sql b/requirements.txt/SQL Documentation/orig_ego_consumption.sql new file mode 100644 index 00000000..8442e866 --- /dev/null +++ b/requirements.txt/SQL Documentation/orig_ego_consumption.sql @@ -0,0 +1,199 @@ +-- + +COMMENT ON TABLE orig_ego_consumption.destatis_gva_per_districts IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "eu_code", + "Description": "...", + "Unit": "" }, + {"Name": "district", + "Description": "...", + "Unit": "" }, + {"Name": "total_gva", + "Description": "...", + "Unit": "" }, + {"Name": "gva_industry", + "Description": "...", + "Unit": "" }, + {"Name": "gva_tertiary_sector", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_ego_consumption.destatis_gva_per_districts'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE orig_ego_consumption.lak_consumption_per_district IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "eu_code", + "Description": "...", + "Unit": "" }, + {"Name": "district", + "Description": "...", + "Unit": "" }, + {"Name": "elec_consumption_industry", + "Description": "...", + "Unit": "" }, + {"Name": "elec_consumption_tertiary_sector", + "Description": "...", + "Unit": "" }, + {"Name": "area_industry", + "Description": "...", + "Unit": "" }, + {"Name": "area_retail", + "Description": "...", + "Unit": "" }, + {"Name": "area_agricultural", + "Description": "...", + "Unit": "" }, + {"Name": "area_tertiary_sector", + "Description": "...", + "Unit": "" }, + {"Name": "consumption_per_area_industry", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_ego_consumption.lak_consumption_per_district'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE orig_ego_consumption.lak_consumption_per_federalstate IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "eu_code", + "Description": "...", + "Unit": "" }, + {"Name": "federal_states", + "Description": "...", + "Unit": "" }, + {"Name": "elec_consumption_housholds", + "Description": "...", + "Unit": "" }, + {"Name": "elec_consumption_industry", + "Description": "...", + "Unit": "" }, + {"Name": "elec_consumption_tertiary_sector", + "Description": "...", + "Unit": "" }, + {"Name": "population", + "Description": "...", + "Unit": "" }, + {"Name": "elec_consumption_households_per_person", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_ego_consumption.lak_consumption_per_federalstate'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE orig_ego_consumption.lak_consumption_per_federalstates_per_gva IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "eu_code", + "Description": "...", + "Unit": "" }, + {"Name": "federal_states", + "Description": "...", + "Unit": "" }, + {"Name": "elec_consumption_industry", + "Description": "...", + "Unit": "" }, + {"Name": "elec_consumption_tertiary_sector", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_ego_consumption.lak_consumption_per_federalstates_per_gva'::regclass)::json; + +-- + + + diff --git a/requirements.txt/SQL Documentation/orig_geo_copernicus.sql b/requirements.txt/SQL Documentation/orig_geo_copernicus.sql new file mode 100644 index 00000000..c6c4484c --- /dev/null +++ b/requirements.txt/SQL Documentation/orig_geo_copernicus.sql @@ -0,0 +1,208 @@ +-- + +COMMENT ON TABLE orig_geo_copernicus.copernicus_clc_2012_v_18_4 IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "ogc_fid", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }, + {"Name": "code_12", + "Description": "...", + "Unit": "" }, + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "remark", + "Description": "...", + "Unit": "" }, + {"Name": "area_ha", + "Description": "...", + "Unit": "" }, + {"Name": "shape_length", + "Description": "...", + "Unit": "" }, + {"Name": "shape_area", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_geo_copernicus.copernicus_clc_2012_v_18_4'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE orig_geo_copernicus.copernicus_clc_2012_v_18_4_filter IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "ogc_fid", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }, + {"Name": "code_12", + "Description": "...", + "Unit": "" }, + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "remark", + "Description": "...", + "Unit": "" }, + {"Name": "area_ha", + "Description": "...", + "Unit": "" }, + {"Name": "shape_length", + "Description": "...", + "Unit": "" }, + {"Name": "shape_area", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_geo_copernicus.copernicus_clc_2012_v_18_4_filter'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE orig_geo_copernicus.copernicus_clc_2012_v_18_4_germany IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "ogc_fid", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }, + {"Name": "code_12", + "Description": "...", + "Unit": "" }, + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "remark", + "Description": "...", + "Unit": "" }, + {"Name": "area_ha", + "Description": "...", + "Unit": "" }, + {"Name": "shape_length", + "Description": "...", + "Unit": "" }, + {"Name": "shape_area", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_geo_copernicus.copernicus_clc_2012_v_18_4_germany'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE orig_geo_copernicus.landuse_calc IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "source", + "Description": "...", + "Unit": "" }, + {"Name": "attribute", + "Description": "...", + "Unit": "" }, + {"Name": "count_int", + "Description": "...", + "Unit": "" }, + {"Name": "area_ha", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_geo_copernicus.landuse_calc'::regclass)::json; + +-- + diff --git a/requirements.txt/SQL Documentation/orig_geo_dlm250.sql b/requirements.txt/SQL Documentation/orig_geo_dlm250.sql new file mode 100644 index 00000000..b78b2265 --- /dev/null +++ b/requirements.txt/SQL Documentation/orig_geo_dlm250.sql @@ -0,0 +1,2834 @@ +-- + +COMMENT ON TABLE orig_geo_dlm250.dlm250_geb01_f IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "gid", + "Description": "...", + "Unit": "" }, + {"Name": "land", + "Description": "...", + "Unit": "" }, + {"Name": "modellart", + "Description": "...", + "Unit": "" }, + {"Name": "objart", + "Description": "...", + "Unit": "" }, + {"Name": "objart_txt", + "Description": "...", + "Unit": "" }, + {"Name": "objid", + "Description": "...", + "Unit": "" }, + {"Name": "hdu_x", + "Description": "...", + "Unit": "" }, + {"Name": "beginn", + "Description": "...", + "Unit": "" }, + {"Name": "ende", + "Description": "...", + "Unit": "" }, + {"Name": "adm", + "Description": "...", + "Unit": "" }, + {"Name": "bez_nat", + "Description": "...", + "Unit": "" }, + {"Name": "bez_lan", + "Description": "...", + "Unit": "" }, + {"Name": "bez_rbz", + "Description": "...", + "Unit": "" }, + {"Name": "bez_krs", + "Description": "...", + "Unit": "" }, + {"Name": "bez_vwg", + "Description": "...", + "Unit": "" }, + {"Name": "bez_gem", + "Description": "...", + "Unit": "" }, + {"Name": "rgs", + "Description": "...", + "Unit": "" }, + {"Name": "sch", + "Description": "...", + "Unit": "" }, + {"Name": "bemerkung", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_geo_dlm250.dlm250_geb01_f'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE orig_geo_dlm250.dlm250_geb01_l IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "gid", + "Description": "...", + "Unit": "" }, + {"Name": "land", + "Description": "...", + "Unit": "" }, + {"Name": "modellart", + "Description": "...", + "Unit": "" }, + {"Name": "objart", + "Description": "...", + "Unit": "" }, + {"Name": "objart_txt", + "Description": "...", + "Unit": "" }, + {"Name": "objid", + "Description": "...", + "Unit": "" }, + {"Name": "hdu_x", + "Description": "...", + "Unit": "" }, + {"Name": "beginn", + "Description": "...", + "Unit": "" }, + {"Name": "ende", + "Description": "...", + "Unit": "" }, + {"Name": "agz", + "Description": "...", + "Unit": "" }, + {"Name": "zus", + "Description": "...", + "Unit": "" }, + {"Name": "bemerkung", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_geo_dlm250.dlm250_geb01_l'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE orig_geo_dlm250.dlm250_geb02_f IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "gid", + "Description": "...", + "Unit": "" }, + {"Name": "land", + "Description": "...", + "Unit": "" }, + {"Name": "modellart", + "Description": "...", + "Unit": "" }, + {"Name": "objart", + "Description": "...", + "Unit": "" }, + {"Name": "objart_txt", + "Description": "...", + "Unit": "" }, + {"Name": "objid", + "Description": "...", + "Unit": "" }, + {"Name": "hdu_x", + "Description": "...", + "Unit": "" }, + {"Name": "beginn", + "Description": "...", + "Unit": "" }, + {"Name": "ende", + "Description": "...", + "Unit": "" }, + {"Name": "ltp", + "Description": "...", + "Unit": "" }, + {"Name": "nam", + "Description": "...", + "Unit": "" }, + {"Name": "rgs", + "Description": "...", + "Unit": "" }, + {"Name": "bemerkung", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_geo_dlm250.dlm250_geb02_f'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE orig_geo_dlm250.dlm250_geb03_f IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "gid", + "Description": "...", + "Unit": "" }, + {"Name": "land", + "Description": "...", + "Unit": "" }, + {"Name": "modellart", + "Description": "...", + "Unit": "" }, + {"Name": "objart", + "Description": "...", + "Unit": "" }, + {"Name": "objart_txt", + "Description": "...", + "Unit": "" }, + {"Name": "objid", + "Description": "...", + "Unit": "" }, + {"Name": "hdu_x", + "Description": "...", + "Unit": "" }, + {"Name": "beginn", + "Description": "...", + "Unit": "" }, + {"Name": "ende", + "Description": "...", + "Unit": "" }, + {"Name": "objart_z", + "Description": "...", + "Unit": "" }, + {"Name": "objid_z", + "Description": "...", + "Unit": "" }, + {"Name": "adf", + "Description": "...", + "Unit": "" }, + {"Name": "bez", + "Description": "...", + "Unit": "" }, + {"Name": "nam", + "Description": "...", + "Unit": "" }, + {"Name": "nrs", + "Description": "...", + "Unit": "" }, + {"Name": "sgn", + "Description": "...", + "Unit": "" }, + {"Name": "zon", + "Description": "...", + "Unit": "" }, + {"Name": "bemerkung", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_geo_dlm250.dlm250_geb03_f'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE orig_geo_dlm250.dlm250_gew01_f IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "gid", + "Description": "...", + "Unit": "" }, + {"Name": "land", + "Description": "...", + "Unit": "" }, + {"Name": "modellart", + "Description": "...", + "Unit": "" }, + {"Name": "objart", + "Description": "...", + "Unit": "" }, + {"Name": "objart_txt", + "Description": "...", + "Unit": "" }, + {"Name": "objid", + "Description": "...", + "Unit": "" }, + {"Name": "hdu_x", + "Description": "...", + "Unit": "" }, + {"Name": "beginn", + "Description": "...", + "Unit": "" }, + {"Name": "ende", + "Description": "...", + "Unit": "" }, + {"Name": "objart_z", + "Description": "...", + "Unit": "" }, + {"Name": "objid_z", + "Description": "...", + "Unit": "" }, + {"Name": "fkt", + "Description": "...", + "Unit": "" }, + {"Name": "gwk", + "Description": "...", + "Unit": "" }, + {"Name": "hyd", + "Description": "...", + "Unit": "" }, + {"Name": "nam", + "Description": "...", + "Unit": "" }, + {"Name": "sfk", + "Description": "...", + "Unit": "" }, + {"Name": "sfz", + "Description": "...", + "Unit": "" }, + {"Name": "wdm", + "Description": "...", + "Unit": "" }, + {"Name": "znm", + "Description": "...", + "Unit": "" }, + {"Name": "zus", + "Description": "...", + "Unit": "" }, + {"Name": "bemerkung", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_geo_dlm250.dlm250_gew01_f'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE orig_geo_dlm250.dlm250_gew01_l IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "gid", + "Description": "...", + "Unit": "" }, + {"Name": "land", + "Description": "...", + "Unit": "" }, + {"Name": "modellart", + "Description": "...", + "Unit": "" }, + {"Name": "objart", + "Description": "...", + "Unit": "" }, + {"Name": "objart_txt", + "Description": "...", + "Unit": "" }, + {"Name": "objid", + "Description": "...", + "Unit": "" }, + {"Name": "hdu_x", + "Description": "...", + "Unit": "" }, + {"Name": "beginn", + "Description": "...", + "Unit": "" }, + {"Name": "ende", + "Description": "...", + "Unit": "" }, + {"Name": "objart_z", + "Description": "...", + "Unit": "" }, + {"Name": "objid_z", + "Description": "...", + "Unit": "" }, + {"Name": "brg", + "Description": "...", + "Unit": "" }, + {"Name": "fkt", + "Description": "...", + "Unit": "" }, + {"Name": "flr", + "Description": "...", + "Unit": "" }, + {"Name": "gwk", + "Description": "...", + "Unit": "" }, + {"Name": "hyd", + "Description": "...", + "Unit": "" }, + {"Name": "nam", + "Description": "...", + "Unit": "" }, + {"Name": "sfk", + "Description": "...", + "Unit": "" }, + {"Name": "wdm", + "Description": "...", + "Unit": "" }, + {"Name": "znm", + "Description": "...", + "Unit": "" }, + {"Name": "zus", + "Description": "...", + "Unit": "" }, + {"Name": "bemerkung", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_geo_dlm250.dlm250_gew01_l'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE orig_geo_dlm250.dlm250_gew02_f IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "gid", + "Description": "...", + "Unit": "" }, + {"Name": "land", + "Description": "...", + "Unit": "" }, + {"Name": "modellart", + "Description": "...", + "Unit": "" }, + {"Name": "objart", + "Description": "...", + "Unit": "" }, + {"Name": "objart_txt", + "Description": "...", + "Unit": "" }, + {"Name": "objid", + "Description": "...", + "Unit": "" }, + {"Name": "hdu_x", + "Description": "...", + "Unit": "" }, + {"Name": "beginn", + "Description": "...", + "Unit": "" }, + {"Name": "ende", + "Description": "...", + "Unit": "" }, + {"Name": "art", + "Description": "...", + "Unit": "" }, + {"Name": "nam", + "Description": "...", + "Unit": "" }, + {"Name": "znm", + "Description": "...", + "Unit": "" }, + {"Name": "zus", + "Description": "...", + "Unit": "" }, + {"Name": "bemerkung", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_geo_dlm250.dlm250_gew02_f'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE orig_geo_dlm250.dlm250_gew02_l IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "gid", + "Description": "...", + "Unit": "" }, + {"Name": "land", + "Description": "...", + "Unit": "" }, + {"Name": "modellart", + "Description": "...", + "Unit": "" }, + {"Name": "objart", + "Description": "...", + "Unit": "" }, + {"Name": "objart_txt", + "Description": "...", + "Unit": "" }, + {"Name": "objid", + "Description": "...", + "Unit": "" }, + {"Name": "hdu_x", + "Description": "...", + "Unit": "" }, + {"Name": "beginn", + "Description": "...", + "Unit": "" }, + {"Name": "ende", + "Description": "...", + "Unit": "" }, + {"Name": "flr", + "Description": "...", + "Unit": "" }, + {"Name": "gwk", + "Description": "...", + "Unit": "" }, + {"Name": "nam", + "Description": "...", + "Unit": "" }, + {"Name": "bemerkung", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_geo_dlm250.dlm250_gew02_l'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE orig_geo_dlm250.dlm250_gew02_p IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "gid", + "Description": "...", + "Unit": "" }, + {"Name": "land", + "Description": "...", + "Unit": "" }, + {"Name": "modellart", + "Description": "...", + "Unit": "" }, + {"Name": "objart", + "Description": "...", + "Unit": "" }, + {"Name": "objart_txt", + "Description": "...", + "Unit": "" }, + {"Name": "objid", + "Description": "...", + "Unit": "" }, + {"Name": "hdu_x", + "Description": "...", + "Unit": "" }, + {"Name": "beginn", + "Description": "...", + "Unit": "" }, + {"Name": "ende", + "Description": "...", + "Unit": "" }, + {"Name": "art", + "Description": "...", + "Unit": "" }, + {"Name": "hws", + "Description": "...", + "Unit": "" }, + {"Name": "nam", + "Description": "...", + "Unit": "" }, + {"Name": "znm", + "Description": "...", + "Unit": "" }, + {"Name": "bemerkung", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_geo_dlm250.dlm250_gew02_p'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE orig_geo_dlm250.dlm250_gew03_l IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "gid", + "Description": "...", + "Unit": "" }, + {"Name": "land", + "Description": "...", + "Unit": "" }, + {"Name": "modellart", + "Description": "...", + "Unit": "" }, + {"Name": "objart", + "Description": "...", + "Unit": "" }, + {"Name": "objart_txt", + "Description": "...", + "Unit": "" }, + {"Name": "objid", + "Description": "...", + "Unit": "" }, + {"Name": "hdu_x", + "Description": "...", + "Unit": "" }, + {"Name": "beginn", + "Description": "...", + "Unit": "" }, + {"Name": "ende", + "Description": "...", + "Unit": "" }, + {"Name": "aga", + "Description": "...", + "Unit": "" }, + {"Name": "flr", + "Description": "...", + "Unit": "" }, + {"Name": "gwk", + "Description": "...", + "Unit": "" }, + {"Name": "nam", + "Description": "...", + "Unit": "" }, + {"Name": "sfk", + "Description": "...", + "Unit": "" }, + {"Name": "znm", + "Description": "...", + "Unit": "" }, + {"Name": "bemerkung", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_geo_dlm250.dlm250_gew03_l'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE orig_geo_dlm250.dlm250_hdu01_b IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "gid", + "Description": "...", + "Unit": "" }, + {"Name": "land", + "Description": "...", + "Unit": "" }, + {"Name": "objart_1", + "Description": "...", + "Unit": "" }, + {"Name": "objid_1", + "Description": "...", + "Unit": "" }, + {"Name": "ebene_1", + "Description": "...", + "Unit": "" }, + {"Name": "objart_2", + "Description": "...", + "Unit": "" }, + {"Name": "objid_2", + "Description": "...", + "Unit": "" }, + {"Name": "ebene_2", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_geo_dlm250.dlm250_hdu01_b'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE orig_geo_dlm250.dlm250_rel01_l IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "gid", + "Description": "...", + "Unit": "" }, + {"Name": "land", + "Description": "...", + "Unit": "" }, + {"Name": "modellart", + "Description": "...", + "Unit": "" }, + {"Name": "objart", + "Description": "...", + "Unit": "" }, + {"Name": "objart_txt", + "Description": "...", + "Unit": "" }, + {"Name": "objid", + "Description": "...", + "Unit": "" }, + {"Name": "hdu_x", + "Description": "...", + "Unit": "" }, + {"Name": "beginn", + "Description": "...", + "Unit": "" }, + {"Name": "ende", + "Description": "...", + "Unit": "" }, + {"Name": "objart_z", + "Description": "...", + "Unit": "" }, + {"Name": "objid_z", + "Description": "...", + "Unit": "" }, + {"Name": "art", + "Description": "...", + "Unit": "" }, + {"Name": "fkt", + "Description": "...", + "Unit": "" }, + {"Name": "hhl", + "Description": "...", + "Unit": "" }, + {"Name": "hho", + "Description": "...", + "Unit": "" }, + {"Name": "nam", + "Description": "...", + "Unit": "" }, + {"Name": "bemerkung", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_geo_dlm250.dlm250_rel01_l'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE orig_geo_dlm250.dlm250_rel01_p IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "gid", + "Description": "...", + "Unit": "" }, + {"Name": "land", + "Description": "...", + "Unit": "" }, + {"Name": "modellart", + "Description": "...", + "Unit": "" }, + {"Name": "objart", + "Description": "...", + "Unit": "" }, + {"Name": "objart_txt", + "Description": "...", + "Unit": "" }, + {"Name": "objid", + "Description": "...", + "Unit": "" }, + {"Name": "hdu_x", + "Description": "...", + "Unit": "" }, + {"Name": "beginn", + "Description": "...", + "Unit": "" }, + {"Name": "ende", + "Description": "...", + "Unit": "" }, + {"Name": "nam", + "Description": "...", + "Unit": "" }, + {"Name": "znm", + "Description": "...", + "Unit": "" }, + {"Name": "bemerkung", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_geo_dlm250.dlm250_rel01_p'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE orig_geo_dlm250.dlm250_rel02_p IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "gid", + "Description": "...", + "Unit": "" }, + {"Name": "land", + "Description": "...", + "Unit": "" }, + {"Name": "modellart", + "Description": "...", + "Unit": "" }, + {"Name": "objart", + "Description": "...", + "Unit": "" }, + {"Name": "objart_txt", + "Description": "...", + "Unit": "" }, + {"Name": "objid", + "Description": "...", + "Unit": "" }, + {"Name": "hdu_x", + "Description": "...", + "Unit": "" }, + {"Name": "beginn", + "Description": "...", + "Unit": "" }, + {"Name": "ende", + "Description": "...", + "Unit": "" }, + {"Name": "ang", + "Description": "...", + "Unit": "" }, + {"Name": "hoehe", + "Description": "...", + "Unit": "" }, + {"Name": "bemerkung", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_geo_dlm250.dlm250_rel02_p'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE orig_geo_dlm250.dlm250_sie01_f IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "gid", + "Description": "...", + "Unit": "" }, + {"Name": "land", + "Description": "...", + "Unit": "" }, + {"Name": "modellart", + "Description": "...", + "Unit": "" }, + {"Name": "objart", + "Description": "...", + "Unit": "" }, + {"Name": "objart_txt", + "Description": "...", + "Unit": "" }, + {"Name": "objid", + "Description": "...", + "Unit": "" }, + {"Name": "hdu_x", + "Description": "...", + "Unit": "" }, + {"Name": "beginn", + "Description": "...", + "Unit": "" }, + {"Name": "ende", + "Description": "...", + "Unit": "" }, + {"Name": "nam", + "Description": "...", + "Unit": "" }, + {"Name": "rgs", + "Description": "...", + "Unit": "" }, + {"Name": "bemerkung", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_geo_dlm250.dlm250_sie01_f'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE orig_geo_dlm250.dlm250_sie01_p IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "gid", + "Description": "...", + "Unit": "" }, + {"Name": "land", + "Description": "...", + "Unit": "" }, + {"Name": "modellart", + "Description": "...", + "Unit": "" }, + {"Name": "objart", + "Description": "...", + "Unit": "" }, + {"Name": "objart_txt", + "Description": "...", + "Unit": "" }, + {"Name": "objid", + "Description": "...", + "Unit": "" }, + {"Name": "hdu_x", + "Description": "...", + "Unit": "" }, + {"Name": "beginn", + "Description": "...", + "Unit": "" }, + {"Name": "ende", + "Description": "...", + "Unit": "" }, + {"Name": "nam", + "Description": "...", + "Unit": "" }, + {"Name": "rgs", + "Description": "...", + "Unit": "" }, + {"Name": "bemerkung", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_geo_dlm250.dlm250_sie01_p'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE orig_geo_dlm250.dlm250_sie02_f IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "gid", + "Description": "...", + "Unit": "" }, + {"Name": "land", + "Description": "...", + "Unit": "" }, + {"Name": "modellart", + "Description": "...", + "Unit": "" }, + {"Name": "objart", + "Description": "...", + "Unit": "" }, + {"Name": "objart_txt", + "Description": "...", + "Unit": "" }, + {"Name": "objid", + "Description": "...", + "Unit": "" }, + {"Name": "hdu_x", + "Description": "...", + "Unit": "" }, + {"Name": "beginn", + "Description": "...", + "Unit": "" }, + {"Name": "ende", + "Description": "...", + "Unit": "" }, + {"Name": "agt", + "Description": "...", + "Unit": "" }, + {"Name": "fkt", + "Description": "...", + "Unit": "" }, + {"Name": "nam", + "Description": "...", + "Unit": "" }, + {"Name": "rgs", + "Description": "...", + "Unit": "" }, + {"Name": "zus", + "Description": "...", + "Unit": "" }, + {"Name": "bemerkung", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_geo_dlm250.dlm250_sie02_f'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE orig_geo_dlm250.dlm250_sie03_f IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "gid", + "Description": "...", + "Unit": "" }, + {"Name": "land", + "Description": "...", + "Unit": "" }, + {"Name": "modellart", + "Description": "...", + "Unit": "" }, + {"Name": "objart", + "Description": "...", + "Unit": "" }, + {"Name": "objart_txt", + "Description": "...", + "Unit": "" }, + {"Name": "objid", + "Description": "...", + "Unit": "" }, + {"Name": "hdu_x", + "Description": "...", + "Unit": "" }, + {"Name": "beginn", + "Description": "...", + "Unit": "" }, + {"Name": "ende", + "Description": "...", + "Unit": "" }, + {"Name": "bwf", + "Description": "...", + "Unit": "" }, + {"Name": "hho", + "Description": "...", + "Unit": "" }, + {"Name": "nam", + "Description": "...", + "Unit": "" }, + {"Name": "zus", + "Description": "...", + "Unit": "" }, + {"Name": "bemerkung", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_geo_dlm250.dlm250_sie03_f'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE orig_geo_dlm250.dlm250_sie03_l IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "gid", + "Description": "...", + "Unit": "" }, + {"Name": "land", + "Description": "...", + "Unit": "" }, + {"Name": "modellart", + "Description": "...", + "Unit": "" }, + {"Name": "objart", + "Description": "...", + "Unit": "" }, + {"Name": "objart_txt", + "Description": "...", + "Unit": "" }, + {"Name": "objid", + "Description": "...", + "Unit": "" }, + {"Name": "hdu_x", + "Description": "...", + "Unit": "" }, + {"Name": "beginn", + "Description": "...", + "Unit": "" }, + {"Name": "ende", + "Description": "...", + "Unit": "" }, + {"Name": "bwf", + "Description": "...", + "Unit": "" }, + {"Name": "pro", + "Description": "...", + "Unit": "" }, + {"Name": "bemerkung", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_geo_dlm250.dlm250_sie03_l'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE orig_geo_dlm250.dlm250_sie03_p IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "gid", + "Description": "...", + "Unit": "" }, + {"Name": "land", + "Description": "...", + "Unit": "" }, + {"Name": "modellart", + "Description": "...", + "Unit": "" }, + {"Name": "objart", + "Description": "...", + "Unit": "" }, + {"Name": "objart_txt", + "Description": "...", + "Unit": "" }, + {"Name": "objid", + "Description": "...", + "Unit": "" }, + {"Name": "hdu_x", + "Description": "...", + "Unit": "" }, + {"Name": "beginn", + "Description": "...", + "Unit": "" }, + {"Name": "ende", + "Description": "...", + "Unit": "" }, + {"Name": "bwf", + "Description": "...", + "Unit": "" }, + {"Name": "hho", + "Description": "...", + "Unit": "" }, + {"Name": "nam", + "Description": "...", + "Unit": "" }, + {"Name": "spo", + "Description": "...", + "Unit": "" }, + {"Name": "zus", + "Description": "...", + "Unit": "" }, + {"Name": "bemerkung", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_geo_dlm250.dlm250_sie03_p'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE orig_geo_dlm250.dlm250_sie04_f IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "gid", + "Description": "...", + "Unit": "" }, + {"Name": "land", + "Description": "...", + "Unit": "" }, + {"Name": "modellart", + "Description": "...", + "Unit": "" }, + {"Name": "objart", + "Description": "...", + "Unit": "" }, + {"Name": "objart_txt", + "Description": "...", + "Unit": "" }, + {"Name": "objid", + "Description": "...", + "Unit": "" }, + {"Name": "hdu_x", + "Description": "...", + "Unit": "" }, + {"Name": "beginn", + "Description": "...", + "Unit": "" }, + {"Name": "ende", + "Description": "...", + "Unit": "" }, + {"Name": "nam", + "Description": "...", + "Unit": "" }, + {"Name": "bemerkung", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_geo_dlm250.dlm250_sie04_f'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE orig_geo_dlm250.dlm250_sie04_l IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "gid", + "Description": "...", + "Unit": "" }, + {"Name": "land", + "Description": "...", + "Unit": "" }, + {"Name": "modellart", + "Description": "...", + "Unit": "" }, + {"Name": "objart", + "Description": "...", + "Unit": "" }, + {"Name": "objart_txt", + "Description": "...", + "Unit": "" }, + {"Name": "objid", + "Description": "...", + "Unit": "" }, + {"Name": "hdu_x", + "Description": "...", + "Unit": "" }, + {"Name": "beginn", + "Description": "...", + "Unit": "" }, + {"Name": "ende", + "Description": "...", + "Unit": "" }, + {"Name": "kon", + "Description": "...", + "Unit": "" }, + {"Name": "nam", + "Description": "...", + "Unit": "" }, + {"Name": "zus", + "Description": "...", + "Unit": "" }, + {"Name": "bemerkung", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_geo_dlm250.dlm250_sie04_l'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE orig_geo_dlm250.dlm250_sie04_p IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "gid", + "Description": "...", + "Unit": "" }, + {"Name": "land", + "Description": "...", + "Unit": "" }, + {"Name": "modellart", + "Description": "...", + "Unit": "" }, + {"Name": "objart", + "Description": "...", + "Unit": "" }, + {"Name": "objart_txt", + "Description": "...", + "Unit": "" }, + {"Name": "objid", + "Description": "...", + "Unit": "" }, + {"Name": "hdu_x", + "Description": "...", + "Unit": "" }, + {"Name": "beginn", + "Description": "...", + "Unit": "" }, + {"Name": "ende", + "Description": "...", + "Unit": "" }, + {"Name": "kon", + "Description": "...", + "Unit": "" }, + {"Name": "nam", + "Description": "...", + "Unit": "" }, + {"Name": "zus", + "Description": "...", + "Unit": "" }, + {"Name": "bemerkung", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_geo_dlm250.dlm250_sie04_p'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE orig_geo_dlm250.dlm250_sie05_p IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "gid", + "Description": "...", + "Unit": "" }, + {"Name": "land", + "Description": "...", + "Unit": "" }, + {"Name": "modellart", + "Description": "...", + "Unit": "" }, + {"Name": "objart", + "Description": "...", + "Unit": "" }, + {"Name": "objart_txt", + "Description": "...", + "Unit": "" }, + {"Name": "objid", + "Description": "...", + "Unit": "" }, + {"Name": "hdu_x", + "Description": "...", + "Unit": "" }, + {"Name": "beginn", + "Description": "...", + "Unit": "" }, + {"Name": "ende", + "Description": "...", + "Unit": "" }, + {"Name": "bwf", + "Description": "...", + "Unit": "" }, + {"Name": "gfk", + "Description": "...", + "Unit": "" }, + {"Name": "hho", + "Description": "...", + "Unit": "" }, + {"Name": "nam", + "Description": "...", + "Unit": "" }, + {"Name": "znm", + "Description": "...", + "Unit": "" }, + {"Name": "zus", + "Description": "...", + "Unit": "" }, + {"Name": "bemerkung", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_geo_dlm250.dlm250_sie05_p'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE orig_geo_dlm250.dlm250_veg01_f IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "gid", + "Description": "...", + "Unit": "" }, + {"Name": "land", + "Description": "...", + "Unit": "" }, + {"Name": "modellart", + "Description": "...", + "Unit": "" }, + {"Name": "objart", + "Description": "...", + "Unit": "" }, + {"Name": "objart_txt", + "Description": "...", + "Unit": "" }, + {"Name": "objid", + "Description": "...", + "Unit": "" }, + {"Name": "hdu_x", + "Description": "...", + "Unit": "" }, + {"Name": "beginn", + "Description": "...", + "Unit": "" }, + {"Name": "ende", + "Description": "...", + "Unit": "" }, + {"Name": "nam", + "Description": "...", + "Unit": "" }, + {"Name": "veg", + "Description": "...", + "Unit": "" }, + {"Name": "bemerkung", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_geo_dlm250.dlm250_veg01_f'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE orig_geo_dlm250.dlm250_veg02_f IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "gid", + "Description": "...", + "Unit": "" }, + {"Name": "land", + "Description": "...", + "Unit": "" }, + {"Name": "modellart", + "Description": "...", + "Unit": "" }, + {"Name": "objart", + "Description": "...", + "Unit": "" }, + {"Name": "objart_txt", + "Description": "...", + "Unit": "" }, + {"Name": "objid", + "Description": "...", + "Unit": "" }, + {"Name": "hdu_x", + "Description": "...", + "Unit": "" }, + {"Name": "beginn", + "Description": "...", + "Unit": "" }, + {"Name": "ende", + "Description": "...", + "Unit": "" }, + {"Name": "nam", + "Description": "...", + "Unit": "" }, + {"Name": "zus", + "Description": "...", + "Unit": "" }, + {"Name": "bemerkung", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_geo_dlm250.dlm250_veg02_f'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE orig_geo_dlm250.dlm250_veg03_f IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "gid", + "Description": "...", + "Unit": "" }, + {"Name": "land", + "Description": "...", + "Unit": "" }, + {"Name": "modellart", + "Description": "...", + "Unit": "" }, + {"Name": "objart", + "Description": "...", + "Unit": "" }, + {"Name": "objart_txt", + "Description": "...", + "Unit": "" }, + {"Name": "objid", + "Description": "...", + "Unit": "" }, + {"Name": "hdu_x", + "Description": "...", + "Unit": "" }, + {"Name": "beginn", + "Description": "...", + "Unit": "" }, + {"Name": "ende", + "Description": "...", + "Unit": "" }, + {"Name": "fkt", + "Description": "...", + "Unit": "" }, + {"Name": "nam", + "Description": "...", + "Unit": "" }, + {"Name": "ofm", + "Description": "...", + "Unit": "" }, + {"Name": "bemerkung", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_geo_dlm250.dlm250_veg03_f'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE orig_geo_dlm250.dlm250_veg04_f IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "gid", + "Description": "...", + "Unit": "" }, + {"Name": "land", + "Description": "...", + "Unit": "" }, + {"Name": "modellart", + "Description": "...", + "Unit": "" }, + {"Name": "objart", + "Description": "...", + "Unit": "" }, + {"Name": "objart_txt", + "Description": "...", + "Unit": "" }, + {"Name": "objid", + "Description": "...", + "Unit": "" }, + {"Name": "hdu_x", + "Description": "...", + "Unit": "" }, + {"Name": "beginn", + "Description": "...", + "Unit": "" }, + {"Name": "ende", + "Description": "...", + "Unit": "" }, + {"Name": "bws", + "Description": "...", + "Unit": "" }, + {"Name": "nam", + "Description": "...", + "Unit": "" }, + {"Name": "zus", + "Description": "...", + "Unit": "" }, + {"Name": "bemerkung", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_geo_dlm250.dlm250_veg04_f'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE orig_geo_dlm250.dlm250_ver01_l IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "gid", + "Description": "...", + "Unit": "" }, + {"Name": "land", + "Description": "...", + "Unit": "" }, + {"Name": "modellart", + "Description": "...", + "Unit": "" }, + {"Name": "objart", + "Description": "...", + "Unit": "" }, + {"Name": "objart_txt", + "Description": "...", + "Unit": "" }, + {"Name": "objid", + "Description": "...", + "Unit": "" }, + {"Name": "hdu_x", + "Description": "...", + "Unit": "" }, + {"Name": "beginn", + "Description": "...", + "Unit": "" }, + {"Name": "ende", + "Description": "...", + "Unit": "" }, + {"Name": "objart_z", + "Description": "...", + "Unit": "" }, + {"Name": "objid_z", + "Description": "...", + "Unit": "" }, + {"Name": "bez", + "Description": "...", + "Unit": "" }, + {"Name": "brf", + "Description": "...", + "Unit": "" }, + {"Name": "bvb", + "Description": "...", + "Unit": "" }, + {"Name": "fsz", + "Description": "...", + "Unit": "" }, + {"Name": "ftr", + "Description": "...", + "Unit": "" }, + {"Name": "ibd", + "Description": "...", + "Unit": "" }, + {"Name": "wdm", + "Description": "...", + "Unit": "" }, + {"Name": "znm", + "Description": "...", + "Unit": "" }, + {"Name": "zus", + "Description": "...", + "Unit": "" }, + {"Name": "bemerkung", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_geo_dlm250.dlm250_ver01_l'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE orig_geo_dlm250.dlm250_ver02_l IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "gid", + "Description": "...", + "Unit": "" }, + {"Name": "land", + "Description": "...", + "Unit": "" }, + {"Name": "modellart", + "Description": "...", + "Unit": "" }, + {"Name": "objart", + "Description": "...", + "Unit": "" }, + {"Name": "objart_txt", + "Description": "...", + "Unit": "" }, + {"Name": "objid", + "Description": "...", + "Unit": "" }, + {"Name": "hdu_x", + "Description": "...", + "Unit": "" }, + {"Name": "beginn", + "Description": "...", + "Unit": "" }, + {"Name": "ende", + "Description": "...", + "Unit": "" }, + {"Name": "fkt", + "Description": "...", + "Unit": "" }, + {"Name": "nam", + "Description": "...", + "Unit": "" }, + {"Name": "znm", + "Description": "...", + "Unit": "" }, + {"Name": "bemerkung", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_geo_dlm250.dlm250_ver02_l'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE orig_geo_dlm250.dlm250_ver03_f IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "gid", + "Description": "...", + "Unit": "" }, + {"Name": "land", + "Description": "...", + "Unit": "" }, + {"Name": "modellart", + "Description": "...", + "Unit": "" }, + {"Name": "objart", + "Description": "...", + "Unit": "" }, + {"Name": "objart_txt", + "Description": "...", + "Unit": "" }, + {"Name": "objid", + "Description": "...", + "Unit": "" }, + {"Name": "hdu_x", + "Description": "...", + "Unit": "" }, + {"Name": "beginn", + "Description": "...", + "Unit": "" }, + {"Name": "ende", + "Description": "...", + "Unit": "" }, + {"Name": "bemerkung", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_geo_dlm250.dlm250_ver03_f'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE orig_geo_dlm250.dlm250_ver03_l IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "gid", + "Description": "...", + "Unit": "" }, + {"Name": "land", + "Description": "...", + "Unit": "" }, + {"Name": "modellart", + "Description": "...", + "Unit": "" }, + {"Name": "objart", + "Description": "...", + "Unit": "" }, + {"Name": "objart_txt", + "Description": "...", + "Unit": "" }, + {"Name": "objid", + "Description": "...", + "Unit": "" }, + {"Name": "hdu_x", + "Description": "...", + "Unit": "" }, + {"Name": "beginn", + "Description": "...", + "Unit": "" }, + {"Name": "ende", + "Description": "...", + "Unit": "" }, + {"Name": "bkt", + "Description": "...", + "Unit": "" }, + {"Name": "elk", + "Description": "...", + "Unit": "" }, + {"Name": "gls", + "Description": "...", + "Unit": "" }, + {"Name": "nam", + "Description": "...", + "Unit": "" }, + {"Name": "nrb", + "Description": "...", + "Unit": "" }, + {"Name": "spw", + "Description": "...", + "Unit": "" }, + {"Name": "znm", + "Description": "...", + "Unit": "" }, + {"Name": "zus", + "Description": "...", + "Unit": "" }, + {"Name": "bemerkung", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_geo_dlm250.dlm250_ver03_l'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE orig_geo_dlm250.dlm250_ver04_f IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "gid", + "Description": "...", + "Unit": "" }, + {"Name": "land", + "Description": "...", + "Unit": "" }, + {"Name": "modellart", + "Description": "...", + "Unit": "" }, + {"Name": "objart", + "Description": "...", + "Unit": "" }, + {"Name": "objart_txt", + "Description": "...", + "Unit": "" }, + {"Name": "objid", + "Description": "...", + "Unit": "" }, + {"Name": "hdu_x", + "Description": "...", + "Unit": "" }, + {"Name": "beginn", + "Description": "...", + "Unit": "" }, + {"Name": "ende", + "Description": "...", + "Unit": "" }, + {"Name": "art", + "Description": "...", + "Unit": "" }, + {"Name": "bez", + "Description": "...", + "Unit": "" }, + {"Name": "nam", + "Description": "...", + "Unit": "" }, + {"Name": "ntz", + "Description": "...", + "Unit": "" }, + {"Name": "znm", + "Description": "...", + "Unit": "" }, + {"Name": "zus", + "Description": "...", + "Unit": "" }, + {"Name": "bemerkung", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_geo_dlm250.dlm250_ver04_f'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE orig_geo_dlm250.dlm250_ver05_l IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "gid", + "Description": "...", + "Unit": "" }, + {"Name": "land", + "Description": "...", + "Unit": "" }, + {"Name": "modellart", + "Description": "...", + "Unit": "" }, + {"Name": "objart", + "Description": "...", + "Unit": "" }, + {"Name": "objart_txt", + "Description": "...", + "Unit": "" }, + {"Name": "objid", + "Description": "...", + "Unit": "" }, + {"Name": "hdu_x", + "Description": "...", + "Unit": "" }, + {"Name": "beginn", + "Description": "...", + "Unit": "" }, + {"Name": "ende", + "Description": "...", + "Unit": "" }, + {"Name": "art", + "Description": "...", + "Unit": "" }, + {"Name": "nam", + "Description": "...", + "Unit": "" }, + {"Name": "bemerkung", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_geo_dlm250.dlm250_ver05_l'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE orig_geo_dlm250.dlm250_ver06_f IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "gid", + "Description": "...", + "Unit": "" }, + {"Name": "land", + "Description": "...", + "Unit": "" }, + {"Name": "modellart", + "Description": "...", + "Unit": "" }, + {"Name": "objart", + "Description": "...", + "Unit": "" }, + {"Name": "objart_txt", + "Description": "...", + "Unit": "" }, + {"Name": "objid", + "Description": "...", + "Unit": "" }, + {"Name": "hdu_x", + "Description": "...", + "Unit": "" }, + {"Name": "beginn", + "Description": "...", + "Unit": "" }, + {"Name": "ende", + "Description": "...", + "Unit": "" }, + {"Name": "bwf", + "Description": "...", + "Unit": "" }, + {"Name": "nam", + "Description": "...", + "Unit": "" }, + {"Name": "zus", + "Description": "...", + "Unit": "" }, + {"Name": "bemerkung", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_geo_dlm250.dlm250_ver06_f'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE orig_geo_dlm250.dlm250_ver06_l IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "gid", + "Description": "...", + "Unit": "" }, + {"Name": "land", + "Description": "...", + "Unit": "" }, + {"Name": "modellart", + "Description": "...", + "Unit": "" }, + {"Name": "objart", + "Description": "...", + "Unit": "" }, + {"Name": "objart_txt", + "Description": "...", + "Unit": "" }, + {"Name": "objid", + "Description": "...", + "Unit": "" }, + {"Name": "hdu_x", + "Description": "...", + "Unit": "" }, + {"Name": "beginn", + "Description": "...", + "Unit": "" }, + {"Name": "ende", + "Description": "...", + "Unit": "" }, + {"Name": "art", + "Description": "...", + "Unit": "" }, + {"Name": "bez", + "Description": "...", + "Unit": "" }, + {"Name": "bro", + "Description": "...", + "Unit": "" }, + {"Name": "bwf", + "Description": "...", + "Unit": "" }, + {"Name": "nam", + "Description": "...", + "Unit": "" }, + {"Name": "ofm", + "Description": "...", + "Unit": "" }, + {"Name": "znm", + "Description": "...", + "Unit": "" }, + {"Name": "zus", + "Description": "...", + "Unit": "" }, + {"Name": "bemerkung", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_geo_dlm250.dlm250_ver06_l'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE orig_geo_dlm250.dlm250_ver06_p IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "gid", + "Description": "...", + "Unit": "" }, + {"Name": "land", + "Description": "...", + "Unit": "" }, + {"Name": "modellart", + "Description": "...", + "Unit": "" }, + {"Name": "objart", + "Description": "...", + "Unit": "" }, + {"Name": "objart_txt", + "Description": "...", + "Unit": "" }, + {"Name": "objid", + "Description": "...", + "Unit": "" }, + {"Name": "hdu_x", + "Description": "...", + "Unit": "" }, + {"Name": "beginn", + "Description": "...", + "Unit": "" }, + {"Name": "ende", + "Description": "...", + "Unit": "" }, + {"Name": "art", + "Description": "...", + "Unit": "" }, + {"Name": "bez", + "Description": "...", + "Unit": "" }, + {"Name": "bfk", + "Description": "...", + "Unit": "" }, + {"Name": "bro", + "Description": "...", + "Unit": "" }, + {"Name": "bwf", + "Description": "...", + "Unit": "" }, + {"Name": "nam", + "Description": "...", + "Unit": "" }, + {"Name": "ofm", + "Description": "...", + "Unit": "" }, + {"Name": "znm", + "Description": "...", + "Unit": "" }, + {"Name": "zus", + "Description": "...", + "Unit": "" }, + {"Name": "bemerkung", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_geo_dlm250.dlm250_ver06_p'::regclass)::json; + +-- + diff --git a/requirements.txt/SQL Documentation/orig_geo_ego_jg.sql b/requirements.txt/SQL Documentation/orig_geo_ego_jg.sql new file mode 100644 index 00000000..02e3cb66 --- /dev/null +++ b/requirements.txt/SQL Documentation/orig_geo_ego_jg.sql @@ -0,0 +1,3094 @@ +-- + +COMMENT ON TABLE orig_geo_ego_jg.ego_deu_loads IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }, + {"Name": "zensus_sum", + "Description": "...", + "Unit": "" }, + {"Name": "zensus_count", + "Description": "...", + "Unit": "" }, + {"Name": "zensus_density", + "Description": "...", + "Unit": "" }, + {"Name": "ioer_sum", + "Description": "...", + "Unit": "" }, + {"Name": "ioer_count", + "Description": "...", + "Unit": "" }, + {"Name": "ioer_density", + "Description": "...", + "Unit": "" }, + {"Name": "area_ha", + "Description": "...", + "Unit": "" }, + {"Name": "sector_area_residential", + "Description": "...", + "Unit": "" }, + {"Name": "sector_area_retail", + "Description": "...", + "Unit": "" }, + {"Name": "sector_area_industrial", + "Description": "...", + "Unit": "" }, + {"Name": "sector_area_agricultural", + "Description": "...", + "Unit": "" }, + {"Name": "sector_share_residential", + "Description": "...", + "Unit": "" }, + {"Name": "sector_share_retail", + "Description": "...", + "Unit": "" }, + {"Name": "sector_share_industrial", + "Description": "...", + "Unit": "" }, + {"Name": "sector_share_agricultural", + "Description": "...", + "Unit": "" }, + {"Name": "sector_count_residential", + "Description": "...", + "Unit": "" }, + {"Name": "sector_count_retail", + "Description": "...", + "Unit": "" }, + {"Name": "sector_count_industrial", + "Description": "...", + "Unit": "" }, + {"Name": "sector_count_agricultural", + "Description": "...", + "Unit": "" }, + {"Name": "mv_poly_id", + "Description": "...", + "Unit": "" }, + {"Name": "nuts", + "Description": "...", + "Unit": "" }, + {"Name": "rs", + "Description": "...", + "Unit": "" }, + {"Name": "ags_0", + "Description": "...", + "Unit": "" }, + {"Name": "geom_centroid", + "Description": "...", + "Unit": "" }, + {"Name": "geom_surfacepoint", + "Description": "...", + "Unit": "" }, + {"Name": "geom_centre", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_geo_ego_jg.ego_deu_loads'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE orig_geo_ego_jg.ego_deu_loads_collect IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_geo_ego_jg.ego_deu_loads_collect'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE orig_geo_ego_jg.ego_deu_loads_collect_buffer100 IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_geo_ego_jg.ego_deu_loads_collect_buffer100'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE orig_geo_ego_jg.ego_deu_loads_collect_buffer100_unbuffer IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }, + {"Name": "geom_centroid", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_geo_ego_jg.ego_deu_loads_collect_buffer100_unbuffer'::regclass)::json; + +-- +-- + +COMMENT ON TABLE orig_geo_ego_jg.ego_deu_loads_collect_buffer100_unbuffer_cut IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }, + {"Name": "geom_buffer", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_geo_ego_jg.ego_deu_loads_collect_buffer100_unbuffer_cut'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE orig_geo_ego_jg.ego_deu_loads_collect_buffer100_unbuffer_cut_gem IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_geo_ego_jg.ego_deu_loads_collect_buffer100_unbuffer_cut_gem'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE orig_geo_ego_jg.ego_deu_loads_collect_buffer100_unbuffer_cut_spf IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_geo_ego_jg.ego_deu_loads_collect_buffer100_unbuffer_cut_spf'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE orig_geo_ego_jg.ego_deu_loads_collect_buffer100_unbuffer_spf IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }, + {"Name": "geom_centroid", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_geo_ego_jg.ego_deu_loads_collect_buffer100_unbuffer_spf'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE orig_geo_ego_jg.ego_deu_loads_consumption_spf IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "sector_consumption_residential", + "Description": "...", + "Unit": "" }, + {"Name": "sector_consumption_retail", + "Description": "...", + "Unit": "" }, + {"Name": "sector_consumption_industrial", + "Description": "...", + "Unit": "" }, + {"Name": "sector_consumption_agricultural", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_geo_ego_jg.ego_deu_loads_consumption_spf'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE orig_geo_ego_jg.ego_deu_loads_spf IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }, + {"Name": "zensus_sum", + "Description": "...", + "Unit": "" }, + {"Name": "zensus_count", + "Description": "...", + "Unit": "" }, + {"Name": "zensus_density", + "Description": "...", + "Unit": "" }, + {"Name": "ioer_sum", + "Description": "...", + "Unit": "" }, + {"Name": "ioer_count", + "Description": "...", + "Unit": "" }, + {"Name": "ioer_density", + "Description": "...", + "Unit": "" }, + {"Name": "area_ha", + "Description": "...", + "Unit": "" }, + {"Name": "sector_area_residential", + "Description": "...", + "Unit": "" }, + {"Name": "sector_area_retail", + "Description": "...", + "Unit": "" }, + {"Name": "sector_area_industrial", + "Description": "...", + "Unit": "" }, + {"Name": "sector_area_agricultural", + "Description": "...", + "Unit": "" }, + {"Name": "sector_share_residential", + "Description": "...", + "Unit": "" }, + {"Name": "sector_share_retail", + "Description": "...", + "Unit": "" }, + {"Name": "sector_share_industrial", + "Description": "...", + "Unit": "" }, + {"Name": "sector_share_agricultural", + "Description": "...", + "Unit": "" }, + {"Name": "sector_count_residential", + "Description": "...", + "Unit": "" }, + {"Name": "sector_count_retail", + "Description": "...", + "Unit": "" }, + {"Name": "sector_count_industrial", + "Description": "...", + "Unit": "" }, + {"Name": "sector_count_agricultural", + "Description": "...", + "Unit": "" }, + {"Name": "mv_poly_id", + "Description": "...", + "Unit": "" }, + {"Name": "nuts", + "Description": "...", + "Unit": "" }, + {"Name": "rs", + "Description": "...", + "Unit": "" }, + {"Name": "ags_0", + "Description": "...", + "Unit": "" }, + {"Name": "geom_centroid", + "Description": "...", + "Unit": "" }, + {"Name": "geom_surfacepoint", + "Description": "...", + "Unit": "" }, + {"Name": "geom_centre", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_geo_ego_jg.ego_deu_loads_spf'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE orig_geo_ego_jg.ego_deu_loads_zensus IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "gid", + "Description": "...", + "Unit": "" }, + {"Name": "population", + "Description": "...", + "Unit": "" }, + {"Name": "inside_la", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_geo_ego_jg.ego_deu_loads_zensus'::regclass)::json; + +-- +-- + +COMMENT ON TABLE orig_geo_ego_jg.ego_deu_mv_gridcell_full IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_geo_ego_jg.ego_deu_mv_gridcell_full'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE orig_geo_ego_jg.ego_deu_osm_loadarea IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }, + {"Name": "zensus_sum", + "Description": "...", + "Unit": "" }, + {"Name": "zensus_count", + "Description": "...", + "Unit": "" }, + {"Name": "zensus_density", + "Description": "...", + "Unit": "" }, + {"Name": "ioer_sum", + "Description": "...", + "Unit": "" }, + {"Name": "ioer_count", + "Description": "...", + "Unit": "" }, + {"Name": "ioer_density", + "Description": "...", + "Unit": "" }, + {"Name": "area_ha", + "Description": "...", + "Unit": "" }, + {"Name": "sector_area_residential", + "Description": "...", + "Unit": "" }, + {"Name": "sector_area_retail", + "Description": "...", + "Unit": "" }, + {"Name": "sector_area_industrial", + "Description": "...", + "Unit": "" }, + {"Name": "sector_area_agricultural", + "Description": "...", + "Unit": "" }, + {"Name": "sector_share_residential", + "Description": "...", + "Unit": "" }, + {"Name": "sector_share_retail", + "Description": "...", + "Unit": "" }, + {"Name": "sector_share_industrial", + "Description": "...", + "Unit": "" }, + {"Name": "sector_share_agricultural", + "Description": "...", + "Unit": "" }, + {"Name": "sector_count_residential", + "Description": "...", + "Unit": "" }, + {"Name": "sector_count_retail", + "Description": "...", + "Unit": "" }, + {"Name": "sector_count_industrial", + "Description": "...", + "Unit": "" }, + {"Name": "sector_count_agricultural", + "Description": "...", + "Unit": "" }, + {"Name": "mv_poly_id", + "Description": "...", + "Unit": "" }, + {"Name": "nuts", + "Description": "...", + "Unit": "" }, + {"Name": "rs", + "Description": "...", + "Unit": "" }, + {"Name": "ags_0", + "Description": "...", + "Unit": "" }, + {"Name": "geom_centroid", + "Description": "...", + "Unit": "" }, + {"Name": "geom_surfacepoint", + "Description": "...", + "Unit": "" }, + {"Name": "geom_buffer", + "Description": "...", + "Unit": "" }, + {"Name": "la_id", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_geo_ego_jg.ego_deu_osm_loadarea'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE orig_geo_ego_jg.ego_deu_osm_loadarea_spf IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }, + {"Name": "zensus_sum", + "Description": "...", + "Unit": "" }, + {"Name": "zensus_count", + "Description": "...", + "Unit": "" }, + {"Name": "zensus_density", + "Description": "...", + "Unit": "" }, + {"Name": "ioer_sum", + "Description": "...", + "Unit": "" }, + {"Name": "ioer_count", + "Description": "...", + "Unit": "" }, + {"Name": "ioer_density", + "Description": "...", + "Unit": "" }, + {"Name": "area_ha", + "Description": "...", + "Unit": "" }, + {"Name": "sector_area_residential", + "Description": "...", + "Unit": "" }, + {"Name": "sector_area_retail", + "Description": "...", + "Unit": "" }, + {"Name": "sector_area_industrial", + "Description": "...", + "Unit": "" }, + {"Name": "sector_area_agricultural", + "Description": "...", + "Unit": "" }, + {"Name": "sector_share_residential", + "Description": "...", + "Unit": "" }, + {"Name": "sector_share_retail", + "Description": "...", + "Unit": "" }, + {"Name": "sector_share_industrial", + "Description": "...", + "Unit": "" }, + {"Name": "sector_share_agricultural", + "Description": "...", + "Unit": "" }, + {"Name": "sector_count_residential", + "Description": "...", + "Unit": "" }, + {"Name": "sector_count_retail", + "Description": "...", + "Unit": "" }, + {"Name": "sector_count_industrial", + "Description": "...", + "Unit": "" }, + {"Name": "sector_count_agricultural", + "Description": "...", + "Unit": "" }, + {"Name": "mv_poly_id", + "Description": "...", + "Unit": "" }, + {"Name": "nuts", + "Description": "...", + "Unit": "" }, + {"Name": "rs", + "Description": "...", + "Unit": "" }, + {"Name": "ags_0", + "Description": "...", + "Unit": "" }, + {"Name": "geom_centroid", + "Description": "...", + "Unit": "" }, + {"Name": "geom_surfacepoint", + "Description": "...", + "Unit": "" }, + {"Name": "geom_buffer", + "Description": "...", + "Unit": "" }, + {"Name": "la_id", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_geo_ego_jg.ego_deu_osm_loadarea_spf'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE orig_geo_ego_jg.ego_deu_zensus_loadpoints_cluster IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "cid", + "Description": "...", + "Unit": "" }, + {"Name": "zensus_sum", + "Description": "...", + "Unit": "" }, + {"Name": "area_ha", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }, + {"Name": "geom_buffer", + "Description": "...", + "Unit": "" }, + {"Name": "geom_centroid", + "Description": "...", + "Unit": "" }, + {"Name": "geom_surfacepoint", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_geo_ego_jg.ego_deu_zensus_loadpoints_cluster'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE orig_geo_ego_jg.ego_deu_zensus_loadpoints_cluster_spf IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "cid", + "Description": "...", + "Unit": "" }, + {"Name": "zensus_sum", + "Description": "...", + "Unit": "" }, + {"Name": "area_ha", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }, + {"Name": "geom_buffer", + "Description": "...", + "Unit": "" }, + {"Name": "geom_centroid", + "Description": "...", + "Unit": "" }, + {"Name": "geom_surfacepoint", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_geo_ego_jg.ego_deu_zensus_loadpoints_cluster_spf'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE orig_geo_ego_jg.ego_ms_netzbezirke IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }, + {"Name": "geom_gem", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_geo_ego_jg.ego_ms_netzbezirke'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE orig_geo_ego_jg.jg_MS_Bies IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }, + {"Name": "name", + "Description": "...", + "Unit": "" }, + {"Name": "descriptio", + "Description": "...", + "Unit": "" }, + {"Name": "timestamp", + "Description": "...", + "Unit": "" }, + {"Name": "begin", + "Description": "...", + "Unit": "" }, + {"Name": "end", + "Description": "...", + "Unit": "" }, + {"Name": "altitudemo", + "Description": "...", + "Unit": "" }, + {"Name": "tessellate", + "Description": "...", + "Unit": "" }, + {"Name": "extrude", + "Description": "...", + "Unit": "" }, + {"Name": "visibility", + "Description": "...", + "Unit": "" }, + {"Name": "draworder", + "Description": "...", + "Unit": "" }, + {"Name": "icon", + "Description": "...", + "Unit": "" }, + {"Name": "name_2", + "Description": "...", + "Unit": "" }, + {"Name": "descript_2", + "Description": "...", + "Unit": "" }, + {"Name": "timestam_2", + "Description": "...", + "Unit": "" }, + {"Name": "begin_2", + "Description": "...", + "Unit": "" }, + {"Name": "end_2", + "Description": "...", + "Unit": "" }, + {"Name": "altitude_2", + "Description": "...", + "Unit": "" }, + {"Name": "tessella_2", + "Description": "...", + "Unit": "" }, + {"Name": "extrude_2", + "Description": "...", + "Unit": "" }, + {"Name": "visibili_2", + "Description": "...", + "Unit": "" }, + {"Name": "draworde_2", + "Description": "...", + "Unit": "" }, + {"Name": "icon_2", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_geo_ego_jg.jg_MS_Bies'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE orig_geo_ego_jg.jg_MS_Breit IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }, + {"Name": "name", + "Description": "...", + "Unit": "" }, + {"Name": "descriptio", + "Description": "...", + "Unit": "" }, + {"Name": "timestamp", + "Description": "...", + "Unit": "" }, + {"Name": "begin", + "Description": "...", + "Unit": "" }, + {"Name": "end", + "Description": "...", + "Unit": "" }, + {"Name": "altitudemo", + "Description": "...", + "Unit": "" }, + {"Name": "tessellate", + "Description": "...", + "Unit": "" }, + {"Name": "extrude", + "Description": "...", + "Unit": "" }, + {"Name": "visibility", + "Description": "...", + "Unit": "" }, + {"Name": "draworder", + "Description": "...", + "Unit": "" }, + {"Name": "icon", + "Description": "...", + "Unit": "" }, + {"Name": "name_2", + "Description": "...", + "Unit": "" }, + {"Name": "descript_2", + "Description": "...", + "Unit": "" }, + {"Name": "timestam_2", + "Description": "...", + "Unit": "" }, + {"Name": "begin_2", + "Description": "...", + "Unit": "" }, + {"Name": "end_2", + "Description": "...", + "Unit": "" }, + {"Name": "altitude_2", + "Description": "...", + "Unit": "" }, + {"Name": "tessella_2", + "Description": "...", + "Unit": "" }, + {"Name": "extrude_2", + "Description": "...", + "Unit": "" }, + {"Name": "visibili_2", + "Description": "...", + "Unit": "" }, + {"Name": "draworde_2", + "Description": "...", + "Unit": "" }, + {"Name": "icon_2", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_geo_ego_jg.jg_MS_Breit'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE orig_geo_ego_jg.jg_MS_Buch IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }, + {"Name": "name", + "Description": "...", + "Unit": "" }, + {"Name": "descriptio", + "Description": "...", + "Unit": "" }, + {"Name": "timestamp", + "Description": "...", + "Unit": "" }, + {"Name": "begin", + "Description": "...", + "Unit": "" }, + {"Name": "end", + "Description": "...", + "Unit": "" }, + {"Name": "altitudemo", + "Description": "...", + "Unit": "" }, + {"Name": "tessellate", + "Description": "...", + "Unit": "" }, + {"Name": "extrude", + "Description": "...", + "Unit": "" }, + {"Name": "visibility", + "Description": "...", + "Unit": "" }, + {"Name": "draworder", + "Description": "...", + "Unit": "" }, + {"Name": "icon", + "Description": "...", + "Unit": "" }, + {"Name": "name_2", + "Description": "...", + "Unit": "" }, + {"Name": "descript_2", + "Description": "...", + "Unit": "" }, + {"Name": "timestam_2", + "Description": "...", + "Unit": "" }, + {"Name": "begin_2", + "Description": "...", + "Unit": "" }, + {"Name": "end_2", + "Description": "...", + "Unit": "" }, + {"Name": "altitude_2", + "Description": "...", + "Unit": "" }, + {"Name": "tessella_2", + "Description": "...", + "Unit": "" }, + {"Name": "extrude_2", + "Description": "...", + "Unit": "" }, + {"Name": "visibili_2", + "Description": "...", + "Unit": "" }, + {"Name": "draworde_2", + "Description": "...", + "Unit": "" }, + {"Name": "icon_2", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_geo_ego_jg.jg_MS_Buch'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE orig_geo_ego_jg.jg_MS_Horg IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }, + {"Name": "name", + "Description": "...", + "Unit": "" }, + {"Name": "descriptio", + "Description": "...", + "Unit": "" }, + {"Name": "timestamp", + "Description": "...", + "Unit": "" }, + {"Name": "begin", + "Description": "...", + "Unit": "" }, + {"Name": "end", + "Description": "...", + "Unit": "" }, + {"Name": "altitudemo", + "Description": "...", + "Unit": "" }, + {"Name": "tessellate", + "Description": "...", + "Unit": "" }, + {"Name": "extrude", + "Description": "...", + "Unit": "" }, + {"Name": "visibility", + "Description": "...", + "Unit": "" }, + {"Name": "draworder", + "Description": "...", + "Unit": "" }, + {"Name": "icon", + "Description": "...", + "Unit": "" }, + {"Name": "name_2", + "Description": "...", + "Unit": "" }, + {"Name": "descript_2", + "Description": "...", + "Unit": "" }, + {"Name": "timestam_2", + "Description": "...", + "Unit": "" }, + {"Name": "begin_2", + "Description": "...", + "Unit": "" }, + {"Name": "end_2", + "Description": "...", + "Unit": "" }, + {"Name": "altitude_2", + "Description": "...", + "Unit": "" }, + {"Name": "tessella_2", + "Description": "...", + "Unit": "" }, + {"Name": "extrude_2", + "Description": "...", + "Unit": "" }, + {"Name": "visibili_2", + "Description": "...", + "Unit": "" }, + {"Name": "draworde_2", + "Description": "...", + "Unit": "" }, + {"Name": "icon_2", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_geo_ego_jg.jg_MS_Horg'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE orig_geo_ego_jg.jg_MS_Lage IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }, + {"Name": "name", + "Description": "...", + "Unit": "" }, + {"Name": "descriptio", + "Description": "...", + "Unit": "" }, + {"Name": "timestamp", + "Description": "...", + "Unit": "" }, + {"Name": "begin", + "Description": "...", + "Unit": "" }, + {"Name": "end", + "Description": "...", + "Unit": "" }, + {"Name": "altitudemo", + "Description": "...", + "Unit": "" }, + {"Name": "tessellate", + "Description": "...", + "Unit": "" }, + {"Name": "extrude", + "Description": "...", + "Unit": "" }, + {"Name": "visibility", + "Description": "...", + "Unit": "" }, + {"Name": "draworder", + "Description": "...", + "Unit": "" }, + {"Name": "icon", + "Description": "...", + "Unit": "" }, + {"Name": "name_2", + "Description": "...", + "Unit": "" }, + {"Name": "descript_2", + "Description": "...", + "Unit": "" }, + {"Name": "timestam_2", + "Description": "...", + "Unit": "" }, + {"Name": "begin_2", + "Description": "...", + "Unit": "" }, + {"Name": "end_2", + "Description": "...", + "Unit": "" }, + {"Name": "altitude_2", + "Description": "...", + "Unit": "" }, + {"Name": "tessella_2", + "Description": "...", + "Unit": "" }, + {"Name": "extrude_2", + "Description": "...", + "Unit": "" }, + {"Name": "visibili_2", + "Description": "...", + "Unit": "" }, + {"Name": "draworde_2", + "Description": "...", + "Unit": "" }, + {"Name": "icon_2", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_geo_ego_jg.jg_MS_Lage'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE orig_geo_ego_jg.jg_MS_Leng IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }, + {"Name": "name", + "Description": "...", + "Unit": "" }, + {"Name": "descriptio", + "Description": "...", + "Unit": "" }, + {"Name": "timestamp", + "Description": "...", + "Unit": "" }, + {"Name": "begin", + "Description": "...", + "Unit": "" }, + {"Name": "end", + "Description": "...", + "Unit": "" }, + {"Name": "altitudemo", + "Description": "...", + "Unit": "" }, + {"Name": "tessellate", + "Description": "...", + "Unit": "" }, + {"Name": "extrude", + "Description": "...", + "Unit": "" }, + {"Name": "visibility", + "Description": "...", + "Unit": "" }, + {"Name": "draworder", + "Description": "...", + "Unit": "" }, + {"Name": "icon", + "Description": "...", + "Unit": "" }, + {"Name": "name_2", + "Description": "...", + "Unit": "" }, + {"Name": "descript_2", + "Description": "...", + "Unit": "" }, + {"Name": "timestam_2", + "Description": "...", + "Unit": "" }, + {"Name": "begin_2", + "Description": "...", + "Unit": "" }, + {"Name": "end_2", + "Description": "...", + "Unit": "" }, + {"Name": "altitude_2", + "Description": "...", + "Unit": "" }, + {"Name": "tessella_2", + "Description": "...", + "Unit": "" }, + {"Name": "extrude_2", + "Description": "...", + "Unit": "" }, + {"Name": "visibili_2", + "Description": "...", + "Unit": "" }, + {"Name": "draworde_2", + "Description": "...", + "Unit": "" }, + {"Name": "icon_2", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_geo_ego_jg.jg_MS_Leng'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE orig_geo_ego_jg.jg_MS_Memm IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }, + {"Name": "name", + "Description": "...", + "Unit": "" }, + {"Name": "descriptio", + "Description": "...", + "Unit": "" }, + {"Name": "timestamp", + "Description": "...", + "Unit": "" }, + {"Name": "begin", + "Description": "...", + "Unit": "" }, + {"Name": "end", + "Description": "...", + "Unit": "" }, + {"Name": "altitudemo", + "Description": "...", + "Unit": "" }, + {"Name": "tessellate", + "Description": "...", + "Unit": "" }, + {"Name": "extrude", + "Description": "...", + "Unit": "" }, + {"Name": "visibility", + "Description": "...", + "Unit": "" }, + {"Name": "draworder", + "Description": "...", + "Unit": "" }, + {"Name": "icon", + "Description": "...", + "Unit": "" }, + {"Name": "name_2", + "Description": "...", + "Unit": "" }, + {"Name": "descript_2", + "Description": "...", + "Unit": "" }, + {"Name": "timestam_2", + "Description": "...", + "Unit": "" }, + {"Name": "begin_2", + "Description": "...", + "Unit": "" }, + {"Name": "end_2", + "Description": "...", + "Unit": "" }, + {"Name": "altitude_2", + "Description": "...", + "Unit": "" }, + {"Name": "tessella_2", + "Description": "...", + "Unit": "" }, + {"Name": "extrude_2", + "Description": "...", + "Unit": "" }, + {"Name": "visibili_2", + "Description": "...", + "Unit": "" }, + {"Name": "draworde_2", + "Description": "...", + "Unit": "" }, + {"Name": "icon_2", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_geo_ego_jg.jg_MS_Memm'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE orig_geo_ego_jg.jg_MS_Obau IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }, + {"Name": "name", + "Description": "...", + "Unit": "" }, + {"Name": "descriptio", + "Description": "...", + "Unit": "" }, + {"Name": "timestamp", + "Description": "...", + "Unit": "" }, + {"Name": "begin", + "Description": "...", + "Unit": "" }, + {"Name": "end", + "Description": "...", + "Unit": "" }, + {"Name": "altitudemo", + "Description": "...", + "Unit": "" }, + {"Name": "tessellate", + "Description": "...", + "Unit": "" }, + {"Name": "extrude", + "Description": "...", + "Unit": "" }, + {"Name": "visibility", + "Description": "...", + "Unit": "" }, + {"Name": "draworder", + "Description": "...", + "Unit": "" }, + {"Name": "icon", + "Description": "...", + "Unit": "" }, + {"Name": "name_2", + "Description": "...", + "Unit": "" }, + {"Name": "descript_2", + "Description": "...", + "Unit": "" }, + {"Name": "timestam_2", + "Description": "...", + "Unit": "" }, + {"Name": "begin_2", + "Description": "...", + "Unit": "" }, + {"Name": "end_2", + "Description": "...", + "Unit": "" }, + {"Name": "altitude_2", + "Description": "...", + "Unit": "" }, + {"Name": "tessella_2", + "Description": "...", + "Unit": "" }, + {"Name": "extrude_2", + "Description": "...", + "Unit": "" }, + {"Name": "visibili_2", + "Description": "...", + "Unit": "" }, + {"Name": "draworde_2", + "Description": "...", + "Unit": "" }, + {"Name": "icon_2", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_geo_ego_jg.jg_MS_Obau'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE orig_geo_ego_jg.jg_MS_Otto IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }, + {"Name": "name", + "Description": "...", + "Unit": "" }, + {"Name": "descriptio", + "Description": "...", + "Unit": "" }, + {"Name": "timestamp", + "Description": "...", + "Unit": "" }, + {"Name": "begin", + "Description": "...", + "Unit": "" }, + {"Name": "end", + "Description": "...", + "Unit": "" }, + {"Name": "altitudemo", + "Description": "...", + "Unit": "" }, + {"Name": "tessellate", + "Description": "...", + "Unit": "" }, + {"Name": "extrude", + "Description": "...", + "Unit": "" }, + {"Name": "visibility", + "Description": "...", + "Unit": "" }, + {"Name": "draworder", + "Description": "...", + "Unit": "" }, + {"Name": "icon", + "Description": "...", + "Unit": "" }, + {"Name": "name_2", + "Description": "...", + "Unit": "" }, + {"Name": "descript_2", + "Description": "...", + "Unit": "" }, + {"Name": "timestam_2", + "Description": "...", + "Unit": "" }, + {"Name": "begin_2", + "Description": "...", + "Unit": "" }, + {"Name": "end_2", + "Description": "...", + "Unit": "" }, + {"Name": "altitude_2", + "Description": "...", + "Unit": "" }, + {"Name": "tessella_2", + "Description": "...", + "Unit": "" }, + {"Name": "extrude_2", + "Description": "...", + "Unit": "" }, + {"Name": "visibili_2", + "Description": "...", + "Unit": "" }, + {"Name": "draworde_2", + "Description": "...", + "Unit": "" }, + {"Name": "icon_2", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_geo_ego_jg.jg_MS_Otto'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE orig_geo_ego_jg.jg_MS_Untei IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }, + {"Name": "name", + "Description": "...", + "Unit": "" }, + {"Name": "descriptio", + "Description": "...", + "Unit": "" }, + {"Name": "timestamp", + "Description": "...", + "Unit": "" }, + {"Name": "begin", + "Description": "...", + "Unit": "" }, + {"Name": "end", + "Description": "...", + "Unit": "" }, + {"Name": "altitudemo", + "Description": "...", + "Unit": "" }, + {"Name": "tessellate", + "Description": "...", + "Unit": "" }, + {"Name": "extrude", + "Description": "...", + "Unit": "" }, + {"Name": "visibility", + "Description": "...", + "Unit": "" }, + {"Name": "draworder", + "Description": "...", + "Unit": "" }, + {"Name": "icon", + "Description": "...", + "Unit": "" }, + {"Name": "name_2", + "Description": "...", + "Unit": "" }, + {"Name": "descript_2", + "Description": "...", + "Unit": "" }, + {"Name": "timestam_2", + "Description": "...", + "Unit": "" }, + {"Name": "begin_2", + "Description": "...", + "Unit": "" }, + {"Name": "end_2", + "Description": "...", + "Unit": "" }, + {"Name": "altitude_2", + "Description": "...", + "Unit": "" }, + {"Name": "tessella_2", + "Description": "...", + "Unit": "" }, + {"Name": "extrude_2", + "Description": "...", + "Unit": "" }, + {"Name": "visibili_2", + "Description": "...", + "Unit": "" }, + {"Name": "draworde_2", + "Description": "...", + "Unit": "" }, + {"Name": "icon_2", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_geo_ego_jg.jg_MS_Untei'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE orig_geo_ego_jg.jg_MS_spf IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }, + {"Name": "name", + "Description": "...", + "Unit": "" }, + {"Name": "pid", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_geo_ego_jg.jg_MS_spf'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE orig_geo_ego_jg.jg_MS_spf_bb IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "geom", + "Description": "...", + "Unit": "" }, + {"Name": "id", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_geo_ego_jg.jg_MS_spf_bb'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE orig_geo_ego_jg.jg_NS_Tus IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "Name", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }, + {"Name": "name", + "Description": "...", + "Unit": "" }, + {"Name": "descriptio", + "Description": "...", + "Unit": "" }, + {"Name": "timestamp", + "Description": "...", + "Unit": "" }, + {"Name": "begin", + "Description": "...", + "Unit": "" }, + {"Name": "end", + "Description": "...", + "Unit": "" }, + {"Name": "altitudemo", + "Description": "...", + "Unit": "" }, + {"Name": "tessellate", + "Description": "...", + "Unit": "" }, + {"Name": "extrude", + "Description": "...", + "Unit": "" }, + {"Name": "visibility", + "Description": "...", + "Unit": "" }, + {"Name": "draworder", + "Description": "...", + "Unit": "" }, + {"Name": "icon", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_geo_ego_jg.jg_NS_Tus'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE orig_geo_ego_jg.jg_NS_Tus_Hausanschluesse IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "Name", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_geo_ego_jg.jg_NS_Tus_Hausanschluesse'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE orig_geo_ego_jg.jg_NS_Tus_angles IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "p2", + "Description": "...", + "Unit": "" }, + {"Name": "p1", + "Description": "...", + "Unit": "" }, + {"Name": "p3", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_geo_ego_jg.jg_NS_Tus_angles'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE orig_geo_ego_jg.jg_NS_Tus_angles_gis IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "geom", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_geo_ego_jg.jg_NS_Tus_angles_gis'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE orig_geo_ego_jg.jg_NS_Tus_cont_3.75 IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "geom", + "Description": "...", + "Unit": "" }, + {"Name": "id", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_geo_ego_jg.jg_NS_Tus_cont_3.75'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE orig_geo_ego_jg.jg_NS_Tus_cont_9.75 IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "geom", + "Description": "...", + "Unit": "" }, + {"Name": "id", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_geo_ego_jg.jg_NS_Tus_cont_9.75'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE orig_geo_ego_jg.jg_NS_Tus_final IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "Name", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_geo_ego_jg.jg_NS_Tus_final'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE orig_geo_ego_jg.jg_ONTs_spf IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "geom", + "Description": "...", + "Unit": "" }, + {"Name": "id", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_geo_ego_jg.jg_ONTs_spf'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE orig_geo_ego_jg.jg_bboxes_spf IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "geom", + "Description": "...", + "Unit": "" }, + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "zensus_sum", + "Description": "...", + "Unit": "" }, + {"Name": "zensus_count", + "Description": "...", + "Unit": "" }, + {"Name": "zensus_density", + "Description": "...", + "Unit": "" }, + {"Name": "onts", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_geo_ego_jg.jg_bboxes_spf'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE orig_geo_ego_jg.jg_osm_tus_streets IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "osm_id", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }, + {"Name": "name", + "Description": "...", + "Unit": "" }, + {"Name": "highway", + "Description": "...", + "Unit": "" }, + {"Name": "aerialway", + "Description": "...", + "Unit": "" }, + {"Name": "barrier", + "Description": "...", + "Unit": "" }, + {"Name": "man_made", + "Description": "...", + "Unit": "" }, + {"Name": "z_order", + "Description": "...", + "Unit": "" }, + {"Name": "other_tags", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_geo_ego_jg.jg_osm_tus_streets'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE orig_geo_ego_jg.jg_osm_tus_streets_final IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "osm_id", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_geo_ego_jg.jg_osm_tus_streets_final'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE orig_geo_ego_jg.jg_pop_spf IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "rast", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_geo_ego_jg.jg_pop_spf'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE orig_geo_ego_jg.jg_populated_areas_ls IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "geom", + "Description": "...", + "Unit": "" }, + {"Name": "box_id", + "Description": "...", + "Unit": "" }, + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "zensus_sum", + "Description": "...", + "Unit": "" }, + {"Name": "onts", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_geo_ego_jg.jg_populated_areas_ls'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE orig_geo_ego_jg.jg_streets_buffered_9.75 IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "osm_id", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_geo_ego_jg.jg_streets_buffered_9.75'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE orig_geo_ego_jg.osm_deu_polygon_urban IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "gid", + "Description": "...", + "Unit": "" }, + {"Name": "osm_id", + "Description": "...", + "Unit": "" }, + {"Name": "landuse", + "Description": "...", + "Unit": "" }, + {"Name": "man_made", + "Description": "...", + "Unit": "" }, + {"Name": "aeroway", + "Description": "...", + "Unit": "" }, + {"Name": "name", + "Description": "...", + "Unit": "" }, + {"Name": "way_area", + "Description": "...", + "Unit": "" }, + {"Name": "area_ha", + "Description": "...", + "Unit": "" }, + {"Name": "tags", + "Description": "...", + "Unit": "" }, + {"Name": "vg250", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_geo_ego_jg.osm_deu_polygon_urban'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE orig_geo_ego_jg.osm_deu_polygon_urban_buffer100_unbuffer IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "uid", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }, + {"Name": "zensus_sum", + "Description": "...", + "Unit": "" }, + {"Name": "zensus_count", + "Description": "...", + "Unit": "" }, + {"Name": "zensus_density", + "Description": "...", + "Unit": "" }, + {"Name": "ioer_sum", + "Description": "...", + "Unit": "" }, + {"Name": "ioer_count", + "Description": "...", + "Unit": "" }, + {"Name": "ioer_density", + "Description": "...", + "Unit": "" }, + {"Name": "area_ha", + "Description": "...", + "Unit": "" }, + {"Name": "sector_area_residential", + "Description": "...", + "Unit": "" }, + {"Name": "sector_area_retail", + "Description": "...", + "Unit": "" }, + {"Name": "sector_area_industrial", + "Description": "...", + "Unit": "" }, + {"Name": "sector_area_agricultural", + "Description": "...", + "Unit": "" }, + {"Name": "sector_share_residential", + "Description": "...", + "Unit": "" }, + {"Name": "sector_share_retail", + "Description": "...", + "Unit": "" }, + {"Name": "sector_share_industrial", + "Description": "...", + "Unit": "" }, + {"Name": "sector_share_agricultural", + "Description": "...", + "Unit": "" }, + {"Name": "sector_count_residential", + "Description": "...", + "Unit": "" }, + {"Name": "sector_count_retail", + "Description": "...", + "Unit": "" }, + {"Name": "sector_count_industrial", + "Description": "...", + "Unit": "" }, + {"Name": "sector_count_agricultural", + "Description": "...", + "Unit": "" }, + {"Name": "mv_poly_id", + "Description": "...", + "Unit": "" }, + {"Name": "nuts", + "Description": "...", + "Unit": "" }, + {"Name": "rs", + "Description": "...", + "Unit": "" }, + {"Name": "ags_0", + "Description": "...", + "Unit": "" }, + {"Name": "geom_centroid", + "Description": "...", + "Unit": "" }, + {"Name": "geom_surfacepoint", + "Description": "...", + "Unit": "" }, + {"Name": "geom_buffer", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_geo_ego_jg.osm_deu_polygon_urban_buffer100_unbuffer'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE orig_geo_ego_jg.test_2_voronoi IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "geom", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_geo_ego_jg.test_2_voronoi'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE orig_geo_ego_jg.test_2_voronoi_pts IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_geo_ego_jg.test_2_voronoi_pts'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE orig_geo_ego_jg.test_voronoi IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "geom", + "Description": "...", + "Unit": "" }, + {"Name": "name", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_geo_ego_jg.test_voronoi'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE orig_geo_ego_jg.test_voronoi_geom IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "geom", + "Description": "...", + "Unit": "" }, + {"Name": "id", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_geo_ego_jg.test_voronoi_geom'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE orig_geo_ego_jg.test_voronoi_pts IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_geo_ego_jg.test_voronoi_pts'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE orig_geo_ego_jg.test_voronoi_pts_geom IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_geo_ego_jg.test_voronoi_pts_geom'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE orig_geo_ego_jg.usw_voronoi IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "geom", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_geo_ego_jg.usw_voronoi'::regclass)::json; + +-- + diff --git a/requirements.txt/SQL Documentation/orig_geo_geonames.sql b/requirements.txt/SQL Documentation/orig_geo_geonames.sql new file mode 100644 index 00000000..d62c5244 --- /dev/null +++ b/requirements.txt/SQL Documentation/orig_geo_geonames.sql @@ -0,0 +1,66 @@ +-- + +COMMENT ON TABLE orig_geo_geonames.postcode_germany IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "country_code", + "Description": "...", + "Unit": "" }, + {"Name": "postalcode", + "Description": "...", + "Unit": "" }, + {"Name": "placename", + "Description": "...", + "Unit": "" }, + {"Name": "adminname1", + "Description": "...", + "Unit": "" }, + {"Name": "admincode1", + "Description": "...", + "Unit": "" }, + {"Name": "adminname2", + "Description": "...", + "Unit": "" }, + {"Name": "admincode2", + "Description": "...", + "Unit": "" }, + {"Name": "adminname3", + "Description": "...", + "Unit": "" }, + {"Name": "admincode3", + "Description": "...", + "Unit": "" }, + {"Name": "latitude", + "Description": "...", + "Unit": "" }, + {"Name": "longitude", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_geo_geonames.postcode_germany'::regclass)::json; + +-- + diff --git a/requirements.txt/SQL Documentation/orig_geo_gn250.sql b/requirements.txt/SQL Documentation/orig_geo_gn250.sql new file mode 100644 index 00000000..695648c9 --- /dev/null +++ b/requirements.txt/SQL Documentation/orig_geo_gn250.sql @@ -0,0 +1,282 @@ +-- + +COMMENT ON TABLE orig_geo_gn250.gn250_b IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "gid", + "Description": "...", + "Unit": "" }, + {"Name": "nnid", + "Description": "...", + "Unit": "" }, + {"Name": "datum", + "Description": "...", + "Unit": "" }, + {"Name": "oba", + "Description": "...", + "Unit": "" }, + {"Name": "oba_wert", + "Description": "...", + "Unit": "" }, + {"Name": "name", + "Description": "...", + "Unit": "" }, + {"Name": "sprache", + "Description": "...", + "Unit": "" }, + {"Name": "genus", + "Description": "...", + "Unit": "" }, + {"Name": "name2", + "Description": "...", + "Unit": "" }, + {"Name": "sprache2", + "Description": "...", + "Unit": "" }, + {"Name": "genus2", + "Description": "...", + "Unit": "" }, + {"Name": "zusatz", + "Description": "...", + "Unit": "" }, + {"Name": "ags", + "Description": "...", + "Unit": "" }, + {"Name": "rs", + "Description": "...", + "Unit": "" }, + {"Name": "hoehe", + "Description": "...", + "Unit": "" }, + {"Name": "hoehe_ger", + "Description": "...", + "Unit": "" }, + {"Name": "ewz", + "Description": "...", + "Unit": "" }, + {"Name": "ewz_ger", + "Description": "...", + "Unit": "" }, + {"Name": "gewk", + "Description": "...", + "Unit": "" }, + {"Name": "gemteil", + "Description": "...", + "Unit": "" }, + {"Name": "virtuell", + "Description": "...", + "Unit": "" }, + {"Name": "gemeinde", + "Description": "...", + "Unit": "" }, + {"Name": "verwgem", + "Description": "...", + "Unit": "" }, + {"Name": "kreis", + "Description": "...", + "Unit": "" }, + {"Name": "regbezirk", + "Description": "...", + "Unit": "" }, + {"Name": "bundesland", + "Description": "...", + "Unit": "" }, + {"Name": "staat", + "Description": "...", + "Unit": "" }, + {"Name": "geola", + "Description": "...", + "Unit": "" }, + {"Name": "geobr", + "Description": "...", + "Unit": "" }, + {"Name": "gkre", + "Description": "...", + "Unit": "" }, + {"Name": "gkho", + "Description": "...", + "Unit": "" }, + {"Name": "utmre", + "Description": "...", + "Unit": "" }, + {"Name": "utmho", + "Description": "...", + "Unit": "" }, + {"Name": "box_geo", + "Description": "...", + "Unit": "" }, + {"Name": "box_gk", + "Description": "...", + "Unit": "" }, + {"Name": "box_utm", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_geo_gn250.gn250_b'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE orig_geo_gn250.gn250_p IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "gid", + "Description": "...", + "Unit": "" }, + {"Name": "nnid", + "Description": "...", + "Unit": "" }, + {"Name": "datum", + "Description": "...", + "Unit": "" }, + {"Name": "oba", + "Description": "...", + "Unit": "" }, + {"Name": "oba_wert", + "Description": "...", + "Unit": "" }, + {"Name": "name", + "Description": "...", + "Unit": "" }, + {"Name": "sprache", + "Description": "...", + "Unit": "" }, + {"Name": "genus", + "Description": "...", + "Unit": "" }, + {"Name": "name2", + "Description": "...", + "Unit": "" }, + {"Name": "sprache2", + "Description": "...", + "Unit": "" }, + {"Name": "genus2", + "Description": "...", + "Unit": "" }, + {"Name": "zusatz", + "Description": "...", + "Unit": "" }, + {"Name": "ags", + "Description": "...", + "Unit": "" }, + {"Name": "rs", + "Description": "...", + "Unit": "" }, + {"Name": "hoehe", + "Description": "...", + "Unit": "" }, + {"Name": "hoehe_ger", + "Description": "...", + "Unit": "" }, + {"Name": "ewz", + "Description": "...", + "Unit": "" }, + {"Name": "ewz_ger", + "Description": "...", + "Unit": "" }, + {"Name": "gewk", + "Description": "...", + "Unit": "" }, + {"Name": "gemteil", + "Description": "...", + "Unit": "" }, + {"Name": "virtuell", + "Description": "...", + "Unit": "" }, + {"Name": "gemeinde", + "Description": "...", + "Unit": "" }, + {"Name": "verwgem", + "Description": "...", + "Unit": "" }, + {"Name": "kreis", + "Description": "...", + "Unit": "" }, + {"Name": "regbezirk", + "Description": "...", + "Unit": "" }, + {"Name": "bundesland", + "Description": "...", + "Unit": "" }, + {"Name": "staat", + "Description": "...", + "Unit": "" }, + {"Name": "geola", + "Description": "...", + "Unit": "" }, + {"Name": "geobr", + "Description": "...", + "Unit": "" }, + {"Name": "gkre", + "Description": "...", + "Unit": "" }, + {"Name": "gkho", + "Description": "...", + "Unit": "" }, + {"Name": "utmre", + "Description": "...", + "Unit": "" }, + {"Name": "utmho", + "Description": "...", + "Unit": "" }, + {"Name": "box_geo", + "Description": "...", + "Unit": "" }, + {"Name": "box_gk", + "Description": "...", + "Unit": "" }, + {"Name": "box_utm", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_geo_gn250.gn250_p'::regclass)::json; + +-- + diff --git a/requirements.txt/SQL Documentation/orig_geo_opsd.sql b/requirements.txt/SQL Documentation/orig_geo_opsd.sql new file mode 100644 index 00000000..9da0dfef --- /dev/null +++ b/requirements.txt/SQL Documentation/orig_geo_opsd.sql @@ -0,0 +1,502 @@ +-- + +COMMENT ON TABLE orig_geo_opsd.opsd_hourly_timeseries IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "timestamp", + "Description": "...", + "Unit": "" }, + {"Name": "load_at", + "Description": "...", + "Unit": "" }, + {"Name": "load_ba", + "Description": "...", + "Unit": "" }, + {"Name": "load_be", + "Description": "...", + "Unit": "" }, + {"Name": "load_bg", + "Description": "...", + "Unit": "" }, + {"Name": "load_ch", + "Description": "...", + "Unit": "" }, + {"Name": "load_cs", + "Description": "...", + "Unit": "" }, + {"Name": "load_cy", + "Description": "...", + "Unit": "" }, + {"Name": "load_cz", + "Description": "...", + "Unit": "" }, + {"Name": "load_de", + "Description": "...", + "Unit": "" }, + {"Name": "load_dk", + "Description": "...", + "Unit": "" }, + {"Name": "load_dkw", + "Description": "...", + "Unit": "" }, + {"Name": "load_ee", + "Description": "...", + "Unit": "" }, + {"Name": "load_es", + "Description": "...", + "Unit": "" }, + {"Name": "load_fi", + "Description": "...", + "Unit": "" }, + {"Name": "load_fr", + "Description": "...", + "Unit": "" }, + {"Name": "load_gb", + "Description": "...", + "Unit": "" }, + {"Name": "load_gr", + "Description": "...", + "Unit": "" }, + {"Name": "load_hr", + "Description": "...", + "Unit": "" }, + {"Name": "load_hu", + "Description": "...", + "Unit": "" }, + {"Name": "load_ie", + "Description": "...", + "Unit": "" }, + {"Name": "load_is", + "Description": "...", + "Unit": "" }, + {"Name": "load_it", + "Description": "...", + "Unit": "" }, + {"Name": "load_lt", + "Description": "...", + "Unit": "" }, + {"Name": "load_lu", + "Description": "...", + "Unit": "" }, + {"Name": "load_lv", + "Description": "...", + "Unit": "" }, + {"Name": "load_me", + "Description": "...", + "Unit": "" }, + {"Name": "load_mk", + "Description": "...", + "Unit": "" }, + {"Name": "load_ni", + "Description": "...", + "Unit": "" }, + {"Name": "load_nl", + "Description": "...", + "Unit": "" }, + {"Name": "load_no", + "Description": "...", + "Unit": "" }, + {"Name": "load_pl", + "Description": "...", + "Unit": "" }, + {"Name": "load_pt", + "Description": "...", + "Unit": "" }, + {"Name": "load_ro", + "Description": "...", + "Unit": "" }, + {"Name": "load_rs", + "Description": "...", + "Unit": "" }, + {"Name": "load_se", + "Description": "...", + "Unit": "" }, + {"Name": "load_si", + "Description": "...", + "Unit": "" }, + {"Name": "load_sk", + "Description": "...", + "Unit": "" }, + {"Name": "load_uaw", + "Description": "...", + "Unit": "" }, + {"Name": "solar_de_capacity", + "Description": "...", + "Unit": "" }, + {"Name": "solar_de_forecast", + "Description": "...", + "Unit": "" }, + {"Name": "solar_de_generation", + "Description": "...", + "Unit": "" }, + {"Name": "solar_de_profile", + "Description": "...", + "Unit": "" }, + {"Name": "solar_de50hertz_forecast", + "Description": "...", + "Unit": "" }, + {"Name": "solar_de50hertz_generation", + "Description": "...", + "Unit": "" }, + {"Name": "solar_deamprion_forecast", + "Description": "...", + "Unit": "" }, + {"Name": "solar_deamprion_generation", + "Description": "...", + "Unit": "" }, + {"Name": "solar_detennet_forecast", + "Description": "...", + "Unit": "" }, + {"Name": "solar_detennet_generation", + "Description": "...", + "Unit": "" }, + {"Name": "solar_detransnetbw_forecast", + "Description": "...", + "Unit": "" }, + {"Name": "solar_detransnetbw_generation", + "Description": "...", + "Unit": "" }, + {"Name": "wind_de_capacity", + "Description": "...", + "Unit": "" }, + {"Name": "wind_de_forecast", + "Description": "...", + "Unit": "" }, + {"Name": "wind_de_generation", + "Description": "...", + "Unit": "" }, + {"Name": "wind_de_profile", + "Description": "...", + "Unit": "" }, + {"Name": "wind_de50hertz_forecast", + "Description": "...", + "Unit": "" }, + {"Name": "wind_de50hertz_generation", + "Description": "...", + "Unit": "" }, + {"Name": "wind_deamprion_forecast", + "Description": "...", + "Unit": "" }, + {"Name": "wind_deamprion_generation", + "Description": "...", + "Unit": "" }, + {"Name": "wind_detennet_forecast", + "Description": "...", + "Unit": "" }, + {"Name": "wind_detennet_generation", + "Description": "...", + "Unit": "" }, + {"Name": "wind_detransnetbw_forecast", + "Description": "...", + "Unit": "" }, + {"Name": "wind_detransnetbw_generation", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_geo_opsd.opsd_hourly_timeseries'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE orig_geo_opsd.opsd_power_plants_germany IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "gid", + "Description": "...", + "Unit": "" }, + {"Name": "bnetza_id", + "Description": "...", + "Unit": "" }, + {"Name": "company", + "Description": "...", + "Unit": "" }, + {"Name": "name", + "Description": "...", + "Unit": "" }, + {"Name": "postcode", + "Description": "...", + "Unit": "" }, + {"Name": "city", + "Description": "...", + "Unit": "" }, + {"Name": "street", + "Description": "...", + "Unit": "" }, + {"Name": "state", + "Description": "...", + "Unit": "" }, + {"Name": "block", + "Description": "...", + "Unit": "" }, + {"Name": "commissioned_original", + "Description": "...", + "Unit": "" }, + {"Name": "commissioned", + "Description": "...", + "Unit": "" }, + {"Name": "retrofit", + "Description": "...", + "Unit": "" }, + {"Name": "shutdown", + "Description": "...", + "Unit": "" }, + {"Name": "status", + "Description": "...", + "Unit": "" }, + {"Name": "fuel", + "Description": "...", + "Unit": "" }, + {"Name": "technology", + "Description": "...", + "Unit": "" }, + {"Name": "type", + "Description": "...", + "Unit": "" }, + {"Name": "eeg", + "Description": "...", + "Unit": "" }, + {"Name": "chp", + "Description": "...", + "Unit": "" }, + {"Name": "capacity", + "Description": "...", + "Unit": "" }, + {"Name": "capacity_uba", + "Description": "...", + "Unit": "" }, + {"Name": "chp_capacity_uba", + "Description": "...", + "Unit": "" }, + {"Name": "efficiency_data", + "Description": "...", + "Unit": "" }, + {"Name": "efficiency_estimate", + "Description": "...", + "Unit": "" }, + {"Name": "network_node", + "Description": "...", + "Unit": "" }, + {"Name": "voltage", + "Description": "...", + "Unit": "" }, + {"Name": "network_operator", + "Description": "...", + "Unit": "" }, + {"Name": "name_uba", + "Description": "...", + "Unit": "" }, + {"Name": "lat", + "Description": "...", + "Unit": "" }, + {"Name": "lon", + "Description": "...", + "Unit": "" }, + {"Name": "comment", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_geo_opsd.opsd_power_plants_germany'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE orig_geo_opsd.renewable_power_plants_germany IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "start_up_date", + "Description": "...", + "Unit": "" }, + {"Name": "electrical_capacity", + "Description": "...", + "Unit": "" }, + {"Name": "generation_type", + "Description": "...", + "Unit": "" }, + {"Name": "generation_subtype", + "Description": "...", + "Unit": "" }, + {"Name": "thermal_capacity", + "Description": "...", + "Unit": "" }, + {"Name": "city", + "Description": "...", + "Unit": "" }, + {"Name": "postcode", + "Description": "...", + "Unit": "" }, + {"Name": "address", + "Description": "...", + "Unit": "" }, + {"Name": "lon", + "Description": "...", + "Unit": "" }, + {"Name": "lat", + "Description": "...", + "Unit": "" }, + {"Name": "gps_accuracy", + "Description": "...", + "Unit": "" }, + {"Name": "validation", + "Description": "...", + "Unit": "" }, + {"Name": "notification_reason", + "Description": "...", + "Unit": "" }, + {"Name": "eeg_id", + "Description": "...", + "Unit": "" }, + {"Name": "tso", + "Description": "...", + "Unit": "" }, + {"Name": "tso_eic", + "Description": "...", + "Unit": "" }, + {"Name": "dso_id", + "Description": "...", + "Unit": "" }, + {"Name": "dso", + "Description": "...", + "Unit": "" }, + {"Name": "voltage_level", + "Description": "...", + "Unit": "" }, + {"Name": "network_node", + "Description": "...", + "Unit": "" }, + {"Name": "power_plant_id", + "Description": "...", + "Unit": "" }, + {"Name": "source", + "Description": "...", + "Unit": "" }, + {"Name": "comment", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_geo_opsd.renewable_power_plants_germany'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE orig_geo_opsd.renewable_power_plants_germany_hv_solar_roof IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "electrical_capacity", + "Description": "...", + "Unit": "" }, + {"Name": "generation_type", + "Description": "...", + "Unit": "" }, + {"Name": "generation_subtype", + "Description": "...", + "Unit": "" }, + {"Name": "voltage_level", + "Description": "...", + "Unit": "" }, + {"Name": "subst_id", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_geo_opsd.renewable_power_plants_germany_hv_solar_roof'::regclass)::json; + +-- + + diff --git a/requirements.txt/SQL Documentation/orig_geo_powerplants.sql b/requirements.txt/SQL Documentation/orig_geo_powerplants.sql new file mode 100644 index 00000000..60fc9d6b --- /dev/null +++ b/requirements.txt/SQL Documentation/orig_geo_powerplants.sql @@ -0,0 +1,810 @@ + +-- + +COMMENT ON TABLE orig_geo_powerplants.generators_total IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "un_id", + "Description": "...", + "Unit": "" }, + {"Name": "re_id", + "Description": "...", + "Unit": "" }, + {"Name": "conv_id", + "Description": "...", + "Unit": "" }, + {"Name": "aggr_id_pf", + "Description": "...", + "Unit": "" }, + {"Name": "aggr_id_ms", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_geo_powerplants.generators_total'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE orig_geo_powerplants.nep_2015_powerplants IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "bnetza_id", + "Description": "...", + "Unit": "" }, + {"Name": "tso", + "Description": "...", + "Unit": "" }, + {"Name": "power_plant_name", + "Description": "...", + "Unit": "" }, + {"Name": "unit_name", + "Description": "...", + "Unit": "" }, + {"Name": "postcode", + "Description": "...", + "Unit": "" }, + {"Name": "state", + "Description": "...", + "Unit": "" }, + {"Name": "commissioning", + "Description": "...", + "Unit": "" }, + {"Name": "chp", + "Description": "...", + "Unit": "" }, + {"Name": "fuel", + "Description": "...", + "Unit": "" }, + {"Name": "rated_power", + "Description": "...", + "Unit": "" }, + {"Name": "rated_power_a2025", + "Description": "...", + "Unit": "" }, + {"Name": "rated_power_b2025", + "Description": "...", + "Unit": "" }, + {"Name": "rated_power_b2035", + "Description": "...", + "Unit": "" }, + {"Name": "rated_power_c2025", + "Description": "...", + "Unit": "" }, + {"Name": "lat", + "Description": "...", + "Unit": "" }, + {"Name": "lon", + "Description": "...", + "Unit": "" }, + {"Name": "location_checked", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }, + {"Name": "gid", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_geo_powerplants.nep_2015_powerplants'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE orig_geo_powerplants.pf_generator_single IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "generator_id", + "Description": "...", + "Unit": "" }, + {"Name": "bus", + "Description": "...", + "Unit": "" }, + {"Name": "dispatch", + "Description": "...", + "Unit": "" }, + {"Name": "control", + "Description": "...", + "Unit": "" }, + {"Name": "p_nom", + "Description": "...", + "Unit": "" }, + {"Name": "p_nom_extendable", + "Description": "...", + "Unit": "" }, + {"Name": "p_nom_min", + "Description": "...", + "Unit": "" }, + {"Name": "p_nom_max", + "Description": "...", + "Unit": "" }, + {"Name": "p_min_pu_fixed", + "Description": "...", + "Unit": "" }, + {"Name": "p_max_pu_fixed", + "Description": "...", + "Unit": "" }, + {"Name": "sign", + "Description": "...", + "Unit": "" }, + {"Name": "source", + "Description": "...", + "Unit": "" }, + {"Name": "marginal_cost", + "Description": "...", + "Unit": "" }, + {"Name": "capital_cost", + "Description": "...", + "Unit": "" }, + {"Name": "efficiency", + "Description": "...", + "Unit": "" }, + {"Name": "w_id", + "Description": "...", + "Unit": "" }, + {"Name": "aggr_id", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_geo_powerplants.pf_generator_single'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE orig_geo_powerplants.proc_power_plant_germany IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "gid", + "Description": "...", + "Unit": "" }, + {"Name": "bnetza_id", + "Description": "...", + "Unit": "" }, + {"Name": "company", + "Description": "...", + "Unit": "" }, + {"Name": "name", + "Description": "...", + "Unit": "" }, + {"Name": "postcode", + "Description": "...", + "Unit": "" }, + {"Name": "city", + "Description": "...", + "Unit": "" }, + {"Name": "street", + "Description": "...", + "Unit": "" }, + {"Name": "state", + "Description": "...", + "Unit": "" }, + {"Name": "block", + "Description": "...", + "Unit": "" }, + {"Name": "commissioned_original", + "Description": "...", + "Unit": "" }, + {"Name": "commissioned", + "Description": "...", + "Unit": "" }, + {"Name": "retrofit", + "Description": "...", + "Unit": "" }, + {"Name": "shutdown", + "Description": "...", + "Unit": "" }, + {"Name": "status", + "Description": "...", + "Unit": "" }, + {"Name": "fuel", + "Description": "...", + "Unit": "" }, + {"Name": "technology", + "Description": "...", + "Unit": "" }, + {"Name": "type", + "Description": "...", + "Unit": "" }, + {"Name": "eeg", + "Description": "...", + "Unit": "" }, + {"Name": "chp", + "Description": "...", + "Unit": "" }, + {"Name": "capacity", + "Description": "...", + "Unit": "" }, + {"Name": "capacity_uba", + "Description": "...", + "Unit": "" }, + {"Name": "chp_capacity_uba", + "Description": "...", + "Unit": "" }, + {"Name": "efficiency_data", + "Description": "...", + "Unit": "" }, + {"Name": "efficiency_estimate", + "Description": "...", + "Unit": "" }, + {"Name": "network_node", + "Description": "...", + "Unit": "" }, + {"Name": "voltage", + "Description": "...", + "Unit": "" }, + {"Name": "network_operator", + "Description": "...", + "Unit": "" }, + {"Name": "name_uba", + "Description": "...", + "Unit": "" }, + {"Name": "lat", + "Description": "...", + "Unit": "" }, + {"Name": "lon", + "Description": "...", + "Unit": "" }, + {"Name": "comment", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }, + {"Name": "voltage_level", + "Description": "...", + "Unit": "" }, + {"Name": "subst_id", + "Description": "...", + "Unit": "" }, + {"Name": "otg_id", + "Description": "...", + "Unit": "" }, + {"Name": "un_id", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_geo_powerplants.proc_power_plant_germany'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE orig_geo_powerplants.proc_renewable_power_plants_germany IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "start_up_date", + "Description": "...", + "Unit": "" }, + {"Name": "electrical_capacity", + "Description": "...", + "Unit": "" }, + {"Name": "generation_type", + "Description": "...", + "Unit": "" }, + {"Name": "generation_subtype", + "Description": "...", + "Unit": "" }, + {"Name": "thermal_capacity", + "Description": "...", + "Unit": "" }, + {"Name": "city", + "Description": "...", + "Unit": "" }, + {"Name": "postcode", + "Description": "...", + "Unit": "" }, + {"Name": "addresss", + "Description": "...", + "Unit": "" }, + {"Name": "lon", + "Description": "...", + "Unit": "" }, + {"Name": "lat", + "Description": "...", + "Unit": "" }, + {"Name": "gps_accuracy", + "Description": "...", + "Unit": "" }, + {"Name": "valididation", + "Description": "...", + "Unit": "" }, + {"Name": "notification_reason", + "Description": "...", + "Unit": "" }, + {"Name": "eeg_id", + "Description": "...", + "Unit": "" }, + {"Name": "tso", + "Description": "...", + "Unit": "" }, + {"Name": "tso_eic", + "Description": "...", + "Unit": "" }, + {"Name": "dso_id", + "Description": "...", + "Unit": "" }, + {"Name": "dso", + "Description": "...", + "Unit": "" }, + {"Name": "voltage_level", + "Description": "...", + "Unit": "" }, + {"Name": "network_node", + "Description": "...", + "Unit": "" }, + {"Name": "power_plant_id", + "Description": "...", + "Unit": "" }, + {"Name": "source", + "Description": "...", + "Unit": "" }, + {"Name": "comment", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }, + {"Name": "voltage", + "Description": "...", + "Unit": "" }, + {"Name": "subst_id", + "Description": "...", + "Unit": "" }, + {"Name": "otg_id", + "Description": "...", + "Unit": "" }, + {"Name": "un_id", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_geo_powerplants.proc_renewable_power_plants_germany'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE orig_geo_powerplants.proc_renewable_power_plants_nep2035 IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "scenario_year", + "Description": "...", + "Unit": "" }, + {"Name": "electrical_capacity", + "Description": "...", + "Unit": "" }, + {"Name": "generation_type", + "Description": "...", + "Unit": "" }, + {"Name": "generation_subtype", + "Description": "...", + "Unit": "" }, + {"Name": "thermal_capacity", + "Description": "...", + "Unit": "" }, + {"Name": "nuts", + "Description": "...", + "Unit": "" }, + {"Name": "lon", + "Description": "...", + "Unit": "" }, + {"Name": "lat", + "Description": "...", + "Unit": "" }, + {"Name": "voltage_level", + "Description": "...", + "Unit": "" }, + {"Name": "network_node", + "Description": "...", + "Unit": "" }, + {"Name": "source", + "Description": "...", + "Unit": "" }, + {"Name": "comment", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }, + {"Name": "voltage", + "Description": "...", + "Unit": "" }, + {"Name": "subst_id", + "Description": "...", + "Unit": "" }, + {"Name": "otg_id", + "Description": "...", + "Unit": "" }, + {"Name": "un_id", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_geo_powerplants.proc_renewable_power_plants_nep2035'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE orig_geo_powerplants.pv_dev_nep_germany_mun IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "pv_units", + "Description": "...", + "Unit": "" }, + {"Name": "pv_cap_2014", + "Description": "...", + "Unit": "" }, + {"Name": "pv_add_cap_2035", + "Description": "...", + "Unit": "" }, + {"Name": "voltage_level", + "Description": "...", + "Unit": "" }, + {"Name": "rs_0", + "Description": "...", + "Unit": "" }, + {"Name": "pv_avg_cap", + "Description": "...", + "Unit": "" }, + {"Name": "pv_new_units", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_geo_powerplants.pv_dev_nep_germany_mun'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE orig_geo_powerplants.renewable_power_plants_germany IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "start_up_date", + "Description": "...", + "Unit": "" }, + {"Name": "electrical_capacity", + "Description": "...", + "Unit": "" }, + {"Name": "generation_type", + "Description": "...", + "Unit": "" }, + {"Name": "generation_subtype", + "Description": "...", + "Unit": "" }, + {"Name": "thermal_capacity", + "Description": "...", + "Unit": "" }, + {"Name": "city", + "Description": "...", + "Unit": "" }, + {"Name": "postcode", + "Description": "...", + "Unit": "" }, + {"Name": "address", + "Description": "...", + "Unit": "" }, + {"Name": "lon", + "Description": "...", + "Unit": "" }, + {"Name": "lat", + "Description": "...", + "Unit": "" }, + {"Name": "gps_accuracy", + "Description": "...", + "Unit": "" }, + {"Name": "validation", + "Description": "...", + "Unit": "" }, + {"Name": "notification_reason", + "Description": "...", + "Unit": "" }, + {"Name": "eeg_id", + "Description": "...", + "Unit": "" }, + {"Name": "tso", + "Description": "...", + "Unit": "" }, + {"Name": "tso_eic", + "Description": "...", + "Unit": "" }, + {"Name": "dso_id", + "Description": "...", + "Unit": "" }, + {"Name": "dso", + "Description": "...", + "Unit": "" }, + {"Name": "voltage_level", + "Description": "...", + "Unit": "" }, + {"Name": "network_node", + "Description": "...", + "Unit": "" }, + {"Name": "power_plant_id", + "Description": "...", + "Unit": "" }, + {"Name": "source", + "Description": "...", + "Unit": "" }, + {"Name": "comment", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_geo_powerplants.renewable_power_plants_germany'::regclass)::json; + +-- + + + +-- + +COMMENT ON TABLE orig_geo_powerplants.renewable_power_plants_germany_to_region IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "re_id", + "Description": "...", + "Unit": "" }, + {"Name": "subst_id", + "Description": "...", + "Unit": "" }, + {"Name": "otg_id", + "Description": "...", + "Unit": "" }, + {"Name": "un_id", + "Description": "...", + "Unit": "" }, + {"Name": "nuts", + "Description": "...", + "Unit": "" }, + {"Name": "rs_0", + "Description": "...", + "Unit": "" }, + {"Name": "id_vg250", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_geo_powerplants.renewable_power_plants_germany_to_region'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE orig_geo_powerplants.voltage_level IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "voltage_level", + "Description": "...", + "Unit": "" }, + {"Name": "voltage", + "Description": "...", + "Unit": "" }, + {"Name": "voltage_disc", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "05.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_geo_powerplants.voltage_level'::regclass)::json; + +-- + + diff --git a/requirements.txt/SQL Documentation/orig_ioer.sql b/requirements.txt/SQL Documentation/orig_ioer.sql new file mode 100644 index 00000000..59f42942 --- /dev/null +++ b/requirements.txt/SQL Documentation/orig_ioer.sql @@ -0,0 +1,43 @@ + +-- + +COMMENT ON TABLE orig_ioer.ioer_urban_share_industrial_centroid IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "rid", + "Description": "...", + "Unit": "" }, + {"Name": "ioer_share", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "10.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_ioer.ioer_urban_share_industrial_centroid'::regclass)::json; + +-- + diff --git a/requirements.txt/SQL Documentation/orig_osm.sql b/requirements.txt/SQL Documentation/orig_osm.sql new file mode 100644 index 00000000..7d1203d0 --- /dev/null +++ b/requirements.txt/SQL Documentation/orig_osm.sql @@ -0,0 +1,1206 @@ + +-- + +COMMENT ON TABLE orig_osm.ego_deu_loads_osm IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "area_ha", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "10.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_osm.ego_deu_loads_osm'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE orig_osm.osm_deu_line IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "osm_id", + "Description": "...", + "Unit": "" }, + {"Name": "access", + "Description": "...", + "Unit": "" }, + {"Name": "addr:housename", + "Description": "...", + "Unit": "" }, + {"Name": "addr:housnumber", + "Description": "...", + "Unit": "" }, + {"Name": "addr:interpolation", + "Description": "...", + "Unit": "" }, + {"Name": "admin_level", + "Description": "...", + "Unit": "" }, + {"Name": "aerialway", + "Description": "...", + "Unit": "" }, + {"Name": "aeroway", + "Description": "...", + "Unit": "" }, + {"Name": "amenity", + "Description": "...", + "Unit": "" }, + {"Name": "area", + "Description": "...", + "Unit": "" }, + {"Name": "barrier", + "Description": "...", + "Unit": "" }, + {"Name": "bicycle", + "Description": "...", + "Unit": "" }, + {"Name": "brand", + "Description": "...", + "Unit": "" }, + {"Name": "bridge", + "Description": "...", + "Unit": "" }, + {"Name": "boundary", + "Description": "...", + "Unit": "" }, + {"Name": "building", + "Description": "...", + "Unit": "" }, + {"Name": "construction", + "Description": "...", + "Unit": "" }, + {"Name": "covered", + "Description": "...", + "Unit": "" }, + {"Name": "culvert", + "Description": "...", + "Unit": "" }, + {"Name": "cutting", + "Description": "...", + "Unit": "" }, + {"Name": "denomination", + "Description": "...", + "Unit": "" }, + {"Name": "disused", + "Description": "...", + "Unit": "" }, + {"Name": "embankment", + "Description": "...", + "Unit": "" }, + {"Name": "foot", + "Description": "...", + "Unit": "" }, + {"Name": "generator:source", + "Description": "...", + "Unit": "" }, + {"Name": "harbour", + "Description": "...", + "Unit": "" }, + {"Name": "highway", + "Description": "...", + "Unit": "" }, + {"Name": "historic", + "Description": "...", + "Unit": "" }, + {"Name": "horse", + "Description": "...", + "Unit": "" }, + {"Name": "intermittent", + "Description": "...", + "Unit": "" }, + {"Name": "junction", + "Description": "...", + "Unit": "" }, + {"Name": "landuse", + "Description": "...", + "Unit": "" }, + {"Name": "layer", + "Description": "...", + "Unit": "" }, + {"Name": "leisure", + "Description": "...", + "Unit": "" }, + {"Name": "lock", + "Description": "...", + "Unit": "" }, + {"Name": "man_made", + "Description": "...", + "Unit": "" }, + {"Name": "military", + "Description": "...", + "Unit": "" }, + {"Name": "motorcar", + "Description": "...", + "Unit": "" }, + {"Name": "name", + "Description": "...", + "Unit": "" }, + {"Name": "natural", + "Description": "...", + "Unit": "" }, + {"Name": "office", + "Description": "...", + "Unit": "" }, + {"Name": "oneway", + "Description": "...", + "Unit": "" }, + {"Name": "operator", + "Description": "...", + "Unit": "" }, + {"Name": "place", + "Description": "...", + "Unit": "" }, + {"Name": "population", + "Description": "...", + "Unit": "" }, + {"Name": "power", + "Description": "...", + "Unit": "" }, + {"Name": "power_source", + "Description": "...", + "Unit": "" }, + {"Name": "public_transport", + "Description": "...", + "Unit": "" }, + {"Name": "railway", + "Description": "...", + "Unit": "" }, + {"Name": "ref", + "Description": "...", + "Unit": "" }, + {"Name": "religion", + "Description": "...", + "Unit": "" }, + {"Name": "route", + "Description": "...", + "Unit": "" }, + {"Name": "service", + "Description": "...", + "Unit": "" }, + {"Name": "shop", + "Description": "...", + "Unit": "" }, + {"Name": "sport", + "Description": "...", + "Unit": "" }, + {"Name": "surface", + "Description": "...", + "Unit": "" }, + {"Name": "toll", + "Description": "...", + "Unit": "" }, + {"Name": "tourism", + "Description": "...", + "Unit": "" }, + {"Name": "tower:type", + "Description": "...", + "Unit": "" }, + {"Name": "tracktype", + "Description": "...", + "Unit": "" }, + {"Name": "tunnel", + "Description": "...", + "Unit": "" }, + {"Name": "water", + "Description": "...", + "Unit": "" }, + {"Name": "waterway", + "Description": "...", + "Unit": "" }, + {"Name": "wetland", + "Description": "...", + "Unit": "" }, + {"Name": "witdth", + "Description": "...", + "Unit": "" }, + {"Name": "wood", + "Description": "...", + "Unit": "" }, + {"Name": "z_order", + "Description": "...", + "Unit": "" }, + {"Name": "way_area", + "Description": "...", + "Unit": "" }, + {"Name": "tags", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }, + {"Name": "gid", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "10.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_osm.osm_deu_line'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE orig_osm.osm_deu_nodes IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "lat", + "Description": "...", + "Unit": "" }, + {"Name": "lon", + "Description": "...", + "Unit": "" }, + {"Name": "tags", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "10.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_osm.osm_deu_nodes'::regclass)::json; + +-- + +-- + +COMMENT ON TABLE orig_osm.osm_deu_point IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "osm_id", + "Description": "...", + "Unit": "" }, + {"Name": "access", + "Description": "...", + "Unit": "" }, + {"Name": "addr:housename", + "Description": "...", + "Unit": "" }, + {"Name": "addr:housnumber", + "Description": "...", + "Unit": "" }, + {"Name": "addr:interpolation", + "Description": "...", + "Unit": "" }, + {"Name": "admin_level", + "Description": "...", + "Unit": "" }, + {"Name": "aerialway", + "Description": "...", + "Unit": "" }, + {"Name": "aeroway", + "Description": "...", + "Unit": "" }, + {"Name": "amenity", + "Description": "...", + "Unit": "" }, + {"Name": "area", + "Description": "...", + "Unit": "" }, + {"Name": "barrier", + "Description": "...", + "Unit": "" }, + {"Name": "bicycle", + "Description": "...", + "Unit": "" }, + {"Name": "brand", + "Description": "...", + "Unit": "" }, + {"Name": "bridge", + "Description": "...", + "Unit": "" }, + {"Name": "boundary", + "Description": "...", + "Unit": "" }, + {"Name": "building", + "Description": "...", + "Unit": "" }, + {"Name": "capital", + "Description": "...", + "Unit": "" }, + {"Name": "construction", + "Description": "...", + "Unit": "" }, + {"Name": "covered", + "Description": "...", + "Unit": "" }, + {"Name": "culvert", + "Description": "...", + "Unit": "" }, + {"Name": "cutting", + "Description": "...", + "Unit": "" }, + {"Name": "denomination", + "Description": "...", + "Unit": "" }, + {"Name": "disused", + "Description": "...", + "Unit": "" }, + {"Name": "ele", + "Description": "...", + "Unit": "" }, + {"Name": "embankment", + "Description": "...", + "Unit": "" }, + {"Name": "foot", + "Description": "...", + "Unit": "" }, + {"Name": "generator:source", + "Description": "...", + "Unit": "" }, + {"Name": "harbour", + "Description": "...", + "Unit": "" }, + {"Name": "highway", + "Description": "...", + "Unit": "" }, + {"Name": "historic", + "Description": "...", + "Unit": "" }, + {"Name": "horse", + "Description": "...", + "Unit": "" }, + {"Name": "intermittent", + "Description": "...", + "Unit": "" }, + {"Name": "junction", + "Description": "...", + "Unit": "" }, + {"Name": "landuse", + "Description": "...", + "Unit": "" }, + {"Name": "layer", + "Description": "...", + "Unit": "" }, + {"Name": "leisure", + "Description": "...", + "Unit": "" }, + {"Name": "lock", + "Description": "...", + "Unit": "" }, + {"Name": "man_made", + "Description": "...", + "Unit": "" }, + {"Name": "military", + "Description": "...", + "Unit": "" }, + {"Name": "motorcar", + "Description": "...", + "Unit": "" }, + {"Name": "name", + "Description": "...", + "Unit": "" }, + {"Name": "natural", + "Description": "...", + "Unit": "" }, + {"Name": "office", + "Description": "...", + "Unit": "" }, + {"Name": "oneway", + "Description": "...", + "Unit": "" }, + {"Name": "operator", + "Description": "...", + "Unit": "" }, + {"Name": "place", + "Description": "...", + "Unit": "" }, + {"Name": "poi", + "Description": "...", + "Unit": "" }, + {"Name": "population", + "Description": "...", + "Unit": "" }, + {"Name": "power", + "Description": "...", + "Unit": "" }, + {"Name": "power_source", + "Description": "...", + "Unit": "" }, + {"Name": "public_transport", + "Description": "...", + "Unit": "" }, + {"Name": "railway", + "Description": "...", + "Unit": "" }, + {"Name": "ref", + "Description": "...", + "Unit": "" }, + {"Name": "religion", + "Description": "...", + "Unit": "" }, + {"Name": "route", + "Description": "...", + "Unit": "" }, + {"Name": "service", + "Description": "...", + "Unit": "" }, + {"Name": "shop", + "Description": "...", + "Unit": "" }, + {"Name": "sport", + "Description": "...", + "Unit": "" }, + {"Name": "surface", + "Description": "...", + "Unit": "" }, + {"Name": "toll", + "Description": "...", + "Unit": "" }, + {"Name": "tourism", + "Description": "...", + "Unit": "" }, + {"Name": "tower:type", + "Description": "...", + "Unit": "" }, + {"Name": "tunnel", + "Description": "...", + "Unit": "" }, + {"Name": "water", + "Description": "...", + "Unit": "" }, + {"Name": "waterway", + "Description": "...", + "Unit": "" }, + {"Name": "wetland", + "Description": "...", + "Unit": "" }, + {"Name": "witdth", + "Description": "...", + "Unit": "" }, + {"Name": "wood", + "Description": "...", + "Unit": "" }, + {"Name": "z_order", + "Description": "...", + "Unit": "" }, + {"Name": "tags", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }, + {"Name": "gid", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "10.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_osm.osm_deu_point'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE orig_osm.osm_deu_polygon IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "osm_id", + "Description": "...", + "Unit": "" }, + {"Name": "access", + "Description": "...", + "Unit": "" }, + {"Name": "addr:housename", + "Description": "...", + "Unit": "" }, + {"Name": "addr:housnumber", + "Description": "...", + "Unit": "" }, + {"Name": "addr:interpolation", + "Description": "...", + "Unit": "" }, + {"Name": "admin_level", + "Description": "...", + "Unit": "" }, + {"Name": "aerialway", + "Description": "...", + "Unit": "" }, + {"Name": "aeroway", + "Description": "...", + "Unit": "" }, + {"Name": "amenity", + "Description": "...", + "Unit": "" }, + {"Name": "area", + "Description": "...", + "Unit": "" }, + {"Name": "barrier", + "Description": "...", + "Unit": "" }, + {"Name": "bicycle", + "Description": "...", + "Unit": "" }, + {"Name": "brand", + "Description": "...", + "Unit": "" }, + {"Name": "bridge", + "Description": "...", + "Unit": "" }, + {"Name": "boundary", + "Description": "...", + "Unit": "" }, + {"Name": "building", + "Description": "...", + "Unit": "" }, + {"Name": "construction", + "Description": "...", + "Unit": "" }, + {"Name": "covered", + "Description": "...", + "Unit": "" }, + {"Name": "culvert", + "Description": "...", + "Unit": "" }, + {"Name": "cutting", + "Description": "...", + "Unit": "" }, + {"Name": "denomination", + "Description": "...", + "Unit": "" }, + {"Name": "disused", + "Description": "...", + "Unit": "" }, + {"Name": "embankment", + "Description": "...", + "Unit": "" }, + {"Name": "foot", + "Description": "...", + "Unit": "" }, + {"Name": "generator:source", + "Description": "...", + "Unit": "" }, + {"Name": "harbour", + "Description": "...", + "Unit": "" }, + {"Name": "highway", + "Description": "...", + "Unit": "" }, + {"Name": "historic", + "Description": "...", + "Unit": "" }, + {"Name": "horse", + "Description": "...", + "Unit": "" }, + {"Name": "intermittent", + "Description": "...", + "Unit": "" }, + {"Name": "junction", + "Description": "...", + "Unit": "" }, + {"Name": "landuse", + "Description": "...", + "Unit": "" }, + {"Name": "layer", + "Description": "...", + "Unit": "" }, + {"Name": "leisure", + "Description": "...", + "Unit": "" }, + {"Name": "lock", + "Description": "...", + "Unit": "" }, + {"Name": "man_made", + "Description": "...", + "Unit": "" }, + {"Name": "military", + "Description": "...", + "Unit": "" }, + {"Name": "motorcar", + "Description": "...", + "Unit": "" }, + {"Name": "name", + "Description": "...", + "Unit": "" }, + {"Name": "natural", + "Description": "...", + "Unit": "" }, + {"Name": "office", + "Description": "...", + "Unit": "" }, + {"Name": "oneway", + "Description": "...", + "Unit": "" }, + {"Name": "operator", + "Description": "...", + "Unit": "" }, + {"Name": "place", + "Description": "...", + "Unit": "" }, + {"Name": "population", + "Description": "...", + "Unit": "" }, + {"Name": "power", + "Description": "...", + "Unit": "" }, + {"Name": "power_source", + "Description": "...", + "Unit": "" }, + {"Name": "public_transport", + "Description": "...", + "Unit": "" }, + {"Name": "railway", + "Description": "...", + "Unit": "" }, + {"Name": "ref", + "Description": "...", + "Unit": "" }, + {"Name": "religion", + "Description": "...", + "Unit": "" }, + {"Name": "route", + "Description": "...", + "Unit": "" }, + {"Name": "service", + "Description": "...", + "Unit": "" }, + {"Name": "shop", + "Description": "...", + "Unit": "" }, + {"Name": "sport", + "Description": "...", + "Unit": "" }, + {"Name": "surface", + "Description": "...", + "Unit": "" }, + {"Name": "toll", + "Description": "...", + "Unit": "" }, + {"Name": "tourism", + "Description": "...", + "Unit": "" }, + {"Name": "tower:type", + "Description": "...", + "Unit": "" }, + {"Name": "tracktype", + "Description": "...", + "Unit": "" }, + {"Name": "tunnel", + "Description": "...", + "Unit": "" }, + {"Name": "water", + "Description": "...", + "Unit": "" }, + {"Name": "waterway", + "Description": "...", + "Unit": "" }, + {"Name": "wetland", + "Description": "...", + "Unit": "" }, + {"Name": "witdth", + "Description": "...", + "Unit": "" }, + {"Name": "wood", + "Description": "...", + "Unit": "" }, + {"Name": "z_order", + "Description": "...", + "Unit": "" }, + {"Name": "way_area", + "Description": "...", + "Unit": "" }, + {"Name": "tags", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }, + {"Name": "gid", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "10.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_osm.osm_deu_polygon'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE orig_osm.osm_deu_polygon_urban_old IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "gid", + "Description": "...", + "Unit": "" }, + {"Name": "osm_id", + "Description": "...", + "Unit": "" }, + {"Name": "name", + "Description": "...", + "Unit": "" }, + {"Name": "sector", + "Description": "...", + "Unit": "" }, + {"Name": "tags", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "10.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_osm.osm_deu_polygon_urban_old'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE orig_osm.osm_deu_rels IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "way_off", + "Description": "...", + "Unit": "" }, + {"Name": "rel_off", + "Description": "...", + "Unit": "" }, + {"Name": "parts", + "Description": "...", + "Unit": "" }, + {"Name": "members", + "Description": "...", + "Unit": "" }, + {"Name": "tags", + "Description": "...", + "Unit": "" }, + {"Name": "pending", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "10.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_osm.osm_deu_rels'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE orig_osm.osm_deu_roads IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "osm_id", + "Description": "...", + "Unit": "" }, + {"Name": "access", + "Description": "...", + "Unit": "" }, + {"Name": "addr:housename", + "Description": "...", + "Unit": "" }, + {"Name": "addr:housnumber", + "Description": "...", + "Unit": "" }, + {"Name": "addr:interpolation", + "Description": "...", + "Unit": "" }, + {"Name": "admin_level", + "Description": "...", + "Unit": "" }, + {"Name": "aerialway", + "Description": "...", + "Unit": "" }, + {"Name": "aeroway", + "Description": "...", + "Unit": "" }, + {"Name": "amenity", + "Description": "...", + "Unit": "" }, + {"Name": "area", + "Description": "...", + "Unit": "" }, + {"Name": "barrier", + "Description": "...", + "Unit": "" }, + {"Name": "bicycle", + "Description": "...", + "Unit": "" }, + {"Name": "brand", + "Description": "...", + "Unit": "" }, + {"Name": "bridge", + "Description": "...", + "Unit": "" }, + {"Name": "boundary", + "Description": "...", + "Unit": "" }, + {"Name": "building", + "Description": "...", + "Unit": "" }, + {"Name": "construction", + "Description": "...", + "Unit": "" }, + {"Name": "covered", + "Description": "...", + "Unit": "" }, + {"Name": "culvert", + "Description": "...", + "Unit": "" }, + {"Name": "cutting", + "Description": "...", + "Unit": "" }, + {"Name": "denomination", + "Description": "...", + "Unit": "" }, + {"Name": "disused", + "Description": "...", + "Unit": "" }, + {"Name": "embankment", + "Description": "...", + "Unit": "" }, + {"Name": "foot", + "Description": "...", + "Unit": "" }, + {"Name": "generator:source", + "Description": "...", + "Unit": "" }, + {"Name": "harbour", + "Description": "...", + "Unit": "" }, + {"Name": "highway", + "Description": "...", + "Unit": "" }, + {"Name": "historic", + "Description": "...", + "Unit": "" }, + {"Name": "horse", + "Description": "...", + "Unit": "" }, + {"Name": "intermittent", + "Description": "...", + "Unit": "" }, + {"Name": "junction", + "Description": "...", + "Unit": "" }, + {"Name": "landuse", + "Description": "...", + "Unit": "" }, + {"Name": "layer", + "Description": "...", + "Unit": "" }, + {"Name": "leisure", + "Description": "...", + "Unit": "" }, + {"Name": "lock", + "Description": "...", + "Unit": "" }, + {"Name": "man_made", + "Description": "...", + "Unit": "" }, + {"Name": "military", + "Description": "...", + "Unit": "" }, + {"Name": "motorcar", + "Description": "...", + "Unit": "" }, + {"Name": "name", + "Description": "...", + "Unit": "" }, + {"Name": "natural", + "Description": "...", + "Unit": "" }, + {"Name": "office", + "Description": "...", + "Unit": "" }, + {"Name": "oneway", + "Description": "...", + "Unit": "" }, + {"Name": "operator", + "Description": "...", + "Unit": "" }, + {"Name": "place", + "Description": "...", + "Unit": "" }, + {"Name": "population", + "Description": "...", + "Unit": "" }, + {"Name": "power", + "Description": "...", + "Unit": "" }, + {"Name": "power_source", + "Description": "...", + "Unit": "" }, + {"Name": "public_transport", + "Description": "...", + "Unit": "" }, + {"Name": "railway", + "Description": "...", + "Unit": "" }, + {"Name": "ref", + "Description": "...", + "Unit": "" }, + {"Name": "religion", + "Description": "...", + "Unit": "" }, + {"Name": "route", + "Description": "...", + "Unit": "" }, + {"Name": "service", + "Description": "...", + "Unit": "" }, + {"Name": "shop", + "Description": "...", + "Unit": "" }, + {"Name": "sport", + "Description": "...", + "Unit": "" }, + {"Name": "surface", + "Description": "...", + "Unit": "" }, + {"Name": "toll", + "Description": "...", + "Unit": "" }, + {"Name": "tourism", + "Description": "...", + "Unit": "" }, + {"Name": "tower:type", + "Description": "...", + "Unit": "" }, + {"Name": "tracktype", + "Description": "...", + "Unit": "" }, + {"Name": "tunnel", + "Description": "...", + "Unit": "" }, + {"Name": "water", + "Description": "...", + "Unit": "" }, + {"Name": "waterway", + "Description": "...", + "Unit": "" }, + {"Name": "wetland", + "Description": "...", + "Unit": "" }, + {"Name": "witdth", + "Description": "...", + "Unit": "" }, + {"Name": "wood", + "Description": "...", + "Unit": "" }, + {"Name": "z_order", + "Description": "...", + "Unit": "" }, + {"Name": "way_area", + "Description": "...", + "Unit": "" }, + {"Name": "tags", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }, + {"Name": "gid", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "10.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_osm.osm_deu_roads'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE orig_osm.osm_deu_ways IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "id", + "Description": "...", + "Unit": "" }, + {"Name": "nodes", + "Description": "...", + "Unit": "" }, + {"Name": "tags", + "Description": "...", + "Unit": "" }, + {"Name": "pending", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "10.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_osm.osm_deu_ways'::regclass)::json; + +-- + + diff --git a/requirements.txt/SQL Documentation/orig_scenario_data.sql b/requirements.txt/SQL Documentation/orig_scenario_data.sql new file mode 100644 index 00000000..fb43ef4a --- /dev/null +++ b/requirements.txt/SQL Documentation/orig_scenario_data.sql @@ -0,0 +1,45 @@ + +-- + +COMMENT ON TABLE orig_scenario_data.nep_2015_scenario_capacities IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "state", + "Description": "...", + "Unit": "" }, + {"Name": "generator_type", + "Description": "...", + "Unit": "" }, + {"Name": "capacity", + "Description": "...", + "Unit": "" }, + {"Name": "nuts", + "Description": "...", + "Unit": "" }, + {"Name": "scenario_name", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "10.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('orig_scenario_data.nep_2015_scenario_capacities'::regclass)::json; + +-- diff --git a/requirements.txt/SQL Documentation/res_ego_hv_powerflow.sql b/requirements.txt/SQL Documentation/res_ego_hv_powerflow.sql new file mode 100644 index 00000000..f6928511 --- /dev/null +++ b/requirements.txt/SQL Documentation/res_ego_hv_powerflow.sql @@ -0,0 +1,355 @@ + +-- + +COMMENT ON TABLE res_ego_hv_powerflow.res_bus IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "scn_name", + "Description": "...", + "Unit": "" }, + {"Name": "result_id", + "Description": "...", + "Unit": "" }, + {"Name": "bus_id", + "Description": "...", + "Unit": "" }, + {"Name": "temp_id", + "Description": "...", + "Unit": "" }, + {"Name": "control", + "Description": "...", + "Unit": "" }, + {"Name": "p", + "Description": "...", + "Unit": "" }, + {"Name": "q", + "Description": "...", + "Unit": "" }, + {"Name": "v_mag_pu", + "Description": "...", + "Unit": "" }, + {"Name": "v_ang", + "Description": "...", + "Unit": "" }, + {"Name": "marginal_price", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "10.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('res_ego_hv_powerflow.res_bus'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE res_ego_hv_powerflow.res_generator IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "scn_name", + "Description": "...", + "Unit": "" }, + {"Name": "result_id", + "Description": "...", + "Unit": "" }, + {"Name": "generator_id", + "Description": "...", + "Unit": "" }, + {"Name": "temp_id", + "Description": "...", + "Unit": "" }, + {"Name": "control", + "Description": "...", + "Unit": "" }, + {"Name": "p", + "Description": "...", + "Unit": "" }, + {"Name": "q", + "Description": "...", + "Unit": "" }, + {"Name": "p_nom_opt", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "10.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('res_ego_hv_powerflow.res_generator'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE res_ego_hv_powerflow.res_line IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "scn_name", + "Description": "...", + "Unit": "" }, + {"Name": "result_id", + "Description": "...", + "Unit": "" }, + {"Name": "line_id", + "Description": "...", + "Unit": "" }, + {"Name": "temp_id", + "Description": "...", + "Unit": "" }, + {"Name": "p0", + "Description": "...", + "Unit": "" }, + {"Name": "q0", + "Description": "...", + "Unit": "" }, + {"Name": "p1", + "Description": "...", + "Unit": "" }, + {"Name": "q1", + "Description": "...", + "Unit": "" }, + {"Name": "s_nom_opt", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }, + {"Name": "topo", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "10.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('res_ego_hv_powerflow.res_line'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE res_ego_hv_powerflow.res_load IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "scn_name", + "Description": "...", + "Unit": "" }, + {"Name": "result_id", + "Description": "...", + "Unit": "" }, + {"Name": "load_id", + "Description": "...", + "Unit": "" }, + {"Name": "temp_id", + "Description": "...", + "Unit": "" }, + {"Name": "p", + "Description": "...", + "Unit": "" }, + {"Name": "q", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "10.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('res_ego_hv_powerflow.res_load'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE res_ego_hv_powerflow.res_storage IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "scn_name", + "Description": "...", + "Unit": "" }, + {"Name": "result_id", + "Description": "...", + "Unit": "" }, + {"Name": "storage_id", + "Description": "...", + "Unit": "" }, + {"Name": "temp_id", + "Description": "...", + "Unit": "" }, + {"Name": "p", + "Description": "...", + "Unit": "" }, + {"Name": "q", + "Description": "...", + "Unit": "" }, + {"Name": "soa", + "Description": "...", + "Unit": "" }, + {"Name": "spill", + "Description": "...", + "Unit": "" }, + {"Name": "p_nom_opt", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "10.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('res_ego_hv_powerflow.res_storage'::regclass)::json; + +-- + + +-- + +COMMENT ON TABLE res_ego_hv_powerflow.res_transformer IS +'{ +"Name": "...", +"Source": [{ + "Name": "...", + "URL": "..." }], +"Reference date": "...", +"Date of collection": "...", +"Original file": "...", +"Spatial resolution": ["Germany"], +"Description": ["..."], +"Column": [ + {"Name": "scn_name", + "Description": "...", + "Unit": "" }, + {"Name": "result_id", + "Description": "...", + "Unit": "" }, + {"Name": "trafo_id", + "Description": "...", + "Unit": "" }, + {"Name": "temp_id", + "Description": "...", + "Unit": "" }, + {"Name": "control", + "Description": "...", + "Unit": "" }, + {"Name": "p0", + "Description": "...", + "Unit": "" }, + {"Name": "q0", + "Description": "...", + "Unit": "" }, + {"Name": "p1", + "Description": "...", + "Unit": "" }, + {"Name": "q1", + "Description": "...", + "Unit": "" }, + {"Name": "geom", + "Description": "...", + "Unit": "" }, + {"Name": "topo", + "Description": "...", + "Unit": "" }], +"Changes":[ + {"Name": "Mario Kropshofer", + "Mail": "mario.kropshofer2@stud.fh-flensburg.de", + "Date": "10.10.2016", + "Comment": "..." } + ], +"ToDo": ["Please complete"], +"Licence": ["..."], +"Instructions for proper use": ["..."] +}'; + + +SELECT obj_description('res_ego_hv_powerflow.res_transformer'::regclass)::json; + +-- + + diff --git a/requirements.txt/doc/Makefile b/requirements.txt/doc/Makefile new file mode 100644 index 00000000..9117f211 --- /dev/null +++ b/requirements.txt/doc/Makefile @@ -0,0 +1,192 @@ +# Makefile for Sphinx documentation +# + +# You can set these variables from the command line. +SPHINXOPTS = +SPHINXBUILD = sphinx-build +PAPER = +BUILDDIR = _build + +# User-friendly check for sphinx-build +ifeq ($(shell which $(SPHINXBUILD) >/dev/null 2>&1; echo $$?), 1) +$(error The '$(SPHINXBUILD)' command was not found. Make sure you have Sphinx installed, then set the SPHINXBUILD environment variable to point to the full path of the '$(SPHINXBUILD)' executable. Alternatively you can add the directory with the executable to your PATH. If you don't have Sphinx installed, grab it from http://sphinx-doc.org/) +endif + +# Internal variables. +PAPEROPT_a4 = -D latex_paper_size=a4 +PAPEROPT_letter = -D latex_paper_size=letter +ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) . +# the i18n builder cannot share the environment and doctrees with the others +I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) . + +.PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest coverage gettext + +help: + @echo "Please use \`make ' where is one of" + @echo " html to make standalone HTML files" + @echo " dirhtml to make HTML files named index.html in directories" + @echo " singlehtml to make a single large HTML file" + @echo " pickle to make pickle files" + @echo " json to make JSON files" + @echo " htmlhelp to make HTML files and a HTML help project" + @echo " qthelp to make HTML files and a qthelp project" + @echo " applehelp to make an Apple Help Book" + @echo " devhelp to make HTML files and a Devhelp project" + @echo " epub to make an epub" + @echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter" + @echo " latexpdf to make LaTeX files and run them through pdflatex" + @echo " latexpdfja to make LaTeX files and run them through platex/dvipdfmx" + @echo " text to make text files" + @echo " man to make manual pages" + @echo " texinfo to make Texinfo files" + @echo " info to make Texinfo files and run them through makeinfo" + @echo " gettext to make PO message catalogs" + @echo " changes to make an overview of all changed/added/deprecated items" + @echo " xml to make Docutils-native XML files" + @echo " pseudoxml to make pseudoxml-XML files for display purposes" + @echo " linkcheck to check all external links for integrity" + @echo " doctest to run all doctests embedded in the documentation (if enabled)" + @echo " coverage to run coverage check of the documentation (if enabled)" + +clean: + rm -rf $(BUILDDIR)/* + +html: + $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html + @echo + @echo "Build finished. The HTML pages are in $(BUILDDIR)/html." + +dirhtml: + $(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml + @echo + @echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml." + +singlehtml: + $(SPHINXBUILD) -b singlehtml $(ALLSPHINXOPTS) $(BUILDDIR)/singlehtml + @echo + @echo "Build finished. The HTML page is in $(BUILDDIR)/singlehtml." + +pickle: + $(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) $(BUILDDIR)/pickle + @echo + @echo "Build finished; now you can process the pickle files." + +json: + $(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $(BUILDDIR)/json + @echo + @echo "Build finished; now you can process the JSON files." + +htmlhelp: + $(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) $(BUILDDIR)/htmlhelp + @echo + @echo "Build finished; now you can run HTML Help Workshop with the" \ + ".hhp project file in $(BUILDDIR)/htmlhelp." + +qthelp: + $(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) $(BUILDDIR)/qthelp + @echo + @echo "Build finished; now you can run "qcollectiongenerator" with the" \ + ".qhcp project file in $(BUILDDIR)/qthelp, like this:" + @echo "# qcollectiongenerator $(BUILDDIR)/qthelp/ding0.qhcp" + @echo "To view the help file:" + @echo "# assistant -collectionFile $(BUILDDIR)/qthelp/ding0.qhc" + +applehelp: + $(SPHINXBUILD) -b applehelp $(ALLSPHINXOPTS) $(BUILDDIR)/applehelp + @echo + @echo "Build finished. The help book is in $(BUILDDIR)/applehelp." + @echo "N.B. You won't be able to view it unless you put it in" \ + "~/Library/Documentation/Help or install it in your application" \ + "bundle." + +devhelp: + $(SPHINXBUILD) -b devhelp $(ALLSPHINXOPTS) $(BUILDDIR)/devhelp + @echo + @echo "Build finished." + @echo "To view the help file:" + @echo "# mkdir -p $$HOME/.local/share/devhelp/ding0" + @echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/ding0" + @echo "# devhelp" + +epub: + $(SPHINXBUILD) -b epub $(ALLSPHINXOPTS) $(BUILDDIR)/epub + @echo + @echo "Build finished. The epub file is in $(BUILDDIR)/epub." + +latex: + $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex + @echo + @echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex." + @echo "Run \`make' in that directory to run these through (pdf)latex" \ + "(use \`make latexpdf' here to do that automatically)." + +latexpdf: + $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex + @echo "Running LaTeX files through pdflatex..." + $(MAKE) -C $(BUILDDIR)/latex all-pdf + @echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex." + +latexpdfja: + $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex + @echo "Running LaTeX files through platex and dvipdfmx..." + $(MAKE) -C $(BUILDDIR)/latex all-pdf-ja + @echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex." + +text: + $(SPHINXBUILD) -b text $(ALLSPHINXOPTS) $(BUILDDIR)/text + @echo + @echo "Build finished. The text files are in $(BUILDDIR)/text." + +man: + $(SPHINXBUILD) -b man $(ALLSPHINXOPTS) $(BUILDDIR)/man + @echo + @echo "Build finished. The manual pages are in $(BUILDDIR)/man." + +texinfo: + $(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo + @echo + @echo "Build finished. The Texinfo files are in $(BUILDDIR)/texinfo." + @echo "Run \`make' in that directory to run these through makeinfo" \ + "(use \`make info' here to do that automatically)." + +info: + $(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo + @echo "Running Texinfo files through makeinfo..." + make -C $(BUILDDIR)/texinfo info + @echo "makeinfo finished; the Info files are in $(BUILDDIR)/texinfo." + +gettext: + $(SPHINXBUILD) -b gettext $(I18NSPHINXOPTS) $(BUILDDIR)/locale + @echo + @echo "Build finished. The message catalogs are in $(BUILDDIR)/locale." + +changes: + $(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $(BUILDDIR)/changes + @echo + @echo "The overview file is in $(BUILDDIR)/changes." + +linkcheck: + $(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck + @echo + @echo "Link check complete; look for any errors in the above output " \ + "or in $(BUILDDIR)/linkcheck/output.txt." + +doctest: + $(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest + @echo "Testing of doctests in the sources finished, look at the " \ + "results in $(BUILDDIR)/doctest/output.txt." + +coverage: + $(SPHINXBUILD) -b coverage $(ALLSPHINXOPTS) $(BUILDDIR)/coverage + @echo "Testing of coverage in the sources finished, look at the " \ + "results in $(BUILDDIR)/coverage/python.txt." + +xml: + $(SPHINXBUILD) -b xml $(ALLSPHINXOPTS) $(BUILDDIR)/xml + @echo + @echo "Build finished. The XML files are in $(BUILDDIR)/xml." + +pseudoxml: + $(SPHINXBUILD) -b pseudoxml $(ALLSPHINXOPTS) $(BUILDDIR)/pseudoxml + @echo +@echo "Build finished. The pseudo-XML files are in $(BUILDDIR)/pseudoxml." diff --git a/requirements.txt/doc/conf.py b/requirements.txt/doc/conf.py new file mode 100644 index 00000000..0c6ef8c2 --- /dev/null +++ b/requirements.txt/doc/conf.py @@ -0,0 +1,372 @@ +""" +This file is part of the open_eGo project open_eGo: https://openegoproject.wordpress.com + +eGo lives at github: https://github.com/openego/eGo/ +The documentation is available on RTD: https://openego.readthedocs.io""" + +__copyright__ = "Flensburg University of Applied Sciences, Europa-Universität Flensburg, Centre for Sustainable Energy Systems, DLR-Institute for Networked Energy Systems" +__license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" +__author__ = "wolf_bunke" + + +# -*- coding: utf-8 -*- +# +# eGo documentation build configuration file, created by +# sphinx-quickstart on Fri Sep 29 10:55:47 2017. +# +# This file is execfile()d with the current directory set to its +# containing dir. +# +# Note that not all possible configuration values are present in this +# autogenerated file. +# +# All configuration values have a default; values that are commented out +# serve to show the default. + +import sys +import os +import shlex +from unittest.mock import MagicMock +#from mock import Mock as MagicMock + +# If extensions (or modules to document with autodoc) are in another directory, +# add these directories to sys.path here. If the directory is relative to the +# documentation root, use os.path.abspath to make it absolute, like shown here. +#sys.path.insert(0, os.path.abspath('.')) +sys.path.insert(0, os.path.abspath('../')) + +# -- General configuration ------------------------------------------------ + +# If your documentation needs a minimal Sphinx version, state it here. +#needs_sphinx = '1.0' + +# Add any Sphinx extension module names here, as strings. They can be +# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom +# ones. +extensions = [ + 'sphinx.ext.autodoc', + 'sphinx.ext.intersphinx', + 'sphinx.ext.todo', + 'sphinx.ext.coverage', + 'sphinx.ext.imgmath' , + 'sphinx.ext.viewcode', +# 'sphinx.ext.autosummary', +# 'sphinxcontrib.napoleon',#enable Napoleon interpreter of docstrings Sphinx v<=1.2 + 'sphinx.ext.napoleon', #enable Napoleon Sphinx v>1.3 +# 'sphinx_paramlinks',#to have links to the types of the parameters of the functions + 'numpydoc', + 'sphinx.ext.extlinks' # enables external links with a key +] + +# Napoleon settings +napoleon_google_docstring = True +napoleon_numpy_docstring = True +napoleon_include_init_with_doc = False +napoleon_include_private_with_doc = False +napoleon_include_special_with_doc = False +napoleon_use_admonition_for_examples = False +napoleon_use_admonition_for_notes = False +napoleon_use_admonition_for_references = False +napoleon_use_ivar = False +napoleon_use_param = True +napoleon_use_rtype = True +napoleon_use_keyword = False + + +# Dictionary of external links +extlinks = {'pandas':('http://pandas.pydata.org/pandas-docs/stable/api.html#%s', + 'pandas.'), + 'sqlalchemy':('http://docs.sqlalchemy.org/en/latest/orm/session_basics.html%s', + 'SQLAlchemy session object'), + 'shapely':('http://toblerity.org/shapely/manual.html#%s', + 'Shapely object') +} + + + + + +# Add any paths that contain templates here, relative to this directory. +templates_path = ['_templates'] + +# The suffix(es) of source filenames. +# You can specify multiple suffix as a list of string: +# source_suffix = ['.rst', '.md'] +source_suffix = '.rst' + +# The encoding of source files. +#source_encoding = 'utf-8-sig' + +# The master toctree document. +master_doc = 'index' + +# General information about the project. +project = u'open_eGo Data Processing' +copyright = u'2015-2017, open_eGo-Team' +author = u'open_eGo-Team' + + +# The version info for the project you're documenting, acts as replacement for +# |version| and |release|, also used in various other places throughout the +# built documents. +# +# The short X.Y version. +version = 'v0.3.0' +# The full version, including alpha/beta/rc tags. +release = 'V0.3.0dev' + + +# The language for content autogenerated by Sphinx. Refer to documentation +# for a list of supported languages. +# +# This is also used if you do content translation via gettext catalogs. +# Usually you set "language" from the command line for these cases. +language = None + +# There are two options for replacing |today|: either, you set today to some +# non-false value, then it is used: +#today = '' +# Else, today_fmt is used as the format for a strftime call. +#today_fmt = '%B %d, %Y' + +# List of patterns, relative to source directory, that match files and +# directories to ignore when looking for source files. +exclude_patterns = ['_build', 'whatsnew'] + +# The reST default role (used for this markup: `text`) to use for all +# documents. +#default_role = None + +# If true, '()' will be appended to :func: etc. cross-reference text. +#add_function_parentheses = True + +# If true, the current module name will be prepended to all description +# unit titles (such as .. function::). +#add_module_names = True + +# If true, sectionauthor and moduleauthor directives will be shown in the +# output. They are ignored by default. +#show_authors = False + +# The name of the Pygments (syntax highlighting) style to use. +pygments_style = 'sphinx' + +# A list of ignored prefixes for module index sorting. +#modindex_common_prefix = [] + +# If true, keep warnings as "system message" paragraphs in the built documents. +#keep_warnings = False + +# If true, `todo` and `todoList` produce output, else they produce nothing. +todo_include_todos = True + + +# Fix import error of modules which depend on C modules (mock out the imports for these modules) +# see http://read-the-docs.readthedocs.io/en/latest/faq.html#i-get-import-errors-on-libraries-that-depend-on-c-modules + + +if 'READTHEDOCS' in os.environ: + class Mock(MagicMock): + @classmethod + def __getattr__(cls, name): + return MagicMock() + + MOCK_MODULES = ['ding0', 'ding0.results', 'shapely'] + sys.modules.update((mod_name, Mock()) for mod_name in MOCK_MODULES) + + MOCK_MODULES = ['libgeos', 'geos', 'libgeos_c', 'geos_c','libgeos_c.so.1', + 'libgeos_c.so', 'shapely', 'geoalchemy2', 'geoalchemy2.shape '] + + + +# -- Options for HTML output ---------------------------------------------- + +# The theme to use for HTML and HTML Help pages. See the documentation for +# a list of builtin themes. +# html_theme = 'alabaster' + +import sphinx_rtd_theme +html_theme_path = [sphinx_rtd_theme.get_html_theme_path()] +html_theme = 'sphinx_rtd_theme' + +# Theme options are theme-specific and customize the look and feel of a theme +# further. For a list of options available for each theme, see the +# documentation. +#html_theme_options = {} + +# Add any paths that contain custom themes here, relative to this directory. +#html_theme_path = [] + +# The name for this set of Sphinx documents. If None, it defaults to +# " v documentation". +#html_title = None + +# A shorter title for the navigation bar. Default is the same as html_title. +#html_short_title = None + +# The name of an image file (relative to this directory) to place at the top +# of the sidebar. +#html_logo = None + +# The name of an image file (within the static path) to use as favicon of the +# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32 +# pixels large. +#html_favicon = None + +# Add any paths that contain custom static files (such as style sheets) here, +# relative to this directory. They are copied after the builtin static files, +# so a file named "default.css" will overwrite the builtin "default.css". +# html_static_path = ['_static'] + +# Add any extra paths that contain custom files (such as robots.txt or +# .htaccess) here, relative to this directory. These files are copied +# directly to the root of the documentation. +#html_extra_path = [] + +# If not '', a 'Last updated on:' timestamp is inserted at every page bottom, +# using the given strftime format. +#html_last_updated_fmt = '%b %d, %Y' + +# If true, SmartyPants will be used to convert quotes and dashes to +# typographically correct entities. +#html_use_smartypants = True + +# Custom sidebar templates, maps document names to template names. +#html_sidebars = {} + +# Additional templates that should be rendered to pages, maps page names to +# template names. +#html_additional_pages = {} + +# If false, no module index is generated. +#html_domain_indices = True + +# If false, no index is generated. +#html_use_index = True + +# If true, the index is split into individual pages for each letter. +#html_split_index = False + +# If true, links to the reST sources are added to the pages. +#html_show_sourcelink = True + +# If true, "Created using Sphinx" is shown in the HTML footer. Default is True. +#html_show_sphinx = True + +# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True. +#html_show_copyright = True + +# If true, an OpenSearch description file will be output, and all pages will +# contain a tag referring to it. The value of this option must be the +# base URL from which the finished HTML is served. +#html_use_opensearch = '' + +# This is the file name suffix for HTML files (e.g. ".xhtml"). +#html_file_suffix = None + +# Language to be used for generating the HTML full-text search index. +# Sphinx supports the following languages: +# 'da', 'de', 'en', 'es', 'fi', 'fr', 'hu', 'it', 'ja' +# 'nl', 'no', 'pt', 'ro', 'ru', 'sv', 'tr' +#html_search_language = 'en' + +# A dictionary with options for the search language support, empty by default. +# Now only 'ja' uses this config value +#html_search_options = {'type': 'default'} + +# The name of a javascript file (relative to the configuration directory) that +# implements a search results scorer. If empty, the default will be used. +#html_search_scorer = 'scorer.js' + +# Output file base name for HTML help builder. +htmlhelp_basename = 'eGodoc' + +# -- Options for LaTeX output --------------------------------------------- + +latex_elements = { +# The paper size ('letterpaper' or 'a4paper'). +#'papersize': 'letterpaper', + +# The font size ('10pt', '11pt' or '12pt'). +#'pointsize': '10pt', + +# Additional stuff for the LaTeX preamble. +#'preamble': '', + +# Latex figure (float) alignment +#'figure_align': 'htbp', +} + +# Grouping the document tree into LaTeX files. List of tuples +# (source start file, target name, title, +# author, documentclass [howto, manual, or own class]). +latex_documents = [ + (master_doc, 'open_eGo_Data_Processing.tex', u'open_eGo Documentation', + u'open_eGo-Team', 'manual'), +] + +# The name of an image file (relative to this directory) to place at the top of +# the title page. +#latex_logo = None + +# For "manual" documents, if this is true, then toplevel headings are parts, +# not chapters. +#latex_use_parts = False + +# If true, show page references after internal links. +#latex_show_pagerefs = False + +# If true, show URL addresses after external links. +#latex_show_urls = False + +# Documents to append as an appendix to all manuals. +#latex_appendices = [] + +# If false, no module index is generated. +#latex_domain_indices = True + + +# -- Options for manual page output --------------------------------------- + +# One entry per manual page. List of tuples +# (source start file, name, description, authors, manual section). +man_pages = [ + (master_doc, 'data_processing', u'eGo Documentation', + [author], 1) +] + +# If true, show URL addresses after external links. +#man_show_urls = False + + +# -- Options for Texinfo output ------------------------------------------- + +# Grouping the document tree into Texinfo files. List of tuples +# (source start file, target name, title, author, +# dir menu entry, description, category) +texinfo_documents = [ + (master_doc, 'data_processing', u'eGo Documentation', + author, 'data_processing', 'Titel', + 'Miscellaneous'), +] + +# Documents to append as an appendix to all manuals. +#texinfo_appendices = [] + +# If false, no module index is generated. +#texinfo_domain_indices = True + +# How to display URL addresses: 'footnote', 'no', or 'inline'. +#texinfo_show_urls = 'footnote' + +# If true, do not generate a @detailmenu in the "Top" node's menu. +#texinfo_no_detailmenu = False + + +# Example configuration for intersphinx: refer to the Python standard library. +intersphinx_mapping = {'python': ('https://docs.python.org/3', None)} + +# Numbered figures +numfig = True + +autodoc_member_order = 'bysource' diff --git a/requirements.txt/doc/index.rst b/requirements.txt/doc/index.rst new file mode 100644 index 00000000..3040564c --- /dev/null +++ b/requirements.txt/doc/index.rst @@ -0,0 +1,27 @@ +Welcome to Data processing documentation of open_eGo +==================================================== + + + + + +.. image:: https://openegoproject.files.wordpress.com/2017/02/open_ego_logo_breit.png?w=400 + :align: right + :scale: 100% + + +.. toctree:: + :maxdepth: 7 + :titlesonly: + + scenario + + + + +Indices and tables +================== + +* :ref:`genindex` +* :ref:`modindex` +* :ref:`search` diff --git a/requirements.txt/doc/make.bat b/requirements.txt/doc/make.bat new file mode 100644 index 00000000..ea3430fb --- /dev/null +++ b/requirements.txt/doc/make.bat @@ -0,0 +1,263 @@ +@ECHO OFF + +REM Command file for Sphinx documentation + +if "%SPHINXBUILD%" == "" ( + set SPHINXBUILD=sphinx-build +) +set BUILDDIR=_build +set ALLSPHINXOPTS=-d %BUILDDIR%/doctrees %SPHINXOPTS% . +set I18NSPHINXOPTS=%SPHINXOPTS% . +if NOT "%PAPER%" == "" ( + set ALLSPHINXOPTS=-D latex_paper_size=%PAPER% %ALLSPHINXOPTS% + set I18NSPHINXOPTS=-D latex_paper_size=%PAPER% %I18NSPHINXOPTS% +) + +if "%1" == "" goto help + +if "%1" == "help" ( + :help + echo.Please use `make ^` where ^ is one of + echo. html to make standalone HTML files + echo. dirhtml to make HTML files named index.html in directories + echo. singlehtml to make a single large HTML file + echo. pickle to make pickle files + echo. json to make JSON files + echo. htmlhelp to make HTML files and a HTML help project + echo. qthelp to make HTML files and a qthelp project + echo. devhelp to make HTML files and a Devhelp project + echo. epub to make an epub + echo. latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter + echo. text to make text files + echo. man to make manual pages + echo. texinfo to make Texinfo files + echo. gettext to make PO message catalogs + echo. changes to make an overview over all changed/added/deprecated items + echo. xml to make Docutils-native XML files + echo. pseudoxml to make pseudoxml-XML files for display purposes + echo. linkcheck to check all external links for integrity + echo. doctest to run all doctests embedded in the documentation if enabled + echo. coverage to run coverage check of the documentation if enabled + goto end +) + +if "%1" == "clean" ( + for /d %%i in (%BUILDDIR%\*) do rmdir /q /s %%i + del /q /s %BUILDDIR%\* + goto end +) + + +REM Check if sphinx-build is available and fallback to Python version if any +%SPHINXBUILD% 2> nul +if errorlevel 9009 goto sphinx_python +goto sphinx_ok + +:sphinx_python + +set SPHINXBUILD=python -m sphinx.__init__ +%SPHINXBUILD% 2> nul +if errorlevel 9009 ( + echo. + echo.The 'sphinx-build' command was not found. Make sure you have Sphinx + echo.installed, then set the SPHINXBUILD environment variable to point + echo.to the full path of the 'sphinx-build' executable. Alternatively you + echo.may add the Sphinx directory to PATH. + echo. + echo.If you don't have Sphinx installed, grab it from + echo.http://sphinx-doc.org/ + exit /b 1 +) + +:sphinx_ok + + +if "%1" == "html" ( + %SPHINXBUILD% -b html %ALLSPHINXOPTS% %BUILDDIR%/html + if errorlevel 1 exit /b 1 + echo. + echo.Build finished. The HTML pages are in %BUILDDIR%/html. + goto end +) + +if "%1" == "dirhtml" ( + %SPHINXBUILD% -b dirhtml %ALLSPHINXOPTS% %BUILDDIR%/dirhtml + if errorlevel 1 exit /b 1 + echo. + echo.Build finished. The HTML pages are in %BUILDDIR%/dirhtml. + goto end +) + +if "%1" == "singlehtml" ( + %SPHINXBUILD% -b singlehtml %ALLSPHINXOPTS% %BUILDDIR%/singlehtml + if errorlevel 1 exit /b 1 + echo. + echo.Build finished. The HTML pages are in %BUILDDIR%/singlehtml. + goto end +) + +if "%1" == "pickle" ( + %SPHINXBUILD% -b pickle %ALLSPHINXOPTS% %BUILDDIR%/pickle + if errorlevel 1 exit /b 1 + echo. + echo.Build finished; now you can process the pickle files. + goto end +) + +if "%1" == "json" ( + %SPHINXBUILD% -b json %ALLSPHINXOPTS% %BUILDDIR%/json + if errorlevel 1 exit /b 1 + echo. + echo.Build finished; now you can process the JSON files. + goto end +) + +if "%1" == "htmlhelp" ( + %SPHINXBUILD% -b htmlhelp %ALLSPHINXOPTS% %BUILDDIR%/htmlhelp + if errorlevel 1 exit /b 1 + echo. + echo.Build finished; now you can run HTML Help Workshop with the ^ +.hhp project file in %BUILDDIR%/htmlhelp. + goto end +) + +if "%1" == "qthelp" ( + %SPHINXBUILD% -b qthelp %ALLSPHINXOPTS% %BUILDDIR%/qthelp + if errorlevel 1 exit /b 1 + echo. + echo.Build finished; now you can run "qcollectiongenerator" with the ^ +.qhcp project file in %BUILDDIR%/qthelp, like this: + echo.^> qcollectiongenerator %BUILDDIR%\qthelp\ding0.qhcp + echo.To view the help file: + echo.^> assistant -collectionFile %BUILDDIR%\qthelp\ding0.ghc + goto end +) + +if "%1" == "devhelp" ( + %SPHINXBUILD% -b devhelp %ALLSPHINXOPTS% %BUILDDIR%/devhelp + if errorlevel 1 exit /b 1 + echo. + echo.Build finished. + goto end +) + +if "%1" == "epub" ( + %SPHINXBUILD% -b epub %ALLSPHINXOPTS% %BUILDDIR%/epub + if errorlevel 1 exit /b 1 + echo. + echo.Build finished. The epub file is in %BUILDDIR%/epub. + goto end +) + +if "%1" == "latex" ( + %SPHINXBUILD% -b latex %ALLSPHINXOPTS% %BUILDDIR%/latex + if errorlevel 1 exit /b 1 + echo. + echo.Build finished; the LaTeX files are in %BUILDDIR%/latex. + goto end +) + +if "%1" == "latexpdf" ( + %SPHINXBUILD% -b latex %ALLSPHINXOPTS% %BUILDDIR%/latex + cd %BUILDDIR%/latex + make all-pdf + cd %~dp0 + echo. + echo.Build finished; the PDF files are in %BUILDDIR%/latex. + goto end +) + +if "%1" == "latexpdfja" ( + %SPHINXBUILD% -b latex %ALLSPHINXOPTS% %BUILDDIR%/latex + cd %BUILDDIR%/latex + make all-pdf-ja + cd %~dp0 + echo. + echo.Build finished; the PDF files are in %BUILDDIR%/latex. + goto end +) + +if "%1" == "text" ( + %SPHINXBUILD% -b text %ALLSPHINXOPTS% %BUILDDIR%/text + if errorlevel 1 exit /b 1 + echo. + echo.Build finished. The text files are in %BUILDDIR%/text. + goto end +) + +if "%1" == "man" ( + %SPHINXBUILD% -b man %ALLSPHINXOPTS% %BUILDDIR%/man + if errorlevel 1 exit /b 1 + echo. + echo.Build finished. The manual pages are in %BUILDDIR%/man. + goto end +) + +if "%1" == "texinfo" ( + %SPHINXBUILD% -b texinfo %ALLSPHINXOPTS% %BUILDDIR%/texinfo + if errorlevel 1 exit /b 1 + echo. + echo.Build finished. The Texinfo files are in %BUILDDIR%/texinfo. + goto end +) + +if "%1" == "gettext" ( + %SPHINXBUILD% -b gettext %I18NSPHINXOPTS% %BUILDDIR%/locale + if errorlevel 1 exit /b 1 + echo. + echo.Build finished. The message catalogs are in %BUILDDIR%/locale. + goto end +) + +if "%1" == "changes" ( + %SPHINXBUILD% -b changes %ALLSPHINXOPTS% %BUILDDIR%/changes + if errorlevel 1 exit /b 1 + echo. + echo.The overview file is in %BUILDDIR%/changes. + goto end +) + +if "%1" == "linkcheck" ( + %SPHINXBUILD% -b linkcheck %ALLSPHINXOPTS% %BUILDDIR%/linkcheck + if errorlevel 1 exit /b 1 + echo. + echo.Link check complete; look for any errors in the above output ^ +or in %BUILDDIR%/linkcheck/output.txt. + goto end +) + +if "%1" == "doctest" ( + %SPHINXBUILD% -b doctest %ALLSPHINXOPTS% %BUILDDIR%/doctest + if errorlevel 1 exit /b 1 + echo. + echo.Testing of doctests in the sources finished, look at the ^ +results in %BUILDDIR%/doctest/output.txt. + goto end +) + +if "%1" == "coverage" ( + %SPHINXBUILD% -b coverage %ALLSPHINXOPTS% %BUILDDIR%/coverage + if errorlevel 1 exit /b 1 + echo. + echo.Testing of coverage in the sources finished, look at the ^ +results in %BUILDDIR%/coverage/python.txt. + goto end +) + +if "%1" == "xml" ( + %SPHINXBUILD% -b xml %ALLSPHINXOPTS% %BUILDDIR%/xml + if errorlevel 1 exit /b 1 + echo. + echo.Build finished. The XML files are in %BUILDDIR%/xml. + goto end +) + +if "%1" == "pseudoxml" ( + %SPHINXBUILD% -b pseudoxml %ALLSPHINXOPTS% %BUILDDIR%/pseudoxml + if errorlevel 1 exit /b 1 + echo. + echo.Build finished. The pseudo-XML files are in %BUILDDIR%/pseudoxml. + goto end +) + +:end diff --git a/requirements.txt/doc/renewables.rst b/requirements.txt/doc/renewables.rst new file mode 100644 index 00000000..3f187530 --- /dev/null +++ b/requirements.txt/doc/renewables.rst @@ -0,0 +1,50 @@ +======================================== +Methodologies of Renewable Energy Plants +======================================== + +[Intro] + +******************** +Renewable allocation +******************** + +The Methodology of the expansion and allocation of renewable energy plants is +done in two parts. The first part is the developent and expansion of renewable +power palnts by a scenario input of installed capacities. The allocation based on +the spacial level of municipalities. The second part allocated the surplus of +power plants power plants on a high spacial resultion by white areas and other +Polygon objects (see XXX). + + + +Expansion of power plants by technology +======================================= + + +Wind onshore +------------ + Text + +Wind offshore +------------- + text + +Solar +----- + text + +Hydro Power +----------- + run of river and reservoir + + +Pumped Storage +-------------- + +Biomass +------- + text + +geothermal +---------- + text diff --git a/requirements.txt/doc/scenario.rst b/requirements.txt/doc/scenario.rst new file mode 100644 index 00000000..7845df4a --- /dev/null +++ b/requirements.txt/doc/scenario.rst @@ -0,0 +1,80 @@ +================== +Scenario framework +================== + + + + +.. csv-table:: Overview of eGo Scenarios + :file: https://raw.githubusercontent.com/openego/.... + :delim: ; + :header-rows: 1 + :widths: 5, 1, 1, 5 + :stub-columns: 0 + + + +***************** +Global assumption +***************** + +Weater year +=========== + All scenarios using the reanalysis weater data of coastDat-2 Hindcast data model + from the Helmholtz-Zentrum Geesthacht (HZG). + + + + + + + +********** +Status Quo +********** + + + + + +******** +NEP 2035 +******** + +[NEP2015] + + +Scenario definition of renpassG!S +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +.. include:: https://raw.githubusercontent.com/znes/FlEnS/master/open_eGo/NEP_2035/README.rst + + + + +******** +eGo 100 +******** + + + + + +*********** +Methodology +*********** + + + +********** +References +********** + +.. [NEP2015] Übertragungsnetzbetreiber Deutschland, Netzentwicklungsplan + Strom 2025, Version 2015, 1. Entwurf, 2015. https://www.netzentwicklungsplan.de/sites/default/files/paragraphs-files/NEP_2025_1_Entwurf_Teil1_0_0.pdf + +.. [coastdat-2] coastDat-2 Hindcast model http://www.coastdat.de/data/index.php.en + +.. [FlEnS] Wolf-Dieter Bunke Martin Söthe Marion Christ Cord Kaldemeyer + *(Fl)ensburg (En)ergy (S)cenarios - open_eGo Scenarios for 2014/2035/2050*. + https://osf.io/bpf36/ diff --git a/requirements.txt/ego_scenario_log_example.sql b/requirements.txt/ego_scenario_log_example.sql new file mode 100644 index 00000000..bdf6ac99 --- /dev/null +++ b/requirements.txt/ego_scenario_log_example.sql @@ -0,0 +1,12 @@ +/* +Example of the use of the function ego_scenario_log +The function add an entry to the table model_draft.ego_scenario_log + +__copyright__ = "Copyright Reiner Lemoine Institut gGmbH" +__license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" +__url__ = "https://github.com/openego/data_processing/blob/master/LICENSE" +__author__ = "Ludee" +*/ + +-- ego scenario log (version,io,schema_name,table_name,script_name,comment) +SELECT ego_scenario_log('v0.2.10','test','model_draft','test_table','ego_scenario_log_example.sql',''); diff --git a/requirements.txt/metadata_on_table_example.sql b/requirements.txt/metadata_on_table_example.sql new file mode 100644 index 00000000..520723ca --- /dev/null +++ b/requirements.txt/metadata_on_table_example.sql @@ -0,0 +1,118 @@ +/* +This script provides an SQL example of the metadata documentation +A definition of metadata can be found in the openmod glossary http://wiki.openmod-initiative.org/wiki/Metadata +A further description can be found on http://wiki.openmod-initiative.org/wiki/DatabaseRules + +__copyright__ = "Reiner Lemoine Institut" +__license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" +__url__ = "https://github.com/openego/data_processing/blob/master/LICENSE" +__author__ = "Ludee" +__contains__ = "http://stackoverflow.com/questions/383692/what-is-json-and-why-would-i-use-it","https://specs.frictionlessdata.io/data-package/" + +-- metadata description +-- metadata template + +Additional information: +- Dates must follow the ISO8601 (JJJJ-MM-TT) +- Use a space between Numbers and units (100 m) +- If not applicable use "none" +*/ + +-- test table +DROP TABLE IF EXISTS model_draft.test_table; +CREATE TABLE model_draft.test_table ( + id serial, + year integer, + value double precision, + geom geometry(Point, 4326), + CONSTRAINT table_pkey PRIMARY KEY (id) ); + + +-- metadata description +COMMENT ON TABLE model_draft.test_table IS '{ + "title": "Good example title", + "description": "example metadata for example data", + "language": [ "eng", "ger", "fre" ], + "spatial": + {"location": "none", + "extent": "europe", + "resolution": "100 m"}, + "temporal": + {"reference_date": "2016-01-01", + "start": "2017-01-01", + "end": "2017-12-31", + "resolution": "hour"}, + "sources": [ + {"name": "eGo dataprocessing", "description": "", "url": "https://github.com/openego/data_processing", "license": "GNU Affero General Public License Version 3 (AGPL-3.0)", "copyright": "© Reiner Lemoine Institut"}, + {"name": "", "description": "", "url": "", "license": "", "copyright": ""} ], + "license": + {"id": "ODbL-1.0", + "name": "Open Data Commons Open Database License 1.0", + "version": "1.0", + "url": "https://opendatacommons.org/licenses/odbl/1.0/", + "instruction": "You are free: To Share, To Create, To Adapt; As long as you: Attribute, Share-Alike, Keep open!", + "copyright": "© Reiner Lemoine Institut"}, + "contributors": [ + {"name": "Ludee", "email": "", "date": "2016-06-16", "comment": "Create metadata"}, + {"name": "Ludee", "email": "", "date": "2016-11-22", "comment": "Update metadata"}, + {"name": "Ludee", "email": "", "date": "2016-11-22", "comment": "Update header and license"}, + {"name": "Ludee", "email": "", "date": "2017-03-16", "comment": "Add license to source"}, + {"name": "Ludee", "email": "", "date": "2017-03-28", "comment": "Add copyright to source and license"}, + {"name": "Ludee", "email": "", "date": "2017-05-30", "comment": "Update metadata to version 1.3"}, + {"name": "Ludee", "email": "", "date": "2017-06-26", "comment": "Update metadata version 1.3: move reference_date into temporal and remove some array"} ], + "resources": [ + {"name": "model_draft.test_table", + "format": "PostgreSQL", + "fields": [ + {"name": "id", "description": "Unique identifier", "unit": ""}, + {"name": "year", "description": "Reference year", "unit": ""}, + {"name": "value", "description": "Example value", "unit": "MW"}, + {"name": "geom", "description": "Geometry", "unit": ""} ] } ], + "metadata_version": "1.3"}'; + +-- select description +SELECT obj_description('model_draft.test_table' ::regclass) ::json; + +-- select description +SELECT obj_description('model_draft.test_table' ::regclass) ::json; + + +-- metadata template +COMMENT ON TABLE model_draft.test_table IS '{ + "title": "", + "description": "", + "language": [ "eng", "ger" ], + "spatial": + {"location": "", + "extent": "", + "resolution": ""}, + "temporal": + {"reference_date": "", + "start": "", + "end": "", + "resolution": ""}, + "sources": [ + {"name": "", "description": "", "url": "", "license": "", "copyright": ""}, + {"name": "", "description": "", "url": "", "license": "", "copyright": ""} ], + "license": + {"id": "", + "name": "", + "version": "", + "url": "", + "instruction": "", + "copyright": ""}, + "contributors": [ + {"name": "", "email": "", "date": "", "comment": ""}, + {"name": "", "email": "", "date": "", "comment": ""} ], + "resources": [ + {"name": "", + "format": "PostgreSQL", + "fields": [ + {"name": "id", "description": "Unique identifier", "unit": ""}, + {"name": "year", "description": "Reference year", "unit": ""}, + {"name": "value", "description": "Example value", "unit": ""}, + {"name": "geom", "description": "Geometry", "unit": ""} ] } ], + "metadata_version": "1.3"}'; + +-- select description +SELECT obj_description('model_draft.test_table' ::regclass) ::json; diff --git a/requirements.txt/requirements.txt b/requirements.txt/requirements.txt new file mode 100644 index 00000000..070cb9c5 --- /dev/null +++ b/requirements.txt/requirements.txt @@ -0,0 +1,6 @@ +# Packages for read the docs +# Using single requirments for docs, see: +# https://github.com/rtfd/readthedocs.org/issues/2070 +sphinx_rtd_theme +numpy == 1.12.1 +numpydoc == 0.7.0 diff --git a/requirements.txt/script_header_example.py b/requirements.txt/script_header_example.py new file mode 100644 index 00000000..701ac618 --- /dev/null +++ b/requirements.txt/script_header_example.py @@ -0,0 +1,16 @@ +#!/usr/bin/env python3 +"""This is the docstring for the example.py module. Modules names should +have short, all-lowercase names. The module name may have underscores if +this improves readability. +Every module should have a docstring at the very top of the file. The +module's docstring may extend over multiple lines. If your docstring does +extend over multiple lines, the closing three quotation marks must be on +a line by itself, preferably preceded by a blank line. +""" + +__copyright__ = "Copyright ego developer group" +__license__ = "GPLv3" + +import some_package + +my code.... diff --git a/requirements.txt/script_header_example.sql b/requirements.txt/script_header_example.sql new file mode 100644 index 00000000..1a2bbf04 --- /dev/null +++ b/requirements.txt/script_header_example.sql @@ -0,0 +1,11 @@ +/* +A description of the module (short but could be more than one line). +Modules names should have short, all-lowercase names. +The module name may have underscores if this improves readability. + +__copyright__ = "Copyright Reiner Lemoine Institut gGmbH" +__license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" +__url__ = "https://github.com/openego/data_processing/blob/master/LICENSE" +__author__ = "Ludee" +__contains__ = "url" +*/ \ No newline at end of file From 0f79f927524d9fa031c4342c666063f5c0575ed3 Mon Sep 17 00:00:00 2001 From: wolfbunke Date: Thu, 8 Feb 2018 09:11:03 +0100 Subject: [PATCH 018/104] delete worng folder --- .../QGIS/ego_paper_map_consumption.qpt | 906 ----- .../QGIS/ego_paper_map_generation.qpt | 846 ----- .../QGIS/ego_paper_map_hvmvsubst_mvgd.qpt | 150 - .../SQL Documentation/calc_ego_grid.sql | 54 - .../calc_ego_grid_district.sql | 475 --- .../calc_ego_hv_powerflow.sql | 791 ----- .../SQL Documentation/calc_ego_loads.sql | 1338 ------- .../calc_ego_mv_powerflow.sql | 557 --- .../SQL Documentation/calc_ego_osmtgmod.sql | 584 ---- .../SQL Documentation/calc_ego_re.sql | 1108 ------ .../SQL Documentation/calc_ego_substation.sql | 567 --- .../SQL Documentation/calc_gridcells_znes.sql | 79 - .../SQL Documentation/calc_renpass_gis.sql | 486 --- .../SQL Documentation/geo_ego_jg.sql | 2261 ------------ .../orig_consumption_e_mobility.sql | 1100 ------ .../SQL Documentation/orig_destatis.sql | 1182 ------- .../SQL Documentation/orig_ego.sql | 1677 --------- .../orig_ego_consumption.sql | 199 -- .../SQL Documentation/orig_geo_copernicus.sql | 208 -- .../SQL Documentation/orig_geo_dlm250.sql | 2834 --------------- .../SQL Documentation/orig_geo_ego_jg.sql | 3094 ----------------- .../SQL Documentation/orig_geo_geonames.sql | 66 - .../SQL Documentation/orig_geo_gn250.sql | 282 -- .../SQL Documentation/orig_geo_opsd.sql | 502 --- .../orig_geo_powerplants.sql | 810 ----- .../SQL Documentation/orig_ioer.sql | 43 - .../SQL Documentation/orig_osm.sql | 1206 ------- .../SQL Documentation/orig_scenario_data.sql | 45 - .../res_ego_hv_powerflow.sql | 355 -- requirements.txt/doc/Makefile | 192 - requirements.txt/doc/conf.py | 372 -- requirements.txt/doc/index.rst | 27 - requirements.txt/doc/make.bat | 263 -- requirements.txt/doc/renewables.rst | 50 - requirements.txt/doc/scenario.rst | 80 - requirements.txt/ego_scenario_log_example.sql | 12 - .../metadata_on_table_example.sql | 118 - requirements.txt/requirements.txt | 6 - requirements.txt/script_header_example.py | 16 - requirements.txt/script_header_example.sql | 11 - 40 files changed, 24952 deletions(-) delete mode 100644 requirements.txt/QGIS/ego_paper_map_consumption.qpt delete mode 100644 requirements.txt/QGIS/ego_paper_map_generation.qpt delete mode 100644 requirements.txt/QGIS/ego_paper_map_hvmvsubst_mvgd.qpt delete mode 100644 requirements.txt/SQL Documentation/calc_ego_grid.sql delete mode 100644 requirements.txt/SQL Documentation/calc_ego_grid_district.sql delete mode 100644 requirements.txt/SQL Documentation/calc_ego_hv_powerflow.sql delete mode 100644 requirements.txt/SQL Documentation/calc_ego_loads.sql delete mode 100644 requirements.txt/SQL Documentation/calc_ego_mv_powerflow.sql delete mode 100644 requirements.txt/SQL Documentation/calc_ego_osmtgmod.sql delete mode 100644 requirements.txt/SQL Documentation/calc_ego_re.sql delete mode 100644 requirements.txt/SQL Documentation/calc_ego_substation.sql delete mode 100644 requirements.txt/SQL Documentation/calc_gridcells_znes.sql delete mode 100644 requirements.txt/SQL Documentation/calc_renpass_gis.sql delete mode 100644 requirements.txt/SQL Documentation/geo_ego_jg.sql delete mode 100644 requirements.txt/SQL Documentation/orig_consumption_e_mobility.sql delete mode 100644 requirements.txt/SQL Documentation/orig_destatis.sql delete mode 100644 requirements.txt/SQL Documentation/orig_ego.sql delete mode 100644 requirements.txt/SQL Documentation/orig_ego_consumption.sql delete mode 100644 requirements.txt/SQL Documentation/orig_geo_copernicus.sql delete mode 100644 requirements.txt/SQL Documentation/orig_geo_dlm250.sql delete mode 100644 requirements.txt/SQL Documentation/orig_geo_ego_jg.sql delete mode 100644 requirements.txt/SQL Documentation/orig_geo_geonames.sql delete mode 100644 requirements.txt/SQL Documentation/orig_geo_gn250.sql delete mode 100644 requirements.txt/SQL Documentation/orig_geo_opsd.sql delete mode 100644 requirements.txt/SQL Documentation/orig_geo_powerplants.sql delete mode 100644 requirements.txt/SQL Documentation/orig_ioer.sql delete mode 100644 requirements.txt/SQL Documentation/orig_osm.sql delete mode 100644 requirements.txt/SQL Documentation/orig_scenario_data.sql delete mode 100644 requirements.txt/SQL Documentation/res_ego_hv_powerflow.sql delete mode 100644 requirements.txt/doc/Makefile delete mode 100644 requirements.txt/doc/conf.py delete mode 100644 requirements.txt/doc/index.rst delete mode 100644 requirements.txt/doc/make.bat delete mode 100644 requirements.txt/doc/renewables.rst delete mode 100644 requirements.txt/doc/scenario.rst delete mode 100644 requirements.txt/ego_scenario_log_example.sql delete mode 100644 requirements.txt/metadata_on_table_example.sql delete mode 100644 requirements.txt/requirements.txt delete mode 100644 requirements.txt/script_header_example.py delete mode 100644 requirements.txt/script_header_example.sql diff --git a/requirements.txt/QGIS/ego_paper_map_consumption.qpt b/requirements.txt/QGIS/ego_paper_map_consumption.qpt deleted file mode 100644 index 143e99b0..00000000 --- a/requirements.txt/QGIS/ego_paper_map_consumption.qpt +++ /dev/null @@ -1,906 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ego_data_processing_results_mvgd20170125234108774 - bkg_vg250_1_sta_union_mview20170125161746337 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 0 - 0 - 0 - OBJID - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ../loads_per_grid_districts - - - - - - - - - - - - - - ../loads_per_grid_districts - - 0 - ../loads_per_grid_districts - - 0 - generatedlayout - - - - - - 2 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 0 - 0 - 0 - subst_id - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - . - - - - - - - - - - - - - - - - - - - - - - - - - - - - - . - - 0 - . - - 0 - generatedlayout - - - - - - 2 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/requirements.txt/QGIS/ego_paper_map_generation.qpt b/requirements.txt/QGIS/ego_paper_map_generation.qpt deleted file mode 100644 index 346a4ffb..00000000 --- a/requirements.txt/QGIS/ego_paper_map_generation.qpt +++ /dev/null @@ -1,846 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ego_supply_rea_per_mvgd20170126005907941 - bkg_vg250_1_sta_union_mview20170125161746337 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 0 - 0 - 0 - OBJID - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ../loads_per_grid_districts - - - - - - - - - - - - - - ../loads_per_grid_districts - - 0 - ../loads_per_grid_districts - - 0 - generatedlayout - - - - - - 2 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 0 - 0 - 0 - subst_id - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - . - - - - - - - - - - - - - - - - - . - - 0 - . - - 0 - generatedlayout - - - - - - 2 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/requirements.txt/QGIS/ego_paper_map_hvmvsubst_mvgd.qpt b/requirements.txt/QGIS/ego_paper_map_hvmvsubst_mvgd.qpt deleted file mode 100644 index 2c434cf7..00000000 --- a/requirements.txt/QGIS/ego_paper_map_hvmvsubst_mvgd.qpt +++ /dev/null @@ -1,150 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/requirements.txt/SQL Documentation/calc_ego_grid.sql b/requirements.txt/SQL Documentation/calc_ego_grid.sql deleted file mode 100644 index 4bc22f1c..00000000 --- a/requirements.txt/SQL Documentation/calc_ego_grid.sql +++ /dev/null @@ -1,54 +0,0 @@ - --- - -COMMENT ON TABLE calc_ego_grid.ego_deu_mv_grids_vis IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "grid_id", - "Description": "...", - "Unit": "" }, - {"Name": "geom_mv_station", - "Description": "...", - "Unit": "" }, - {"Name": "geom_mv_cable_dists", - "Description": "...", - "Unit": "" }, - {"Name": "geom_mv_circuit_breakers", - "Description": "...", - "Unit": "" }, - {"Name": "geom_lv_load_area_centres", - "Description": "...", - "Unit": "" }, - {"Name": "geom_lv_station", - "Description": "...", - "Unit": "" }, - {"Name": "geom_mv_generators", - "Description": "...", - "Unit": "" }, - {"Name": "geom_mv_lines", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "04.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('calc_ego_grid.ego_deu_mv_grids_vis'::regclass)::json; - --- diff --git a/requirements.txt/SQL Documentation/calc_ego_grid_district.sql b/requirements.txt/SQL Documentation/calc_ego_grid_district.sql deleted file mode 100644 index 6e65c9bd..00000000 --- a/requirements.txt/SQL Documentation/calc_ego_grid_district.sql +++ /dev/null @@ -1,475 +0,0 @@ - --- - -COMMENT ON TABLE calc_ego_grid_district.grid_district IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "subst_id", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }, - {"Name": "subst_sum", - "Description": "...", - "Unit": "" }, - {"Name": "area_ha", - "Description": "...", - "Unit": "" }, - {"Name": "geom_type", - "Description": "...", - "Unit": "..." }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "04.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('*calc_ego_grid_district.grid_district'::regclass)::json; - --- - - --- - -COMMENT ON TABLE calc_ego_grid_district.grid_district_collect IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "subst_id", - "Description": "...", - "Unit": "" }, - {"Name": "subst_name", - "Description": "...", - "Unit": "" }, - {"Name": "ags_0", - "Description": "...", - "Unit": "" }, - {"Name": "geom_sub", - "Description": "...", - "Unit": "" }, - {"Name": "subst_sum", - "Description": "...", - "Unit": "" }, - {"Name": "subst_type", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "..." }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "04.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('calc_ego_grid_district.grid_district_collect'::regclass)::json; - --- - - --- - -COMMENT ON TABLE calc_ego_grid_district.grid_district_dump IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "subst_id", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }, - {"Name": "subst_sum", - "Description": "...", - "Unit": "" }, - {"Name": "subst_cnt", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "04.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('calc_ego_grid_district.grid_district_dump'::regclass)::json; - --- - - --- - -COMMENT ON TABLE calc_ego_grid_district.grid_district_ta IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "subst_id", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }, - {"Name": "subst_sum", - "Description": "...", - "Unit": "" }, - {"Name": "area_ha", - "Description": "...", - "Unit": "" }, - {"Name": "geom_type", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "04.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('calc_ego_grid_district.grid_district_ta'::regclass)::json; - --- - --- - -COMMENT ON TABLE calc_ego_grid_district.grid_district_type_1 IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "subst_id", - "Description": "...", - "Unit": "" }, - {"Name": "subst_name", - "Description": "...", - "Unit": "" }, - {"Name": "ags_0", - "Description": "...", - "Unit": "" }, - {"Name": "geom_sub", - "Description": "...", - "Unit": "" }, - {"Name": "subst_sum", - "Description": "...", - "Unit": "" }, - {"Name": "subst_type", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "04.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('calc_ego_grid_district.grid_district_type_1'::regclass)::json; - --- - --- - -COMMENT ON TABLE calc_ego_grid_district.grid_district_type_2 IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "subst_id", - "Description": "...", - "Unit": "" }, - {"Name": "subst_name", - "Description": "...", - "Unit": "" }, - {"Name": "ags_0", - "Description": "...", - "Unit": "" }, - {"Name": "geom_sub", - "Description": "...", - "Unit": "" }, - {"Name": "subst_sum", - "Description": "...", - "Unit": "" }, - {"Name": "subst_type", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "04.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('calc_ego_grid_district.grid_district_type_2'::regclass)::json; - --- - --- - -COMMENT ON TABLE calc_ego_grid_district.grid_district_type_3 IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "subst_id", - "Description": "...", - "Unit": "" }, - {"Name": "subst_name", - "Description": "...", - "Unit": "" }, - {"Name": "ags_0", - "Description": "...", - "Unit": "" }, - {"Name": "geom_sub", - "Description": "...", - "Unit": "" }, - {"Name": "subst_sum", - "Description": "...", - "Unit": "" }, - {"Name": "subst_type", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "04.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('calc_ego_grid_district.grid_district_type_3'::regclass)::json; - --- - --- - -COMMENT ON TABLE calc_ego_grid_district.municipalities_subst IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "gid", - "Description": "...", - "Unit": "" }, - {"Name": "gen", - "Description": "...", - "Unit": "" }, - {"Name": "bez", - "Description": "...", - "Unit": "" }, - {"Name": "bem", - "Description": "...", - "Unit": "" }, - {"Name": "nuts", - "Description": "...", - "Unit": "" }, - {"Name": "rs_0", - "Description": "...", - "Unit": "" }, - {"Name": "ags_0", - "Description": "...", - "Unit": "" }, - {"Name": "area_ha", - "Description": "...", - "Unit": "" }, - {"Name": "count_ring", - "Description": "...", - "Unit": "" }, - {"Name": "path", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }, - {"Name": "is_ring", - "Description": "...", - "Unit": "" }, - {"Name": "subst_sum", - "Description": "...", - "Unit": "" }, - {"Name": "subst_type", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "04.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('calc_ego_grid_district.municipalities_subst'::regclass)::json; - --- - - --- - -COMMENT ON TABLE calc_ego_grid_district.municipalities_subst_3_nn IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "mun_id", - "Description": "...", - "Unit": "" }, - {"Name": "mun_ags_0", - "Description": "...", - "Unit": "" }, - {"Name": "subst_ags_0", - "Description": "...", - "Unit": "" }, - {"Name": "subst_id", - "Description": "...", - "Unit": "" }, - {"Name": "subst_type", - "Description": "...", - "Unit": "" }, - {"Name": "geom_sub", - "Description": "...", - "Unit": "" }, - {"Name": "distance", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "04.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('calc_ego_grid_district.municipalities_subst_3_nn'::regclass)::json; - --- diff --git a/requirements.txt/SQL Documentation/calc_ego_hv_powerflow.sql b/requirements.txt/SQL Documentation/calc_ego_hv_powerflow.sql deleted file mode 100644 index 01046aa4..00000000 --- a/requirements.txt/SQL Documentation/calc_ego_hv_powerflow.sql +++ /dev/null @@ -1,791 +0,0 @@ - --- - -COMMENT ON TABLE calc_ego_hv_powerflow.bus IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "scn_name", - "Description": "...", - "Unit": "" }, - {"Name": "bus_id", - "Description": "...", - "Unit": "" }, - {"Name": "v_nom", - "Description": "...", - "Unit": "" }, - {"Name": "current_type", - "Description": "...", - "Unit": "" }, - {"Name": "area_ha", - "Description": "...", - "Unit": "" }, - {"Name": "area_ha", - "Description": "...", - "Unit": "" }, - {"Name": "geom_type", - "Description": "...", - "Unit": "..." }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "04.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('calc_ego_hv_powerflow.bus'::regclass)::json; - --- - - --- - -COMMENT ON TABLE calc_ego_hv_powerflow.bus_v_mag_set IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "scn_name", - "Description": "...", - "Unit": "" }, - {"Name": "bus_id", - "Description": "...", - "Unit": "" }, - {"Name": "temp_id", - "Description": "...", - "Unit": "" }, - {"Name": "v_mag_pu_set", - "Description": "...", - "Unit": "..." }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "04.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('calc_ego_hv_powerflow.bus_v_mag_set'::regclass)::json; - --- - - --- - -COMMENT ON TABLE calc_ego_hv_powerflow.generator IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "scn_name", - "Description": "...", - "Unit": "" }, - {"Name": "generator_id", - "Description": "...", - "Unit": "" }, - {"Name": "bus", - "Description": "...", - "Unit": "" }, - {"Name": "dispatch", - "Description": "...", - "Unit": "" }, - {"Name": "control", - "Description": "...", - "Unit": "" }, - {"Name": "p_nom", - "Description": "...", - "Unit": "" }, - {"Name": "p_nom_extendable", - "Description": "...", - "Unit": "" }, - {"Name": "p_nom_min", - "Description": "...", - "Unit": "" }, - {"Name": "p_nom_max", - "Description": "...", - "Unit": "" }, - {"Name": "p_min_pu_fixed", - "Description": "...", - "Unit": "" }, - {"Name": "p_max_pu_fixed", - "Description": "...", - "Unit": "" }, - {"Name": "sign", - "Description": "...", - "Unit": "" }, - {"Name": "source", - "Description": "...", - "Unit": "" }, - {"Name": "marginal_cost", - "Description": "...", - "Unit": "" }, - {"Name": "capital_cost", - "Description": "...", - "Unit": "" }, - {"Name": "efficiency", - "Description": "...", - "Unit": "..." }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "04.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('calc_ego_hv_powerflow.generator'::regclass)::json; - --- - - --- - -COMMENT ON TABLE calc_ego_hv_powerflow.generator_pq_set IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "scn_name", - "Description": "...", - "Unit": "" }, - {"Name": "generator_id", - "Description": "...", - "Unit": "" }, - {"Name": "temp_id", - "Description": "...", - "Unit": "" }, - {"Name": "p_set", - "Description": "...", - "Unit": "" }, - {"Name": "q_set", - "Description": "...", - "Unit": "" }, - {"Name": "p_min_pu", - "Description": "...", - "Unit": "" }, - {"Name": "p_max_pu", - "Description": "...", - "Unit": "..." }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "04.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('calc_ego_hv_powerflow.generator_pq_set'::regclass)::json; - - --- - -COMMENT ON TABLE calc_ego_hv_powerflow.line IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "scn_name", - "Description": "...", - "Unit": "" }, - {"Name": "line_id", - "Description": "...", - "Unit": "" }, - {"Name": "bus0", - "Description": "...", - "Unit": "" }, - {"Name": "bus1", - "Description": "...", - "Unit": "" }, - {"Name": "x", - "Description": "...", - "Unit": "" }, - {"Name": "r", - "Description": "...", - "Unit": "" }, - {"Name": "g", - "Description": "...", - "Unit": "" }, - {"Name": "b", - "Description": "...", - "Unit": "" }, - {"Name": "s_nom", - "Description": "...", - "Unit": "" }, - {"Name": "s_nom_extendable", - "Description": "...", - "Unit": "" }, - {"Name": "s_nom_min", - "Description": "...", - "Unit": "" }, - {"Name": "s_nom_max", - "Description": "...", - "Unit": "" }, - {"Name": "capital_cost", - "Description": "...", - "Unit": "" }, - {"Name": "length", - "Description": "...", - "Unit": "" }, - {"Name": "cables", - "Description": "...", - "Unit": "" }, - {"Name": "frequency", - "Description": "...", - "Unit": "" }, - {"Name": "terrain_factor", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }, - {"Name": "topo", - "Description": "...", - "Unit": "..." }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "04.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('calc_ego_hv_powerflow.line'::regclass)::json; - - --- - -COMMENT ON TABLE calc_ego_hv_powerflow.load IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "scn_name", - "Description": "...", - "Unit": "" }, - {"Name": "load_id", - "Description": "...", - "Unit": "" }, - {"Name": "bus", - "Description": "...", - "Unit": "" }, - {"Name": "sign", - "Description": "...", - "Unit": "" }, - {"Name": "e_annual", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "04.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('calc_ego_hv_powerflow.load'::regclass)::json; - - - --- - -COMMENT ON TABLE calc_ego_hv_powerflow.load_pq_set IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "scn_name", - "Description": "...", - "Unit": "" }, - {"Name": "load_id", - "Description": "...", - "Unit": "" }, - {"Name": "temp_id", - "Description": "...", - "Unit": "" }, - {"Name": "p_set", - "Description": "...", - "Unit": "" }, - {"Name": "q_set", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "04.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('calc_ego_hv_powerflow.load_pq_set'::regclass)::json; - - - --- - -COMMENT ON TABLE calc_ego_hv_powerflow.scenario_settings IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "scn_name", - "Description": "...", - "Unit": "" }, - {"Name": "bus", - "Description": "...", - "Unit": "" }, - {"Name": "bus_v_mag_set", - "Description": "...", - "Unit": "" }, - {"Name": "generator", - "Description": "...", - "Unit": "" }, - {"Name": "generator_pq_set", - "Description": "...", - "Unit": "" }, - {"Name": "line", - "Description": "...", - "Unit": "" }, - {"Name": "load", - "Description": "...", - "Unit": "" }, - {"Name": "load_pq_set", - "Description": "...", - "Unit": "" }, - {"Name": "storage", - "Description": "...", - "Unit": "" }, - {"Name": "storage_pq_set", - "Description": "...", - "Unit": "" }, - {"Name": "temp_resolution", - "Description": "...", - "Unit": "" }, - {"Name": "transformer", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "04.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('calc_ego_hv_powerflow.scenario_settings'::regclass)::json; - - - --- - -COMMENT ON TABLE calc_ego_hv_powerflow.source IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "source_id", - "Description": "...", - "Unit": "" }, - {"Name": "name", - "Description": "...", - "Unit": "" }, - {"Name": "co2_emissions", - "Description": "...", - "Unit": "" }, - {"Name": "commentary", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "04.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('calc_ego_hv_powerflow.source'::regclass)::json; - - - - --- - -COMMENT ON TABLE calc_ego_hv_powerflow.storage IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "scn_name", - "Description": "...", - "Unit": "" }, - {"Name": "storage_id", - "Description": "...", - "Unit": "" }, - {"Name": "bus", - "Description": "...", - "Unit": "" }, - {"Name": "dispatch", - "Description": "...", - "Unit": "" }, - {"Name": "control", - "Description": "...", - "Unit": "" }, - {"Name": "p_nom", - "Description": "...", - "Unit": "" }, - {"Name": "p_nom_extendable", - "Description": "...", - "Unit": "" }, - {"Name": "p_nom_min", - "Description": "...", - "Unit": "" }, - {"Name": "p_nom_max", - "Description": "...", - "Unit": "" }, - {"Name": "p_min_pu_fixed", - "Description": "...", - "Unit": "" }, - {"Name": "p_max_pu_fixed", - "Description": "...", - "Unit": "" }, - {"Name": "sign", - "Description": "...", - "Unit": "" }, - {"Name": "source", - "Description": "...", - "Unit": "" }, - {"Name": "marginal_cost", - "Description": "...", - "Unit": "" }, - {"Name": "capital_cost", - "Description": "...", - "Unit": "" }, - {"Name": "efficiency", - "Description": "...", - "Unit": "" }, - {"Name": "soc_initial", - "Description": "...", - "Unit": "" }, - {"Name": "soc_cyclic", - "Description": "...", - "Unit": "" }, - {"Name": "max_hours", - "Description": "...", - "Unit": "" }, - {"Name": "efficiency_store", - "Description": "...", - "Unit": "" }, - {"Name": "efficiency_dispatch", - "Description": "...", - "Unit": "" }, - {"Name": "standing_loss", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "04.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('calc_ego_hv_powerflow.storage'::regclass)::json; - - - - --- - -COMMENT ON TABLE calc_ego_hv_powerflow.storage_pq_set IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "scn_name", - "Description": "...", - "Unit": "" }, - {"Name": "storage_id", - "Description": "...", - "Unit": "" }, - {"Name": "temp_id", - "Description": "...", - "Unit": "" }, - {"Name": "p_set", - "Description": "...", - "Unit": "" }, - {"Name": "q_set", - "Description": "...", - "Unit": "" }, - {"Name": "p_min_pu", - "Description": "...", - "Unit": "" }, - {"Name": "p_max_pu", - "Description": "...", - "Unit": "" }, - {"Name": "soc_set", - "Description": "...", - "Unit": "" }, - {"Name": "inflow", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "04.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('calc_ego_hv_powerflow.storage_pq_set'::regclass)::json; - - --- - -COMMENT ON TABLE calc_ego_hv_powerflow.temp_resolution IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "temp_id", - "Description": "...", - "Unit": "" }, - {"Name": "timesteps", - "Description": "...", - "Unit": "" }, - {"Name": "resolution", - "Description": "...", - "Unit": "" }, - {"Name": "start_time", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "04.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('calc_ego_hv_powerflow.temp_resolution'::regclass)::json; - - - --- - -COMMENT ON TABLE calc_ego_hv_powerflow.transformer IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "scn_name", - "Description": "...", - "Unit": "" }, - {"Name": "trafo_id", - "Description": "...", - "Unit": "" }, - {"Name": "bus0", - "Description": "...", - "Unit": "" }, - {"Name": "bus1", - "Description": "...", - "Unit": "" }, - {"Name": "x", - "Description": "...", - "Unit": "" }, - {"Name": "r", - "Description": "...", - "Unit": "" }, - {"Name": "g", - "Description": "...", - "Unit": "" }, - {"Name": "b", - "Description": "...", - "Unit": "" }, - {"Name": "s_nom", - "Description": "...", - "Unit": "" }, - {"Name": "s_nom_extendable", - "Description": "...", - "Unit": "" }, - {"Name": "s_nom_min", - "Description": "...", - "Unit": "" }, - {"Name": "s_nom_max", - "Description": "...", - "Unit": "" }, - {"Name": "tap_ratio", - "Description": "...", - "Unit": "" }, - {"Name": "phase_shift", - "Description": "...", - "Unit": "" }, - {"Name": "capital_cost", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }, - {"Name": "topo", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "04.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('calc_ego_hv_powerflow.transformer'::regclass)::json; - - - - - - - - diff --git a/requirements.txt/SQL Documentation/calc_ego_loads.sql b/requirements.txt/SQL Documentation/calc_ego_loads.sql deleted file mode 100644 index b049ee25..00000000 --- a/requirements.txt/SQL Documentation/calc_ego_loads.sql +++ /dev/null @@ -1,1338 +0,0 @@ - --- - -COMMENT ON TABLE calc_ego_loads.calc_ego_peak_load IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "retail", - "Description": "...", - "Unit": "" }, - {"Name": "residential", - "Description": "...", - "Unit": "" }, - {"Name": "industrial", - "Description": "...", - "Unit": "" }, - {"Name": "agricultural", - "Description": "...", - "Unit": "..." }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "04.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('calc_ego_loads.calc_ego_peak_load'::regclass)::json; - --- - - --- - -COMMENT ON TABLE calc_ego_loads.calc_ego_peak_load_ta IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "retail", - "Description": "...", - "Unit": "" }, - {"Name": "residential", - "Description": "...", - "Unit": "" }, - {"Name": "industrial", - "Description": "...", - "Unit": "" }, - {"Name": "agricultural", - "Description": "...", - "Unit": "..." }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "04.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('calc_ego_loads.calc_ego_peak_load_ta'::regclass)::json; - --- - - --- - -COMMENT ON TABLE calc_ego_loads.calc_ego_peak_load_test IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "g0", - "Description": "...", - "Unit": "" }, - {"Name": "h0", - "Description": "...", - "Unit": "" }, - {"Name": "l0", - "Description": "...", - "Unit": "" }, - {"Name": "i0", - "Description": "...", - "Unit": "..." }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "04.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('calc_ego_loads.calc_ego_peak_load_test'::regclass)::json; - --- - - --- - -COMMENT ON TABLE calc_ego_loads.ego_demand_per_transition_point IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "p_set", - "Description": "...", - "Unit": "" }, - {"Name": "q_set", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "04.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('calc_ego_loads.ego_demand_per_transition_point'::regclass)::json; - --- - - --- - -COMMENT ON TABLE calc_ego_loads.ego_deu_consumption IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "subst_id", - "Description": "...", - "Unit": "" }, - {"Name": "sector_area_residential", - "Description": "...", - "Unit": "" }, - {"Name": "sector_area_retail", - "Description": "...", - "Unit": "" }, - {"Name": "sector_area_industrial", - "Description": "...", - "Unit": "" }, - {"Name": "sector_area_agricultural", - "Description": "...", - "Unit": "" }, - {"Name": "sector_consumption_residential", - "Description": "...", - "Unit": "" }, - {"Name": "sector_consumption_retail", - "Description": "...", - "Unit": "" }, - {"Name": "sector_consumption_industrial", - "Description": "...", - "Unit": "" }, - {"Name": "sector_consumption_agricultural", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "04.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('calc_ego_loads.ego_deu_consumption'::regclass)::json; - --- - - --- - -COMMENT ON TABLE calc_ego_loads.ego_deu_consumption_area IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "subst_id", - "Description": "...", - "Unit": "" }, - {"Name": "sector_area_residential", - "Description": "...", - "Unit": "" }, - {"Name": "sector_area_retail", - "Description": "...", - "Unit": "" }, - {"Name": "sector_area_industrial", - "Description": "...", - "Unit": "" }, - {"Name": "sector_area_agricultural", - "Description": "...", - "Unit": "" }, - {"Name": "sector_consumption_residential", - "Description": "...", - "Unit": "" }, - {"Name": "sector_consumption_retail", - "Description": "...", - "Unit": "" }, - {"Name": "sector_consumption_industrial", - "Description": "...", - "Unit": "" }, - {"Name": "sector_consumption_agricultural", - "Description": "...", - "Unit": "" }, - {"Name": "consumption_sum", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "04.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('calc_ego_loads.ego_deu_consumption_area'::regclass)::json; - --- - - --- - -COMMENT ON TABLE calc_ego_loads.ego_deu_consumption_area_ta IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "subst_id", - "Description": "...", - "Unit": "" }, - {"Name": "sector_area_residential", - "Description": "...", - "Unit": "" }, - {"Name": "sector_area_retail", - "Description": "...", - "Unit": "" }, - {"Name": "sector_area_industrial", - "Description": "...", - "Unit": "" }, - {"Name": "sector_area_agricultural", - "Description": "...", - "Unit": "" }, - {"Name": "sector_consumption_residential", - "Description": "...", - "Unit": "" }, - {"Name": "sector_consumption_retail", - "Description": "...", - "Unit": "" }, - {"Name": "sector_consumption_industrial", - "Description": "...", - "Unit": "" }, - {"Name": "sector_consumption_agricultural", - "Description": "...", - "Unit": "" }, - {"Name": "consumption_sum", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "04.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('calc_ego_loads.ego_deu_consumption_area_ta'::regclass)::json; - --- - --- - -COMMENT ON TABLE calc_ego_loads.ego_deu_consumption_ta IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "subst_id", - "Description": "...", - "Unit": "" }, - {"Name": "sector_area_residential", - "Description": "...", - "Unit": "" }, - {"Name": "sector_area_retail", - "Description": "...", - "Unit": "" }, - {"Name": "sector_area_industrial", - "Description": "...", - "Unit": "" }, - {"Name": "sector_area_agricultural", - "Description": "...", - "Unit": "" }, - {"Name": "sector_consumption_residential", - "Description": "...", - "Unit": "" }, - {"Name": "sector_consumption_retail", - "Description": "...", - "Unit": "" }, - {"Name": "sector_consumption_industrial", - "Description": "...", - "Unit": "" }, - {"Name": "sector_consumption_agricultural", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "04.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('calc_ego_loads.ego_deu_consumption_ta'::regclass)::json; - --- - --- - -COMMENT ON TABLE calc_ego_loads.ego_deu_load_area IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }, - {"Name": "zensus_sum", - "Description": "...", - "Unit": "" }, - {"Name": "zensus_count", - "Description": "...", - "Unit": "" }, - {"Name": "zensus_density", - "Description": "...", - "Unit": "" }, - {"Name": "ioer_sum", - "Description": "...", - "Unit": "" }, - {"Name": "ioer_count", - "Description": "...", - "Unit": "" }, - {"Name": "ioer_density", - "Description": "...", - "Unit": "" }, - {"Name": "area_ha", - "Description": "...", - "Unit": "" }, - {"Name": "sector_area_residential", - "Description": "...", - "Unit": "" }, - {"Name": "sector_area_retail", - "Description": "...", - "Unit": "" }, - {"Name": "sector_area_industrial", - "Description": "...", - "Unit": "" }, - {"Name": "sector_area_agricultural", - "Description": "...", - "Unit": "" }, - {"Name": "sector_area_sum", - "Description": "...", - "Unit": "" }, - {"Name": "sector_share_residential", - "Description": "...", - "Unit": "" }, - {"Name": "sector_share_retail", - "Description": "...", - "Unit": "" }, - {"Name": "sector_share_industrial", - "Description": "...", - "Unit": "" }, - {"Name": "sector_share_agricultural", - "Description": "...", - "Unit": "" }, - {"Name": "sector_share_sum", - "Description": "...", - "Unit": "" }, - {"Name": "sector_count_residential", - "Description": "...", - "Unit": "" }, - {"Name": "sector_count_retail", - "Description": "...", - "Unit": "" }, - {"Name": "sector_count_industrial", - "Description": "...", - "Unit": "" }, - {"Name": "sector_count_agricultural", - "Description": "...", - "Unit": "" }, - {"Name": "sector_consumption_residential", - "Description": "...", - "Unit": "" }, - {"Name": "sector_consumption_retail", - "Description": "...", - "Unit": "" }, - {"Name": "sector_consumption_industrial", - "Description": "...", - "Unit": "" }, - {"Name": "sector_consumption_agricultural", - "Description": "...", - "Unit": "" }, - {"Name": "sector_consumption_sum", - "Description": "...", - "Unit": "" }, - {"Name": "subst_id", - "Description": "...", - "Unit": "" }, - {"Name": "nuts", - "Description": "...", - "Unit": "" }, - {"Name": "rs_0", - "Description": "...", - "Unit": "" }, - {"Name": "ags_0", - "Description": "...", - "Unit": "" }, - {"Name": "geom_centroid", - "Description": "...", - "Unit": "" }, - {"Name": "geom_surfacepoint", - "Description": "...", - "Unit": "" }, - {"Name": "geom_centre", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "04.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('calc_ego_loads.ego_deu_load_area'::regclass)::json; - --- - - --- - -COMMENT ON TABLE calc_ego_loads.ego_deu_load_area_little_ta IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }, - {"Name": "zensus_sum", - "Description": "...", - "Unit": "" }, - {"Name": "zensus_count", - "Description": "...", - "Unit": "" }, - {"Name": "zensus_density", - "Description": "...", - "Unit": "" }, - {"Name": "ioer_sum", - "Description": "...", - "Unit": "" }, - {"Name": "ioer_count", - "Description": "...", - "Unit": "" }, - {"Name": "ioer_density", - "Description": "...", - "Unit": "" }, - {"Name": "area_ha", - "Description": "...", - "Unit": "" }, - {"Name": "sector_area_residential", - "Description": "...", - "Unit": "" }, - {"Name": "sector_area_retail", - "Description": "...", - "Unit": "" }, - {"Name": "sector_area_industrial", - "Description": "...", - "Unit": "" }, - {"Name": "sector_area_agricultural", - "Description": "...", - "Unit": "" }, - {"Name": "sector_share_residential", - "Description": "...", - "Unit": "" }, - {"Name": "sector_share_retail", - "Description": "...", - "Unit": "" }, - {"Name": "sector_share_industrial", - "Description": "...", - "Unit": "" }, - {"Name": "sector_share_agricultural", - "Description": "...", - "Unit": "" }, - {"Name": "sector_count_residential", - "Description": "...", - "Unit": "" }, - {"Name": "sector_count_retail", - "Description": "...", - "Unit": "" }, - {"Name": "sector_count_industrial", - "Description": "...", - "Unit": "" }, - {"Name": "sector_count_agricultural", - "Description": "...", - "Unit": "" }, - {"Name": "subst_id", - "Description": "...", - "Unit": "" }, - {"Name": "nuts", - "Description": "...", - "Unit": "" }, - {"Name": "rs_0", - "Description": "...", - "Unit": "" }, - {"Name": "ags_0", - "Description": "...", - "Unit": "" }, - {"Name": "geom_centroid", - "Description": "...", - "Unit": "" }, - {"Name": "geom_surfacepoint", - "Description": "...", - "Unit": "" }, - {"Name": "geom_centre", - "Description": "...", - "Unit": "" } - {"Name": "sector_area_sum", - "Description": "...", - "Unit": "" }, - {"Name": "sector_share_sum", - "Description": "...", - "Unit": "" }, - {"Name": "sector_consumption_residential", - "Description": "...", - "Unit": "" }, - {"Name": "sector_consumption_retail", - "Description": "...", - "Unit": "" }, - {"Name": "sector_consumption_industrial", - "Description": "...", - "Unit": "" }, - {"Name": "sector_consumption_agricultural", - "Description": "...", - "Unit": "" }, - {"Name": "sector_consumption_sum", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "04.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('calc_ego_loads.ego_deu_load_area_little_ta'::regclass)::json; - --- - - --- - -COMMENT ON TABLE calc_ego_loads.ego_deu_load_area_ta IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }, - {"Name": "zensus_sum", - "Description": "...", - "Unit": "" }, - {"Name": "zensus_count", - "Description": "...", - "Unit": "" }, - {"Name": "zensus_density", - "Description": "...", - "Unit": "" }, - {"Name": "ioer_sum", - "Description": "...", - "Unit": "" }, - {"Name": "ioer_count", - "Description": "...", - "Unit": "" }, - {"Name": "ioer_density", - "Description": "...", - "Unit": "" }, - {"Name": "area_ha", - "Description": "...", - "Unit": "" }, - {"Name": "sector_area_residential", - "Description": "...", - "Unit": "" }, - {"Name": "sector_area_retail", - "Description": "...", - "Unit": "" }, - {"Name": "sector_area_industrial", - "Description": "...", - "Unit": "" }, - {"Name": "sector_area_agricultural", - "Description": "...", - "Unit": "" }, - {"Name": "sector_area_sum", - "Description": "...", - "Unit": "" }, - {"Name": "sector_share_residential", - "Description": "...", - "Unit": "" }, - {"Name": "sector_share_retail", - "Description": "...", - "Unit": "" }, - {"Name": "sector_share_industrial", - "Description": "...", - "Unit": "" }, - {"Name": "sector_share_agricultural", - "Description": "...", - "Unit": "" }, - {"Name": "sector_share_sum", - "Description": "...", - "Unit": "" }, - {"Name": "sector_count_residential", - "Description": "...", - "Unit": "" }, - {"Name": "sector_count_retail", - "Description": "...", - "Unit": "" }, - {"Name": "sector_count_industrial", - "Description": "...", - "Unit": "" }, - {"Name": "sector_count_agricultural", - "Description": "...", - "Unit": "" }, - {"Name": "sector_consumption_residential", - "Description": "...", - "Unit": "" }, - {"Name": "sector_consumption_retail", - "Description": "...", - "Unit": "" }, - {"Name": "sector_consumption_industrial", - "Description": "...", - "Unit": "" }, - {"Name": "sector_consumption_agricultural", - "Description": "...", - "Unit": "" }, - {"Name": "sector_consumption_sum", - "Description": "...", - "Unit": "" }, - {"Name": "subst_id", - "Description": "...", - "Unit": "" }, - {"Name": "nuts", - "Description": "...", - "Unit": "" }, - {"Name": "rs_0", - "Description": "...", - "Unit": "" }, - {"Name": "ags_0", - "Description": "...", - "Unit": "" }, - {"Name": "geom_centroid", - "Description": "...", - "Unit": "" }, - {"Name": "geom_surfacepoint", - "Description": "...", - "Unit": "" }, - {"Name": "geom_centre", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "04.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('calc_ego_loads.ego_deu_load_area_ta'::regclass)::json; - --- - - --- - -COMMENT ON TABLE calc_ego_loads.ego_deu_loads_collect IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "04.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('calc_ego_loads.ego_deu_loads_collect'::regclass)::json; - --- - - --- - -COMMENT ON TABLE calc_ego_loads.ego_deu_loads_melted IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "04.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('calc_ego_loads.ego_deu_loads_melted'::regclass)::json; - --- - - - --- - -COMMENT ON TABLE calc_ego_loads.landuse_industry IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "gid", - "Description": "...", - "Unit": "" }, - {"Name": "osm_id", - "Description": "...", - "Unit": "" }, - {"Name": "name", - "Description": "...", - "Unit": "" }, - {"Name": "sector", - "Description": "...", - "Unit": "" }, - {"Name": "area_ha", - "Description": "...", - "Unit": "" }, - {"Name": "tags", - "Description": "...", - "Unit": "" }, - {"Name": "vg250", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }, - {"Name": "geom_centroid", - "Description": "...", - "Unit": "" }, - {"Name": "geom_surfacepoint", - "Description": "...", - "Unit": "" }, - {"Name": "geom_centre", - "Description": "...", - "Unit": "" }, - {"Name": "nuts", - "Description": "...", - "Unit": "" }, - {"Name": "consumption", - "Description": "...", - "Unit": "" }, - {"Name": "peak_load", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "04.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('calc_ego_loads.landuse_industry'::regclass)::json; - --- - - --- - -COMMENT ON TABLE calc_ego_loads.large_scale_consumer IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "polygon_id", - "Description": "...", - "Unit": "" }, - {"Name": "area_ha", - "Description": "...", - "Unit": "" }, - {"Name": "powerplant_id", - "Description": "...", - "Unit": "" }, - {"Name": "voltage_level", - "Description": "...", - "Unit": "" }, - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "consumption", - "Description": "...", - "Unit": "" }, - {"Name": "peak_load", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }, - {"Name": "geom_centre", - "Description": "...", - "Unit": "" }, - {"Name": "subst_id", - "Description": "...", - "Unit": "" }, - {"Name": "otg_id", - "Description": "...", - "Unit": "" }, - {"Name": "un_id", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "04.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('calc_ego_loads.large_scale_consumer'::regclass)::json; - --- - - --- - -COMMENT ON TABLE calc_ego_loads.load_per_griddistrict IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "subst_id", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }, - {"Name": "consumption", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "04.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('calc_ego_loads.load_per_griddistrict'::regclass)::json; - --- - - --- - -COMMENT ON TABLE calc_ego_loads.loads_total IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "un_id", - "Description": "...", - "Unit": "" }, - {"Name": "ssc_id", - "Description": "...", - "Unit": "" }, - {"Name": "lsc_id", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "04.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('calc_ego_loads.loads_total'::regclass)::json; - --- - - - --- - -COMMENT ON TABLE calc_ego_loads.pf_load_single IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "scn_name", - "Description": "...", - "Unit": "" }, - {"Name": "load_id", - "Description": "...", - "Unit": "" }, - {"Name": "bus", - "Description": "...", - "Unit": "" }, - {"Name": "sign", - "Description": "...", - "Unit": "" }, - {"Name": "e_annual", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "04.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('calc_ego_loads.pf_load_single'::regclass)::json; - --- - --- - -COMMENT ON TABLE calc_ego_loads.urban_sector_per_grid_district_1_residential IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "04.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('calc_ego_loads.urban_sector_per_grid_district_1_residential'::regclass)::json; - --- - - --- - -COMMENT ON TABLE calc_ego_loads.urban_sector_per_grid_district_2_retail IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "04.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('calc_ego_loads.urban_sector_per_grid_district_2_retail'::regclass)::json; - --- - - --- - -COMMENT ON TABLE calc_ego_loads.urban_sector_per_grid_district_3_industrial IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "04.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('calc_ego_loads.urban_sector_per_grid_district_3_industrial'::regclass)::json; - --- - - - --- - -COMMENT ON TABLE calc_ego_loads.urban_sector_per_grid_district_4_agricultural IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "04.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('calc_ego_loads.urban_sector_per_grid_district_4_agricultural'::regclass)::json; - --- - - - diff --git a/requirements.txt/SQL Documentation/calc_ego_mv_powerflow.sql b/requirements.txt/SQL Documentation/calc_ego_mv_powerflow.sql deleted file mode 100644 index 680b5492..00000000 --- a/requirements.txt/SQL Documentation/calc_ego_mv_powerflow.sql +++ /dev/null @@ -1,557 +0,0 @@ - --- - -COMMENT ON TABLE calc_ego_mv_powerflow.bus IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "bus_id", - "Description": "...", - "Unit": "" }, - {"Name": "v_nom", - "Description": "...", - "Unit": "" }, - {"Name": "v_mag_pu_min", - "Description": "...", - "Unit": "" }, - {"Name": "v_mag_pu_max", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }, - {"Name": "scn_name", - "Description": "...", - "Unit": "" }, - {"Name": "grid_id", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "04.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('calc_ego_mv_powerflow.bus'::regclass)::json; - --- - - --- - -COMMENT ON TABLE calc_ego_mv_powerflow.bus_v_mag_set IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "scn_name", - "Description": "...", - "Unit": "" }, - {"Name": "bus_id", - "Description": "...", - "Unit": "" }, - {"Name": "temp_id", - "Description": "...", - "Unit": "" }, - {"Name": "v_mag_pu_set", - "Description": "...", - "Unit": "" }, - {"Name": "grid_id", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "04.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('calc_ego_mv_powerflow.bus_v_mag_set'::regclass)::json; - --- - - --- - -COMMENT ON TABLE calc_ego_mv_powerflow.generator IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "scn_name", - "Description": "...", - "Unit": "" }, - {"Name": "generator_id", - "Description": "...", - "Unit": "" }, - {"Name": "bus", - "Description": "...", - "Unit": "" }, - {"Name": "control", - "Description": "...", - "Unit": "" }, - {"Name": "p_nom", - "Description": "...", - "Unit": "" }, - {"Name": "p_min_pu_fixed", - "Description": "...", - "Unit": "" }, - {"Name": "p_max_pu_fixed", - "Description": "...", - "Unit": "" }, - {"Name": "sign", - "Description": "...", - "Unit": "" }, - {"Name": "grid_id", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "04.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('calc_ego_mv_powerflow.generator'::regclass)::json; - --- - - --- - -COMMENT ON TABLE calc_ego_mv_powerflow.generator_pq_set IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "scn_name", - "Description": "...", - "Unit": "" }, - {"Name": "generator_id", - "Description": "...", - "Unit": "" } - {"Name": "temp_id", - "Description": "...", - "Unit": "" } - {"Name": "p_set", - "Description": "...", - "Unit": "" } - {"Name": "q_set", - "Description": "...", - "Unit": "" } - {"Name": "p_min_pu", - "Description": "...", - "Unit": "" } - {"Name": "p_max_pu", - "Description": "...", - "Unit": "" } - {"Name": "grid_id", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "04.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('calc_ego_mv_powerflow.generator_pq_set'::regclass)::json; - --- - - --- - -COMMENT ON TABLE calc_ego_mv_powerflow.line IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "scn_name", - "Description": "...", - "Unit": "" }, - {"Name": "line_id", - "Description": "...", - "Unit": "" }, - {"Name": "bus0", - "Description": "...", - "Unit": "" }, - {"Name": "bus1", - "Description": "...", - "Unit": "" }, - {"Name": "x", - "Description": "...", - "Unit": "" }, - {"Name": "r", - "Description": "...", - "Unit": "" }, - {"Name": "g", - "Description": "...", - "Unit": "" }, - {"Name": "b", - "Description": "...", - "Unit": "" }, - {"Name": "s_nom", - "Description": "...", - "Unit": "" }, - {"Name": "lenght", - "Description": "...", - "Unit": "" }, - {"Name": "cables", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }, - {"Name": "grid_id", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "04.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('calc_ego_mv_powerflow.line'::regclass)::json; - --- - - --- - -COMMENT ON TABLE calc_ego_mv_powerflow.load IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "scn_name", - "Description": "...", - "Unit": "" }, - {"Name": "load_id", - "Description": "...", - "Unit": "" }, - {"Name": "bus", - "Description": "...", - "Unit": "" }, - {"Name": "sign", - "Description": "...", - "Unit": "" }, - {"Name": "grid_id", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "04.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('calc_ego_mv_powerflow.load'::regclass)::json; - --- - - --- - -COMMENT ON TABLE calc_ego_mv_powerflow.load_pq_set IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "scn_name", - "Description": "...", - "Unit": "" }, - {"Name": "load_id", - "Description": "...", - "Unit": "" }, - {"Name": "temp_id", - "Description": "...", - "Unit": "" }, - {"Name": "p_set", - "Description": "...", - "Unit": "" }, - {"Name": "q_set", - "Description": "...", - "Unit": "" }, - {"Name": "grid_id", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "04.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('calc_ego_mv_powerflow.load_pq_set'::regclass)::json; - --- - - --- - -COMMENT ON TABLE calc_ego_mv_powerflow.scenario_settings IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "scn_name", - "Description": "...", - "Unit": "" }, - {"Name": "bus", - "Description": "...", - "Unit": "" }, - {"Name": "bus_v_mag_set", - "Description": "...", - "Unit": "" }, - {"Name": "generator", - "Description": "...", - "Unit": "" }, - {"Name": "generator_pq_set", - "Description": "...", - "Unit": "" }, - {"Name": "line", - "Description": "...", - "Unit": "" }, - {"Name": "load", - "Description": "...", - "Unit": "" }, - {"Name": "load_pq_set", - "Description": "...", - "Unit": "" }, - {"Name": "storage", - "Description": "...", - "Unit": "" }, - {"Name": "storage_pq_set", - "Description": "...", - "Unit": "" }, - {"Name": "temp_resolution", - "Description": "...", - "Unit": "" }, - {"Name": "transformer", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "04.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('calc_ego_mv_powerflow.scenario_settings'::regclass)::json; - --- - - --- - -COMMENT ON TABLE calc_ego_mv_powerflow.temp_resolution IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "temp_id", - "Description": "...", - "Unit": "" }, - {"Name": "timesteps", - "Description": "...", - "Unit": "" }, - {"Name": "resolution", - "Description": "...", - "Unit": "" }, - {"Name": "start_time", - "Description": "...", - "Unit": "" }, - {"Name": "grid_id", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "04.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('calc_ego_mv_powerflow.temp_resolution'::regclass)::json; - --- - - --- - -COMMENT ON TABLE calc_ego_mv_powerflow.transformer IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "scn_name", - "Description": "...", - "Unit": "" }, - {"Name": "trafo_id", - "Description": "...", - "Unit": "" }, - {"Name": "bus0", - "Description": "...", - "Unit": "" }, - {"Name": "bus1", - "Description": "...", - "Unit": "" }, - {"Name": "x", - "Description": "...", - "Unit": "" }, - {"Name": "r", - "Description": "...", - "Unit": "" }, - {"Name": "g", - "Description": "...", - "Unit": "" }, - {"Name": "b", - "Description": "...", - "Unit": "" }, - {"Name": "s_nom", - "Description": "...", - "Unit": "" }, - {"Name": "tap_ratio", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }, - {"Name": "grid_id", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "04.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('calc_ego_mv_powerflow.transformer'::regclass)::json; - --- - - diff --git a/requirements.txt/SQL Documentation/calc_ego_osmtgmod.sql b/requirements.txt/SQL Documentation/calc_ego_osmtgmod.sql deleted file mode 100644 index 7f90bdb0..00000000 --- a/requirements.txt/SQL Documentation/calc_ego_osmtgmod.sql +++ /dev/null @@ -1,584 +0,0 @@ - --- - -COMMENT ON TABLE calc_ego_osmtgmod.branch_data IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "result_id", - "Description": "...", - "Unit": "" }, - {"Name": "view_id", - "Description": "...", - "Unit": "" }, - {"Name": "branch_id", - "Description": "...", - "Unit": "" }, - {"Name": "f_bus", - "Description": "...", - "Unit": "" }, - {"Name": "t_bus", - "Description": "...", - "Unit": "" }, - {"Name": "br_r", - "Description": "...", - "Unit": "" }, - {"Name": "br_x", - "Description": "...", - "Unit": "" }, - {"Name": "br_b", - "Description": "...", - "Unit": "" }, - {"Name": "rate_a", - "Description": "...", - "Unit": "" }, - {"Name": "rate_b", - "Description": "...", - "Unit": "" }, - {"Name": "rate_c", - "Description": "...", - "Unit": "" }, - {"Name": "tap", - "Description": "...", - "Unit": "" }, - {"Name": "shift", - "Description": "...", - "Unit": "" }, - {"Name": "br_status", - "Description": "...", - "Unit": "" }, - {"Name": "link_type", - "Description": "...", - "Unit": "" }, - {"Name": "branch_voltage", - "Description": "...", - "Unit": "" }, - {"Name": "cables", - "Description": "...", - "Unit": "" }, - {"Name": "frequency", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }, - {"Name": "topo", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "04.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('calc_ego_osmtgmod.branch_data'::regclass)::json; - --- - - --- - -COMMENT ON TABLE calc_ego_osmtgmod.bus_data IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "result_id", - "Description": "...", - "Unit": "" }, - {"Name": "view_id", - "Description": "...", - "Unit": "" }, - {"Name": "bus_i", - "Description": "...", - "Unit": "" }, - {"Name": "bus_type", - "Description": "...", - "Unit": "" }, - {"Name": "pd", - "Description": "...", - "Unit": "" }, - {"Name": "qd", - "Description": "...", - "Unit": "" }, - {"Name": "gs", - "Description": "...", - "Unit": "" }, - {"Name": "bs", - "Description": "...", - "Unit": "" }, - {"Name": "bus_area", - "Description": "...", - "Unit": "" }, - {"Name": "vm", - "Description": "...", - "Unit": "" }, - {"Name": "va", - "Description": "...", - "Unit": "" }, - {"Name": "base_kv", - "Description": "...", - "Unit": "" }, - {"Name": "zone", - "Description": "...", - "Unit": "" }, - {"Name": "vmax", - "Description": "...", - "Unit": "" }, - {"Name": "vmin", - "Description": "...", - "Unit": "" }, - {"Name": "osm_substation_id", - "Description": "...", - "Unit": "" }, - {"Name": "cntr_id", - "Description": "...", - "Unit": "" }, - {"Name": "frequency", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }, - {"Name": "osm_name", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "04.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('calc_ego_osmtgmod.bus_data'::regclass)::json; - --- - - --- - -COMMENT ON TABLE calc_ego_osmtgmod.dcline_data IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "result_id", - "Description": "...", - "Unit": "" }, - {"Name": "view_id", - "Description": "...", - "Unit": "" }, - {"Name": "dcline_id", - "Description": "...", - "Unit": "" }, - {"Name": "f_bus", - "Description": "...", - "Unit": "" }, - {"Name": "t_bus", - "Description": "...", - "Unit": "" }, - {"Name": "br_status", - "Description": "...", - "Unit": "" }, - {"Name": "pf", - "Description": "...", - "Unit": "" }, - {"Name": "pt", - "Description": "...", - "Unit": "" }, - {"Name": "qf", - "Description": "...", - "Unit": "" }, - {"Name": "qt", - "Description": "...", - "Unit": "" }, - {"Name": "vf", - "Description": "...", - "Unit": "" }, - {"Name": "vt", - "Description": "...", - "Unit": "" }, - {"Name": "pmin", - "Description": "...", - "Unit": "" }, - {"Name": "pmax", - "Description": "...", - "Unit": "" }, - {"Name": "qminf", - "Description": "...", - "Unit": "" }, - {"Name": "qmaxf", - "Description": "...", - "Unit": "" }, - {"Name": "qmint", - "Description": "...", - "Unit": "" }, - {"Name": "qmaxt", - "Description": "...", - "Unit": "" }, - {"Name": "loss0", - "Description": "...", - "Unit": "" }, - {"Name": "loss1", - "Description": "...", - "Unit": "" }, - {"Name": "link_type", - "Description": "...", - "Unit": "" }, - {"Name": "branch_voltage", - "Description": "...", - "Unit": "" }, - {"Name": "cables", - "Description": "...", - "Unit": "" }, - {"Name": "frequency", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }, - {"Name": "topo", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "04.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('calc_ego_osmtgmod.dcline_data'::regclass)::json; - --- - --- - -COMMENT ON TABLE calc_ego_osmtgmod.nuts3_subst IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "result_id", - "Description": "...", - "Unit": "" }, - {"Name": "nuts_id", - "Description": "...", - "Unit": "" }, - {"Name": "substation_id", - "Description": "...", - "Unit": "" }, - {"Name": "percentage", - "Description": "...", - "Unit": "" }, - {"Name": "distance", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "04.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('calc_ego_osmtgmod.nuts3_subst'::regclass)::json; - --- - - --- - -COMMENT ON TABLE calc_ego_osmtgmod.plz_subst IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "result_id", - "Description": "...", - "Unit": "" }, - {"Name": "plz", - "Description": "...", - "Unit": "" }, - {"Name": "substation_id", - "Description": "...", - "Unit": "" }, - {"Name": "percentage", - "Description": "...", - "Unit": "" }, - {"Name": "distance", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "04.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('calc_ego_osmtgmod.plz_subst'::regclass)::json; - --- - - --- - -COMMENT ON TABLE calc_ego_osmtgmod.problem_log IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "result_id", - "Description": "...", - "Unit": "" }, - {"Name": "view_id", - "Description": "...", - "Unit": "" }, - {"Name": "object_type", - "Description": "...", - "Unit": "" }, - {"Name": "line_id", - "Description": "...", - "Unit": "" }, - {"Name": "relation_id", - "Description": "...", - "Unit": "" }, - {"Name": "way", - "Description": "...", - "Unit": "" }, - {"Name": "voltage", - "Description": "...", - "Unit": "" }, - {"Name": "cables", - "Description": "...", - "Unit": "" }, - {"Name": "wires", - "Description": "...", - "Unit": "" }, - {"Name": "frequency", - "Description": "...", - "Unit": "" }, - {"Name": "problem", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "04.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('calc_ego_osmtgmod.problem_log'::regclass)::json; - --- - --- - -COMMENT ON TABLE calc_ego_osmtgmod.results_metadata IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "osm_date", - "Description": "...", - "Unit": "" }, - {"Name": "abstraction_date", - "Description": "...", - "Unit": "" }, - {"Name": "applied_plans", - "Description": "...", - "Unit": "" }, - {"Name": "applied_year", - "Description": "...", - "Unit": "" }, - {"Name": "user_comment", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "04.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('calc_ego_osmtgmod.results_metadata'::regclass)::json; - --- - - --- - -COMMENT ON TABLE calc_ego_osmtgmod.substations IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "result_id", - "Description": "...", - "Unit": "" }, - {"Name": "view_id", - "Description": "...", - "Unit": "" }, - {"Name": "osm_id", - "Description": "...", - "Unit": "" }, - {"Name": "voltage", - "Description": "...", - "Unit": "" }, - {"Name": "s_long", - "Description": "...", - "Unit": "" }, - {"Name": "name", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }, - {"Name": "center_geom", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "04.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('calc_ego_osmtgmod.substations'::regclass)::json; - --- - - --- - -COMMENT ON TABLE calc_ego_osmtgmod.view_results IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "result_id", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "04.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('calc_ego_osmtgmod.view_results'::regclass)::json; - --- - - diff --git a/requirements.txt/SQL Documentation/calc_ego_re.sql b/requirements.txt/SQL Documentation/calc_ego_re.sql deleted file mode 100644 index 47c75cee..00000000 --- a/requirements.txt/SQL Documentation/calc_ego_re.sql +++ /dev/null @@ -1,1108 +0,0 @@ - --- - -COMMENT ON TABLE calc_ego_re.dea_germany_per_generation_type_and_voltage_level IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "generation_type", - "Description": "...", - "Unit": "" }, - {"Name": "generation_subtype", - "Description": "...", - "Unit": "" }, - {"Name": "voltage_level", - "Description": "...", - "Unit": "" }, - {"Name": "capacity", - "Description": "...", - "Unit": "" }, - {"Name": "count", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "04.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('calc_ego_re.dea_germany_per_generation_type_and_voltage_level'::regclass)::json; - --- - - --- - -COMMENT ON TABLE calc_ego_re.dea_germany_per_grid_district IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "subst_id", - "Description": "...", - "Unit": "" }, - {"Name": "lv_dea_cnt", - "Description": "...", - "Unit": "" }, - {"Name": "lv_dea_capacity", - "Description": "...", - "Unit": "" }, - {"Name": "mv_dea_cnt", - "Description": "...", - "Unit": "" }, - {"Name": "mv_dea_capacity", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "04.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('calc_ego_re.dea_germany_per_grid_district'::regclass)::json; - --- - - --- - -COMMENT ON TABLE calc_ego_re.dea_germany_per_load_area IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "subst_id", - "Description": "...", - "Unit": "" }, - {"Name": "lv_dea_cnt", - "Description": "...", - "Unit": "" }, - {"Name": "lv_dea_capacity", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "04.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('calc_ego_re.dea_germany_per_load_area'::regclass)::json; - --- - - --- - -COMMENT ON TABLE calc_ego_re.deu_grid_34m_la IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "subst_id", - "Description": "...", - "Unit": "" }, - {"Name": "area_type", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "04.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('calc_ego_re.deu_grid_34m_la'::regclass)::json; - --- - - --- - -COMMENT ON TABLE calc_ego_re.deu_grid_500m IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "subst_id", - "Description": "...", - "Unit": "" }, - {"Name": "area_type", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "04.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('calc_ego_re.deu_grid_500m'::regclass)::json; - --- - --- - -COMMENT ON TABLE calc_ego_re.deu_grid_50m_la IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "subst_id", - "Description": "...", - "Unit": "" }, - {"Name": "area_type", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "04.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('calc_ego_re.deu_grid_50m_la'::regclass)::json; - --- - --- - -COMMENT ON TABLE calc_ego_re.ego_deu_dea IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "sort", - "Description": "...", - "Unit": "" }, - {"Name": "electrical_capacity", - "Description": "...", - "Unit": "" }, - {"Name": "generator_type", - "Description": "...", - "Unit": "" }, - {"Name": "generator_subtype", - "Description": "...", - "Unit": "" }, - {"Name": "voltage_level", - "Description": "...", - "Unit": "" }, - {"Name": "voltage_type", - "Description": "...", - "Unit": "" }, - {"Name": "subst_id", - "Description": "...", - "Unit": "" }, - {"Name": "la_id", - "Description": "...", - "Unit": "" }, - {"Name": "geom_line", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }, - {"Name": "geom_new", - "Description": "...", - "Unit": "" }, - {"Name": "flag", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "04.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('calc_ego_re.ego_deu_dea'::regclass)::json; - --- - --- - -COMMENT ON TABLE calc_ego_re.egp_deu_dea_m2_windfarm IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "farm_id", - "Description": "...", - "Unit": "" }, - {"Name": "subst_id", - "Description": "...", - "Unit": "" }, - {"Name": "area_ha", - "Description": "...", - "Unit": "" }, - {"Name": "dea_cnt", - "Description": "...", - "Unit": "" }, - {"Name": "electrical_capacity_sum", - "Description": "...", - "Unit": "" }, - {"Name": "geom_new", - "Description": "...", - "Unit": "" }, - {"Name": "geom_line", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "04.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('calc_ego_re.egp_deu_dea_m2_windfarm'::regclass)::json; - --- - - --- - -COMMENT ON TABLE calc_ego_re.ego_deu_dea_out_nn IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "dea_id", - "Description": "...", - "Unit": "" }, - {"Name": "generator_type", - "Description": "...", - "Unit": "" }, - {"Name": "subst_id", - "Description": "...", - "Unit": "" }, - {"Name": "geom_sub", - "Description": "...", - "Unit": "" }, - {"Name": "distance", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "04.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('calc_ego_re.ego_deu_dea_out_nn'::regclass)::json; - --- - - --- - -COMMENT ON TABLE calc_ego_re.geo_pot_area IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "region_key", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "04.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('calc_ego_re.geo_pot_area'::regclass)::json; - --- - - --- - -COMMENT ON TABLE calc_ego_re.geo_pot_area_dump IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "04.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('calc_ego_re.geo_pot_area_dump'::regclass)::json; - --- - - --- - -COMMENT ON TABLE calc_ego_re.geo_pot_area_per_grid_district IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "subst_id", - "Description": "...", - "Unit": "" }, - {"Name": "area_ha", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "04.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('calc_ego_re.geo_pot_area_per_grid_district'::regclass)::json; - --- - - - --- - -COMMENT ON TABLE calc_ego_re.grid_in_pot_area IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "grid_id", - "Description": "...", - "Unit": "" }, - {"Name": "subst_id", - "Description": "...", - "Unit": "" }, - {"Name": "pot_id", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "04.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('calc_ego_re.grid_in_pot_area'::regclass)::json; - --- - - --- - -COMMENT ON TABLE calc_ego_re.m3_grid_wpa_temp IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "sorted", - "Description": "...", - "Unit": "" }, - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "subst_id", - "Description": "...", - "Unit": "" }, - {"Name": "area_type", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "04.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('calc_ego_re.m3_grid_wpa_temp'::regclass)::json; - --- - - --- - -COMMENT ON TABLE calc_ego_re.m4_dea_temp IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "sorted", - "Description": "...", - "Unit": "" }, - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "electrical_capacity", - "Description": "...", - "Unit": "" }, - {"Name": "generation_type", - "Description": "...", - "Unit": "" }, - {"Name": "generation_subtype", - "Description": "...", - "Unit": "" }, - {"Name": "voltage_level", - "Description": "...", - "Unit": "" }, - {"Name": "subst_id", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }, - {"Name": "flag", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "04.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('calc_ego_re.m4_dea_temp'::regclass)::json; - --- - - --- - -COMMENT ON TABLE calc_ego_re.m4_grid_wpa_temp IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "sorted", - "Description": "...", - "Unit": "" }, - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "subst_id", - "Description": "...", - "Unit": "" }, - {"Name": "area_type", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "04.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('calc_ego_re.m4_grid_wpa_temp'::regclass)::json; - --- - - --- - -COMMENT ON TABLE calc_ego_re.m4_int_temp IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "sorted", - "Description": "...", - "Unit": "" }, - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "geom_line", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "04.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('calc_ego_re.m4_int_temp'::regclass)::json; - --- - - --- - -COMMENT ON TABLE calc_ego_re.m5_dea_temp IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "sorted", - "Description": "...", - "Unit": "" }, - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "electrical_capacity", - "Description": "...", - "Unit": "" }, - {"Name": "generation_type", - "Description": "...", - "Unit": "" }, - {"Name": "generation_subtype", - "Description": "...", - "Unit": "" }, - {"Name": "voltage_level", - "Description": "...", - "Unit": "" }, - {"Name": "subst_id", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }, - {"Name": "flag", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "04.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('calc_ego_re.m5_dea_temp'::regclass)::json; - --- - - - --- - -COMMENT ON TABLE calc_ego_re.m5_grid_la_temp IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "sorted", - "Description": "...", - "Unit": "" }, - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "subst_id", - "Description": "...", - "Unit": "" }, - {"Name": "area_type", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "04.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('calc_ego_re.m5_grid_la_temp'::regclass)::json; - --- - - - --- - -COMMENT ON TABLE calc_ego_re.m5_int_temp IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "sorted", - "Description": "...", - "Unit": "" }, - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "geom_line", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "04.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('calc_ego_re.m5_int_temp'::regclass)::json; - --- - - --- - -COMMENT ON TABLE calc_ego_re.py_deu_grid_34m IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "geom", - "Description": "...", - "Unit": "" }, - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "geom_pnt", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "04.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('calc_ego_re.py_deu_grid_34m'::regclass)::json; - --- - - --- - -COMMENT ON TABLE calc_ego_re.py_deu_grid_500m IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "geom", - "Description": "...", - "Unit": "" }, - {"Name": "id", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "04.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('calc_ego_re.py_deu_grid_500m'::regclass)::json; - --- - - - --- - -COMMENT ON TABLE calc_ego_re.py_deu_grid_50m IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "geom", - "Description": "...", - "Unit": "" }, - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "geom_pnt", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "04.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('calc_ego_re.py_deu_grid_50m'::regclass)::json; - --- - - - --- - -COMMENT ON TABLE calc_ego_re.urban_sector_per_grid_district_4_agricultural IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "subst_id", - "Description": "...", - "Unit": "" }, - {"Name": "area_ha", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "04.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('calc_ego_re.urban_sector_per_grid_district_4_agricultural'::regclass)::json; - --- - - - diff --git a/requirements.txt/SQL Documentation/calc_ego_substation.sql b/requirements.txt/SQL Documentation/calc_ego_substation.sql deleted file mode 100644 index 1ecee766..00000000 --- a/requirements.txt/SQL Documentation/calc_ego_substation.sql +++ /dev/null @@ -1,567 +0,0 @@ - --- - -COMMENT ON TABLE calc_ego_substation.ego_deu_onts IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "geom", - "Description": "...", - "Unit": "" }, - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "is_dummy", - "Description": "...", - "Unit": "" }, - {"Name": "subst_id", - "Description": "...", - "Unit": "" }, - {"Name": "load_area_id", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "04.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('calc_ego_substation.ego_deu_onts'::regclass)::json; - --- - --- - -COMMENT ON TABLE calc_ego_substation.ego_deu_onts_little_ta IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }, - {"Name": "load_area_id", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "04.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('calc_ego_substation.ego_deu_onts_little_ta'::regclass)::json; - --- - --- - -COMMENT ON TABLE calc_ego_substation.ego_deu_onts_ta IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }, - {"Name": "load_area_id", - "Description": "...", - "Unit": "" }, - {"Name": "is_dummy", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "04.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('calc_ego_substation.ego_deu_onts_ta'::regclass)::json; - --- - - --- - -COMMENT ON TABLE calc_ego_substation.ego_deu_substations IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "lon", - "Description": "...", - "Unit": "" }, - {"Name": "lat", - "Description": "...", - "Unit": "" }, - {"Name": "point", - "Description": "...", - "Unit": "" }, - {"Name": "polygon", - "Description": "...", - "Unit": "" }, - {"Name": "voltage", - "Description": "...", - "Unit": "" }, - {"Name": "power_type", - "Description": "...", - "Unit": "" }, - {"Name": "substation", - "Description": "...", - "Unit": "" }, - {"Name": "osm_id", - "Description": "...", - "Unit": "" }, - {"Name": "osm_www", - "Description": "...", - "Unit": "" }, - {"Name": "frequency", - "Description": "...", - "Unit": "" }, - {"Name": "name", - "Description": "...", - "Unit": "" }, - {"Name": "ref", - "Description": "...", - "Unit": "" }, - {"Name": "operator", - "Description": "...", - "Unit": "" }, - {"Name": "dbahn", - "Description": "...", - "Unit": "" }, - {"Name": "status", - "Description": "...", - "Unit": "" }, - {"Name": "visible", - "Description": "...", - "Unit": "" }, - {"Name": "otg_id", - "Description": "...", - "Unit": "" }, - {"Name": "subst_id", - "Description": "...", - "Unit": "" }, - {"Name": "subst_name", - "Description": "...", - "Unit": "" }, - {"Name": "ags_0", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "04.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('calc_ego_substation.ego_deu_substations'::regclass)::json; - --- - - --- - -COMMENT ON TABLE calc_ego_substation.ego_deu_substations_ehv IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "lon", - "Description": "...", - "Unit": "" }, - {"Name": "lat", - "Description": "...", - "Unit": "" }, - {"Name": "point", - "Description": "...", - "Unit": "" }, - {"Name": "polygon", - "Description": "...", - "Unit": "" }, - {"Name": "voltage", - "Description": "...", - "Unit": "" }, - {"Name": "power_type", - "Description": "...", - "Unit": "" }, - {"Name": "substation", - "Description": "...", - "Unit": "" }, - {"Name": "osm_id", - "Description": "...", - "Unit": "" }, - {"Name": "osm_www", - "Description": "...", - "Unit": "" }, - {"Name": "frequency", - "Description": "...", - "Unit": "" }, - {"Name": "name", - "Description": "...", - "Unit": "" }, - {"Name": "ref", - "Description": "...", - "Unit": "" }, - {"Name": "operator", - "Description": "...", - "Unit": "" }, - {"Name": "dbahn", - "Description": "...", - "Unit": "" }, - {"Name": "status", - "Description": "...", - "Unit": "" }, - {"Name": "visible", - "Description": "...", - "Unit": "" }, - {"Name": "otg_id", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "04.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('calc_ego_substation.ego_deu_substations_ehv'::regclass)::json; - --- - - --- - -COMMENT ON TABLE calc_ego_substation.ego_deu_substations_voronoi IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "geom", - "Description": "...", - "Unit": "" }, - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "subst_id", - "Description": "...", - "Unit": "" }, - {"Name": "subst_sum", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "04.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('calc_ego_substation.ego_deu_substations_voronoi'::regclass)::json; - --- - - --- - -COMMENT ON TABLE calc_ego_substation.ego_deu_substations_voronoi_cut IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "subst_id", - "Description": "...", - "Unit": "" }, - {"Name": "mun_id", - "Description": "...", - "Unit": "" }, - {"Name": "voi_id", - "Description": "...", - "Unit": "" }, - {"Name": "ags_0", - "Description": "...", - "Unit": "" }, - {"Name": "subst_type", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }, - {"Name": "subst_sum", - "Description": "...", - "Unit": "" }, - {"Name": "geom_sub", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "04.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('calc_ego_substation.ego_deu_substations_voronoi_cut'::regclass)::json; - --- - - --- - -COMMENT ON TABLE calc_ego_substation.ego_deu_substation_voronoi_cut_nn_collect IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "subst_id", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "04.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('calc_ego_substation.ego_deu_substation_voronoi_cut_nn_collect'::regclass)::json; - --- - - --- - -COMMENT ON TABLE calc_ego_substation.ego_deu_voronoi_ehv IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "geom", - "Description": "...", - "Unit": "" }, - {"Name": "subst_id", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "04.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('calc_ego_substation.ego_deu_voronoi_ehv'::regclass)::json; - --- - - --- - -COMMENT ON TABLE calc_ego_substation.subs_dea IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "subst_id", - "Description": "...", - "Unit": "" }, - {"Name": "wea_osm", - "Description": "...", - "Unit": "" }, - {"Name": "wea_opsd", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "04.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('calc_ego_substation.subs_dea'::regclass)::json; - --- - - --- - -COMMENT ON TABLE calc_ego_substation.substation_dummy IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "subst_id", - "Description": "...", - "Unit": "" }, - {"Name": "subst_name", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "04.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('calc_ego_substation.substation_dummy'::regclass)::json; - --- - diff --git a/requirements.txt/SQL Documentation/calc_gridcells_znes.sql b/requirements.txt/SQL Documentation/calc_gridcells_znes.sql deleted file mode 100644 index f100a4fe..00000000 --- a/requirements.txt/SQL Documentation/calc_gridcells_znes.sql +++ /dev/null @@ -1,79 +0,0 @@ - --- - -COMMENT ON TABLE calc_gridcells_znes.substation_dummy IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "subst_id", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }, - {"Name": "lon", - "Description": "...", - "Unit": "" }, - {"Name": "lat", - "Description": "...", - "Unit": "" }, - {"Name": "voltage", - "Description": "...", - "Unit": "" }, - {"Name": "power_typ", - "Description": "...", - "Unit": "" }, - {"Name": "osm_id", - "Description": "...", - "Unit": "" }, - {"Name": "osm_typ", - "Description": "...", - "Unit": "" }, - {"Name": "osm_www", - "Description": "...", - "Unit": "" }, - {"Name": "frequency", - "Description": "...", - "Unit": "" }, - {"Name": "name", - "Description": "...", - "Unit": "" }, - {"Name": "ref", - "Description": "...", - "Unit": "" }, - {"Name": "substation", - "Description": "...", - "Unit": "" }, - {"Name": "operator", - "Description": "...", - "Unit": "" }, - {"Name": "status", - "Description": "...", - "Unit": "" }, - {"Name": "visible", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "04.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('calc_gridcells_znes.substation_dummy'::regclass)::json; - --- - diff --git a/requirements.txt/SQL Documentation/calc_renpass_gis.sql b/requirements.txt/SQL Documentation/calc_renpass_gis.sql deleted file mode 100644 index 0719c62b..00000000 --- a/requirements.txt/SQL Documentation/calc_renpass_gis.sql +++ /dev/null @@ -1,486 +0,0 @@ - --- - -COMMENT ON TABLE calc_renpass_gis.parameter_solar_feedin IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "gid", - "Description": "...", - "Unit": "" }, - {"Name": "year", - "Description": "...", - "Unit": "" }, - {"Name": "feedin", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "04.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('calc_renpass_gis.parameter_solar_feedin'::regclass)::json; - --- - - --- - -COMMENT ON TABLE calc_renpass_gis.parameter_wind_feedin IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "gid", - "Description": "...", - "Unit": "" }, - {"Name": "year", - "Description": "...", - "Unit": "" }, - {"Name": "feedin", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "04.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('calc_renpass_gis.parameter_wind_feedin'::regclass)::json; - --- - - --- - -COMMENT ON TABLE calc_renpass_gis.renpass_gis_linear_transformer IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "scenario_id", - "Description": "...", - "Unit": "" }, - {"Name": "label", - "Description": "...", - "Unit": "" }, - {"Name": "source", - "Description": "...", - "Unit": "" }, - {"Name": "target", - "Description": "...", - "Unit": "" }, - {"Name": "conversion_factors", - "Description": "...", - "Unit": "" }, - {"Name": "summed_min", - "Description": "...", - "Unit": "" }, - {"Name": "nominal_value", - "Description": "...", - "Unit": "" }, - {"Name": "actual_value", - "Description": "...", - "Unit": "" }, - {"Name": "fixed", - "Description": "...", - "Unit": "" }, - {"Name": "variable_costs", - "Description": "...", - "Unit": "" }, - {"Name": "fixed_costs", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "04.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('calc_renpass_gis.renpass_gis_linear_transformer'::regclass)::json; - --- - - --- - -COMMENT ON TABLE calc_renpass_gis.renpass_gis_result IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "scenario_id", - "Description": "...", - "Unit": "" }, - {"Name": "bus_label", - "Description": "...", - "Unit": "" }, - {"Name": "type", - "Description": "...", - "Unit": "" }, - {"Name": "obj_label", - "Description": "...", - "Unit": "" }, - {"Name": "datetime", - "Description": "...", - "Unit": "" }, - {"Name": "val", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "04.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('calc_renpass_gis.renpass_gis_result'::regclass)::json; - --- - - --- - -COMMENT ON TABLE calc_renpass_gis.renpass_gis_scenario IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "name", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "04.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('calc_renpass_gis.renpass_gis_scenario'::regclass)::json; - --- - - --- - -COMMENT ON TABLE calc_renpass_gis.renpass_gis_sink IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "scenario_id", - "Description": "...", - "Unit": "" }, - {"Name": "label", - "Description": "...", - "Unit": "" }, - {"Name": "source", - "Description": "...", - "Unit": "" }, - {"Name": "target", - "Description": "...", - "Unit": "" }, - {"Name": "nominal_value", - "Description": "...", - "Unit": "" }, - {"Name": "actual_value", - "Description": "...", - "Unit": "" }, - {"Name": "fixed", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "04.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('calc_renpass_gis.renpass_gis_sink'::regclass)::json; - --- - - --- - -COMMENT ON TABLE calc_renpass_gis.renpass_gis_source IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "scenario_id", - "Description": "...", - "Unit": "" }, - {"Name": "label", - "Description": "...", - "Unit": "" }, - {"Name": "source", - "Description": "...", - "Unit": "" }, - {"Name": "target", - "Description": "...", - "Unit": "" }, - {"Name": "nominal_value", - "Description": "...", - "Unit": "" }, - {"Name": "actual_value", - "Description": "...", - "Unit": "" }, - {"Name": "variable_costs", - "Description": "...", - "Unit": "" }, - {"Name": "fixed", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "04.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('calc_renpass_gis.renpass_gis_source'::regclass)::json; - --- - - --- - -COMMENT ON TABLE calc_renpass_gis.renpass_gis_storage IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "scenario_id", - "Description": "...", - "Unit": "" }, - {"Name": "label", - "Description": "...", - "Unit": "" }, - {"Name": "source", - "Description": "...", - "Unit": "" }, - {"Name": "target", - "Description": "...", - "Unit": "" }, - {"Name": "conversion_factors", - "Description": "...", - "Unit": "" }, - {"Name": "summed_min", - "Description": "...", - "Unit": "" }, - {"Name": "nominal_value", - "Description": "...", - "Unit": "" }, - {"Name": "min", - "Description": "...", - "Unit": "" }, - {"Name": "max", - "Description": "...", - "Unit": "" }, - {"Name": "actual_value", - "Description": "...", - "Unit": "" }, - {"Name": "fixed", - "Description": "...", - "Unit": "" }, - {"Name": "variable_costs", - "Description": "...", - "Unit": "" }, - {"Name": "fixed_costs", - "Description": "...", - "Unit": "" }, - {"Name": "nominal_capacity", - "Description": "...", - "Unit": "" }, - {"Name": "capacity_loss", - "Description": "...", - "Unit": "" }, - {"Name": "inflow_conversion_factor", - "Description": "...", - "Unit": "" }, - {"Name": "outflow_conversion_factor", - "Description": "...", - "Unit": "" }, - {"Name": "initial_capacity", - "Description": "...", - "Unit": "" }, - {"Name": "capacity_min", - "Description": "...", - "Unit": "" }, - {"Name": "capacity_max", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "04.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('calc_renpass_gis.renpass_gis_storage'::regclass)::json; - --- - - --- - -COMMENT ON TABLE calc_renpass_gis.voronoi_weatherpoint IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "geom", - "Description": "...", - "Unit": "" }, - {"Name": "id", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "04.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('calc_renpass_gis.voronoi_weatherpoint'::regclass)::json; - --- - diff --git a/requirements.txt/SQL Documentation/geo_ego_jg.sql b/requirements.txt/SQL Documentation/geo_ego_jg.sql deleted file mode 100644 index 659de5b6..00000000 --- a/requirements.txt/SQL Documentation/geo_ego_jg.sql +++ /dev/null @@ -1,2261 +0,0 @@ - --- - -COMMENT ON TABLE geo_ego_jg.MS_Trafos_Lines_Bies IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }, - {"Name": "name", - "Description": "...", - "Unit": "" }, - {"Name": "descriptio", - "Description": "...", - "Unit": "" }, - {"Name": "timestamp", - "Description": "...", - "Unit": "" }, - {"Name": "begin", - "Description": "...", - "Unit": "" }, - {"Name": "end", - "Description": "...", - "Unit": "" }, - {"Name": "altitudemo", - "Description": "...", - "Unit": "" }, - {"Name": "tessellate", - "Description": "...", - "Unit": "" }, - {"Name": "extrude", - "Description": "...", - "Unit": "" }, - {"Name": "visibility", - "Description": "...", - "Unit": "" }, - {"Name": "draworder", - "Description": "...", - "Unit": "" }, - {"Name": "icon", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('geo_ego_jg.MS_Trafos_Lines_Bies'::regclass)::json; - --- - - --- - -COMMENT ON TABLE geo_ego_jg.MS_Trafos_Lines_Breit IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }, - {"Name": "name", - "Description": "...", - "Unit": "" }, - {"Name": "descriptio", - "Description": "...", - "Unit": "" }, - {"Name": "timestamp", - "Description": "...", - "Unit": "" }, - {"Name": "begin", - "Description": "...", - "Unit": "" }, - {"Name": "end", - "Description": "...", - "Unit": "" }, - {"Name": "altitudemo", - "Description": "...", - "Unit": "" }, - {"Name": "tessellate", - "Description": "...", - "Unit": "" }, - {"Name": "extrude", - "Description": "...", - "Unit": "" }, - {"Name": "visibility", - "Description": "...", - "Unit": "" }, - {"Name": "draworder", - "Description": "...", - "Unit": "" }, - {"Name": "icon", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('geo_ego_jg.MS_Trafos_Lines_Breit'::regclass)::json; - --- - - --- - -COMMENT ON TABLE geo_ego_jg.MS_Trafos_Lines_Buch IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }, - {"Name": "name", - "Description": "...", - "Unit": "" }, - {"Name": "descriptio", - "Description": "...", - "Unit": "" }, - {"Name": "timestamp", - "Description": "...", - "Unit": "" }, - {"Name": "begin", - "Description": "...", - "Unit": "" }, - {"Name": "end", - "Description": "...", - "Unit": "" }, - {"Name": "altitudemo", - "Description": "...", - "Unit": "" }, - {"Name": "tessellate", - "Description": "...", - "Unit": "" }, - {"Name": "extrude", - "Description": "...", - "Unit": "" }, - {"Name": "visibility", - "Description": "...", - "Unit": "" }, - {"Name": "draworder", - "Description": "...", - "Unit": "" }, - {"Name": "icon", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('geo_ego_jg.MS_Trafos_Lines_Buch'::regclass)::json; - --- - - --- - -COMMENT ON TABLE geo_ego_jg.MS_Trafos_Lines_Burg IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }, - {"Name": "name", - "Description": "...", - "Unit": "" }, - {"Name": "descriptio", - "Description": "...", - "Unit": "" }, - {"Name": "timestamp", - "Description": "...", - "Unit": "" }, - {"Name": "begin", - "Description": "...", - "Unit": "" }, - {"Name": "end", - "Description": "...", - "Unit": "" }, - {"Name": "altitudemo", - "Description": "...", - "Unit": "" }, - {"Name": "tessellate", - "Description": "...", - "Unit": "" }, - {"Name": "extrude", - "Description": "...", - "Unit": "" }, - {"Name": "visibility", - "Description": "...", - "Unit": "" }, - {"Name": "draworder", - "Description": "...", - "Unit": "" }, - {"Name": "icon", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('geo_ego_jg.MS_Trafos_Lines_Burg'::regclass)::json; - --- - - --- - -COMMENT ON TABLE geo_ego_jg.MS_Trafos_Lines_Horg IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }, - {"Name": "name", - "Description": "...", - "Unit": "" }, - {"Name": "descriptio", - "Description": "...", - "Unit": "" }, - {"Name": "timestamp", - "Description": "...", - "Unit": "" }, - {"Name": "begin", - "Description": "...", - "Unit": "" }, - {"Name": "end", - "Description": "...", - "Unit": "" }, - {"Name": "altitudemo", - "Description": "...", - "Unit": "" }, - {"Name": "tessellate", - "Description": "...", - "Unit": "" }, - {"Name": "extrude", - "Description": "...", - "Unit": "" }, - {"Name": "visibility", - "Description": "...", - "Unit": "" }, - {"Name": "draworder", - "Description": "...", - "Unit": "" }, - {"Name": "icon", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('geo_ego_jg.MS_Trafos_Lines_Horg'::regclass)::json; - --- - --- - -COMMENT ON TABLE geo_ego_jg.MS_Trafos_Lines_Lager IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }, - {"Name": "name", - "Description": "...", - "Unit": "" }, - {"Name": "descriptio", - "Description": "...", - "Unit": "" }, - {"Name": "timestamp", - "Description": "...", - "Unit": "" }, - {"Name": "begin", - "Description": "...", - "Unit": "" }, - {"Name": "end", - "Description": "...", - "Unit": "" }, - {"Name": "altitudemo", - "Description": "...", - "Unit": "" }, - {"Name": "tessellate", - "Description": "...", - "Unit": "" }, - {"Name": "extrude", - "Description": "...", - "Unit": "" }, - {"Name": "visibility", - "Description": "...", - "Unit": "" }, - {"Name": "draworder", - "Description": "...", - "Unit": "" }, - {"Name": "icon", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('geo_ego_jg.MS_Trafos_Lines_Lager'::regclass)::json; - --- - - --- - -COMMENT ON TABLE geo_ego_jg.MS_Trafos_Lines_Leng IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }, - {"Name": "name", - "Description": "...", - "Unit": "" }, - {"Name": "descriptio", - "Description": "...", - "Unit": "" }, - {"Name": "timestamp", - "Description": "...", - "Unit": "" }, - {"Name": "begin", - "Description": "...", - "Unit": "" }, - {"Name": "end", - "Description": "...", - "Unit": "" }, - {"Name": "altitudemo", - "Description": "...", - "Unit": "" }, - {"Name": "tessellate", - "Description": "...", - "Unit": "" }, - {"Name": "extrude", - "Description": "...", - "Unit": "" }, - {"Name": "visibility", - "Description": "...", - "Unit": "" }, - {"Name": "draworder", - "Description": "...", - "Unit": "" }, - {"Name": "icon", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('geo_ego_jg.MS_Trafos_Lines_Leng'::regclass)::json; - --- - - --- - -COMMENT ON TABLE geo_ego_jg.MS_Trafos_Lines_Mem2 IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }, - {"Name": "name", - "Description": "...", - "Unit": "" }, - {"Name": "descriptio", - "Description": "...", - "Unit": "" }, - {"Name": "timestamp", - "Description": "...", - "Unit": "" }, - {"Name": "begin", - "Description": "...", - "Unit": "" }, - {"Name": "end", - "Description": "...", - "Unit": "" }, - {"Name": "altitudemo", - "Description": "...", - "Unit": "" }, - {"Name": "tessellate", - "Description": "...", - "Unit": "" }, - {"Name": "extrude", - "Description": "...", - "Unit": "" }, - {"Name": "visibility", - "Description": "...", - "Unit": "" }, - {"Name": "draworder", - "Description": "...", - "Unit": "" }, - {"Name": "icon", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('geo_ego_jg.MS_Trafos_Lines_Mem2'::regclass)::json; - --- - - --- - -COMMENT ON TABLE geo_ego_jg.MS_Trafos_Lines_Obau IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }, - {"Name": "name", - "Description": "...", - "Unit": "" }, - {"Name": "descriptio", - "Description": "...", - "Unit": "" }, - {"Name": "timestamp", - "Description": "...", - "Unit": "" }, - {"Name": "begin", - "Description": "...", - "Unit": "" }, - {"Name": "end", - "Description": "...", - "Unit": "" }, - {"Name": "altitudemo", - "Description": "...", - "Unit": "" }, - {"Name": "tessellate", - "Description": "...", - "Unit": "" }, - {"Name": "extrude", - "Description": "...", - "Unit": "" }, - {"Name": "visibility", - "Description": "...", - "Unit": "" }, - {"Name": "draworder", - "Description": "...", - "Unit": "" }, - {"Name": "icon", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('geo_ego_jg.MS_Trafos_Lines_Obau'::regclass)::json; - --- - - --- - -COMMENT ON TABLE geo_ego_jg.MS_Trafos_Lines_Otto IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }, - {"Name": "name", - "Description": "...", - "Unit": "" }, - {"Name": "descriptio", - "Description": "...", - "Unit": "" }, - {"Name": "timestamp", - "Description": "...", - "Unit": "" }, - {"Name": "begin", - "Description": "...", - "Unit": "" }, - {"Name": "end", - "Description": "...", - "Unit": "" }, - {"Name": "altitudemo", - "Description": "...", - "Unit": "" }, - {"Name": "tessellate", - "Description": "...", - "Unit": "" }, - {"Name": "extrude", - "Description": "...", - "Unit": "" }, - {"Name": "visibility", - "Description": "...", - "Unit": "" }, - {"Name": "draworder", - "Description": "...", - "Unit": "" }, - {"Name": "icon", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('geo_ego_jg.MS_Trafos_Lines_Otto'::regclass)::json; - --- - - --- - -COMMENT ON TABLE geo_ego_jg.MS_Trafos_Lines_Untei IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }, - {"Name": "name", - "Description": "...", - "Unit": "" }, - {"Name": "descriptio", - "Description": "...", - "Unit": "" }, - {"Name": "timestamp", - "Description": "...", - "Unit": "" }, - {"Name": "begin", - "Description": "...", - "Unit": "" }, - {"Name": "end", - "Description": "...", - "Unit": "" }, - {"Name": "altitudemo", - "Description": "...", - "Unit": "" }, - {"Name": "tessellate", - "Description": "...", - "Unit": "" }, - {"Name": "extrude", - "Description": "...", - "Unit": "" }, - {"Name": "visibility", - "Description": "...", - "Unit": "" }, - {"Name": "draworder", - "Description": "...", - "Unit": "" }, - {"Name": "icon", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('geo_ego_jg.MS_Trafos_Lines_Untei'::regclass)::json; - --- - - --- - -COMMENT ON TABLE geo_ego_jg.MS_Trafos_ges_Trafos_Points IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "name", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }, - {"Name": "id", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('geo_ego_jg.MS_Trafos_ges_Trafos_Points'::regclass)::json; - --- - - --- - -COMMENT ON TABLE geo_ego_jg.NS_Tus IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }, - {"Name": "name", - "Description": "...", - "Unit": "" }, - {"Name": "descriptio", - "Description": "...", - "Unit": "" }, - {"Name": "timestamp", - "Description": "...", - "Unit": "" }, - {"Name": "begin", - "Description": "...", - "Unit": "" }, - {"Name": "end", - "Description": "...", - "Unit": "" }, - {"Name": "altitudemo", - "Description": "...", - "Unit": "" }, - {"Name": "tessellate", - "Description": "...", - "Unit": "" }, - {"Name": "extrude", - "Description": "...", - "Unit": "" }, - {"Name": "visibility", - "Description": "...", - "Unit": "" }, - {"Name": "draworder", - "Description": "...", - "Unit": "" }, - {"Name": "icon", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('geo_ego_jg.NS_Tus'::regclass)::json; - --- - --- - -COMMENT ON TABLE geo_ego_jg.NS_Tus_Elements IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "Element_ID", - "Description": "...", - "Unit": "" }, - {"Name": "Name", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('geo_ego_jg.NS_Tus_Elements'::regclass)::json; - --- - - - --- - -COMMENT ON TABLE geo_ego_jg.NS_Tus_Hausanschluesse IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "geom", - "Description": "...", - "Unit": "" }, - {"Name": "Element_ID", - "Description": "...", - "Unit": "" }, - {"Name": "Name", - "Description": "...", - "Unit": "" }, - {"Name": "Flag_LineTyp", - "Description": "...", - "Unit": "" }, - {"Name": "LineTyp", - "Description": "...", - "Unit": "" }, - {"Name": "Typ_ID", - "Description": "...", - "Unit": "" }, - {"Name": "Flag_Typ_ID", - "Description": "...", - "Unit": "" }, - {"Name": "q", - "Description": "...", - "Unit": "" }, - {"Name": "l", - "Description": "...", - "Unit": "" }, - {"Name": "ParSys", - "Description": "...", - "Unit": "" }, - {"Name": "Flag_Vart", - "Description": "...", - "Unit": "" }, - {"Name": "Flag_LI", - "Description": "...", - "Unit": "" }, - {"Name": "fr", - "Description": "...", - "Unit": "" }, - {"Name": "Flag_Tend", - "Description": "...", - "Unit": "" }, - {"Name": "Tend", - "Description": "...", - "Unit": "" }, - {"Name": "r", - "Description": "...", - "Unit": "" }, - {"Name": "x", - "Description": "...", - "Unit": "" }, - {"Name": "c", - "Description": "...", - "Unit": "" }, - {"Name": "Un", - "Description": "...", - "Unit": "" }, - {"Name": "Flag_Mat", - "Description": "...", - "Unit": "" }, - {"Name": "Flag_Cond", - "Description": "...", - "Unit": "" }, - {"Name": "va", - "Description": "...", - "Unit": "" }, - {"Name": "lth", - "Description": "...", - "Unit": "" }, - {"Name": "fn", - "Description": "...", - "Unit": "" }, - {"Name": "l1s", - "Description": "...", - "Unit": "" }, - {"Name": "Flag_Z0_lnp", - "Description": "...", - "Unit": "" }, - {"Name": "X0_X1", - "Description": "...", - "Unit": "" }, - {"Name": "R0_R1", - "Description": "...", - "Unit": "" }, - {"Name": "r0", - "Description": "...", - "Unit": "" }, - {"Name": "x0", - "Description": "...", - "Unit": "" }, - {"Name": "c0", - "Description": "...", - "Unit": "" }, - {"Name": "q0", - "Description": "...", - "Unit": "" }, - {"Name": "Flag_Ground", - "Description": "...", - "Unit": "" }, - {"Name": "flk", - "Description": "...", - "Unit": "" }, - {"Name": "Umax", - "Description": "...", - "Unit": "" }, - {"Name": "d", - "Description": "...", - "Unit": "" }, - {"Name": "da", - "Description": "...", - "Unit": "" }, - {"Name": "Flag_Har", - "Description": "...", - "Unit": "" }, - {"Name": "qr", - "Description": "...", - "Unit": "" }, - {"Name": "ql", - "Description": "...", - "Unit": "" }, - {"Name": "HarImp_ID", - "Description": "...", - "Unit": "" }, - {"Name": "Flag_Reliability", - "Description": "...", - "Unit": "" }, - {"Name": "Flag_SF1", - "Description": "...", - "Unit": "" }, - {"Name": "Flag_SF2", - "Description": "...", - "Unit": "" }, - {"Name": "LineType_ID", - "Description": "...", - "Unit": "" }, - {"Name": "Overload_ID", - "Description": "...", - "Unit": "" }, - {"Name": "V_S", - "Description": "...", - "Unit": "" }, - {"Name": "Flag_ZU", - "Description": "...", - "Unit": "" }, - {"Name": "Flag_ZUP", - "Description": "...", - "Unit": "" }, - {"Name": "T_ZU", - "Description": "...", - "Unit": "" }, - {"Name": "Flag_ESB", - "Description": "...", - "Unit": "" }, - {"Name": "lth1", - "Description": "...", - "Unit": "" }, - {"Name": "lth2", - "Description": "...", - "Unit": "" }, - {"Name": "lth3", - "Description": "...", - "Unit": "" }, - {"Name": "Flag_Macro", - "Description": "...", - "Unit": "" }, - {"Name": "Macro_ID", - "Description": "...", - "Unit": "" }, - {"Name": "Flag_Variant", - "Description": "...", - "Unit": "" }, - {"Name": "Variant_ID", - "Description": "...", - "Unit": "" }, - {"Name": "LineInfo", - "Description": "...", - "Unit": "" }, - {"Name": "alpha", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('geo_ego_jg.NS_Tus_Hausanschluesse'::regclass)::json; - --- - - --- - -COMMENT ON TABLE geo_ego_jg.NS_Tus_Lines IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "Ele_ID", - "Description": "...", - "Unit": "" }, - {"Name": "Flag_LineTyp", - "Description": "...", - "Unit": "" }, - {"Name": "LineTyp", - "Description": "...", - "Unit": "" }, - {"Name": "Typ_ID", - "Description": "...", - "Unit": "" }, - {"Name": "Flag_Typ_ID", - "Description": "...", - "Unit": "" }, - {"Name": "q", - "Description": "...", - "Unit": "" }, - {"Name": "l", - "Description": "...", - "Unit": "" }, - {"Name": "ParSys", - "Description": "...", - "Unit": "" }, - {"Name": "Flag_Vart", - "Description": "...", - "Unit": "" }, - {"Name": "Flag_LI", - "Description": "...", - "Unit": "" }, - {"Name": "fr", - "Description": "...", - "Unit": "" }, - {"Name": "Flag_Tend", - "Description": "...", - "Unit": "" }, - {"Name": "Tend", - "Description": "...", - "Unit": "" }, - {"Name": "r", - "Description": "...", - "Unit": "" }, - {"Name": "x", - "Description": "...", - "Unit": "" }, - {"Name": "c", - "Description": "...", - "Unit": "" }, - {"Name": "Un", - "Description": "...", - "Unit": "" }, - {"Name": "Flag_Mat", - "Description": "...", - "Unit": "" }, - {"Name": "Flag_Cond", - "Description": "...", - "Unit": "" }, - {"Name": "va", - "Description": "...", - "Unit": "" }, - {"Name": "lth", - "Description": "...", - "Unit": "" }, - {"Name": "fn", - "Description": "...", - "Unit": "" }, - {"Name": "l1s", - "Description": "...", - "Unit": "" }, - {"Name": "Flag_Z0_lnp", - "Description": "...", - "Unit": "" }, - {"Name": "X0_X1", - "Description": "...", - "Unit": "" }, - {"Name": "R0_R1", - "Description": "...", - "Unit": "" }, - {"Name": "r0", - "Description": "...", - "Unit": "" }, - {"Name": "x0", - "Description": "...", - "Unit": "" }, - {"Name": "c0", - "Description": "...", - "Unit": "" }, - {"Name": "q0", - "Description": "...", - "Unit": "" }, - {"Name": "Flag_Ground", - "Description": "...", - "Unit": "" }, - {"Name": "flk", - "Description": "...", - "Unit": "" }, - {"Name": "Umax", - "Description": "...", - "Unit": "" }, - {"Name": "d", - "Description": "...", - "Unit": "" }, - {"Name": "da", - "Description": "...", - "Unit": "" }, - {"Name": "Flag_Har", - "Description": "...", - "Unit": "" }, - {"Name": "qr", - "Description": "...", - "Unit": "" }, - {"Name": "ql", - "Description": "...", - "Unit": "" }, - {"Name": "HarImp_ID", - "Description": "...", - "Unit": "" }, - {"Name": "Flag_Reliability", - "Description": "...", - "Unit": "" }, - {"Name": "Flag_SF1", - "Description": "...", - "Unit": "" }, - {"Name": "Flag_SF2", - "Description": "...", - "Unit": "" }, - {"Name": "LineType_ID", - "Description": "...", - "Unit": "" }, - {"Name": "Overload_ID", - "Description": "...", - "Unit": "" }, - {"Name": "V_S", - "Description": "...", - "Unit": "" }, - {"Name": "Flag_ZU", - "Description": "...", - "Unit": "" }, - {"Name": "Flag_ZUP", - "Description": "...", - "Unit": "" }, - {"Name": "T_ZU", - "Description": "...", - "Unit": "" }, - {"Name": "Flag_ESB", - "Description": "...", - "Unit": "" }, - {"Name": "lth1", - "Description": "...", - "Unit": "" }, - {"Name": "lth2", - "Description": "...", - "Unit": "" }, - {"Name": "lth3", - "Description": "...", - "Unit": "" }, - {"Name": "Flag_Macro", - "Description": "...", - "Unit": "" }, - {"Name": "Macro_ID", - "Description": "...", - "Unit": "" }, - {"Name": "Flag_Variant", - "Description": "...", - "Unit": "" }, - {"Name": "Variant_ID", - "Description": "...", - "Unit": "" }, - {"Name": "LineInfo", - "Description": "...", - "Unit": "" }, - {"Name": "alpha", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('geo_ego_jg.NS_Tus_Lines'::regclass)::json; - --- - - --- - -COMMENT ON TABLE geo_ego_jg.NS_Tus_Straenge IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "geom", - "Description": "...", - "Unit": "" }, - {"Name": "Name", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('geo_ego_jg.NS_Tus_Straenge'::regclass)::json; - --- - - - --- - -COMMENT ON TABLE geo_ego_jg.NS_Tus_Straenge_Fortsetzung IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "geom", - "Description": "...", - "Unit": "" }, - {"Name": "Name", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('geo_ego_jg.NS_Tus_Straenge_Fortsetzung'::regclass)::json; - --- - - - --- - -COMMENT ON TABLE geo_ego_jg.NS_Tus_Straenge_vertices IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "geom", - "Description": "...", - "Unit": "" }, - {"Name": "test", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('geo_ego_jg.NS_Tus_Straenge_vertices'::regclass)::json; - --- - - - --- - -COMMENT ON TABLE geo_ego_jg.NS_Tus_cont_10_75 IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "geom", - "Description": "...", - "Unit": "" }, - {"Name": "id", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('geo_ego_jg.NS_Tus_cont_10_75'::regclass)::json; - --- - - - - --- - -COMMENT ON TABLE geo_ego_jg.NS_Tus_final IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "name", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }, - {"Name": "Element_ID", - "Description": "...", - "Unit": "" }, - {"Name": "Name", - "Description": "...", - "Unit": "" }, - {"Name": "Ele_ID", - "Description": "...", - "Unit": "" }, - {"Name": "Flag_LineTyp", - "Description": "...", - "Unit": "" }, - {"Name": "LineTyp", - "Description": "...", - "Unit": "" }, - {"Name": "Typ_ID", - "Description": "...", - "Unit": "" }, - {"Name": "Flag_Typ_ID", - "Description": "...", - "Unit": "" }, - {"Name": "q", - "Description": "...", - "Unit": "" }, - {"Name": "l", - "Description": "...", - "Unit": "" }, - {"Name": "ParSys", - "Description": "...", - "Unit": "" }, - {"Name": "Flag_Vart", - "Description": "...", - "Unit": "" }, - {"Name": "Flag_LI", - "Description": "...", - "Unit": "" }, - {"Name": "fr", - "Description": "...", - "Unit": "" }, - {"Name": "Flag_Tend", - "Description": "...", - "Unit": "" }, - {"Name": "Tend", - "Description": "...", - "Unit": "" }, - {"Name": "r", - "Description": "...", - "Unit": "" }, - {"Name": "x", - "Description": "...", - "Unit": "" }, - {"Name": "c", - "Description": "...", - "Unit": "" }, - {"Name": "Un", - "Description": "...", - "Unit": "" }, - {"Name": "Flag_Mat", - "Description": "...", - "Unit": "" }, - {"Name": "Flag_Cond", - "Description": "...", - "Unit": "" }, - {"Name": "va", - "Description": "...", - "Unit": "" }, - {"Name": "lth", - "Description": "...", - "Unit": "" }, - {"Name": "fn", - "Description": "...", - "Unit": "" }, - {"Name": "l1s", - "Description": "...", - "Unit": "" }, - {"Name": "Flag_Z0_lnp", - "Description": "...", - "Unit": "" }, - {"Name": "X0_X1", - "Description": "...", - "Unit": "" }, - {"Name": "R0_R1", - "Description": "...", - "Unit": "" }, - {"Name": "r0", - "Description": "...", - "Unit": "" }, - {"Name": "x0", - "Description": "...", - "Unit": "" }, - {"Name": "c0", - "Description": "...", - "Unit": "" }, - {"Name": "q0", - "Description": "...", - "Unit": "" }, - {"Name": "Flag_Ground", - "Description": "...", - "Unit": "" }, - {"Name": "flk", - "Description": "...", - "Unit": "" }, - {"Name": "Umax", - "Description": "...", - "Unit": "" }, - {"Name": "d", - "Description": "...", - "Unit": "" }, - {"Name": "da", - "Description": "...", - "Unit": "" }, - {"Name": "Flag_Har", - "Description": "...", - "Unit": "" }, - {"Name": "qr", - "Description": "...", - "Unit": "" }, - {"Name": "ql", - "Description": "...", - "Unit": "" }, - {"Name": "HarImp_ID", - "Description": "...", - "Unit": "" }, - {"Name": "Flag_Reliability", - "Description": "...", - "Unit": "" }, - {"Name": "Flag_SF1", - "Description": "...", - "Unit": "" }, - {"Name": "Flag_SF2", - "Description": "...", - "Unit": "" }, - {"Name": "LineType_ID", - "Description": "...", - "Unit": "" }, - {"Name": "Overload_ID", - "Description": "...", - "Unit": "" }, - {"Name": "V_S", - "Description": "...", - "Unit": "" }, - {"Name": "Flag_ZU", - "Description": "...", - "Unit": "" }, - {"Name": "Flag_ZUP", - "Description": "...", - "Unit": "" }, - {"Name": "T_ZU", - "Description": "...", - "Unit": "" }, - {"Name": "Flag_ESB", - "Description": "...", - "Unit": "" }, - {"Name": "lth1", - "Description": "...", - "Unit": "" }, - {"Name": "lth2", - "Description": "...", - "Unit": "" }, - {"Name": "lth3", - "Description": "...", - "Unit": "" }, - {"Name": "Flag_Macro", - "Description": "...", - "Unit": "" }, - {"Name": "Macro_ID", - "Description": "...", - "Unit": "" }, - {"Name": "Flag_Variant", - "Description": "...", - "Unit": "" }, - {"Name": "Variant_ID", - "Description": "...", - "Unit": "" }, - {"Name": "LineInfo", - "Description": "...", - "Unit": "" }, - {"Name": "alpha", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('geo_ego_jg.NS_Tus_final'::regclass)::json; - --- - - --- - -COMMENT ON TABLE geo_ego_jg.NS_Tus_ohne_Hausanschluesse IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "geom", - "Description": "...", - "Unit": "" }, - {"Name": "Element_ID", - "Description": "...", - "Unit": "" }, - {"Name": "Name", - "Description": "...", - "Unit": "" }, - {"Name": "Flag_LineTyp", - "Description": "...", - "Unit": "" }, - {"Name": "LineTyp", - "Description": "...", - "Unit": "" }, - {"Name": "Typ_ID", - "Description": "...", - "Unit": "" }, - {"Name": "Flag_Typ_ID", - "Description": "...", - "Unit": "" }, - {"Name": "q", - "Description": "...", - "Unit": "" }, - {"Name": "l", - "Description": "...", - "Unit": "" }, - {"Name": "ParSys", - "Description": "...", - "Unit": "" }, - {"Name": "Flag_Vart", - "Description": "...", - "Unit": "" }, - {"Name": "Flag_LI", - "Description": "...", - "Unit": "" }, - {"Name": "fr", - "Description": "...", - "Unit": "" }, - {"Name": "Flag_Tend", - "Description": "...", - "Unit": "" }, - {"Name": "Tend", - "Description": "...", - "Unit": "" }, - {"Name": "r", - "Description": "...", - "Unit": "" }, - {"Name": "x", - "Description": "...", - "Unit": "" }, - {"Name": "c", - "Description": "...", - "Unit": "" }, - {"Name": "Un", - "Description": "...", - "Unit": "" }, - {"Name": "Flag_Mat", - "Description": "...", - "Unit": "" }, - {"Name": "Flag_Cond", - "Description": "...", - "Unit": "" }, - {"Name": "va", - "Description": "...", - "Unit": "" }, - {"Name": "lth", - "Description": "...", - "Unit": "" }, - {"Name": "fn", - "Description": "...", - "Unit": "" }, - {"Name": "l1s", - "Description": "...", - "Unit": "" }, - {"Name": "Flag_Z0_lnp", - "Description": "...", - "Unit": "" }, - {"Name": "X0_X1", - "Description": "...", - "Unit": "" }, - {"Name": "R0_R1", - "Description": "...", - "Unit": "" }, - {"Name": "r0", - "Description": "...", - "Unit": "" }, - {"Name": "x0", - "Description": "...", - "Unit": "" }, - {"Name": "c0", - "Description": "...", - "Unit": "" }, - {"Name": "q0", - "Description": "...", - "Unit": "" }, - {"Name": "Flag_Ground", - "Description": "...", - "Unit": "" }, - {"Name": "flk", - "Description": "...", - "Unit": "" }, - {"Name": "Umax", - "Description": "...", - "Unit": "" }, - {"Name": "d", - "Description": "...", - "Unit": "" }, - {"Name": "da", - "Description": "...", - "Unit": "" }, - {"Name": "Flag_Har", - "Description": "...", - "Unit": "" }, - {"Name": "qr", - "Description": "...", - "Unit": "" }, - {"Name": "ql", - "Description": "...", - "Unit": "" }, - {"Name": "HarImp_ID", - "Description": "...", - "Unit": "" }, - {"Name": "Flag_Reliability", - "Description": "...", - "Unit": "" }, - {"Name": "Flag_SF1", - "Description": "...", - "Unit": "" }, - {"Name": "Flag_SF2", - "Description": "...", - "Unit": "" }, - {"Name": "LineType_ID", - "Description": "...", - "Unit": "" }, - {"Name": "Overload_ID", - "Description": "...", - "Unit": "" }, - {"Name": "V_S", - "Description": "...", - "Unit": "" }, - {"Name": "Flag_ZU", - "Description": "...", - "Unit": "" }, - {"Name": "Flag_ZUP", - "Description": "...", - "Unit": "" }, - {"Name": "T_ZU", - "Description": "...", - "Unit": "" }, - {"Name": "Flag_ESB", - "Description": "...", - "Unit": "" }, - {"Name": "lth1", - "Description": "...", - "Unit": "" }, - {"Name": "lth2", - "Description": "...", - "Unit": "" }, - {"Name": "lth3", - "Description": "...", - "Unit": "" }, - {"Name": "Flag_Macro", - "Description": "...", - "Unit": "" }, - {"Name": "Macro_ID", - "Description": "...", - "Unit": "" }, - {"Name": "Flag_Variant", - "Description": "...", - "Unit": "" }, - {"Name": "Variant_ID", - "Description": "...", - "Unit": "" }, - {"Name": "LineInfo", - "Description": "...", - "Unit": "" }, - {"Name": "alpha", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('geo_ego_jg.NS_Tus_ohne_Hausanschluesse'::regclass)::json; - --- - - --- - -COMMENT ON TABLE geo_ego_jg.OSM_Tus_streets IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "osm_id", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }, - {"Name": "name", - "Description": "...", - "Unit": "" }, - {"Name": "highway", - "Description": "...", - "Unit": "" }, - {"Name": "waterway", - "Description": "...", - "Unit": "" }, - {"Name": "aerialway", - "Description": "...", - "Unit": "" }, - {"Name": "barrier", - "Description": "...", - "Unit": "" }, - {"Name": "man_made", - "Description": "...", - "Unit": "" }, - {"Name": "z_order", - "Description": "...", - "Unit": "" }, - {"Name": "other_tags", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('geo_ego_jg.OSM_Tus_streets'::regclass)::json; - --- - --- - -COMMENT ON TABLE geo_ego_jg.OSM_Tus_streets_final IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "osm_id", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('geo_ego_jg.OSM_Tus_streets_final'::regclass)::json; - --- - - - --- - -COMMENT ON TABLE geo_ego_jg.Tus_Trafos_Lines IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "ID", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }, - {"Name": "name", - "Description": "...", - "Unit": "" }, - {"Name": "descriptio", - "Description": "...", - "Unit": "" }, - {"Name": "timestamp", - "Description": "...", - "Unit": "" }, - {"Name": "begin", - "Description": "...", - "Unit": "" }, - {"Name": "end", - "Description": "...", - "Unit": "" }, - {"Name": "altitudemo", - "Description": "...", - "Unit": "" }, - {"Name": "tessellate", - "Description": "...", - "Unit": "" }, - {"Name": "extrude", - "Description": "...", - "Unit": "" }, - {"Name": "visibility", - "Description": "...", - "Unit": "" }, - {"Name": "draworder", - "Description": "...", - "Unit": "" }, - {"Name": "icon", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('geo_ego_jg.Tus_Trafos_Lines'::regclass)::json; - --- - --- - -COMMENT ON TABLE geo_ego_jg.Tus_Trafos_Points IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "ID", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('geo_ego_jg.Tus_Trafos_Points'::regclass)::json; - --- - - --- - -COMMENT ON TABLE geo_ego_jg.ego_deu_load_area_test IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }, - {"Name": "zensus_sum", - "Description": "...", - "Unit": "" }, - {"Name": "zensus_count", - "Description": "...", - "Unit": "" }, - {"Name": "zensus_density", - "Description": "...", - "Unit": "" }, - {"Name": "ioer_sum", - "Description": "...", - "Unit": "" }, - {"Name": "ioer_count", - "Description": "...", - "Unit": "" }, - {"Name": "ioer_density", - "Description": "...", - "Unit": "" }, - {"Name": "area_ha", - "Description": "...", - "Unit": "" }, - {"Name": "sector_area_residential", - "Description": "...", - "Unit": "" }, - {"Name": "sector_area_retail", - "Description": "...", - "Unit": "" }, - {"Name": "sector_area_industrial", - "Description": "...", - "Unit": "" }, - {"Name": "sector_area_agricultural", - "Description": "...", - "Unit": "" }, - {"Name": "sector_share_residential", - "Description": "...", - "Unit": "" }, - {"Name": "sector_share_retail", - "Description": "...", - "Unit": "" }, - {"Name": "sector_share_industrial", - "Description": "...", - "Unit": "" }, - {"Name": "sector_share_agricultural", - "Description": "...", - "Unit": "" }, - {"Name": "sector_count_residential", - "Description": "...", - "Unit": "" }, - {"Name": "sector_count_retail", - "Description": "...", - "Unit": "" }, - {"Name": "sector_count_industrial", - "Description": "...", - "Unit": "" }, - {"Name": "sector_count_agricultural", - "Description": "...", - "Unit": "" }, - {"Name": "subst_id", - "Description": "...", - "Unit": "" }, - {"Name": "nuts", - "Description": "...", - "Unit": "" }, - {"Name": "rs_0", - "Description": "...", - "Unit": "" }, - {"Name": "ags_0", - "Description": "...", - "Unit": "" }, - {"Name": "geom_centroid", - "Description": "...", - "Unit": "" }, - {"Name": "geom_surfacepoint", - "Description": "...", - "Unit": "" }, - {"Name": "geom_centre", - "Description": "...", - "Unit": "" }, - {"Name": "sector_area_sum", - "Description": "...", - "Unit": "" }, - {"Name": "sector_share_sum", - "Description": "...", - "Unit": "" }, - {"Name": "sector_consumption_residential", - "Description": "...", - "Unit": "" }, - {"Name": "sector_consumption_retail", - "Description": "...", - "Unit": "" }, - {"Name": "sector_consumption_industrial", - "Description": "...", - "Unit": "" }, - {"Name": "sector_consumption_agricultural", - "Description": "...", - "Unit": "" }, - {"Name": "sector_consumption_sum", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('geo_ego_jg.ego_deu_load_area_test'::regclass)::json; - --- - - - - - - - - - diff --git a/requirements.txt/SQL Documentation/orig_consumption_e_mobility.sql b/requirements.txt/SQL Documentation/orig_consumption_e_mobility.sql deleted file mode 100644 index 3fad3fe1..00000000 --- a/requirements.txt/SQL Documentation/orig_consumption_e_mobility.sql +++ /dev/null @@ -1,1100 +0,0 @@ --- - -COMMENT ON TABLE orig_consumption_e_mobility.result_e_mobility_2020_2a_11001 IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "time_step", - "Description": "...", - "Unit": "" }, - {"Name": "pause", - "Description": "...", - "Unit": "" }, - {"Name": "driven_dist", - "Description": "...", - "Unit": "" }, - {"Name": "swap", - "Description": "...", - "Unit": "" }, - {"Name": "battery_state", - "Description": "...", - "Unit": "" }, - {"Name": "load", - "Description": "...", - "Unit": "" }, - {"Name": "swap_state", - "Description": "...", - "Unit": "" }, - {"Name": "swap_load", - "Description": "...", - "Unit": "" }, - {"Name": "real_swap", - "Description": "...", - "Unit": "" }, - {"Name": "week_id", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_consumption_e_mobility.result_e_mobility_2020_2a_11001'::regclass)::json; - --- - --- - -COMMENT ON TABLE orig_consumption_e_mobility.result_e_mobility_2020_2a_11002 IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "time_step", - "Description": "...", - "Unit": "" }, - {"Name": "pause", - "Description": "...", - "Unit": "" }, - {"Name": "driven_dist", - "Description": "...", - "Unit": "" }, - {"Name": "swap", - "Description": "...", - "Unit": "" }, - {"Name": "battery_state", - "Description": "...", - "Unit": "" }, - {"Name": "load", - "Description": "...", - "Unit": "" }, - {"Name": "swap_state", - "Description": "...", - "Unit": "" }, - {"Name": "swap_load", - "Description": "...", - "Unit": "" }, - {"Name": "real_swap", - "Description": "...", - "Unit": "" }, - {"Name": "week_id", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_consumption_e_mobility.result_e_mobility_2020_2a_11002'::regclass)::json; - --- - - --- - -COMMENT ON TABLE orig_consumption_e_mobility.result_e_mobility_2020_2a_11003 IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "time_step", - "Description": "...", - "Unit": "" }, - {"Name": "pause", - "Description": "...", - "Unit": "" }, - {"Name": "driven_dist", - "Description": "...", - "Unit": "" }, - {"Name": "swap", - "Description": "...", - "Unit": "" }, - {"Name": "battery_state", - "Description": "...", - "Unit": "" }, - {"Name": "load", - "Description": "...", - "Unit": "" }, - {"Name": "swap_state", - "Description": "...", - "Unit": "" }, - {"Name": "swap_load", - "Description": "...", - "Unit": "" }, - {"Name": "real_swap", - "Description": "...", - "Unit": "" }, - {"Name": "week_id", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_consumption_e_mobility.result_e_mobility_2020_2a_11003'::regclass)::json; - --- - - --- - -COMMENT ON TABLE orig_consumption_e_mobility.result_e_mobility_2020_2a_11004 IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "time_step", - "Description": "...", - "Unit": "" }, - {"Name": "pause", - "Description": "...", - "Unit": "" }, - {"Name": "driven_dist", - "Description": "...", - "Unit": "" }, - {"Name": "swap", - "Description": "...", - "Unit": "" }, - {"Name": "battery_state", - "Description": "...", - "Unit": "" }, - {"Name": "load", - "Description": "...", - "Unit": "" }, - {"Name": "swap_state", - "Description": "...", - "Unit": "" }, - {"Name": "swap_load", - "Description": "...", - "Unit": "" }, - {"Name": "real_swap", - "Description": "...", - "Unit": "" }, - {"Name": "week_id", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_consumption_e_mobility.result_e_mobility_2020_2a_11004'::regclass)::json; - --- - - --- - -COMMENT ON TABLE orig_consumption_e_mobility.result_e_mobility_2020_2a_11005 IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "time_step", - "Description": "...", - "Unit": "" }, - {"Name": "pause", - "Description": "...", - "Unit": "" }, - {"Name": "driven_dist", - "Description": "...", - "Unit": "" }, - {"Name": "swap", - "Description": "...", - "Unit": "" }, - {"Name": "battery_state", - "Description": "...", - "Unit": "" }, - {"Name": "load", - "Description": "...", - "Unit": "" }, - {"Name": "swap_state", - "Description": "...", - "Unit": "" }, - {"Name": "swap_load", - "Description": "...", - "Unit": "" }, - {"Name": "real_swap", - "Description": "...", - "Unit": "" }, - {"Name": "week_id", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_consumption_e_mobility.result_e_mobility_2020_2a_11005'::regclass)::json; - --- - - --- - -COMMENT ON TABLE orig_consumption_e_mobility.result_e_mobility_2020_2a_11006 IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "time_step", - "Description": "...", - "Unit": "" }, - {"Name": "pause", - "Description": "...", - "Unit": "" }, - {"Name": "driven_dist", - "Description": "...", - "Unit": "" }, - {"Name": "swap", - "Description": "...", - "Unit": "" }, - {"Name": "battery_state", - "Description": "...", - "Unit": "" }, - {"Name": "load", - "Description": "...", - "Unit": "" }, - {"Name": "swap_state", - "Description": "...", - "Unit": "" }, - {"Name": "swap_load", - "Description": "...", - "Unit": "" }, - {"Name": "real_swap", - "Description": "...", - "Unit": "" }, - {"Name": "week_id", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_consumption_e_mobility.result_e_mobility_2020_2a_11006'::regclass)::json; - --- - --- - -COMMENT ON TABLE orig_consumption_e_mobility.result_e_mobility_2020_2a_11007 IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "time_step", - "Description": "...", - "Unit": "" }, - {"Name": "pause", - "Description": "...", - "Unit": "" }, - {"Name": "driven_dist", - "Description": "...", - "Unit": "" }, - {"Name": "swap", - "Description": "...", - "Unit": "" }, - {"Name": "battery_state", - "Description": "...", - "Unit": "" }, - {"Name": "load", - "Description": "...", - "Unit": "" }, - {"Name": "swap_state", - "Description": "...", - "Unit": "" }, - {"Name": "swap_load", - "Description": "...", - "Unit": "" }, - {"Name": "real_swap", - "Description": "...", - "Unit": "" }, - {"Name": "week_id", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_consumption_e_mobility.result_e_mobility_2020_2a_11007'::regclass)::json; - --- - --- - -COMMENT ON TABLE orig_consumption_e_mobility.result_e_mobility_2020_2a_11008 IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "time_step", - "Description": "...", - "Unit": "" }, - {"Name": "pause", - "Description": "...", - "Unit": "" }, - {"Name": "driven_dist", - "Description": "...", - "Unit": "" }, - {"Name": "swap", - "Description": "...", - "Unit": "" }, - {"Name": "battery_state", - "Description": "...", - "Unit": "" }, - {"Name": "load", - "Description": "...", - "Unit": "" }, - {"Name": "swap_state", - "Description": "...", - "Unit": "" }, - {"Name": "swap_load", - "Description": "...", - "Unit": "" }, - {"Name": "real_swap", - "Description": "...", - "Unit": "" }, - {"Name": "week_id", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_consumption_e_mobility.result_e_mobility_2020_2a_11008'::regclass)::json; - --- - - --- - -COMMENT ON TABLE orig_consumption_e_mobility.result_e_mobility_2020_2a_11009 IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "time_step", - "Description": "...", - "Unit": "" }, - {"Name": "pause", - "Description": "...", - "Unit": "" }, - {"Name": "driven_dist", - "Description": "...", - "Unit": "" }, - {"Name": "swap", - "Description": "...", - "Unit": "" }, - {"Name": "battery_state", - "Description": "...", - "Unit": "" }, - {"Name": "load", - "Description": "...", - "Unit": "" }, - {"Name": "swap_state", - "Description": "...", - "Unit": "" }, - {"Name": "swap_load", - "Description": "...", - "Unit": "" }, - {"Name": "real_swap", - "Description": "...", - "Unit": "" }, - {"Name": "week_id", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_consumption_e_mobility.result_e_mobility_2020_2a_11009'::regclass)::json; - --- - --- - -COMMENT ON TABLE orig_consumption_e_mobility.result_e_mobility_2020_2a_11010 IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "time_step", - "Description": "...", - "Unit": "" }, - {"Name": "pause", - "Description": "...", - "Unit": "" }, - {"Name": "driven_dist", - "Description": "...", - "Unit": "" }, - {"Name": "swap", - "Description": "...", - "Unit": "" }, - {"Name": "battery_state", - "Description": "...", - "Unit": "" }, - {"Name": "load", - "Description": "...", - "Unit": "" }, - {"Name": "swap_state", - "Description": "...", - "Unit": "" }, - {"Name": "swap_load", - "Description": "...", - "Unit": "" }, - {"Name": "real_swap", - "Description": "...", - "Unit": "" }, - {"Name": "week_id", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_consumption_e_mobility.result_e_mobility_2020_2a_11010'::regclass)::json; - --- - --- - -COMMENT ON TABLE orig_consumption_e_mobility.result_e_mobility_2020_2a_11011 IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "time_step", - "Description": "...", - "Unit": "" }, - {"Name": "pause", - "Description": "...", - "Unit": "" }, - {"Name": "driven_dist", - "Description": "...", - "Unit": "" }, - {"Name": "swap", - "Description": "...", - "Unit": "" }, - {"Name": "battery_state", - "Description": "...", - "Unit": "" }, - {"Name": "load", - "Description": "...", - "Unit": "" }, - {"Name": "swap_state", - "Description": "...", - "Unit": "" }, - {"Name": "swap_load", - "Description": "...", - "Unit": "" }, - {"Name": "real_swap", - "Description": "...", - "Unit": "" }, - {"Name": "week_id", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_consumption_e_mobility.result_e_mobility_2020_2a_11011'::regclass)::json; - --- - - --- - -COMMENT ON TABLE orig_consumption_e_mobility.result_e_mobility_2020_2a_11012 IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "time_step", - "Description": "...", - "Unit": "" }, - {"Name": "pause", - "Description": "...", - "Unit": "" }, - {"Name": "driven_dist", - "Description": "...", - "Unit": "" }, - {"Name": "swap", - "Description": "...", - "Unit": "" }, - {"Name": "battery_state", - "Description": "...", - "Unit": "" }, - {"Name": "load", - "Description": "...", - "Unit": "" }, - {"Name": "swap_state", - "Description": "...", - "Unit": "" }, - {"Name": "swap_load", - "Description": "...", - "Unit": "" }, - {"Name": "real_swap", - "Description": "...", - "Unit": "" }, - {"Name": "week_id", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_consumption_e_mobility.result_e_mobility_2020_2a_11012'::regclass)::json; - --- - --- - -COMMENT ON TABLE orig_consumption_e_mobility.result_e_mobility_2020_2a_11013 IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "time_step", - "Description": "...", - "Unit": "" }, - {"Name": "pause", - "Description": "...", - "Unit": "" }, - {"Name": "driven_dist", - "Description": "...", - "Unit": "" }, - {"Name": "swap", - "Description": "...", - "Unit": "" }, - {"Name": "battery_state", - "Description": "...", - "Unit": "" }, - {"Name": "load", - "Description": "...", - "Unit": "" }, - {"Name": "swap_state", - "Description": "...", - "Unit": "" }, - {"Name": "swap_load", - "Description": "...", - "Unit": "" }, - {"Name": "real_swap", - "Description": "...", - "Unit": "" }, - {"Name": "week_id", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_consumption_e_mobility.result_e_mobility_2020_2a_11013'::regclass)::json; - --- - - --- - -COMMENT ON TABLE orig_consumption_e_mobility.result_e_mobility_2020_2a_11014 IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "time_step", - "Description": "...", - "Unit": "" }, - {"Name": "pause", - "Description": "...", - "Unit": "" }, - {"Name": "driven_dist", - "Description": "...", - "Unit": "" }, - {"Name": "swap", - "Description": "...", - "Unit": "" }, - {"Name": "battery_state", - "Description": "...", - "Unit": "" }, - {"Name": "load", - "Description": "...", - "Unit": "" }, - {"Name": "swap_state", - "Description": "...", - "Unit": "" }, - {"Name": "swap_load", - "Description": "...", - "Unit": "" }, - {"Name": "real_swap", - "Description": "...", - "Unit": "" }, - {"Name": "week_id", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_consumption_e_mobility.result_e_mobility_2020_2a_11014'::regclass)::json; - --- - --- - -COMMENT ON TABLE orig_consumption_e_mobility.result_e_mobility_2020_2a_11015 IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "time_step", - "Description": "...", - "Unit": "" }, - {"Name": "pause", - "Description": "...", - "Unit": "" }, - {"Name": "driven_dist", - "Description": "...", - "Unit": "" }, - {"Name": "swap", - "Description": "...", - "Unit": "" }, - {"Name": "battery_state", - "Description": "...", - "Unit": "" }, - {"Name": "load", - "Description": "...", - "Unit": "" }, - {"Name": "swap_state", - "Description": "...", - "Unit": "" }, - {"Name": "swap_load", - "Description": "...", - "Unit": "" }, - {"Name": "real_swap", - "Description": "...", - "Unit": "" }, - {"Name": "week_id", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_consumption_e_mobility.result_e_mobility_2020_2a_11015'::regclass)::json; - --- - --- - -COMMENT ON TABLE orig_consumption_e_mobility.result_e_mobility_2020_2a_11016 IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "time_step", - "Description": "...", - "Unit": "" }, - {"Name": "pause", - "Description": "...", - "Unit": "" }, - {"Name": "driven_dist", - "Description": "...", - "Unit": "" }, - {"Name": "swap", - "Description": "...", - "Unit": "" }, - {"Name": "battery_state", - "Description": "...", - "Unit": "" }, - {"Name": "load", - "Description": "...", - "Unit": "" }, - {"Name": "swap_state", - "Description": "...", - "Unit": "" }, - {"Name": "swap_load", - "Description": "...", - "Unit": "" }, - {"Name": "real_swap", - "Description": "...", - "Unit": "" }, - {"Name": "week_id", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_consumption_e_mobility.result_e_mobility_2020_2a_11016'::regclass)::json; - --- - --- - -COMMENT ON TABLE orig_consumption_e_mobility.result_e_mobility_2020_2a_11017 IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "time_step", - "Description": "...", - "Unit": "" }, - {"Name": "pause", - "Description": "...", - "Unit": "" }, - {"Name": "driven_dist", - "Description": "...", - "Unit": "" }, - {"Name": "swap", - "Description": "...", - "Unit": "" }, - {"Name": "battery_state", - "Description": "...", - "Unit": "" }, - {"Name": "load", - "Description": "...", - "Unit": "" }, - {"Name": "swap_state", - "Description": "...", - "Unit": "" }, - {"Name": "swap_load", - "Description": "...", - "Unit": "" }, - {"Name": "real_swap", - "Description": "...", - "Unit": "" }, - {"Name": "week_id", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_consumption_e_mobility.result_e_mobility_2020_2a_11017'::regclass)::json; - --- - - --- - -COMMENT ON TABLE orig_consumption_e_mobility.result_e_mobility_2020_2a_11018 IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "time_step", - "Description": "...", - "Unit": "" }, - {"Name": "pause", - "Description": "...", - "Unit": "" }, - {"Name": "driven_dist", - "Description": "...", - "Unit": "" }, - {"Name": "swap", - "Description": "...", - "Unit": "" }, - {"Name": "battery_state", - "Description": "...", - "Unit": "" }, - {"Name": "load", - "Description": "...", - "Unit": "" }, - {"Name": "swap_state", - "Description": "...", - "Unit": "" }, - {"Name": "swap_load", - "Description": "...", - "Unit": "" }, - {"Name": "real_swap", - "Description": "...", - "Unit": "" }, - {"Name": "week_id", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_consumption_e_mobility.result_e_mobility_2020_2a_11018'::regclass)::json; - --- - - - - - - - - - - - - - diff --git a/requirements.txt/SQL Documentation/orig_destatis.sql b/requirements.txt/SQL Documentation/orig_destatis.sql deleted file mode 100644 index ac7e7b98..00000000 --- a/requirements.txt/SQL Documentation/orig_destatis.sql +++ /dev/null @@ -1,1182 +0,0 @@ -/* -All tables from social have to be moved to social. -Metadata needs to be updatetd with newer version, new schema and error checking. -*/ - --- -COMMENT ON TABLE social.bbsr_rag_city_and_mun_types_per_mun IS '{ - "Name": "BBSR - Raumabgrenzungen - Stadt- und Gemeindetyp - 2013", - "Source": [{ - "Name": "Bundesinstitut für Bau-, Stadt- und Raumforschung (BBSR) - Downloads - Raumabgrenzungen: Referenzdateien und Karten", - "URL": "http://www.bbsr.bund.de/BBSR/DE/Raumbeobachtung/Downloads/downloads_node.html" }], - "Reference date": "2013", - "Date of collection": "08.12.2015", - "Original file": "XXX", - "Spatial resolution": ["Germany, Municipality"], - "Description": ["City and Municipality types"], - "Column": [ - {"Name": "mun_id", "Description": "Municipality key 2013", "Description German":"Kreisschlüssel 2013", "Unit": "" }, - {"Name": "mun_name", "Description": "Municipality name 2013", "Description German":"Kreisname 2013", "Unit": "" }, - {"Name": "munassn_id", "Description": "Municipal association key 2013", "Description German":"Kreisschlüssel 2013", "Unit": "" }, - {"Name": "munassn_name", "Description": "Municipal association name 2013", "Description German":"Kreisname 2013", "Unit": "" }, - {"Name": "pop_2013", "Description": "Population 2013", "Description German":"Bevölkerung 2013", "Unit": "" }, - {"Name": "area_sqm", "Description": "Area in square meter", "Description German":"Fläche in Quadratmeter", "Unit": "" }, - {"Name": "cm_typ", "Description": "City and municipality key 2013", "Description German":"Stadt- und Gemeindetyp 2013", "Unit": "" }, - {"Name": "cm_typ_name", "Description": "City and municipality name 2013", "Description German":"Stadt- und Gemeindetyp Name 2013", "Unit": "" }, - {"Name": "cm_typ_d", "Description": "City and municipality key differentiated 2013", "Description German":"Stadt- und Gemeindetyp differenziert 2013", "Unit": "" }, - {"Name": "cm_typ_d_name", "Description": "City and municipality name differentiated 2013", "Description German":"Stadt- und Gemeindetyp Name differenziert 2013", "Unit": "" }], - "Changes":[ - {"Name":"Ludwig Schneider", "Mail":"ludwig.schenider@rl-institut.de", - "Date":"08.12.2015", "Comment":"Created table"}, - {"Name":"Ludwig Hülk", "Mail":"ludwig.huelk@rl-institut.de", - "Date":"26.10.2016","Comment":"Moved table and update metadata"} ], - "ToDo": [""], - "Licence": ["Datenlizenz Deutschland – Namensnennung – Version 2.0 (dl-de/by-2-0; http://www.govdata.de/dl-de/by-2-0)"], - "Instructions for proper use": ["Die Nutzer haben sicherzustellen, dass 1. alle den Daten, Metadaten, Karten und Webdiensten beigegebenen Quellenvermerke und sonstigen rechtlichen Hinweise erkennbar und in optischem Zusammenhang eingebunden werden. Die Nutzung bzw. der Abdruck ist nur mit vollständiger Angabe des Quellenvermerks (© BBSR Bonn 2015) gestattet. Bei der Darstellung auf einer Webseite ist (© Bundesinstitut für Bau-, Stadt- und Raumforschung) mit der URL (http://www.bbsr.bund.de) zu verlinken. 2. bei Veränderungen (insbesondere durch Hinzufügen neuer Inhalte), Bearbeitungen, neuen Gestaltungen oder sonstigen Abwandlungen mit einem Veränderungshinweis im beigegebenen Quellenvermerk Art und Urheberschaft der Veränderungen deutlich kenntlich gemacht wird. Bei Karten ist in diesem Fall das Logo des BBSR zu entfernen."] - }'; - -SELECT obj_description('social.bbsr_rag_city_and_mun_types_per_mun' ::regclass) ::json; - --- - - --- - -COMMENT ON TABLE social.bbsr_rag_municipality_and_municipal_association IS -'{ -"Name": "XXX", -"Source": [{ - "Name": "XXX", - "URL": "XXX" }], -"Reference date": "XXX", -"Date of collection": "XXX", -"Original file": "XXX", -"Spatial resolution": ["Germany"], -"Description": ["XXX"], -"Column": [ - {"Name": "mun_id", - "Description": "XXX", - "Unit": "" }, - {"Name": "mun_name", - "Description": "XXX", - "Unit": "" }, - {"Name": "munassn_id", - "Description": "XXX", - "Unit": "" }, - {"Name": "munassn_name", - "Description": "XXX", - "Unit": "" }, - {"Name": "munassn_location", - "Description": "XXX", - "Unit": "" }, - {"Name": "area_sqm", - "Description": "XXX", - "Unit": "" }, - {"Name": "pop_2013", - "Description": "XXX", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "XXX" } - ], -"ToDo": ["Please complete"], -"Licence": ["XXX"], -"Instructions for proper use": ["XXX"] -}'; - - -SELECT obj_description('social.bbsr_rag_municipality_and_municipal_association'::regclass)::json; - --- - - --- - -COMMENT ON TABLE social.bbsr_rag_spatial_types_per_mun IS -'{ -"Name": "XXX", -"Source": [{ - "Name": "XXX", - "URL": "XXX" }], -"Reference date": "XXX", -"Date of collection": "XXX", -"Original file": "XXX", -"Spatial resolution": ["Germany"], -"Description": ["XXX"], -"Column": [ - {"Name": "mun_id", - "Description": "XXX", - "Unit": "" }, - {"Name": "mun_name", - "Description": "XXX", - "Unit": "" }, - {"Name": "munassn_id", - "Description": "XXX", - "Unit": "" }, - {"Name": "munassn_name", - "Description": "XXX", - "Unit": "" }, - {"Name": "sp_typ_pop", - "Description": "XXX", - "Unit": "" }, - {"Name": "sp_typ_loc", - "Description": "XXX", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "XXX" } - ], -"ToDo": ["Please complete"], -"Licence": ["XXX"], -"Instructions for proper use": ["XXX"] -}'; - - -SELECT obj_description('social.bbsr_rag_spatial_types_per_mun'::regclass)::json; - --- - --- - -COMMENT ON TABLE social.bbsr_rag_spatial_types_per_mun_key_loc IS -'{ -"Name": "XXX", -"Source": [{ - "Name": "XXX", - "URL": "XXX" }], -"Reference date": "XXX", -"Date of collection": "XXX", -"Original file": "XXX", -"Spatial resolution": ["Germany"], -"Description": ["XXX"], -"Column": [ - {"Name": "sp_typ_loc", - "Description": "XXX", - "Unit": "" }, - {"Name": "sp_typ_loc_name", - "Description": "XXX", - "Unit": "" }, - {"Name": "sp_typ_loc_name_ger", - "Description": "XXX", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "XXX" } - ], -"ToDo": ["Please complete"], -"Licence": ["XXX"], -"Instructions for proper use": ["XXX"] -}'; - - -SELECT obj_description('social.bbsr_rag_spatial_types_per_mun_key_loc'::regclass)::json; - --- - - --- - -COMMENT ON TABLE social.bbsr_rag_spatial_types_per_mun_key_pop IS -'{ -"Name": "XXX", -"Source": [{ - "Name": "XXX", - "URL": "XXX" }], -"Reference date": "XXX", -"Date of collection": "XXX", -"Original file": "XXX", -"Spatial resolution": ["Germany"], -"Description": ["XXX"], -"Column": [ - {"Name": "sp_typ_pop", - "Description": "XXX", - "Unit": "" }, - {"Name": "sp_typ_pop_name", - "Description": "XXX", - "Unit": "" }, - {"Name": "sp_typ_pop_name_ger", - "Description": "XXX", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "XXX" } - ], -"ToDo": ["Please complete"], -"Licence": ["XXX"], -"Instructions for proper use": ["XXX"] -}'; - - -SELECT obj_description('social.bbsr_rag_spatial_types_per_mun_key_pop'::regclass)::json; - --- - - --- - -COMMENT ON TABLE social.bbsr_rop2035_pop_forecast_by_agegroups_per_dist IS -'{ -"Name": "XXX", -"Source": [{ - "Name": "XXX", - "URL": "XXX" }], -"Reference date": "XXX", -"Date of collection": "XXX", -"Original file": "XXX", -"Spatial resolution": ["Germany"], -"Description": ["XXX"], -"Column": [ - {"Name": "district_id", - "Description": "XXX", - "Unit": "" }, - {"Name": "district_name", - "Description": "XXX", - "Unit": "" }, - {"Name": "age_group", - "Description": "XXX", - "Unit": "" }, - {"Name": "pop_2012", - "Description": "XXX", - "Unit": "" }, - {"Name": "pop_2013", - "Description": "XXX", - "Unit": "" }, - {"Name": "pop_2014", - "Description": "XXX", - "Unit": "" }, - {"Name": "pop_2015", - "Description": "XXX", - "Unit": "" }, - {"Name": "pop_2016", - "Description": "XXX", - "Unit": "" }, - {"Name": "pop_2017", - "Description": "XXX", - "Unit": "" }, - {"Name": "pop_2018", - "Description": "XXX", - "Unit": "" }, - {"Name": "pop_2019", - "Description": "XXX", - "Unit": "" }, - {"Name": "pop_2020", - "Description": "XXX", - "Unit": "" }, - {"Name": "pop_2021", - "Description": "XXX", - "Unit": "" }, - {"Name": "pop_2022", - "Description": "XXX", - "Unit": "" }, - {"Name": "pop_2023", - "Description": "XXX", - "Unit": "" }, - {"Name": "pop_2024", - "Description": "XXX", - "Unit": "" }, - {"Name": "pop_2025", - "Description": "XXX", - "Unit": "" }, - {"Name": "pop_2026", - "Description": "XXX", - "Unit": "" }, - {"Name": "pop_2027", - "Description": "XXX", - "Unit": "" }, - {"Name": "pop_2028", - "Description": "XXX", - "Unit": "" }, - {"Name": "pop_2029", - "Description": "XXX", - "Unit": "" }, - {"Name": "pop_2030", - "Description": "XXX", - "Unit": "" }, - {"Name": "pop_2031", - "Description": "XXX", - "Unit": "" }, - {"Name": "pop_2032", - "Description": "XXX", - "Unit": "" }, - {"Name": "pop_2033", - "Description": "XXX", - "Unit": "" }, - {"Name": "pop_2034", - "Description": "XXX", - "Unit": "" }, - {"Name": "pop_2035", - "Description": "XXX", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "XXX" } - ], -"ToDo": ["Please complete"], -"Licence": ["XXX"], -"Instructions for proper use": ["XXX"] -}'; - - -SELECT obj_description('social.bbsr_rop2035_pop_forecast_by_agegroups_per_dist'::regclass)::json; - --- - - --- - -COMMENT ON TABLE social.bbsr_rop2035_pop_forecast_total_per_dist IS -'{ -"Name": "XXX", -"Source": [{ - "Name": "XXX", - "URL": "XXX" }], -"Reference date": "XXX", -"Date of collection": "XXX", -"Original file": "XXX", -"Spatial resolution": ["Germany"], -"Description": ["XXX"], -"Column": [ - {"Name": "district_id", - "Description": "XXX", - "Unit": "" }, - {"Name": "district_name", - "Description": "XXX", - "Unit": "" }, - {"Name": "age_group", - "Description": "XXX", - "Unit": "" }, - {"Name": "pop_2012", - "Description": "XXX", - "Unit": "" }, - {"Name": "pop_2013", - "Description": "XXX", - "Unit": "" }, - {"Name": "pop_2014", - "Description": "XXX", - "Unit": "" }, - {"Name": "pop_2015", - "Description": "XXX", - "Unit": "" }, - {"Name": "pop_2016", - "Description": "XXX", - "Unit": "" }, - {"Name": "pop_2017", - "Description": "XXX", - "Unit": "" }, - {"Name": "pop_2018", - "Description": "XXX", - "Unit": "" }, - {"Name": "pop_2019", - "Description": "XXX", - "Unit": "" }, - {"Name": "pop_2020", - "Description": "XXX", - "Unit": "" }, - {"Name": "pop_2021", - "Description": "XXX", - "Unit": "" }, - {"Name": "pop_2022", - "Description": "XXX", - "Unit": "" }, - {"Name": "pop_2023", - "Description": "XXX", - "Unit": "" }, - {"Name": "pop_2024", - "Description": "XXX", - "Unit": "" }, - {"Name": "pop_2025", - "Description": "XXX", - "Unit": "" }, - {"Name": "pop_2026", - "Description": "XXX", - "Unit": "" }, - {"Name": "pop_2027", - "Description": "XXX", - "Unit": "" }, - {"Name": "pop_2028", - "Description": "XXX", - "Unit": "" }, - {"Name": "pop_2029", - "Description": "XXX", - "Unit": "" }, - {"Name": "pop_2030", - "Description": "XXX", - "Unit": "" }, - {"Name": "pop_2031", - "Description": "XXX", - "Unit": "" }, - {"Name": "pop_2032", - "Description": "XXX", - "Unit": "" }, - {"Name": "pop_2033", - "Description": "XXX", - "Unit": "" }, - {"Name": "pop_2034", - "Description": "XXX", - "Unit": "" }, - {"Name": "pop_2035", - "Description": "XXX", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "XXX" } - ], -"ToDo": ["Please complete"], -"Licence": ["XXX"], -"Instructions for proper use": ["XXX"] -}'; - - -SELECT obj_description('social.bbsr_rop2035_pop_forecast_total_per_dist'::regclass)::json; - --- - --- - -COMMENT ON TABLE social.ego_deu_loads_zensus IS -'{ -"Name": "XXX", -"Source": [{ - "Name": "XXX", - "URL": "XXX" }], -"Reference date": "XXX", -"Date of collection": "XXX", -"Original file": "XXX", -"Spatial resolution": ["Germany"], -"Description": ["XXX"], -"Column": [ - {"Name": "id", - "Description": "XXX", - "Unit": "" }, - {"Name": "gid", - "Description": "XXX", - "Unit": "" }, - {"Name": "population", - "Description": "XXX", - "Unit": "" }, - {"Name": "inside_la", - "Description": "XXX", - "Unit": "" }, - {"Name": "geom", - "Description": "XXX", - "Unit": "" }, - {"Name": "geom_grid", - "Description": "XXX", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "XXX" } - ], -"ToDo": ["Please complete"], -"Licence": ["XXX"], -"Instructions for proper use": ["XXX"] -}'; - - -SELECT obj_description('social.ego_deu_loads_zensus'::regclass)::json; - --- - - --- - -COMMENT ON TABLE social.ego_deu_loads_zensus_cluster IS -'{ -"Name": "XXX", -"Source": [{ - "Name": "XXX", - "URL": "XXX" }], -"Reference date": "XXX", -"Date of collection": "XXX", -"Original file": "XXX", -"Spatial resolution": ["Germany"], -"Description": ["XXX"], -"Column": [ - {"Name": "cid", - "Description": "XXX", - "Unit": "" }, - {"Name": "zensus_sum", - "Description": "XXX", - "Unit": "" }, - {"Name": "area_ha", - "Description": "XXX", - "Unit": "" }, - {"Name": "geom", - "Description": "XXX", - "Unit": "" }, - {"Name": "geom_buffer", - "Description": "XXX", - "Unit": "" }, - {"Name": "geom_centroid", - "Description": "XXX", - "Unit": "" }, - {"Name": "geom_surfacepoint", - "Description": "XXX", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "XXX" } - ], -"ToDo": ["Please complete"], -"Licence": ["XXX"], -"Instructions for proper use": ["XXX"] -}'; - - -SELECT obj_description('social.ego_deu_loads_zensus_cluster'::regclass)::json; - --- - --- - -COMMENT ON TABLE social.genesis_bldg_with_housing_and_flats_by_bldg_type_per_mun IS -'{ -"Name": "XXX", -"Source": [{ - "Name": "XXX", - "URL": "XXX" }], -"Reference date": "XXX", -"Date of collection": "XXX", -"Original file": "XXX", -"Spatial resolution": ["Germany"], -"Description": ["XXX"], -"Column": [ - {"Name": "mun_id", - "Description": "XXX", - "Unit": "" }, - {"Name": "mun_name", - "Description": "XXX", - "Unit": "" }, - {"Name": "bldg_housing_total", - "Description": "XXX", - "Unit": "" }, - {"Name": "bldg_housing_house", - "Description": "XXX", - "Unit": "" }, - {"Name": "bldg_housing_reshome", - "Description": "XXX", - "Unit": "" }, - {"Name": "bldg_housing_other", - "Description": "XXX", - "Unit": "" }, - {"Name": "flat_housing_total", - "Description": "XXX", - "Unit": "" }, - {"Name": "flat_housing_house", - "Description": "XXX", - "Unit": "" }, - {"Name": "flat_housing_reshome", - "Description": "XXX", - "Unit": "" }, - {"Name": "flat_housing_other", - "Description": "XXX", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "XXX" } - ], -"ToDo": ["Please complete"], -"Licence": ["XXX"], -"Instructions for proper use": ["XXX"] -}'; - - -SELECT obj_description('social.genesis_bldg_with_housing_and_flats_by_bldg_type_per_mun'::regclass)::json; - --- - --- - -COMMENT ON TABLE social.genesis_bldg_with_housing_by_number_flats_per_mun IS -'{ -"Name": "XXX", -"Source": [{ - "Name": "XXX", - "URL": "XXX" }], -"Reference date": "XXX", -"Date of collection": "XXX", -"Original file": "XXX", -"Spatial resolution": ["Germany"], -"Description": ["XXX"], -"Column": [ - {"Name": "mun_id", - "Description": "XXX", - "Unit": "" }, - {"Name": "mun_name", - "Description": "XXX", - "Unit": "" }, - {"Name": "bldg_housing_total", - "Description": "XXX", - "Unit": "" }, - {"Name": "bldg_housing_flat_1", - "Description": "XXX", - "Unit": "" }, - {"Name": "bldg_housing_flat_2", - "Description": "XXX", - "Unit": "" }, - {"Name": "bldg_housing_flat_3-6", - "Description": "XXX", - "Unit": "" }, - {"Name": "bldg_housing_flat_7-12", - "Description": "XXX", - "Unit": "" }, - {"Name": "bldg_housing_flat_13-", - "Description": "XXX", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "XXX" } - ], -"ToDo": ["Please complete"], -"Licence": ["XXX"], -"Instructions for proper use": ["XXX"] -}'; - - -SELECT obj_description('social.genesis_bldg_with_housing_by_number_flats_per_mun'::regclass)::json; - --- - --- - -COMMENT ON TABLE social.genesis_flats_by_living_space_classes_per_mun IS -'{ -"Name": "XXX", -"Source": [{ - "Name": "XXX", - "URL": "XXX" }], -"Reference date": "XXX", -"Date of collection": "XXX", -"Original file": "XXX", -"Spatial resolution": ["Germany"], -"Description": ["XXX"], -"Column": [ - {"Name": "mun_id", - "Description": "XXX", - "Unit": "" }, - {"Name": "mun_name", - "Description": "XXX", - "Unit": "" }, - {"Name": "flats_total", - "Description": "XXX", - "Unit": "" }, - {"Name": "flats_0-40", - "Description": "XXX", - "Unit": "" }, - {"Name": "flats_40-59", - "Description": "XXX", - "Unit": "" }, - {"Name": "flats_60-79", - "Description": "XXX", - "Unit": "" }, - {"Name": "flats_80-99", - "Description": "XXX", - "Unit": "" }, - {"Name": "flats_100-119", - "Description": "XXX", - "Unit": "" }, - {"Name": "flats_120-139", - "Description": "XXX", - "Unit": "" }, - {"Name": "flats_140-159", - "Description": "XXX", - "Unit": "" }, - {"Name": "flats_160-179", - "Description": "XXX", - "Unit": "" }, - {"Name": "flats_180-199", - "Description": "XXX", - "Unit": "" }, - {"Name": "flats_200-", - "Description": "XXX", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "XXX" } - ], -"ToDo": ["Please complete"], -"Licence": ["XXX"], -"Instructions for proper use": ["XXX"] -}'; - - -SELECT obj_description('social.genesis_flats_by_living_space_classes_per_mun'::regclass)::json; - --- - --- - -COMMENT ON TABLE social.genesis_pop_dev_by_gender_per_mun IS -'{ -"Name": "XXX", -"Source": [{ - "Name": "XXX", - "URL": "XXX" }], -"Reference date": "XXX", -"Date of collection": "XXX", -"Original file": "XXX", -"Spatial resolution": ["Germany"], -"Description": ["XXX"], -"Column": [ - {"Name": "mun_id", - "Description": "XXX", - "Unit": "" }, - {"Name": "mun_name", - "Description": "XXX", - "Unit": "" }, - {"Name": "pop_2013_total", - "Description": "XXX", - "Unit": "" }, - {"Name": "pop_2013_male", - "Description": "XXX", - "Unit": "" }, - {"Name": "pop_2013_female", - "Description": "XXX", - "Unit": "" }, - {"Name": "pop_2012_total", - "Description": "XXX", - "Unit": "" }, - {"Name": "pop_2012_male", - "Description": "XXX", - "Unit": "" }, - {"Name": "pop_2012_female", - "Description": "XXX", - "Unit": "" }, - {"Name": "pop_2011_total", - "Description": "XXX", - "Unit": "" }, - {"Name": "pop_2011_male", - "Description": "XXX", - "Unit": "" }, - {"Name": "pop_2011_female", - "Description": "XXX", - "Unit": "" }, - {"Name": "pop_2010_total", - "Description": "XXX", - "Unit": "" }, - {"Name": "pop_2010_male", - "Description": "XXX", - "Unit": "" }, - {"Name": "pop_2010_female", - "Description": "XXX", - "Unit": "" }, - {"Name": "pop_2009_total", - "Description": "XXX", - "Unit": "" }, - {"Name": "pop_2009_male", - "Description": "XXX", - "Unit": "" }, - {"Name": "pop_2009_female", - "Description": "XXX", - "Unit": "" }, - {"Name": "pop_2008_total", - "Description": "XXX", - "Unit": "" }, - {"Name": "pop_2008_male", - "Description": "XXX", - "Unit": "" }, - {"Name": "pop_2008_female", - "Description": "XXX", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "XXX" } - ], -"ToDo": ["Please complete"], -"Licence": ["XXX"], -"Instructions for proper use": ["XXX"] -}'; - - -SELECT obj_description('social.genesis_pop_dev_by_gender_per_mun'::regclass)::json; - --- - --- - -COMMENT ON TABLE social.genesis_residential_bldg_by_number_flats_per_mun IS -'{ -"Name": "XXX", -"Source": [{ - "Name": "XXX", - "URL": "XXX" }], -"Reference date": "XXX", -"Date of collection": "XXX", -"Original file": "XXX", -"Spatial resolution": ["Germany"], -"Description": ["XXX"], -"Column": [ - {"Name": "mun_id", - "Description": "XXX", - "Unit": "" }, - {"Name": "mun_name", - "Description": "XXX", - "Unit": "" }, - {"Name": "r_bldg_total", - "Description": "XXX", - "Unit": "" }, - {"Name": "r_bldg_flat_1", - "Description": "XXX", - "Unit": "" }, - {"Name": "r_bldg_flat_2", - "Description": "XXX", - "Unit": "" }, - {"Name": "r_bldg_flat_3-6", - "Description": "XXX", - "Unit": "" }, - {"Name": "r_bldg_flat_7-12", - "Description": "XXX", - "Unit": "" }, - {"Name": "r_bldg_flat_13-", - "Description": "XXX", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "XXX" } - ], -"ToDo": ["Please complete"], -"Licence": ["XXX"], -"Instructions for proper use": ["XXX"] -}'; - - -SELECT obj_description('social.genesis_residential_bldg_by_number_flats_per_mun'::regclass)::json; - --- - --- - -COMMENT ON TABLE social.zensus_population_by_gender_per_mun IS -'{ -"Name": "XXX", -"Source": [{ - "Name": "XXX", - "URL": "XXX" }], -"Reference date": "XXX", -"Date of collection": "XXX", -"Original file": "XXX", -"Spatial resolution": ["Germany"], -"Description": ["XXX"], -"Column": [ - {"Name": "state_id", - "Description": "XXX", - "Unit": "" }, - {"Name": "state_name", - "Description": "XXX", - "Unit": "" }, - {"Name": "mun_id", - "Description": "XXX", - "Unit": "" }, - {"Name": "mun_name", - "Description": "XXX", - "Unit": "" }, - {"Name": "population", - "Description": "XXX", - "Unit": "" }, - {"Name": "pop_male", - "Description": "XXX", - "Unit": "" }, - {"Name": "pop_female", - "Description": "XXX", - "Unit": "" }, - {"Name": "population_old", - "Description": "XXX", - "Unit": "" }, - {"Name": "pop_male_old", - "Description": "XXX", - "Unit": "" }, - {"Name": "pop_female_old", - "Description": "XXX", - "Unit": "" }, - {"Name": "pop_diff", - "Description": "XXX", - "Unit": "" }, - {"Name": "pop_pct", - "Description": "XXX", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "XXX" } - ], -"ToDo": ["Please complete"], -"Licence": ["XXX"], -"Instructions for proper use": ["XXX"] -}'; - - -SELECT obj_description('social.zensus_population_by_gender_per_mun'::regclass)::json; - --- - --- - -COMMENT ON TABLE social.destatis_zensus_population_per_ha IS '{ - "Name": "German Census 2011 - Population in 100m grid", - "Source": [{ - "Name": "Statistisches Bundesamt (Destatis)", - "URL": "https://www.destatis.de/DE/Methoden/Zensus_/Zensus.html" }], - "Reference date": "2011", - "Date of collection": "03.02.2016", - "Original file": "https://www.zensus2011.de/SharedDocs/Downloads/DE/Pressemitteilung/DemografischeGrunddaten/csv_Bevoelkerung_100m_Gitter.zip", - "Spatial resolution": ["Germany"], - "Description": ["National census in Germany in 2011"], - "Column": [ - {"Name": "gid", "Description": "Unique identifier", "Unit": "" }, - {"Name": "grid_id", "Description": "Grid number of source", "Unit": "" }, - {"Name": "x_mp", "Description": "Latitude of centroid in (ETRS89 - LAEA; EPSG:3035)", "Unit": "" }, - {"Name": "y_mp", "Description": "Longitude of centroid in (ETRS89 - LAEA; EPSG:3035)", "Unit": "" }, - {"Name": "population", "Description": "Number of registred residents", "Unit": "human" }, - {"Name": "geom_point", "Description": "Geometry centroid", "Unit": "" }, - {"Name": "geom", "Description": "Geometry", "Unit": "" } ], - "Changes":[ - {"Name": "Ludwig Hülk", "Mail": "ludwig.huelk@rl-institut.de", - "Date": "03.02.2016","Comment": "Added Table"}, - {"Name": "Ludwig Hülk", "Mail": "ludwig.huelk@rl-institut.de", - "Date": "25.10.2016","Comment": "Moved table and add metadata"} ], - "ToDo": [""], - "Licence": ["Datenlizenz Deutschland – Namensnennung – Version 2.0"], - "Instructions for proper use": ["Empfohlene Zitierweise des Quellennachweises: Datenquelle: Statistisches Bundesamt, Wiesbaden, Genesis-Online, Abrufdatum; Datenlizenz by-2-0. Quellenvermerk bei eigener Berechnung / Darstellung: Datenquelle: Statistisches Bundesamt, Wiesbaden, Genesis-Online, Abrufdatum; Datenlizenz by-2-0; eigene Berechnung/eigene Darstellung. In elektronischen Werken ist im Quellenverweis dem Begriff (Datenlizenz by-2-0) der Link www.govdata.de/dl-de/by-2-0 als Verknüpfung zu hinterlegen."] - }'; - -SELECT obj_description('social.destatis_zensus_population_per_ha' ::regclass) ::json; - --- - - --- - -COMMENT ON TABLE social.zensus_population_per_ha_grid IS -'{ -"Name": "XXX", -"Source": [{ - "Name": "XXX", - "URL": "XXX" }], -"Reference date": "XXX", -"Date of collection": "XXX", -"Original file": "XXX", -"Spatial resolution": ["Germany"], -"Description": ["XXX"], -"Column": [ - {"Name": "gid", - "Description": "XXX", - "Unit": "" }, - {"Name": "gid_id", - "Description": "XXX", - "Unit": "" }, - {"Name": "x_mp", - "Description": "XXX", - "Unit": "" }, - {"Name": "y_mp", - "Description": "XXX", - "Unit": "" }, - {"Name": "population", - "Description": "XXX", - "Unit": "" }, - {"Name": "geom", - "Description": "XXX", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "XXX" } - ], -"ToDo": ["Please complete"], -"Licence": ["XXX"], -"Instructions for proper use": ["XXX"] -}'; - - -SELECT obj_description('social.zensus_population_per_ha_grid'::regclass)::json; - --- - - --- - -COMMENT ON TABLE social.zensus_population_per_ha_grid_cluster IS -'{ -"Name": "XXX", -"Source": [{ - "Name": "XXX", - "URL": "XXX" }], -"Reference date": "XXX", -"Date of collection": "XXX", -"Original file": "XXX", -"Spatial resolution": ["Germany"], -"Description": ["XXX"], -"Column": [ - {"Name": "cid", - "Description": "XXX", - "Unit": "" }, - {"Name": "population", - "Description": "XXX", - "Unit": "" }, - {"Name": "area_ha", - "Description": "XXX", - "Unit": "" }, - {"Name": "geom", - "Description": "XXX", - "Unit": "" }, - {"Name": "geom_pts", - "Description": "XXX", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "XXX" } - ], -"ToDo": ["Please complete"], -"Licence": ["XXX"], -"Instructions for proper use": ["XXX"] -}'; - - -SELECT obj_description('social.zensus_population_per_ha_grid_cluster'::regclass)::json; - --- - - --- - -COMMENT ON TABLE social.zensus_population_per_ha_raster IS -'{ -"Name": "XXX", -"Source": [{ - "Name": "XXX", - "URL": "XXX" }], -"Reference date": "XXX", -"Date of collection": "XXX", -"Original file": "XXX", -"Spatial resolution": ["Germany"], -"Description": ["XXX"], -"Column": [ - {"Name": "rid", - "Description": "XXX", - "Unit": "" }, - {"Name": "rast", - "Description": "XXX", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "XXX" } - ], -"ToDo": ["Please complete"], -"Licence": ["XXX"], -"Instructions for proper use": ["XXX"] -}'; - - -SELECT obj_description('social.zensus_population_per_ha_raster'::regclass)::json; - --- - --- - -COMMENT ON TABLE social.zensus_population_per_ha_raster_title100 IS -'{ -"Name": "XXX", -"Source": [{ - "Name": "XXX", - "URL": "XXX" }], -"Reference date": "XXX", -"Date of collection": "XXX", -"Original file": "XXX", -"Spatial resolution": ["Germany"], -"Description": ["XXX"], -"Column": [ - {"Name": "rid", - "Description": "XXX", - "Unit": "" }, - {"Name": "rast", - "Description": "XXX", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "XXX" } - ], -"ToDo": ["Please complete"], -"Licence": ["XXX"], -"Instructions for proper use": ["XXX"] -}'; - - -SELECT obj_description('social.zensus_population_per_ha_raster_title100'::regclass)::json; - --- - - --- - -COMMENT ON TABLE social.zensus_stats IS -'{ -"Name": "XXX", -"Source": [{ - "Name": "XXX", - "URL": "XXX" }], -"Reference date": "XXX", -"Date of collection": "XXX", -"Original file": "XXX", -"Spatial resolution": ["Germany"], -"Description": ["XXX"], -"Column": [ - {"Name": "scale", - "Description": "XXX", - "Unit": "" }, - {"Name": "summe_einwohner", - "Description": "XXX", - "Unit": "" }, - {"Name": "anzahl_zellen", - "Description": "XXX", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "XXX" } - ], -"ToDo": ["Please complete"], -"Licence": ["XXX"], -"Instructions for proper use": ["XXX"] -}'; - - -SELECT obj_description('social.zensus_stats'::regclass)::json; - --- - - - diff --git a/requirements.txt/SQL Documentation/orig_ego.sql b/requirements.txt/SQL Documentation/orig_ego.sql deleted file mode 100644 index 402b5fa1..00000000 --- a/requirements.txt/SQL Documentation/orig_ego.sql +++ /dev/null @@ -1,1677 +0,0 @@ --- - -COMMENT ON TABLE orig_ego.ego_deu_loads IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_ego.ego_deu_loads'::regclass)::json; - --- - --- - -COMMENT ON TABLE orig_ego.ego_deu_loads_collect IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_ego.ego_deu_loads_collect'::regclass)::json; - --- - --- - -COMMENT ON TABLE orig_ego.ego_deu_loads_consumption_spf IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "sector_consumption_residential", - "Description": "...", - "Unit": "" }, - {"Name": "sector_consumption_retail", - "Description": "...", - "Unit": "" }, - {"Name": "sector_consumption_industrial", - "Description": "...", - "Unit": "" }, - {"Name": "sector_consumption_agricultural", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_ego.ego_deu_loads_consumption_spf'::regclass)::json; - --- - --- - -COMMENT ON TABLE orig_ego.ego_deu_loads_melted IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_ego.ego_deu_loads_melted'::regclass)::json; - --- - --- - -COMMENT ON TABLE orig_ego.ego_deu_loads_melted_cut_gem IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_ego.ego_deu_loads_melted_cut_gem'::regclass)::json; - --- - - --- - -COMMENT ON TABLE orig_ego.ego_deu_loads_melted_spf IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }, - {"Name": "geom_centre", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_ego.ego_deu_loads_melted_spf'::regclass)::json; - --- - --- - -COMMENT ON TABLE orig_ego.ego_deu_loads_osm IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "area_ha", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_ego.ego_deu_loads_osm'::regclass)::json; - --- - --- - -COMMENT ON TABLE orig_ego.ego_deu_loads_spf IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }, - {"Name": "zensus_sum", - "Description": "...", - "Unit": "" }, - {"Name": "zensus_count", - "Description": "...", - "Unit": "" }, - {"Name": "zensus_density", - "Description": "...", - "Unit": "" }, - {"Name": "ioer_sum", - "Description": "...", - "Unit": "" }, - {"Name": "ioer_count", - "Description": "...", - "Unit": "" }, - {"Name": "ioer_density", - "Description": "...", - "Unit": "" }, - {"Name": "area_ha", - "Description": "...", - "Unit": "" }, - {"Name": "sector_area_residential", - "Description": "...", - "Unit": "" }, - {"Name": "sector_area_retail", - "Description": "...", - "Unit": "" }, - {"Name": "sector_area_industrial", - "Description": "...", - "Unit": "" }, - {"Name": "sector_area_agricultural", - "Description": "...", - "Unit": "" }, - {"Name": "sector_share_residential", - "Description": "...", - "Unit": "" }, - {"Name": "sector_share_retail", - "Description": "...", - "Unit": "" }, - {"Name": "sector_share_industrial", - "Description": "...", - "Unit": "" }, - {"Name": "sector_share_agricultural", - "Description": "...", - "Unit": "" }, - {"Name": "sector_count_residential", - "Description": "...", - "Unit": "" }, - {"Name": "sector_count_retail", - "Description": "...", - "Unit": "" }, - {"Name": "sector_count_industrial", - "Description": "...", - "Unit": "" }, - {"Name": "sector_count_agricultural", - "Description": "...", - "Unit": "" }, - {"Name": "subst_id", - "Description": "...", - "Unit": "" }, - {"Name": "nuts", - "Description": "...", - "Unit": "" }, - {"Name": "rs", - "Description": "...", - "Unit": "" }, - {"Name": "ags_0", - "Description": "...", - "Unit": "" }, - {"Name": "geom_centroid", - "Description": "...", - "Unit": "" }, - {"Name": "geom_surfacepoint", - "Description": "...", - "Unit": "" }, - {"Name": "geom_centre", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_ego.ego_deu_loads_spf'::regclass)::json; - --- - --- - -COMMENT ON TABLE orig_ego.ego_deu_loads_zensus IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "gid", - "Description": "...", - "Unit": "" }, - {"Name": "population", - "Description": "...", - "Unit": "" }, - {"Name": "inside_ha", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }, - {"Name": "geom_grid", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_ego.ego_deu_loads_zensus'::regclass)::json; - --- - - --- - -COMMENT ON TABLE orig_ego.ego_deu_loads_zensus_cluster IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "cid", - "Description": "...", - "Unit": "" }, - {"Name": "zensus_sum", - "Description": "...", - "Unit": "" }, - {"Name": "area_ha", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }, - {"Name": "geom_buffer", - "Description": "...", - "Unit": "" }, - {"Name": "geom_centroid", - "Description": "...", - "Unit": "" }, - {"Name": "geom_surfacepoint", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_ego.ego_deu_loads_zensus_cluster'::regclass)::json; - --- - --- - -COMMENT ON TABLE orig_ego.ego_deu_municipalities_sub IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "gid", - "Description": "...", - "Unit": "" }, - {"Name": "gen", - "Description": "...", - "Unit": "" }, - {"Name": "bez", - "Description": "...", - "Unit": "" }, - {"Name": "bem", - "Description": "...", - "Unit": "" }, - {"Name": "nuts", - "Description": "...", - "Unit": "" }, - {"Name": "rs_0", - "Description": "...", - "Unit": "" }, - {"Name": "ags_0", - "Description": "...", - "Unit": "" }, - {"Name": "area_ha", - "Description": "...", - "Unit": "" }, - {"Name": "count_ring", - "Description": "...", - "Unit": "" }, - {"Name": "path", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }, - {"Name": "is_ring", - "Description": "...", - "Unit": "" }, - {"Name": "sub_sum", - "Description": "...", - "Unit": "" }, - {"Name": "sub_type", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_ego.ego_deu_municipalities_sub'::regclass)::json; - --- - --- - -COMMENT ON TABLE orig_ego.ego_deu_municipalities_sub_3_nn IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "mun_id", - "Description": "...", - "Unit": "" }, - {"Name": "mun_ags_0", - "Description": "...", - "Unit": "" }, - {"Name": "sub_ags_0", - "Description": "...", - "Unit": "" }, - {"Name": "sub_id", - "Description": "...", - "Unit": "" }, - {"Name": "sub_type", - "Description": "...", - "Unit": "" }, - {"Name": "geom_sub", - "Description": "...", - "Unit": "" }, - {"Name": "distance", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_ego.ego_deu_municipalities_sub_3_nn'::regclass)::json; - --- - --- - -COMMENT ON TABLE orig_ego.ego_deu_peak_load_spf IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "retail", - "Description": "...", - "Unit": "" }, - {"Name": "residential", - "Description": "...", - "Unit": "" }, - {"Name": "industrial", - "Description": "...", - "Unit": "" }, - {"Name": "agricultural", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_ego.ego_deu_peak_load_spf'::regclass)::json; - --- - - - --- - -COMMENT ON TABLE orig_ego.ego_deu_substations_110 IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "sub_name", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }, - {"Name": "ags_0", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_ego.ego_deu_substations_110'::regclass)::json; - --- - - --- - -COMMENT ON TABLE orig_ego.ego_deu_substations_110_voronoi IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "geom", - "Description": "...", - "Unit": "" }, - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "sub_id", - "Description": "...", - "Unit": "" }, - {"Name": "sub_sum", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_ego.ego_deu_substations_110_voronoi'::regclass)::json; - --- - - --- - -COMMENT ON TABLE orig_ego.ego_deu_substations_110_voronoi_cut IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "sub_id", - "Description": "...", - "Unit": "" }, - {"Name": "mun_id", - "Description": "...", - "Unit": "" }, - {"Name": "voi_id", - "Description": "...", - "Unit": "" }, - {"Name": "ags_0", - "Description": "...", - "Unit": "" }, - {"Name": "sub_type", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }, - {"Name": "sub_sum", - "Description": "...", - "Unit": "" }, - {"Name": "geom_sub", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_ego.ego_deu_substations_110_voronoi_cut'::regclass)::json; - --- - - - --- - -COMMENT ON TABLE orig_ego.ego_deu_substations_110_voronoi_cut_nn_collect IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "sub_id", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_ego.ego_deu_substations_110_voronoi_cut_nn_collect'::regclass)::json; - --- - - --- - -COMMENT ON TABLE orig_ego.ego_substations_add IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "lon", - "Description": "...", - "Unit": "" }, - {"Name": "lat", - "Description": "...", - "Unit": "" }, - {"Name": "point", - "Description": "...", - "Unit": "" }, - {"Name": "polygon", - "Description": "...", - "Unit": "" }, - {"Name": "voltage", - "Description": "...", - "Unit": "" }, - {"Name": "power_type", - "Description": "...", - "Unit": "" }, - {"Name": "substation", - "Description": "...", - "Unit": "" }, - {"Name": "osm_id", - "Description": "...", - "Unit": "" }, - {"Name": "osm_www", - "Description": "...", - "Unit": "" }, - {"Name": "frequency", - "Description": "...", - "Unit": "" }, - {"Name": "name", - "Description": "...", - "Unit": "" }, - {"Name": "ref", - "Description": "...", - "Unit": "" }, - {"Name": "operator", - "Description": "...", - "Unit": "" }, - {"Name": "dbahn", - "Description": "...", - "Unit": "" }, - {"Name": "status", - "Description": "...", - "Unit": "" }, - {"Name": "visible", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }, - {"Name": "ags_0", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_ego.ego_substations_add'::regclass)::json; - --- - --- - -COMMENT ON TABLE orig_ego.ego_deu_substations_plus IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_ego.ego_deu_substations_plus'::regclass)::json; - --- - --- - -COMMENT ON TABLE orig_ego.ego_deu_substations_voronoi IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "geom", - "Description": "...", - "Unit": "" }, - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "subst_id", - "Description": "...", - "Unit": "" }, - {"Name": "subst_sum", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_ego.ego_deu_substations_voronoi'::regclass)::json; - --- - - --- - -COMMENT ON TABLE orig_ego.ego_deu_substations_voronoi_cut IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "subst_id", - "Description": "...", - "Unit": "" }, - {"Name": "mun_id", - "Description": "...", - "Unit": "" }, - {"Name": "voi_id", - "Description": "...", - "Unit": "" }, - {"Name": "ags_0", - "Description": "...", - "Unit": "" }, - {"Name": "subst_typ", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }, - {"Name": "subst_sum", - "Description": "...", - "Unit": "" }, - {"Name": "geom_sub", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_ego.ego_deu_substations_voronoi_cut'::regclass)::json; - --- - - --- - -COMMENT ON TABLE orig_ego.ego_deu_substations_voronoi_cut_nn IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "subst_id", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_ego.ego_deu_substations_voronoi_cut_nn'::regclass)::json; - --- - --- - -COMMENT ON TABLE orig_ego.ego_deu_substations_voronoi_cut_nn_collect IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "subst_id", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_ego.ego_deu_substations_voronoi_cut_nn_collect'::regclass)::json; - --- - - --- - -COMMENT ON TABLE orig_ego.ego_deu_voronoi_ehv IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "geom", - "Description": "...", - "Unit": "" }, - {"Name": "subst_id", - "Description": "...", - "Unit": "" }, - {"Name": "id", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_ego.ego_deu_voronoi_ehv'::regclass)::json; - --- - - --- - -COMMENT ON TABLE orig_ego.ego_grid_districts IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "subst_id", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }, - {"Name": "subst_sum", - "Description": "...", - "Unit": "" }, - {"Name": "area_ha", - "Description": "...", - "Unit": "" }, - {"Name": "geom_type", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_ego.ego_grid_districts'::regclass)::json; - --- - - --- - -COMMENT ON TABLE orig_ego.ego_grid_districts_collect IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "sub_id", - "Description": "...", - "Unit": "" }, - {"Name": "sub_name", - "Description": "...", - "Unit": "" }, - {"Name": "ags_0", - "Description": "...", - "Unit": "" }, - {"Name": "geom_sub", - "Description": "...", - "Unit": "" }, - {"Name": "sub_sum", - "Description": "...", - "Unit": "" }, - {"Name": "sub_type", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_ego.ego_grid_districts_collect'::regclass)::json; - --- - - --- - -COMMENT ON TABLE orig_ego.ego_grid_districts_dump IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "subst_id", - "Description": "...", - "Unit": "" }, - {"Name": "area_ha", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }, - {"Name": "subst_sum", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_ego.ego_grid_districts_dump'::regclass)::json; - --- - - --- - -COMMENT ON TABLE orig_ego.ego_grid_districts_hull IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "subst_id", - "Description": "...", - "Unit": "" }, - {"Name": "area_ha", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }, - {"Name": "subst_sum", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_ego.ego_grid_districts_hull'::regclass)::json; - --- - - --- - -COMMENT ON TABLE orig_ego.ego_grid_districts_type_1 IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "sub_id", - "Description": "...", - "Unit": "" }, - {"Name": "sub_name", - "Description": "...", - "Unit": "" }, - {"Name": "ags_0", - "Description": "...", - "Unit": "" }, - {"Name": "geom_sub", - "Description": "...", - "Unit": "" }, - {"Name": "sub_sum", - "Description": "...", - "Unit": "" }, - {"Name": "sub_type", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_ego.ego_grid_districts_type_1'::regclass)::json; - --- - - --- - -COMMENT ON TABLE orig_ego.ego_grid_districts_type_2 IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "sub_id", - "Description": "...", - "Unit": "" }, - {"Name": "sub_name", - "Description": "...", - "Unit": "" }, - {"Name": "ags_0", - "Description": "...", - "Unit": "" }, - {"Name": "geom_sub", - "Description": "...", - "Unit": "" }, - {"Name": "sub_sum", - "Description": "...", - "Unit": "" }, - {"Name": "sub_type", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_ego.ego_grid_districts_type_2'::regclass)::json; - --- - - --- - -COMMENT ON TABLE orig_ego.ego_grid_districts_type_3 IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "sub_id", - "Description": "...", - "Unit": "" }, - {"Name": "sub_name", - "Description": "...", - "Unit": "" }, - {"Name": "ags_0", - "Description": "...", - "Unit": "" }, - {"Name": "geom_sub", - "Description": "...", - "Unit": "" }, - {"Name": "sub_sum", - "Description": "...", - "Unit": "" }, - {"Name": "sub_type", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_ego.ego_grid_districts_type_3'::regclass)::json; - --- - - --- - -COMMENT ON TABLE orig_ego.netzinseln_110 IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "lon", - "Description": "...", - "Unit": "" }, - {"Name": "lat", - "Description": "...", - "Unit": "" }, - {"Name": "point", - "Description": "...", - "Unit": "" }, - {"Name": "polygon", - "Description": "...", - "Unit": "" }, - {"Name": "voltage", - "Description": "...", - "Unit": "" }, - {"Name": "power_type", - "Description": "...", - "Unit": "" }, - {"Name": "substation", - "Description": "...", - "Unit": "" }, - {"Name": "osm_id", - "Description": "...", - "Unit": "" }, - {"Name": "osm_www", - "Description": "...", - "Unit": "" }, - {"Name": "frequency", - "Description": "...", - "Unit": "" }, - {"Name": "name", - "Description": "...", - "Unit": "" }, - {"Name": "ref", - "Description": "...", - "Unit": "" }, - {"Name": "operator", - "Description": "...", - "Unit": "" }, - {"Name": "dbahn", - "Description": "...", - "Unit": "" }, - {"Name": "status", - "Description": "...", - "Unit": "" }, - {"Name": "visible", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_ego.netzinseln_110'::regclass)::json; - --- - --- - -COMMENT ON TABLE orig_ego.vg250_6_gem_clean IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "gid", - "Description": "...", - "Unit": "" }, - {"Name": "gen", - "Description": "...", - "Unit": "" }, - {"Name": "bez", - "Description": "...", - "Unit": "" }, - {"Name": "bem", - "Description": "...", - "Unit": "" }, - {"Name": "nuts", - "Description": "...", - "Unit": "" }, - {"Name": "rs_0", - "Description": "...", - "Unit": "" }, - {"Name": "ags_0", - "Description": "...", - "Unit": "" }, - {"Name": "area_ha", - "Description": "...", - "Unit": "" }, - {"Name": "count_ring", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_ego.vg250_6_gem_clean'::regclass)::json; - --- - - - - - diff --git a/requirements.txt/SQL Documentation/orig_ego_consumption.sql b/requirements.txt/SQL Documentation/orig_ego_consumption.sql deleted file mode 100644 index 8442e866..00000000 --- a/requirements.txt/SQL Documentation/orig_ego_consumption.sql +++ /dev/null @@ -1,199 +0,0 @@ --- - -COMMENT ON TABLE orig_ego_consumption.destatis_gva_per_districts IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "eu_code", - "Description": "...", - "Unit": "" }, - {"Name": "district", - "Description": "...", - "Unit": "" }, - {"Name": "total_gva", - "Description": "...", - "Unit": "" }, - {"Name": "gva_industry", - "Description": "...", - "Unit": "" }, - {"Name": "gva_tertiary_sector", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_ego_consumption.destatis_gva_per_districts'::regclass)::json; - --- - --- - -COMMENT ON TABLE orig_ego_consumption.lak_consumption_per_district IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "eu_code", - "Description": "...", - "Unit": "" }, - {"Name": "district", - "Description": "...", - "Unit": "" }, - {"Name": "elec_consumption_industry", - "Description": "...", - "Unit": "" }, - {"Name": "elec_consumption_tertiary_sector", - "Description": "...", - "Unit": "" }, - {"Name": "area_industry", - "Description": "...", - "Unit": "" }, - {"Name": "area_retail", - "Description": "...", - "Unit": "" }, - {"Name": "area_agricultural", - "Description": "...", - "Unit": "" }, - {"Name": "area_tertiary_sector", - "Description": "...", - "Unit": "" }, - {"Name": "consumption_per_area_industry", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_ego_consumption.lak_consumption_per_district'::regclass)::json; - --- - - --- - -COMMENT ON TABLE orig_ego_consumption.lak_consumption_per_federalstate IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "eu_code", - "Description": "...", - "Unit": "" }, - {"Name": "federal_states", - "Description": "...", - "Unit": "" }, - {"Name": "elec_consumption_housholds", - "Description": "...", - "Unit": "" }, - {"Name": "elec_consumption_industry", - "Description": "...", - "Unit": "" }, - {"Name": "elec_consumption_tertiary_sector", - "Description": "...", - "Unit": "" }, - {"Name": "population", - "Description": "...", - "Unit": "" }, - {"Name": "elec_consumption_households_per_person", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_ego_consumption.lak_consumption_per_federalstate'::regclass)::json; - --- - - --- - -COMMENT ON TABLE orig_ego_consumption.lak_consumption_per_federalstates_per_gva IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "eu_code", - "Description": "...", - "Unit": "" }, - {"Name": "federal_states", - "Description": "...", - "Unit": "" }, - {"Name": "elec_consumption_industry", - "Description": "...", - "Unit": "" }, - {"Name": "elec_consumption_tertiary_sector", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_ego_consumption.lak_consumption_per_federalstates_per_gva'::regclass)::json; - --- - - - diff --git a/requirements.txt/SQL Documentation/orig_geo_copernicus.sql b/requirements.txt/SQL Documentation/orig_geo_copernicus.sql deleted file mode 100644 index c6c4484c..00000000 --- a/requirements.txt/SQL Documentation/orig_geo_copernicus.sql +++ /dev/null @@ -1,208 +0,0 @@ --- - -COMMENT ON TABLE orig_geo_copernicus.copernicus_clc_2012_v_18_4 IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "ogc_fid", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }, - {"Name": "code_12", - "Description": "...", - "Unit": "" }, - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "remark", - "Description": "...", - "Unit": "" }, - {"Name": "area_ha", - "Description": "...", - "Unit": "" }, - {"Name": "shape_length", - "Description": "...", - "Unit": "" }, - {"Name": "shape_area", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_geo_copernicus.copernicus_clc_2012_v_18_4'::regclass)::json; - --- - --- - -COMMENT ON TABLE orig_geo_copernicus.copernicus_clc_2012_v_18_4_filter IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "ogc_fid", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }, - {"Name": "code_12", - "Description": "...", - "Unit": "" }, - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "remark", - "Description": "...", - "Unit": "" }, - {"Name": "area_ha", - "Description": "...", - "Unit": "" }, - {"Name": "shape_length", - "Description": "...", - "Unit": "" }, - {"Name": "shape_area", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_geo_copernicus.copernicus_clc_2012_v_18_4_filter'::regclass)::json; - --- - - --- - -COMMENT ON TABLE orig_geo_copernicus.copernicus_clc_2012_v_18_4_germany IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "ogc_fid", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }, - {"Name": "code_12", - "Description": "...", - "Unit": "" }, - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "remark", - "Description": "...", - "Unit": "" }, - {"Name": "area_ha", - "Description": "...", - "Unit": "" }, - {"Name": "shape_length", - "Description": "...", - "Unit": "" }, - {"Name": "shape_area", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_geo_copernicus.copernicus_clc_2012_v_18_4_germany'::regclass)::json; - --- - --- - -COMMENT ON TABLE orig_geo_copernicus.landuse_calc IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "source", - "Description": "...", - "Unit": "" }, - {"Name": "attribute", - "Description": "...", - "Unit": "" }, - {"Name": "count_int", - "Description": "...", - "Unit": "" }, - {"Name": "area_ha", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_geo_copernicus.landuse_calc'::regclass)::json; - --- - diff --git a/requirements.txt/SQL Documentation/orig_geo_dlm250.sql b/requirements.txt/SQL Documentation/orig_geo_dlm250.sql deleted file mode 100644 index b78b2265..00000000 --- a/requirements.txt/SQL Documentation/orig_geo_dlm250.sql +++ /dev/null @@ -1,2834 +0,0 @@ --- - -COMMENT ON TABLE orig_geo_dlm250.dlm250_geb01_f IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "gid", - "Description": "...", - "Unit": "" }, - {"Name": "land", - "Description": "...", - "Unit": "" }, - {"Name": "modellart", - "Description": "...", - "Unit": "" }, - {"Name": "objart", - "Description": "...", - "Unit": "" }, - {"Name": "objart_txt", - "Description": "...", - "Unit": "" }, - {"Name": "objid", - "Description": "...", - "Unit": "" }, - {"Name": "hdu_x", - "Description": "...", - "Unit": "" }, - {"Name": "beginn", - "Description": "...", - "Unit": "" }, - {"Name": "ende", - "Description": "...", - "Unit": "" }, - {"Name": "adm", - "Description": "...", - "Unit": "" }, - {"Name": "bez_nat", - "Description": "...", - "Unit": "" }, - {"Name": "bez_lan", - "Description": "...", - "Unit": "" }, - {"Name": "bez_rbz", - "Description": "...", - "Unit": "" }, - {"Name": "bez_krs", - "Description": "...", - "Unit": "" }, - {"Name": "bez_vwg", - "Description": "...", - "Unit": "" }, - {"Name": "bez_gem", - "Description": "...", - "Unit": "" }, - {"Name": "rgs", - "Description": "...", - "Unit": "" }, - {"Name": "sch", - "Description": "...", - "Unit": "" }, - {"Name": "bemerkung", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_geo_dlm250.dlm250_geb01_f'::regclass)::json; - --- - --- - -COMMENT ON TABLE orig_geo_dlm250.dlm250_geb01_l IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "gid", - "Description": "...", - "Unit": "" }, - {"Name": "land", - "Description": "...", - "Unit": "" }, - {"Name": "modellart", - "Description": "...", - "Unit": "" }, - {"Name": "objart", - "Description": "...", - "Unit": "" }, - {"Name": "objart_txt", - "Description": "...", - "Unit": "" }, - {"Name": "objid", - "Description": "...", - "Unit": "" }, - {"Name": "hdu_x", - "Description": "...", - "Unit": "" }, - {"Name": "beginn", - "Description": "...", - "Unit": "" }, - {"Name": "ende", - "Description": "...", - "Unit": "" }, - {"Name": "agz", - "Description": "...", - "Unit": "" }, - {"Name": "zus", - "Description": "...", - "Unit": "" }, - {"Name": "bemerkung", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_geo_dlm250.dlm250_geb01_l'::regclass)::json; - --- - --- - -COMMENT ON TABLE orig_geo_dlm250.dlm250_geb02_f IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "gid", - "Description": "...", - "Unit": "" }, - {"Name": "land", - "Description": "...", - "Unit": "" }, - {"Name": "modellart", - "Description": "...", - "Unit": "" }, - {"Name": "objart", - "Description": "...", - "Unit": "" }, - {"Name": "objart_txt", - "Description": "...", - "Unit": "" }, - {"Name": "objid", - "Description": "...", - "Unit": "" }, - {"Name": "hdu_x", - "Description": "...", - "Unit": "" }, - {"Name": "beginn", - "Description": "...", - "Unit": "" }, - {"Name": "ende", - "Description": "...", - "Unit": "" }, - {"Name": "ltp", - "Description": "...", - "Unit": "" }, - {"Name": "nam", - "Description": "...", - "Unit": "" }, - {"Name": "rgs", - "Description": "...", - "Unit": "" }, - {"Name": "bemerkung", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_geo_dlm250.dlm250_geb02_f'::regclass)::json; - --- - --- - -COMMENT ON TABLE orig_geo_dlm250.dlm250_geb03_f IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "gid", - "Description": "...", - "Unit": "" }, - {"Name": "land", - "Description": "...", - "Unit": "" }, - {"Name": "modellart", - "Description": "...", - "Unit": "" }, - {"Name": "objart", - "Description": "...", - "Unit": "" }, - {"Name": "objart_txt", - "Description": "...", - "Unit": "" }, - {"Name": "objid", - "Description": "...", - "Unit": "" }, - {"Name": "hdu_x", - "Description": "...", - "Unit": "" }, - {"Name": "beginn", - "Description": "...", - "Unit": "" }, - {"Name": "ende", - "Description": "...", - "Unit": "" }, - {"Name": "objart_z", - "Description": "...", - "Unit": "" }, - {"Name": "objid_z", - "Description": "...", - "Unit": "" }, - {"Name": "adf", - "Description": "...", - "Unit": "" }, - {"Name": "bez", - "Description": "...", - "Unit": "" }, - {"Name": "nam", - "Description": "...", - "Unit": "" }, - {"Name": "nrs", - "Description": "...", - "Unit": "" }, - {"Name": "sgn", - "Description": "...", - "Unit": "" }, - {"Name": "zon", - "Description": "...", - "Unit": "" }, - {"Name": "bemerkung", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_geo_dlm250.dlm250_geb03_f'::regclass)::json; - --- - --- - -COMMENT ON TABLE orig_geo_dlm250.dlm250_gew01_f IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "gid", - "Description": "...", - "Unit": "" }, - {"Name": "land", - "Description": "...", - "Unit": "" }, - {"Name": "modellart", - "Description": "...", - "Unit": "" }, - {"Name": "objart", - "Description": "...", - "Unit": "" }, - {"Name": "objart_txt", - "Description": "...", - "Unit": "" }, - {"Name": "objid", - "Description": "...", - "Unit": "" }, - {"Name": "hdu_x", - "Description": "...", - "Unit": "" }, - {"Name": "beginn", - "Description": "...", - "Unit": "" }, - {"Name": "ende", - "Description": "...", - "Unit": "" }, - {"Name": "objart_z", - "Description": "...", - "Unit": "" }, - {"Name": "objid_z", - "Description": "...", - "Unit": "" }, - {"Name": "fkt", - "Description": "...", - "Unit": "" }, - {"Name": "gwk", - "Description": "...", - "Unit": "" }, - {"Name": "hyd", - "Description": "...", - "Unit": "" }, - {"Name": "nam", - "Description": "...", - "Unit": "" }, - {"Name": "sfk", - "Description": "...", - "Unit": "" }, - {"Name": "sfz", - "Description": "...", - "Unit": "" }, - {"Name": "wdm", - "Description": "...", - "Unit": "" }, - {"Name": "znm", - "Description": "...", - "Unit": "" }, - {"Name": "zus", - "Description": "...", - "Unit": "" }, - {"Name": "bemerkung", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_geo_dlm250.dlm250_gew01_f'::regclass)::json; - --- - - --- - -COMMENT ON TABLE orig_geo_dlm250.dlm250_gew01_l IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "gid", - "Description": "...", - "Unit": "" }, - {"Name": "land", - "Description": "...", - "Unit": "" }, - {"Name": "modellart", - "Description": "...", - "Unit": "" }, - {"Name": "objart", - "Description": "...", - "Unit": "" }, - {"Name": "objart_txt", - "Description": "...", - "Unit": "" }, - {"Name": "objid", - "Description": "...", - "Unit": "" }, - {"Name": "hdu_x", - "Description": "...", - "Unit": "" }, - {"Name": "beginn", - "Description": "...", - "Unit": "" }, - {"Name": "ende", - "Description": "...", - "Unit": "" }, - {"Name": "objart_z", - "Description": "...", - "Unit": "" }, - {"Name": "objid_z", - "Description": "...", - "Unit": "" }, - {"Name": "brg", - "Description": "...", - "Unit": "" }, - {"Name": "fkt", - "Description": "...", - "Unit": "" }, - {"Name": "flr", - "Description": "...", - "Unit": "" }, - {"Name": "gwk", - "Description": "...", - "Unit": "" }, - {"Name": "hyd", - "Description": "...", - "Unit": "" }, - {"Name": "nam", - "Description": "...", - "Unit": "" }, - {"Name": "sfk", - "Description": "...", - "Unit": "" }, - {"Name": "wdm", - "Description": "...", - "Unit": "" }, - {"Name": "znm", - "Description": "...", - "Unit": "" }, - {"Name": "zus", - "Description": "...", - "Unit": "" }, - {"Name": "bemerkung", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_geo_dlm250.dlm250_gew01_l'::regclass)::json; - --- - - --- - -COMMENT ON TABLE orig_geo_dlm250.dlm250_gew02_f IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "gid", - "Description": "...", - "Unit": "" }, - {"Name": "land", - "Description": "...", - "Unit": "" }, - {"Name": "modellart", - "Description": "...", - "Unit": "" }, - {"Name": "objart", - "Description": "...", - "Unit": "" }, - {"Name": "objart_txt", - "Description": "...", - "Unit": "" }, - {"Name": "objid", - "Description": "...", - "Unit": "" }, - {"Name": "hdu_x", - "Description": "...", - "Unit": "" }, - {"Name": "beginn", - "Description": "...", - "Unit": "" }, - {"Name": "ende", - "Description": "...", - "Unit": "" }, - {"Name": "art", - "Description": "...", - "Unit": "" }, - {"Name": "nam", - "Description": "...", - "Unit": "" }, - {"Name": "znm", - "Description": "...", - "Unit": "" }, - {"Name": "zus", - "Description": "...", - "Unit": "" }, - {"Name": "bemerkung", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_geo_dlm250.dlm250_gew02_f'::regclass)::json; - --- - --- - -COMMENT ON TABLE orig_geo_dlm250.dlm250_gew02_l IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "gid", - "Description": "...", - "Unit": "" }, - {"Name": "land", - "Description": "...", - "Unit": "" }, - {"Name": "modellart", - "Description": "...", - "Unit": "" }, - {"Name": "objart", - "Description": "...", - "Unit": "" }, - {"Name": "objart_txt", - "Description": "...", - "Unit": "" }, - {"Name": "objid", - "Description": "...", - "Unit": "" }, - {"Name": "hdu_x", - "Description": "...", - "Unit": "" }, - {"Name": "beginn", - "Description": "...", - "Unit": "" }, - {"Name": "ende", - "Description": "...", - "Unit": "" }, - {"Name": "flr", - "Description": "...", - "Unit": "" }, - {"Name": "gwk", - "Description": "...", - "Unit": "" }, - {"Name": "nam", - "Description": "...", - "Unit": "" }, - {"Name": "bemerkung", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_geo_dlm250.dlm250_gew02_l'::regclass)::json; - --- - --- - -COMMENT ON TABLE orig_geo_dlm250.dlm250_gew02_p IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "gid", - "Description": "...", - "Unit": "" }, - {"Name": "land", - "Description": "...", - "Unit": "" }, - {"Name": "modellart", - "Description": "...", - "Unit": "" }, - {"Name": "objart", - "Description": "...", - "Unit": "" }, - {"Name": "objart_txt", - "Description": "...", - "Unit": "" }, - {"Name": "objid", - "Description": "...", - "Unit": "" }, - {"Name": "hdu_x", - "Description": "...", - "Unit": "" }, - {"Name": "beginn", - "Description": "...", - "Unit": "" }, - {"Name": "ende", - "Description": "...", - "Unit": "" }, - {"Name": "art", - "Description": "...", - "Unit": "" }, - {"Name": "hws", - "Description": "...", - "Unit": "" }, - {"Name": "nam", - "Description": "...", - "Unit": "" }, - {"Name": "znm", - "Description": "...", - "Unit": "" }, - {"Name": "bemerkung", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_geo_dlm250.dlm250_gew02_p'::regclass)::json; - --- - - --- - -COMMENT ON TABLE orig_geo_dlm250.dlm250_gew03_l IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "gid", - "Description": "...", - "Unit": "" }, - {"Name": "land", - "Description": "...", - "Unit": "" }, - {"Name": "modellart", - "Description": "...", - "Unit": "" }, - {"Name": "objart", - "Description": "...", - "Unit": "" }, - {"Name": "objart_txt", - "Description": "...", - "Unit": "" }, - {"Name": "objid", - "Description": "...", - "Unit": "" }, - {"Name": "hdu_x", - "Description": "...", - "Unit": "" }, - {"Name": "beginn", - "Description": "...", - "Unit": "" }, - {"Name": "ende", - "Description": "...", - "Unit": "" }, - {"Name": "aga", - "Description": "...", - "Unit": "" }, - {"Name": "flr", - "Description": "...", - "Unit": "" }, - {"Name": "gwk", - "Description": "...", - "Unit": "" }, - {"Name": "nam", - "Description": "...", - "Unit": "" }, - {"Name": "sfk", - "Description": "...", - "Unit": "" }, - {"Name": "znm", - "Description": "...", - "Unit": "" }, - {"Name": "bemerkung", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_geo_dlm250.dlm250_gew03_l'::regclass)::json; - --- - --- - -COMMENT ON TABLE orig_geo_dlm250.dlm250_hdu01_b IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "gid", - "Description": "...", - "Unit": "" }, - {"Name": "land", - "Description": "...", - "Unit": "" }, - {"Name": "objart_1", - "Description": "...", - "Unit": "" }, - {"Name": "objid_1", - "Description": "...", - "Unit": "" }, - {"Name": "ebene_1", - "Description": "...", - "Unit": "" }, - {"Name": "objart_2", - "Description": "...", - "Unit": "" }, - {"Name": "objid_2", - "Description": "...", - "Unit": "" }, - {"Name": "ebene_2", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_geo_dlm250.dlm250_hdu01_b'::regclass)::json; - --- - - --- - -COMMENT ON TABLE orig_geo_dlm250.dlm250_rel01_l IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "gid", - "Description": "...", - "Unit": "" }, - {"Name": "land", - "Description": "...", - "Unit": "" }, - {"Name": "modellart", - "Description": "...", - "Unit": "" }, - {"Name": "objart", - "Description": "...", - "Unit": "" }, - {"Name": "objart_txt", - "Description": "...", - "Unit": "" }, - {"Name": "objid", - "Description": "...", - "Unit": "" }, - {"Name": "hdu_x", - "Description": "...", - "Unit": "" }, - {"Name": "beginn", - "Description": "...", - "Unit": "" }, - {"Name": "ende", - "Description": "...", - "Unit": "" }, - {"Name": "objart_z", - "Description": "...", - "Unit": "" }, - {"Name": "objid_z", - "Description": "...", - "Unit": "" }, - {"Name": "art", - "Description": "...", - "Unit": "" }, - {"Name": "fkt", - "Description": "...", - "Unit": "" }, - {"Name": "hhl", - "Description": "...", - "Unit": "" }, - {"Name": "hho", - "Description": "...", - "Unit": "" }, - {"Name": "nam", - "Description": "...", - "Unit": "" }, - {"Name": "bemerkung", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_geo_dlm250.dlm250_rel01_l'::regclass)::json; - --- - - --- - -COMMENT ON TABLE orig_geo_dlm250.dlm250_rel01_p IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "gid", - "Description": "...", - "Unit": "" }, - {"Name": "land", - "Description": "...", - "Unit": "" }, - {"Name": "modellart", - "Description": "...", - "Unit": "" }, - {"Name": "objart", - "Description": "...", - "Unit": "" }, - {"Name": "objart_txt", - "Description": "...", - "Unit": "" }, - {"Name": "objid", - "Description": "...", - "Unit": "" }, - {"Name": "hdu_x", - "Description": "...", - "Unit": "" }, - {"Name": "beginn", - "Description": "...", - "Unit": "" }, - {"Name": "ende", - "Description": "...", - "Unit": "" }, - {"Name": "nam", - "Description": "...", - "Unit": "" }, - {"Name": "znm", - "Description": "...", - "Unit": "" }, - {"Name": "bemerkung", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_geo_dlm250.dlm250_rel01_p'::regclass)::json; - --- - --- - -COMMENT ON TABLE orig_geo_dlm250.dlm250_rel02_p IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "gid", - "Description": "...", - "Unit": "" }, - {"Name": "land", - "Description": "...", - "Unit": "" }, - {"Name": "modellart", - "Description": "...", - "Unit": "" }, - {"Name": "objart", - "Description": "...", - "Unit": "" }, - {"Name": "objart_txt", - "Description": "...", - "Unit": "" }, - {"Name": "objid", - "Description": "...", - "Unit": "" }, - {"Name": "hdu_x", - "Description": "...", - "Unit": "" }, - {"Name": "beginn", - "Description": "...", - "Unit": "" }, - {"Name": "ende", - "Description": "...", - "Unit": "" }, - {"Name": "ang", - "Description": "...", - "Unit": "" }, - {"Name": "hoehe", - "Description": "...", - "Unit": "" }, - {"Name": "bemerkung", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_geo_dlm250.dlm250_rel02_p'::regclass)::json; - --- - --- - -COMMENT ON TABLE orig_geo_dlm250.dlm250_sie01_f IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "gid", - "Description": "...", - "Unit": "" }, - {"Name": "land", - "Description": "...", - "Unit": "" }, - {"Name": "modellart", - "Description": "...", - "Unit": "" }, - {"Name": "objart", - "Description": "...", - "Unit": "" }, - {"Name": "objart_txt", - "Description": "...", - "Unit": "" }, - {"Name": "objid", - "Description": "...", - "Unit": "" }, - {"Name": "hdu_x", - "Description": "...", - "Unit": "" }, - {"Name": "beginn", - "Description": "...", - "Unit": "" }, - {"Name": "ende", - "Description": "...", - "Unit": "" }, - {"Name": "nam", - "Description": "...", - "Unit": "" }, - {"Name": "rgs", - "Description": "...", - "Unit": "" }, - {"Name": "bemerkung", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_geo_dlm250.dlm250_sie01_f'::regclass)::json; - --- - --- - -COMMENT ON TABLE orig_geo_dlm250.dlm250_sie01_p IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "gid", - "Description": "...", - "Unit": "" }, - {"Name": "land", - "Description": "...", - "Unit": "" }, - {"Name": "modellart", - "Description": "...", - "Unit": "" }, - {"Name": "objart", - "Description": "...", - "Unit": "" }, - {"Name": "objart_txt", - "Description": "...", - "Unit": "" }, - {"Name": "objid", - "Description": "...", - "Unit": "" }, - {"Name": "hdu_x", - "Description": "...", - "Unit": "" }, - {"Name": "beginn", - "Description": "...", - "Unit": "" }, - {"Name": "ende", - "Description": "...", - "Unit": "" }, - {"Name": "nam", - "Description": "...", - "Unit": "" }, - {"Name": "rgs", - "Description": "...", - "Unit": "" }, - {"Name": "bemerkung", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_geo_dlm250.dlm250_sie01_p'::regclass)::json; - --- - --- - -COMMENT ON TABLE orig_geo_dlm250.dlm250_sie02_f IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "gid", - "Description": "...", - "Unit": "" }, - {"Name": "land", - "Description": "...", - "Unit": "" }, - {"Name": "modellart", - "Description": "...", - "Unit": "" }, - {"Name": "objart", - "Description": "...", - "Unit": "" }, - {"Name": "objart_txt", - "Description": "...", - "Unit": "" }, - {"Name": "objid", - "Description": "...", - "Unit": "" }, - {"Name": "hdu_x", - "Description": "...", - "Unit": "" }, - {"Name": "beginn", - "Description": "...", - "Unit": "" }, - {"Name": "ende", - "Description": "...", - "Unit": "" }, - {"Name": "agt", - "Description": "...", - "Unit": "" }, - {"Name": "fkt", - "Description": "...", - "Unit": "" }, - {"Name": "nam", - "Description": "...", - "Unit": "" }, - {"Name": "rgs", - "Description": "...", - "Unit": "" }, - {"Name": "zus", - "Description": "...", - "Unit": "" }, - {"Name": "bemerkung", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_geo_dlm250.dlm250_sie02_f'::regclass)::json; - --- - --- - -COMMENT ON TABLE orig_geo_dlm250.dlm250_sie03_f IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "gid", - "Description": "...", - "Unit": "" }, - {"Name": "land", - "Description": "...", - "Unit": "" }, - {"Name": "modellart", - "Description": "...", - "Unit": "" }, - {"Name": "objart", - "Description": "...", - "Unit": "" }, - {"Name": "objart_txt", - "Description": "...", - "Unit": "" }, - {"Name": "objid", - "Description": "...", - "Unit": "" }, - {"Name": "hdu_x", - "Description": "...", - "Unit": "" }, - {"Name": "beginn", - "Description": "...", - "Unit": "" }, - {"Name": "ende", - "Description": "...", - "Unit": "" }, - {"Name": "bwf", - "Description": "...", - "Unit": "" }, - {"Name": "hho", - "Description": "...", - "Unit": "" }, - {"Name": "nam", - "Description": "...", - "Unit": "" }, - {"Name": "zus", - "Description": "...", - "Unit": "" }, - {"Name": "bemerkung", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_geo_dlm250.dlm250_sie03_f'::regclass)::json; - --- - --- - -COMMENT ON TABLE orig_geo_dlm250.dlm250_sie03_l IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "gid", - "Description": "...", - "Unit": "" }, - {"Name": "land", - "Description": "...", - "Unit": "" }, - {"Name": "modellart", - "Description": "...", - "Unit": "" }, - {"Name": "objart", - "Description": "...", - "Unit": "" }, - {"Name": "objart_txt", - "Description": "...", - "Unit": "" }, - {"Name": "objid", - "Description": "...", - "Unit": "" }, - {"Name": "hdu_x", - "Description": "...", - "Unit": "" }, - {"Name": "beginn", - "Description": "...", - "Unit": "" }, - {"Name": "ende", - "Description": "...", - "Unit": "" }, - {"Name": "bwf", - "Description": "...", - "Unit": "" }, - {"Name": "pro", - "Description": "...", - "Unit": "" }, - {"Name": "bemerkung", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_geo_dlm250.dlm250_sie03_l'::regclass)::json; - --- - --- - -COMMENT ON TABLE orig_geo_dlm250.dlm250_sie03_p IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "gid", - "Description": "...", - "Unit": "" }, - {"Name": "land", - "Description": "...", - "Unit": "" }, - {"Name": "modellart", - "Description": "...", - "Unit": "" }, - {"Name": "objart", - "Description": "...", - "Unit": "" }, - {"Name": "objart_txt", - "Description": "...", - "Unit": "" }, - {"Name": "objid", - "Description": "...", - "Unit": "" }, - {"Name": "hdu_x", - "Description": "...", - "Unit": "" }, - {"Name": "beginn", - "Description": "...", - "Unit": "" }, - {"Name": "ende", - "Description": "...", - "Unit": "" }, - {"Name": "bwf", - "Description": "...", - "Unit": "" }, - {"Name": "hho", - "Description": "...", - "Unit": "" }, - {"Name": "nam", - "Description": "...", - "Unit": "" }, - {"Name": "spo", - "Description": "...", - "Unit": "" }, - {"Name": "zus", - "Description": "...", - "Unit": "" }, - {"Name": "bemerkung", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_geo_dlm250.dlm250_sie03_p'::regclass)::json; - --- - --- - -COMMENT ON TABLE orig_geo_dlm250.dlm250_sie04_f IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "gid", - "Description": "...", - "Unit": "" }, - {"Name": "land", - "Description": "...", - "Unit": "" }, - {"Name": "modellart", - "Description": "...", - "Unit": "" }, - {"Name": "objart", - "Description": "...", - "Unit": "" }, - {"Name": "objart_txt", - "Description": "...", - "Unit": "" }, - {"Name": "objid", - "Description": "...", - "Unit": "" }, - {"Name": "hdu_x", - "Description": "...", - "Unit": "" }, - {"Name": "beginn", - "Description": "...", - "Unit": "" }, - {"Name": "ende", - "Description": "...", - "Unit": "" }, - {"Name": "nam", - "Description": "...", - "Unit": "" }, - {"Name": "bemerkung", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_geo_dlm250.dlm250_sie04_f'::regclass)::json; - --- - --- - -COMMENT ON TABLE orig_geo_dlm250.dlm250_sie04_l IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "gid", - "Description": "...", - "Unit": "" }, - {"Name": "land", - "Description": "...", - "Unit": "" }, - {"Name": "modellart", - "Description": "...", - "Unit": "" }, - {"Name": "objart", - "Description": "...", - "Unit": "" }, - {"Name": "objart_txt", - "Description": "...", - "Unit": "" }, - {"Name": "objid", - "Description": "...", - "Unit": "" }, - {"Name": "hdu_x", - "Description": "...", - "Unit": "" }, - {"Name": "beginn", - "Description": "...", - "Unit": "" }, - {"Name": "ende", - "Description": "...", - "Unit": "" }, - {"Name": "kon", - "Description": "...", - "Unit": "" }, - {"Name": "nam", - "Description": "...", - "Unit": "" }, - {"Name": "zus", - "Description": "...", - "Unit": "" }, - {"Name": "bemerkung", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_geo_dlm250.dlm250_sie04_l'::regclass)::json; - --- - --- - -COMMENT ON TABLE orig_geo_dlm250.dlm250_sie04_p IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "gid", - "Description": "...", - "Unit": "" }, - {"Name": "land", - "Description": "...", - "Unit": "" }, - {"Name": "modellart", - "Description": "...", - "Unit": "" }, - {"Name": "objart", - "Description": "...", - "Unit": "" }, - {"Name": "objart_txt", - "Description": "...", - "Unit": "" }, - {"Name": "objid", - "Description": "...", - "Unit": "" }, - {"Name": "hdu_x", - "Description": "...", - "Unit": "" }, - {"Name": "beginn", - "Description": "...", - "Unit": "" }, - {"Name": "ende", - "Description": "...", - "Unit": "" }, - {"Name": "kon", - "Description": "...", - "Unit": "" }, - {"Name": "nam", - "Description": "...", - "Unit": "" }, - {"Name": "zus", - "Description": "...", - "Unit": "" }, - {"Name": "bemerkung", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_geo_dlm250.dlm250_sie04_p'::regclass)::json; - --- - --- - -COMMENT ON TABLE orig_geo_dlm250.dlm250_sie05_p IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "gid", - "Description": "...", - "Unit": "" }, - {"Name": "land", - "Description": "...", - "Unit": "" }, - {"Name": "modellart", - "Description": "...", - "Unit": "" }, - {"Name": "objart", - "Description": "...", - "Unit": "" }, - {"Name": "objart_txt", - "Description": "...", - "Unit": "" }, - {"Name": "objid", - "Description": "...", - "Unit": "" }, - {"Name": "hdu_x", - "Description": "...", - "Unit": "" }, - {"Name": "beginn", - "Description": "...", - "Unit": "" }, - {"Name": "ende", - "Description": "...", - "Unit": "" }, - {"Name": "bwf", - "Description": "...", - "Unit": "" }, - {"Name": "gfk", - "Description": "...", - "Unit": "" }, - {"Name": "hho", - "Description": "...", - "Unit": "" }, - {"Name": "nam", - "Description": "...", - "Unit": "" }, - {"Name": "znm", - "Description": "...", - "Unit": "" }, - {"Name": "zus", - "Description": "...", - "Unit": "" }, - {"Name": "bemerkung", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_geo_dlm250.dlm250_sie05_p'::regclass)::json; - --- - --- - -COMMENT ON TABLE orig_geo_dlm250.dlm250_veg01_f IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "gid", - "Description": "...", - "Unit": "" }, - {"Name": "land", - "Description": "...", - "Unit": "" }, - {"Name": "modellart", - "Description": "...", - "Unit": "" }, - {"Name": "objart", - "Description": "...", - "Unit": "" }, - {"Name": "objart_txt", - "Description": "...", - "Unit": "" }, - {"Name": "objid", - "Description": "...", - "Unit": "" }, - {"Name": "hdu_x", - "Description": "...", - "Unit": "" }, - {"Name": "beginn", - "Description": "...", - "Unit": "" }, - {"Name": "ende", - "Description": "...", - "Unit": "" }, - {"Name": "nam", - "Description": "...", - "Unit": "" }, - {"Name": "veg", - "Description": "...", - "Unit": "" }, - {"Name": "bemerkung", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_geo_dlm250.dlm250_veg01_f'::regclass)::json; - --- - --- - -COMMENT ON TABLE orig_geo_dlm250.dlm250_veg02_f IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "gid", - "Description": "...", - "Unit": "" }, - {"Name": "land", - "Description": "...", - "Unit": "" }, - {"Name": "modellart", - "Description": "...", - "Unit": "" }, - {"Name": "objart", - "Description": "...", - "Unit": "" }, - {"Name": "objart_txt", - "Description": "...", - "Unit": "" }, - {"Name": "objid", - "Description": "...", - "Unit": "" }, - {"Name": "hdu_x", - "Description": "...", - "Unit": "" }, - {"Name": "beginn", - "Description": "...", - "Unit": "" }, - {"Name": "ende", - "Description": "...", - "Unit": "" }, - {"Name": "nam", - "Description": "...", - "Unit": "" }, - {"Name": "zus", - "Description": "...", - "Unit": "" }, - {"Name": "bemerkung", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_geo_dlm250.dlm250_veg02_f'::regclass)::json; - --- - --- - -COMMENT ON TABLE orig_geo_dlm250.dlm250_veg03_f IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "gid", - "Description": "...", - "Unit": "" }, - {"Name": "land", - "Description": "...", - "Unit": "" }, - {"Name": "modellart", - "Description": "...", - "Unit": "" }, - {"Name": "objart", - "Description": "...", - "Unit": "" }, - {"Name": "objart_txt", - "Description": "...", - "Unit": "" }, - {"Name": "objid", - "Description": "...", - "Unit": "" }, - {"Name": "hdu_x", - "Description": "...", - "Unit": "" }, - {"Name": "beginn", - "Description": "...", - "Unit": "" }, - {"Name": "ende", - "Description": "...", - "Unit": "" }, - {"Name": "fkt", - "Description": "...", - "Unit": "" }, - {"Name": "nam", - "Description": "...", - "Unit": "" }, - {"Name": "ofm", - "Description": "...", - "Unit": "" }, - {"Name": "bemerkung", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_geo_dlm250.dlm250_veg03_f'::regclass)::json; - --- - --- - -COMMENT ON TABLE orig_geo_dlm250.dlm250_veg04_f IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "gid", - "Description": "...", - "Unit": "" }, - {"Name": "land", - "Description": "...", - "Unit": "" }, - {"Name": "modellart", - "Description": "...", - "Unit": "" }, - {"Name": "objart", - "Description": "...", - "Unit": "" }, - {"Name": "objart_txt", - "Description": "...", - "Unit": "" }, - {"Name": "objid", - "Description": "...", - "Unit": "" }, - {"Name": "hdu_x", - "Description": "...", - "Unit": "" }, - {"Name": "beginn", - "Description": "...", - "Unit": "" }, - {"Name": "ende", - "Description": "...", - "Unit": "" }, - {"Name": "bws", - "Description": "...", - "Unit": "" }, - {"Name": "nam", - "Description": "...", - "Unit": "" }, - {"Name": "zus", - "Description": "...", - "Unit": "" }, - {"Name": "bemerkung", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_geo_dlm250.dlm250_veg04_f'::regclass)::json; - --- - --- - -COMMENT ON TABLE orig_geo_dlm250.dlm250_ver01_l IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "gid", - "Description": "...", - "Unit": "" }, - {"Name": "land", - "Description": "...", - "Unit": "" }, - {"Name": "modellart", - "Description": "...", - "Unit": "" }, - {"Name": "objart", - "Description": "...", - "Unit": "" }, - {"Name": "objart_txt", - "Description": "...", - "Unit": "" }, - {"Name": "objid", - "Description": "...", - "Unit": "" }, - {"Name": "hdu_x", - "Description": "...", - "Unit": "" }, - {"Name": "beginn", - "Description": "...", - "Unit": "" }, - {"Name": "ende", - "Description": "...", - "Unit": "" }, - {"Name": "objart_z", - "Description": "...", - "Unit": "" }, - {"Name": "objid_z", - "Description": "...", - "Unit": "" }, - {"Name": "bez", - "Description": "...", - "Unit": "" }, - {"Name": "brf", - "Description": "...", - "Unit": "" }, - {"Name": "bvb", - "Description": "...", - "Unit": "" }, - {"Name": "fsz", - "Description": "...", - "Unit": "" }, - {"Name": "ftr", - "Description": "...", - "Unit": "" }, - {"Name": "ibd", - "Description": "...", - "Unit": "" }, - {"Name": "wdm", - "Description": "...", - "Unit": "" }, - {"Name": "znm", - "Description": "...", - "Unit": "" }, - {"Name": "zus", - "Description": "...", - "Unit": "" }, - {"Name": "bemerkung", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_geo_dlm250.dlm250_ver01_l'::regclass)::json; - --- - - --- - -COMMENT ON TABLE orig_geo_dlm250.dlm250_ver02_l IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "gid", - "Description": "...", - "Unit": "" }, - {"Name": "land", - "Description": "...", - "Unit": "" }, - {"Name": "modellart", - "Description": "...", - "Unit": "" }, - {"Name": "objart", - "Description": "...", - "Unit": "" }, - {"Name": "objart_txt", - "Description": "...", - "Unit": "" }, - {"Name": "objid", - "Description": "...", - "Unit": "" }, - {"Name": "hdu_x", - "Description": "...", - "Unit": "" }, - {"Name": "beginn", - "Description": "...", - "Unit": "" }, - {"Name": "ende", - "Description": "...", - "Unit": "" }, - {"Name": "fkt", - "Description": "...", - "Unit": "" }, - {"Name": "nam", - "Description": "...", - "Unit": "" }, - {"Name": "znm", - "Description": "...", - "Unit": "" }, - {"Name": "bemerkung", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_geo_dlm250.dlm250_ver02_l'::regclass)::json; - --- - - --- - -COMMENT ON TABLE orig_geo_dlm250.dlm250_ver03_f IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "gid", - "Description": "...", - "Unit": "" }, - {"Name": "land", - "Description": "...", - "Unit": "" }, - {"Name": "modellart", - "Description": "...", - "Unit": "" }, - {"Name": "objart", - "Description": "...", - "Unit": "" }, - {"Name": "objart_txt", - "Description": "...", - "Unit": "" }, - {"Name": "objid", - "Description": "...", - "Unit": "" }, - {"Name": "hdu_x", - "Description": "...", - "Unit": "" }, - {"Name": "beginn", - "Description": "...", - "Unit": "" }, - {"Name": "ende", - "Description": "...", - "Unit": "" }, - {"Name": "bemerkung", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_geo_dlm250.dlm250_ver03_f'::regclass)::json; - --- - - --- - -COMMENT ON TABLE orig_geo_dlm250.dlm250_ver03_l IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "gid", - "Description": "...", - "Unit": "" }, - {"Name": "land", - "Description": "...", - "Unit": "" }, - {"Name": "modellart", - "Description": "...", - "Unit": "" }, - {"Name": "objart", - "Description": "...", - "Unit": "" }, - {"Name": "objart_txt", - "Description": "...", - "Unit": "" }, - {"Name": "objid", - "Description": "...", - "Unit": "" }, - {"Name": "hdu_x", - "Description": "...", - "Unit": "" }, - {"Name": "beginn", - "Description": "...", - "Unit": "" }, - {"Name": "ende", - "Description": "...", - "Unit": "" }, - {"Name": "bkt", - "Description": "...", - "Unit": "" }, - {"Name": "elk", - "Description": "...", - "Unit": "" }, - {"Name": "gls", - "Description": "...", - "Unit": "" }, - {"Name": "nam", - "Description": "...", - "Unit": "" }, - {"Name": "nrb", - "Description": "...", - "Unit": "" }, - {"Name": "spw", - "Description": "...", - "Unit": "" }, - {"Name": "znm", - "Description": "...", - "Unit": "" }, - {"Name": "zus", - "Description": "...", - "Unit": "" }, - {"Name": "bemerkung", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_geo_dlm250.dlm250_ver03_l'::regclass)::json; - --- - - --- - -COMMENT ON TABLE orig_geo_dlm250.dlm250_ver04_f IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "gid", - "Description": "...", - "Unit": "" }, - {"Name": "land", - "Description": "...", - "Unit": "" }, - {"Name": "modellart", - "Description": "...", - "Unit": "" }, - {"Name": "objart", - "Description": "...", - "Unit": "" }, - {"Name": "objart_txt", - "Description": "...", - "Unit": "" }, - {"Name": "objid", - "Description": "...", - "Unit": "" }, - {"Name": "hdu_x", - "Description": "...", - "Unit": "" }, - {"Name": "beginn", - "Description": "...", - "Unit": "" }, - {"Name": "ende", - "Description": "...", - "Unit": "" }, - {"Name": "art", - "Description": "...", - "Unit": "" }, - {"Name": "bez", - "Description": "...", - "Unit": "" }, - {"Name": "nam", - "Description": "...", - "Unit": "" }, - {"Name": "ntz", - "Description": "...", - "Unit": "" }, - {"Name": "znm", - "Description": "...", - "Unit": "" }, - {"Name": "zus", - "Description": "...", - "Unit": "" }, - {"Name": "bemerkung", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_geo_dlm250.dlm250_ver04_f'::regclass)::json; - --- - - --- - -COMMENT ON TABLE orig_geo_dlm250.dlm250_ver05_l IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "gid", - "Description": "...", - "Unit": "" }, - {"Name": "land", - "Description": "...", - "Unit": "" }, - {"Name": "modellart", - "Description": "...", - "Unit": "" }, - {"Name": "objart", - "Description": "...", - "Unit": "" }, - {"Name": "objart_txt", - "Description": "...", - "Unit": "" }, - {"Name": "objid", - "Description": "...", - "Unit": "" }, - {"Name": "hdu_x", - "Description": "...", - "Unit": "" }, - {"Name": "beginn", - "Description": "...", - "Unit": "" }, - {"Name": "ende", - "Description": "...", - "Unit": "" }, - {"Name": "art", - "Description": "...", - "Unit": "" }, - {"Name": "nam", - "Description": "...", - "Unit": "" }, - {"Name": "bemerkung", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_geo_dlm250.dlm250_ver05_l'::regclass)::json; - --- - --- - -COMMENT ON TABLE orig_geo_dlm250.dlm250_ver06_f IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "gid", - "Description": "...", - "Unit": "" }, - {"Name": "land", - "Description": "...", - "Unit": "" }, - {"Name": "modellart", - "Description": "...", - "Unit": "" }, - {"Name": "objart", - "Description": "...", - "Unit": "" }, - {"Name": "objart_txt", - "Description": "...", - "Unit": "" }, - {"Name": "objid", - "Description": "...", - "Unit": "" }, - {"Name": "hdu_x", - "Description": "...", - "Unit": "" }, - {"Name": "beginn", - "Description": "...", - "Unit": "" }, - {"Name": "ende", - "Description": "...", - "Unit": "" }, - {"Name": "bwf", - "Description": "...", - "Unit": "" }, - {"Name": "nam", - "Description": "...", - "Unit": "" }, - {"Name": "zus", - "Description": "...", - "Unit": "" }, - {"Name": "bemerkung", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_geo_dlm250.dlm250_ver06_f'::regclass)::json; - --- - - --- - -COMMENT ON TABLE orig_geo_dlm250.dlm250_ver06_l IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "gid", - "Description": "...", - "Unit": "" }, - {"Name": "land", - "Description": "...", - "Unit": "" }, - {"Name": "modellart", - "Description": "...", - "Unit": "" }, - {"Name": "objart", - "Description": "...", - "Unit": "" }, - {"Name": "objart_txt", - "Description": "...", - "Unit": "" }, - {"Name": "objid", - "Description": "...", - "Unit": "" }, - {"Name": "hdu_x", - "Description": "...", - "Unit": "" }, - {"Name": "beginn", - "Description": "...", - "Unit": "" }, - {"Name": "ende", - "Description": "...", - "Unit": "" }, - {"Name": "art", - "Description": "...", - "Unit": "" }, - {"Name": "bez", - "Description": "...", - "Unit": "" }, - {"Name": "bro", - "Description": "...", - "Unit": "" }, - {"Name": "bwf", - "Description": "...", - "Unit": "" }, - {"Name": "nam", - "Description": "...", - "Unit": "" }, - {"Name": "ofm", - "Description": "...", - "Unit": "" }, - {"Name": "znm", - "Description": "...", - "Unit": "" }, - {"Name": "zus", - "Description": "...", - "Unit": "" }, - {"Name": "bemerkung", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_geo_dlm250.dlm250_ver06_l'::regclass)::json; - --- - --- - -COMMENT ON TABLE orig_geo_dlm250.dlm250_ver06_p IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "gid", - "Description": "...", - "Unit": "" }, - {"Name": "land", - "Description": "...", - "Unit": "" }, - {"Name": "modellart", - "Description": "...", - "Unit": "" }, - {"Name": "objart", - "Description": "...", - "Unit": "" }, - {"Name": "objart_txt", - "Description": "...", - "Unit": "" }, - {"Name": "objid", - "Description": "...", - "Unit": "" }, - {"Name": "hdu_x", - "Description": "...", - "Unit": "" }, - {"Name": "beginn", - "Description": "...", - "Unit": "" }, - {"Name": "ende", - "Description": "...", - "Unit": "" }, - {"Name": "art", - "Description": "...", - "Unit": "" }, - {"Name": "bez", - "Description": "...", - "Unit": "" }, - {"Name": "bfk", - "Description": "...", - "Unit": "" }, - {"Name": "bro", - "Description": "...", - "Unit": "" }, - {"Name": "bwf", - "Description": "...", - "Unit": "" }, - {"Name": "nam", - "Description": "...", - "Unit": "" }, - {"Name": "ofm", - "Description": "...", - "Unit": "" }, - {"Name": "znm", - "Description": "...", - "Unit": "" }, - {"Name": "zus", - "Description": "...", - "Unit": "" }, - {"Name": "bemerkung", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_geo_dlm250.dlm250_ver06_p'::regclass)::json; - --- - diff --git a/requirements.txt/SQL Documentation/orig_geo_ego_jg.sql b/requirements.txt/SQL Documentation/orig_geo_ego_jg.sql deleted file mode 100644 index 02e3cb66..00000000 --- a/requirements.txt/SQL Documentation/orig_geo_ego_jg.sql +++ /dev/null @@ -1,3094 +0,0 @@ --- - -COMMENT ON TABLE orig_geo_ego_jg.ego_deu_loads IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }, - {"Name": "zensus_sum", - "Description": "...", - "Unit": "" }, - {"Name": "zensus_count", - "Description": "...", - "Unit": "" }, - {"Name": "zensus_density", - "Description": "...", - "Unit": "" }, - {"Name": "ioer_sum", - "Description": "...", - "Unit": "" }, - {"Name": "ioer_count", - "Description": "...", - "Unit": "" }, - {"Name": "ioer_density", - "Description": "...", - "Unit": "" }, - {"Name": "area_ha", - "Description": "...", - "Unit": "" }, - {"Name": "sector_area_residential", - "Description": "...", - "Unit": "" }, - {"Name": "sector_area_retail", - "Description": "...", - "Unit": "" }, - {"Name": "sector_area_industrial", - "Description": "...", - "Unit": "" }, - {"Name": "sector_area_agricultural", - "Description": "...", - "Unit": "" }, - {"Name": "sector_share_residential", - "Description": "...", - "Unit": "" }, - {"Name": "sector_share_retail", - "Description": "...", - "Unit": "" }, - {"Name": "sector_share_industrial", - "Description": "...", - "Unit": "" }, - {"Name": "sector_share_agricultural", - "Description": "...", - "Unit": "" }, - {"Name": "sector_count_residential", - "Description": "...", - "Unit": "" }, - {"Name": "sector_count_retail", - "Description": "...", - "Unit": "" }, - {"Name": "sector_count_industrial", - "Description": "...", - "Unit": "" }, - {"Name": "sector_count_agricultural", - "Description": "...", - "Unit": "" }, - {"Name": "mv_poly_id", - "Description": "...", - "Unit": "" }, - {"Name": "nuts", - "Description": "...", - "Unit": "" }, - {"Name": "rs", - "Description": "...", - "Unit": "" }, - {"Name": "ags_0", - "Description": "...", - "Unit": "" }, - {"Name": "geom_centroid", - "Description": "...", - "Unit": "" }, - {"Name": "geom_surfacepoint", - "Description": "...", - "Unit": "" }, - {"Name": "geom_centre", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_geo_ego_jg.ego_deu_loads'::regclass)::json; - --- - --- - -COMMENT ON TABLE orig_geo_ego_jg.ego_deu_loads_collect IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_geo_ego_jg.ego_deu_loads_collect'::regclass)::json; - --- - - --- - -COMMENT ON TABLE orig_geo_ego_jg.ego_deu_loads_collect_buffer100 IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_geo_ego_jg.ego_deu_loads_collect_buffer100'::regclass)::json; - --- - --- - -COMMENT ON TABLE orig_geo_ego_jg.ego_deu_loads_collect_buffer100_unbuffer IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }, - {"Name": "geom_centroid", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_geo_ego_jg.ego_deu_loads_collect_buffer100_unbuffer'::regclass)::json; - --- --- - -COMMENT ON TABLE orig_geo_ego_jg.ego_deu_loads_collect_buffer100_unbuffer_cut IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }, - {"Name": "geom_buffer", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_geo_ego_jg.ego_deu_loads_collect_buffer100_unbuffer_cut'::regclass)::json; - --- - --- - -COMMENT ON TABLE orig_geo_ego_jg.ego_deu_loads_collect_buffer100_unbuffer_cut_gem IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_geo_ego_jg.ego_deu_loads_collect_buffer100_unbuffer_cut_gem'::regclass)::json; - --- - --- - -COMMENT ON TABLE orig_geo_ego_jg.ego_deu_loads_collect_buffer100_unbuffer_cut_spf IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_geo_ego_jg.ego_deu_loads_collect_buffer100_unbuffer_cut_spf'::regclass)::json; - --- - --- - -COMMENT ON TABLE orig_geo_ego_jg.ego_deu_loads_collect_buffer100_unbuffer_spf IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }, - {"Name": "geom_centroid", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_geo_ego_jg.ego_deu_loads_collect_buffer100_unbuffer_spf'::regclass)::json; - --- - --- - -COMMENT ON TABLE orig_geo_ego_jg.ego_deu_loads_consumption_spf IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "sector_consumption_residential", - "Description": "...", - "Unit": "" }, - {"Name": "sector_consumption_retail", - "Description": "...", - "Unit": "" }, - {"Name": "sector_consumption_industrial", - "Description": "...", - "Unit": "" }, - {"Name": "sector_consumption_agricultural", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_geo_ego_jg.ego_deu_loads_consumption_spf'::regclass)::json; - --- - --- - -COMMENT ON TABLE orig_geo_ego_jg.ego_deu_loads_spf IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }, - {"Name": "zensus_sum", - "Description": "...", - "Unit": "" }, - {"Name": "zensus_count", - "Description": "...", - "Unit": "" }, - {"Name": "zensus_density", - "Description": "...", - "Unit": "" }, - {"Name": "ioer_sum", - "Description": "...", - "Unit": "" }, - {"Name": "ioer_count", - "Description": "...", - "Unit": "" }, - {"Name": "ioer_density", - "Description": "...", - "Unit": "" }, - {"Name": "area_ha", - "Description": "...", - "Unit": "" }, - {"Name": "sector_area_residential", - "Description": "...", - "Unit": "" }, - {"Name": "sector_area_retail", - "Description": "...", - "Unit": "" }, - {"Name": "sector_area_industrial", - "Description": "...", - "Unit": "" }, - {"Name": "sector_area_agricultural", - "Description": "...", - "Unit": "" }, - {"Name": "sector_share_residential", - "Description": "...", - "Unit": "" }, - {"Name": "sector_share_retail", - "Description": "...", - "Unit": "" }, - {"Name": "sector_share_industrial", - "Description": "...", - "Unit": "" }, - {"Name": "sector_share_agricultural", - "Description": "...", - "Unit": "" }, - {"Name": "sector_count_residential", - "Description": "...", - "Unit": "" }, - {"Name": "sector_count_retail", - "Description": "...", - "Unit": "" }, - {"Name": "sector_count_industrial", - "Description": "...", - "Unit": "" }, - {"Name": "sector_count_agricultural", - "Description": "...", - "Unit": "" }, - {"Name": "mv_poly_id", - "Description": "...", - "Unit": "" }, - {"Name": "nuts", - "Description": "...", - "Unit": "" }, - {"Name": "rs", - "Description": "...", - "Unit": "" }, - {"Name": "ags_0", - "Description": "...", - "Unit": "" }, - {"Name": "geom_centroid", - "Description": "...", - "Unit": "" }, - {"Name": "geom_surfacepoint", - "Description": "...", - "Unit": "" }, - {"Name": "geom_centre", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_geo_ego_jg.ego_deu_loads_spf'::regclass)::json; - --- - --- - -COMMENT ON TABLE orig_geo_ego_jg.ego_deu_loads_zensus IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "gid", - "Description": "...", - "Unit": "" }, - {"Name": "population", - "Description": "...", - "Unit": "" }, - {"Name": "inside_la", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_geo_ego_jg.ego_deu_loads_zensus'::regclass)::json; - --- --- - -COMMENT ON TABLE orig_geo_ego_jg.ego_deu_mv_gridcell_full IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_geo_ego_jg.ego_deu_mv_gridcell_full'::regclass)::json; - --- - --- - -COMMENT ON TABLE orig_geo_ego_jg.ego_deu_osm_loadarea IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }, - {"Name": "zensus_sum", - "Description": "...", - "Unit": "" }, - {"Name": "zensus_count", - "Description": "...", - "Unit": "" }, - {"Name": "zensus_density", - "Description": "...", - "Unit": "" }, - {"Name": "ioer_sum", - "Description": "...", - "Unit": "" }, - {"Name": "ioer_count", - "Description": "...", - "Unit": "" }, - {"Name": "ioer_density", - "Description": "...", - "Unit": "" }, - {"Name": "area_ha", - "Description": "...", - "Unit": "" }, - {"Name": "sector_area_residential", - "Description": "...", - "Unit": "" }, - {"Name": "sector_area_retail", - "Description": "...", - "Unit": "" }, - {"Name": "sector_area_industrial", - "Description": "...", - "Unit": "" }, - {"Name": "sector_area_agricultural", - "Description": "...", - "Unit": "" }, - {"Name": "sector_share_residential", - "Description": "...", - "Unit": "" }, - {"Name": "sector_share_retail", - "Description": "...", - "Unit": "" }, - {"Name": "sector_share_industrial", - "Description": "...", - "Unit": "" }, - {"Name": "sector_share_agricultural", - "Description": "...", - "Unit": "" }, - {"Name": "sector_count_residential", - "Description": "...", - "Unit": "" }, - {"Name": "sector_count_retail", - "Description": "...", - "Unit": "" }, - {"Name": "sector_count_industrial", - "Description": "...", - "Unit": "" }, - {"Name": "sector_count_agricultural", - "Description": "...", - "Unit": "" }, - {"Name": "mv_poly_id", - "Description": "...", - "Unit": "" }, - {"Name": "nuts", - "Description": "...", - "Unit": "" }, - {"Name": "rs", - "Description": "...", - "Unit": "" }, - {"Name": "ags_0", - "Description": "...", - "Unit": "" }, - {"Name": "geom_centroid", - "Description": "...", - "Unit": "" }, - {"Name": "geom_surfacepoint", - "Description": "...", - "Unit": "" }, - {"Name": "geom_buffer", - "Description": "...", - "Unit": "" }, - {"Name": "la_id", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_geo_ego_jg.ego_deu_osm_loadarea'::regclass)::json; - --- - --- - -COMMENT ON TABLE orig_geo_ego_jg.ego_deu_osm_loadarea_spf IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }, - {"Name": "zensus_sum", - "Description": "...", - "Unit": "" }, - {"Name": "zensus_count", - "Description": "...", - "Unit": "" }, - {"Name": "zensus_density", - "Description": "...", - "Unit": "" }, - {"Name": "ioer_sum", - "Description": "...", - "Unit": "" }, - {"Name": "ioer_count", - "Description": "...", - "Unit": "" }, - {"Name": "ioer_density", - "Description": "...", - "Unit": "" }, - {"Name": "area_ha", - "Description": "...", - "Unit": "" }, - {"Name": "sector_area_residential", - "Description": "...", - "Unit": "" }, - {"Name": "sector_area_retail", - "Description": "...", - "Unit": "" }, - {"Name": "sector_area_industrial", - "Description": "...", - "Unit": "" }, - {"Name": "sector_area_agricultural", - "Description": "...", - "Unit": "" }, - {"Name": "sector_share_residential", - "Description": "...", - "Unit": "" }, - {"Name": "sector_share_retail", - "Description": "...", - "Unit": "" }, - {"Name": "sector_share_industrial", - "Description": "...", - "Unit": "" }, - {"Name": "sector_share_agricultural", - "Description": "...", - "Unit": "" }, - {"Name": "sector_count_residential", - "Description": "...", - "Unit": "" }, - {"Name": "sector_count_retail", - "Description": "...", - "Unit": "" }, - {"Name": "sector_count_industrial", - "Description": "...", - "Unit": "" }, - {"Name": "sector_count_agricultural", - "Description": "...", - "Unit": "" }, - {"Name": "mv_poly_id", - "Description": "...", - "Unit": "" }, - {"Name": "nuts", - "Description": "...", - "Unit": "" }, - {"Name": "rs", - "Description": "...", - "Unit": "" }, - {"Name": "ags_0", - "Description": "...", - "Unit": "" }, - {"Name": "geom_centroid", - "Description": "...", - "Unit": "" }, - {"Name": "geom_surfacepoint", - "Description": "...", - "Unit": "" }, - {"Name": "geom_buffer", - "Description": "...", - "Unit": "" }, - {"Name": "la_id", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_geo_ego_jg.ego_deu_osm_loadarea_spf'::regclass)::json; - --- - --- - -COMMENT ON TABLE orig_geo_ego_jg.ego_deu_zensus_loadpoints_cluster IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "cid", - "Description": "...", - "Unit": "" }, - {"Name": "zensus_sum", - "Description": "...", - "Unit": "" }, - {"Name": "area_ha", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }, - {"Name": "geom_buffer", - "Description": "...", - "Unit": "" }, - {"Name": "geom_centroid", - "Description": "...", - "Unit": "" }, - {"Name": "geom_surfacepoint", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_geo_ego_jg.ego_deu_zensus_loadpoints_cluster'::regclass)::json; - --- - --- - -COMMENT ON TABLE orig_geo_ego_jg.ego_deu_zensus_loadpoints_cluster_spf IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "cid", - "Description": "...", - "Unit": "" }, - {"Name": "zensus_sum", - "Description": "...", - "Unit": "" }, - {"Name": "area_ha", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }, - {"Name": "geom_buffer", - "Description": "...", - "Unit": "" }, - {"Name": "geom_centroid", - "Description": "...", - "Unit": "" }, - {"Name": "geom_surfacepoint", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_geo_ego_jg.ego_deu_zensus_loadpoints_cluster_spf'::regclass)::json; - --- - --- - -COMMENT ON TABLE orig_geo_ego_jg.ego_ms_netzbezirke IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }, - {"Name": "geom_gem", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_geo_ego_jg.ego_ms_netzbezirke'::regclass)::json; - --- - --- - -COMMENT ON TABLE orig_geo_ego_jg.jg_MS_Bies IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }, - {"Name": "name", - "Description": "...", - "Unit": "" }, - {"Name": "descriptio", - "Description": "...", - "Unit": "" }, - {"Name": "timestamp", - "Description": "...", - "Unit": "" }, - {"Name": "begin", - "Description": "...", - "Unit": "" }, - {"Name": "end", - "Description": "...", - "Unit": "" }, - {"Name": "altitudemo", - "Description": "...", - "Unit": "" }, - {"Name": "tessellate", - "Description": "...", - "Unit": "" }, - {"Name": "extrude", - "Description": "...", - "Unit": "" }, - {"Name": "visibility", - "Description": "...", - "Unit": "" }, - {"Name": "draworder", - "Description": "...", - "Unit": "" }, - {"Name": "icon", - "Description": "...", - "Unit": "" }, - {"Name": "name_2", - "Description": "...", - "Unit": "" }, - {"Name": "descript_2", - "Description": "...", - "Unit": "" }, - {"Name": "timestam_2", - "Description": "...", - "Unit": "" }, - {"Name": "begin_2", - "Description": "...", - "Unit": "" }, - {"Name": "end_2", - "Description": "...", - "Unit": "" }, - {"Name": "altitude_2", - "Description": "...", - "Unit": "" }, - {"Name": "tessella_2", - "Description": "...", - "Unit": "" }, - {"Name": "extrude_2", - "Description": "...", - "Unit": "" }, - {"Name": "visibili_2", - "Description": "...", - "Unit": "" }, - {"Name": "draworde_2", - "Description": "...", - "Unit": "" }, - {"Name": "icon_2", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_geo_ego_jg.jg_MS_Bies'::regclass)::json; - --- - --- - -COMMENT ON TABLE orig_geo_ego_jg.jg_MS_Breit IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }, - {"Name": "name", - "Description": "...", - "Unit": "" }, - {"Name": "descriptio", - "Description": "...", - "Unit": "" }, - {"Name": "timestamp", - "Description": "...", - "Unit": "" }, - {"Name": "begin", - "Description": "...", - "Unit": "" }, - {"Name": "end", - "Description": "...", - "Unit": "" }, - {"Name": "altitudemo", - "Description": "...", - "Unit": "" }, - {"Name": "tessellate", - "Description": "...", - "Unit": "" }, - {"Name": "extrude", - "Description": "...", - "Unit": "" }, - {"Name": "visibility", - "Description": "...", - "Unit": "" }, - {"Name": "draworder", - "Description": "...", - "Unit": "" }, - {"Name": "icon", - "Description": "...", - "Unit": "" }, - {"Name": "name_2", - "Description": "...", - "Unit": "" }, - {"Name": "descript_2", - "Description": "...", - "Unit": "" }, - {"Name": "timestam_2", - "Description": "...", - "Unit": "" }, - {"Name": "begin_2", - "Description": "...", - "Unit": "" }, - {"Name": "end_2", - "Description": "...", - "Unit": "" }, - {"Name": "altitude_2", - "Description": "...", - "Unit": "" }, - {"Name": "tessella_2", - "Description": "...", - "Unit": "" }, - {"Name": "extrude_2", - "Description": "...", - "Unit": "" }, - {"Name": "visibili_2", - "Description": "...", - "Unit": "" }, - {"Name": "draworde_2", - "Description": "...", - "Unit": "" }, - {"Name": "icon_2", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_geo_ego_jg.jg_MS_Breit'::regclass)::json; - --- - --- - -COMMENT ON TABLE orig_geo_ego_jg.jg_MS_Buch IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }, - {"Name": "name", - "Description": "...", - "Unit": "" }, - {"Name": "descriptio", - "Description": "...", - "Unit": "" }, - {"Name": "timestamp", - "Description": "...", - "Unit": "" }, - {"Name": "begin", - "Description": "...", - "Unit": "" }, - {"Name": "end", - "Description": "...", - "Unit": "" }, - {"Name": "altitudemo", - "Description": "...", - "Unit": "" }, - {"Name": "tessellate", - "Description": "...", - "Unit": "" }, - {"Name": "extrude", - "Description": "...", - "Unit": "" }, - {"Name": "visibility", - "Description": "...", - "Unit": "" }, - {"Name": "draworder", - "Description": "...", - "Unit": "" }, - {"Name": "icon", - "Description": "...", - "Unit": "" }, - {"Name": "name_2", - "Description": "...", - "Unit": "" }, - {"Name": "descript_2", - "Description": "...", - "Unit": "" }, - {"Name": "timestam_2", - "Description": "...", - "Unit": "" }, - {"Name": "begin_2", - "Description": "...", - "Unit": "" }, - {"Name": "end_2", - "Description": "...", - "Unit": "" }, - {"Name": "altitude_2", - "Description": "...", - "Unit": "" }, - {"Name": "tessella_2", - "Description": "...", - "Unit": "" }, - {"Name": "extrude_2", - "Description": "...", - "Unit": "" }, - {"Name": "visibili_2", - "Description": "...", - "Unit": "" }, - {"Name": "draworde_2", - "Description": "...", - "Unit": "" }, - {"Name": "icon_2", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_geo_ego_jg.jg_MS_Buch'::regclass)::json; - --- - --- - -COMMENT ON TABLE orig_geo_ego_jg.jg_MS_Horg IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }, - {"Name": "name", - "Description": "...", - "Unit": "" }, - {"Name": "descriptio", - "Description": "...", - "Unit": "" }, - {"Name": "timestamp", - "Description": "...", - "Unit": "" }, - {"Name": "begin", - "Description": "...", - "Unit": "" }, - {"Name": "end", - "Description": "...", - "Unit": "" }, - {"Name": "altitudemo", - "Description": "...", - "Unit": "" }, - {"Name": "tessellate", - "Description": "...", - "Unit": "" }, - {"Name": "extrude", - "Description": "...", - "Unit": "" }, - {"Name": "visibility", - "Description": "...", - "Unit": "" }, - {"Name": "draworder", - "Description": "...", - "Unit": "" }, - {"Name": "icon", - "Description": "...", - "Unit": "" }, - {"Name": "name_2", - "Description": "...", - "Unit": "" }, - {"Name": "descript_2", - "Description": "...", - "Unit": "" }, - {"Name": "timestam_2", - "Description": "...", - "Unit": "" }, - {"Name": "begin_2", - "Description": "...", - "Unit": "" }, - {"Name": "end_2", - "Description": "...", - "Unit": "" }, - {"Name": "altitude_2", - "Description": "...", - "Unit": "" }, - {"Name": "tessella_2", - "Description": "...", - "Unit": "" }, - {"Name": "extrude_2", - "Description": "...", - "Unit": "" }, - {"Name": "visibili_2", - "Description": "...", - "Unit": "" }, - {"Name": "draworde_2", - "Description": "...", - "Unit": "" }, - {"Name": "icon_2", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_geo_ego_jg.jg_MS_Horg'::regclass)::json; - --- - --- - -COMMENT ON TABLE orig_geo_ego_jg.jg_MS_Lage IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }, - {"Name": "name", - "Description": "...", - "Unit": "" }, - {"Name": "descriptio", - "Description": "...", - "Unit": "" }, - {"Name": "timestamp", - "Description": "...", - "Unit": "" }, - {"Name": "begin", - "Description": "...", - "Unit": "" }, - {"Name": "end", - "Description": "...", - "Unit": "" }, - {"Name": "altitudemo", - "Description": "...", - "Unit": "" }, - {"Name": "tessellate", - "Description": "...", - "Unit": "" }, - {"Name": "extrude", - "Description": "...", - "Unit": "" }, - {"Name": "visibility", - "Description": "...", - "Unit": "" }, - {"Name": "draworder", - "Description": "...", - "Unit": "" }, - {"Name": "icon", - "Description": "...", - "Unit": "" }, - {"Name": "name_2", - "Description": "...", - "Unit": "" }, - {"Name": "descript_2", - "Description": "...", - "Unit": "" }, - {"Name": "timestam_2", - "Description": "...", - "Unit": "" }, - {"Name": "begin_2", - "Description": "...", - "Unit": "" }, - {"Name": "end_2", - "Description": "...", - "Unit": "" }, - {"Name": "altitude_2", - "Description": "...", - "Unit": "" }, - {"Name": "tessella_2", - "Description": "...", - "Unit": "" }, - {"Name": "extrude_2", - "Description": "...", - "Unit": "" }, - {"Name": "visibili_2", - "Description": "...", - "Unit": "" }, - {"Name": "draworde_2", - "Description": "...", - "Unit": "" }, - {"Name": "icon_2", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_geo_ego_jg.jg_MS_Lage'::regclass)::json; - --- - --- - -COMMENT ON TABLE orig_geo_ego_jg.jg_MS_Leng IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }, - {"Name": "name", - "Description": "...", - "Unit": "" }, - {"Name": "descriptio", - "Description": "...", - "Unit": "" }, - {"Name": "timestamp", - "Description": "...", - "Unit": "" }, - {"Name": "begin", - "Description": "...", - "Unit": "" }, - {"Name": "end", - "Description": "...", - "Unit": "" }, - {"Name": "altitudemo", - "Description": "...", - "Unit": "" }, - {"Name": "tessellate", - "Description": "...", - "Unit": "" }, - {"Name": "extrude", - "Description": "...", - "Unit": "" }, - {"Name": "visibility", - "Description": "...", - "Unit": "" }, - {"Name": "draworder", - "Description": "...", - "Unit": "" }, - {"Name": "icon", - "Description": "...", - "Unit": "" }, - {"Name": "name_2", - "Description": "...", - "Unit": "" }, - {"Name": "descript_2", - "Description": "...", - "Unit": "" }, - {"Name": "timestam_2", - "Description": "...", - "Unit": "" }, - {"Name": "begin_2", - "Description": "...", - "Unit": "" }, - {"Name": "end_2", - "Description": "...", - "Unit": "" }, - {"Name": "altitude_2", - "Description": "...", - "Unit": "" }, - {"Name": "tessella_2", - "Description": "...", - "Unit": "" }, - {"Name": "extrude_2", - "Description": "...", - "Unit": "" }, - {"Name": "visibili_2", - "Description": "...", - "Unit": "" }, - {"Name": "draworde_2", - "Description": "...", - "Unit": "" }, - {"Name": "icon_2", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_geo_ego_jg.jg_MS_Leng'::regclass)::json; - --- - --- - -COMMENT ON TABLE orig_geo_ego_jg.jg_MS_Memm IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }, - {"Name": "name", - "Description": "...", - "Unit": "" }, - {"Name": "descriptio", - "Description": "...", - "Unit": "" }, - {"Name": "timestamp", - "Description": "...", - "Unit": "" }, - {"Name": "begin", - "Description": "...", - "Unit": "" }, - {"Name": "end", - "Description": "...", - "Unit": "" }, - {"Name": "altitudemo", - "Description": "...", - "Unit": "" }, - {"Name": "tessellate", - "Description": "...", - "Unit": "" }, - {"Name": "extrude", - "Description": "...", - "Unit": "" }, - {"Name": "visibility", - "Description": "...", - "Unit": "" }, - {"Name": "draworder", - "Description": "...", - "Unit": "" }, - {"Name": "icon", - "Description": "...", - "Unit": "" }, - {"Name": "name_2", - "Description": "...", - "Unit": "" }, - {"Name": "descript_2", - "Description": "...", - "Unit": "" }, - {"Name": "timestam_2", - "Description": "...", - "Unit": "" }, - {"Name": "begin_2", - "Description": "...", - "Unit": "" }, - {"Name": "end_2", - "Description": "...", - "Unit": "" }, - {"Name": "altitude_2", - "Description": "...", - "Unit": "" }, - {"Name": "tessella_2", - "Description": "...", - "Unit": "" }, - {"Name": "extrude_2", - "Description": "...", - "Unit": "" }, - {"Name": "visibili_2", - "Description": "...", - "Unit": "" }, - {"Name": "draworde_2", - "Description": "...", - "Unit": "" }, - {"Name": "icon_2", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_geo_ego_jg.jg_MS_Memm'::regclass)::json; - --- - --- - -COMMENT ON TABLE orig_geo_ego_jg.jg_MS_Obau IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }, - {"Name": "name", - "Description": "...", - "Unit": "" }, - {"Name": "descriptio", - "Description": "...", - "Unit": "" }, - {"Name": "timestamp", - "Description": "...", - "Unit": "" }, - {"Name": "begin", - "Description": "...", - "Unit": "" }, - {"Name": "end", - "Description": "...", - "Unit": "" }, - {"Name": "altitudemo", - "Description": "...", - "Unit": "" }, - {"Name": "tessellate", - "Description": "...", - "Unit": "" }, - {"Name": "extrude", - "Description": "...", - "Unit": "" }, - {"Name": "visibility", - "Description": "...", - "Unit": "" }, - {"Name": "draworder", - "Description": "...", - "Unit": "" }, - {"Name": "icon", - "Description": "...", - "Unit": "" }, - {"Name": "name_2", - "Description": "...", - "Unit": "" }, - {"Name": "descript_2", - "Description": "...", - "Unit": "" }, - {"Name": "timestam_2", - "Description": "...", - "Unit": "" }, - {"Name": "begin_2", - "Description": "...", - "Unit": "" }, - {"Name": "end_2", - "Description": "...", - "Unit": "" }, - {"Name": "altitude_2", - "Description": "...", - "Unit": "" }, - {"Name": "tessella_2", - "Description": "...", - "Unit": "" }, - {"Name": "extrude_2", - "Description": "...", - "Unit": "" }, - {"Name": "visibili_2", - "Description": "...", - "Unit": "" }, - {"Name": "draworde_2", - "Description": "...", - "Unit": "" }, - {"Name": "icon_2", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_geo_ego_jg.jg_MS_Obau'::regclass)::json; - --- - - --- - -COMMENT ON TABLE orig_geo_ego_jg.jg_MS_Otto IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }, - {"Name": "name", - "Description": "...", - "Unit": "" }, - {"Name": "descriptio", - "Description": "...", - "Unit": "" }, - {"Name": "timestamp", - "Description": "...", - "Unit": "" }, - {"Name": "begin", - "Description": "...", - "Unit": "" }, - {"Name": "end", - "Description": "...", - "Unit": "" }, - {"Name": "altitudemo", - "Description": "...", - "Unit": "" }, - {"Name": "tessellate", - "Description": "...", - "Unit": "" }, - {"Name": "extrude", - "Description": "...", - "Unit": "" }, - {"Name": "visibility", - "Description": "...", - "Unit": "" }, - {"Name": "draworder", - "Description": "...", - "Unit": "" }, - {"Name": "icon", - "Description": "...", - "Unit": "" }, - {"Name": "name_2", - "Description": "...", - "Unit": "" }, - {"Name": "descript_2", - "Description": "...", - "Unit": "" }, - {"Name": "timestam_2", - "Description": "...", - "Unit": "" }, - {"Name": "begin_2", - "Description": "...", - "Unit": "" }, - {"Name": "end_2", - "Description": "...", - "Unit": "" }, - {"Name": "altitude_2", - "Description": "...", - "Unit": "" }, - {"Name": "tessella_2", - "Description": "...", - "Unit": "" }, - {"Name": "extrude_2", - "Description": "...", - "Unit": "" }, - {"Name": "visibili_2", - "Description": "...", - "Unit": "" }, - {"Name": "draworde_2", - "Description": "...", - "Unit": "" }, - {"Name": "icon_2", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_geo_ego_jg.jg_MS_Otto'::regclass)::json; - --- - --- - -COMMENT ON TABLE orig_geo_ego_jg.jg_MS_Untei IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }, - {"Name": "name", - "Description": "...", - "Unit": "" }, - {"Name": "descriptio", - "Description": "...", - "Unit": "" }, - {"Name": "timestamp", - "Description": "...", - "Unit": "" }, - {"Name": "begin", - "Description": "...", - "Unit": "" }, - {"Name": "end", - "Description": "...", - "Unit": "" }, - {"Name": "altitudemo", - "Description": "...", - "Unit": "" }, - {"Name": "tessellate", - "Description": "...", - "Unit": "" }, - {"Name": "extrude", - "Description": "...", - "Unit": "" }, - {"Name": "visibility", - "Description": "...", - "Unit": "" }, - {"Name": "draworder", - "Description": "...", - "Unit": "" }, - {"Name": "icon", - "Description": "...", - "Unit": "" }, - {"Name": "name_2", - "Description": "...", - "Unit": "" }, - {"Name": "descript_2", - "Description": "...", - "Unit": "" }, - {"Name": "timestam_2", - "Description": "...", - "Unit": "" }, - {"Name": "begin_2", - "Description": "...", - "Unit": "" }, - {"Name": "end_2", - "Description": "...", - "Unit": "" }, - {"Name": "altitude_2", - "Description": "...", - "Unit": "" }, - {"Name": "tessella_2", - "Description": "...", - "Unit": "" }, - {"Name": "extrude_2", - "Description": "...", - "Unit": "" }, - {"Name": "visibili_2", - "Description": "...", - "Unit": "" }, - {"Name": "draworde_2", - "Description": "...", - "Unit": "" }, - {"Name": "icon_2", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_geo_ego_jg.jg_MS_Untei'::regclass)::json; - --- - --- - -COMMENT ON TABLE orig_geo_ego_jg.jg_MS_spf IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }, - {"Name": "name", - "Description": "...", - "Unit": "" }, - {"Name": "pid", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_geo_ego_jg.jg_MS_spf'::regclass)::json; - --- - --- - -COMMENT ON TABLE orig_geo_ego_jg.jg_MS_spf_bb IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "geom", - "Description": "...", - "Unit": "" }, - {"Name": "id", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_geo_ego_jg.jg_MS_spf_bb'::regclass)::json; - --- - - --- - -COMMENT ON TABLE orig_geo_ego_jg.jg_NS_Tus IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "Name", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }, - {"Name": "name", - "Description": "...", - "Unit": "" }, - {"Name": "descriptio", - "Description": "...", - "Unit": "" }, - {"Name": "timestamp", - "Description": "...", - "Unit": "" }, - {"Name": "begin", - "Description": "...", - "Unit": "" }, - {"Name": "end", - "Description": "...", - "Unit": "" }, - {"Name": "altitudemo", - "Description": "...", - "Unit": "" }, - {"Name": "tessellate", - "Description": "...", - "Unit": "" }, - {"Name": "extrude", - "Description": "...", - "Unit": "" }, - {"Name": "visibility", - "Description": "...", - "Unit": "" }, - {"Name": "draworder", - "Description": "...", - "Unit": "" }, - {"Name": "icon", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_geo_ego_jg.jg_NS_Tus'::regclass)::json; - --- - --- - -COMMENT ON TABLE orig_geo_ego_jg.jg_NS_Tus_Hausanschluesse IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "Name", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_geo_ego_jg.jg_NS_Tus_Hausanschluesse'::regclass)::json; - --- - --- - -COMMENT ON TABLE orig_geo_ego_jg.jg_NS_Tus_angles IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "p2", - "Description": "...", - "Unit": "" }, - {"Name": "p1", - "Description": "...", - "Unit": "" }, - {"Name": "p3", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_geo_ego_jg.jg_NS_Tus_angles'::regclass)::json; - --- - --- - -COMMENT ON TABLE orig_geo_ego_jg.jg_NS_Tus_angles_gis IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "geom", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_geo_ego_jg.jg_NS_Tus_angles_gis'::regclass)::json; - --- - --- - -COMMENT ON TABLE orig_geo_ego_jg.jg_NS_Tus_cont_3.75 IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "geom", - "Description": "...", - "Unit": "" }, - {"Name": "id", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_geo_ego_jg.jg_NS_Tus_cont_3.75'::regclass)::json; - --- - --- - -COMMENT ON TABLE orig_geo_ego_jg.jg_NS_Tus_cont_9.75 IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "geom", - "Description": "...", - "Unit": "" }, - {"Name": "id", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_geo_ego_jg.jg_NS_Tus_cont_9.75'::regclass)::json; - --- - --- - -COMMENT ON TABLE orig_geo_ego_jg.jg_NS_Tus_final IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "Name", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_geo_ego_jg.jg_NS_Tus_final'::regclass)::json; - --- - --- - -COMMENT ON TABLE orig_geo_ego_jg.jg_ONTs_spf IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "geom", - "Description": "...", - "Unit": "" }, - {"Name": "id", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_geo_ego_jg.jg_ONTs_spf'::regclass)::json; - --- - --- - -COMMENT ON TABLE orig_geo_ego_jg.jg_bboxes_spf IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "geom", - "Description": "...", - "Unit": "" }, - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "zensus_sum", - "Description": "...", - "Unit": "" }, - {"Name": "zensus_count", - "Description": "...", - "Unit": "" }, - {"Name": "zensus_density", - "Description": "...", - "Unit": "" }, - {"Name": "onts", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_geo_ego_jg.jg_bboxes_spf'::regclass)::json; - --- - --- - -COMMENT ON TABLE orig_geo_ego_jg.jg_osm_tus_streets IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "osm_id", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }, - {"Name": "name", - "Description": "...", - "Unit": "" }, - {"Name": "highway", - "Description": "...", - "Unit": "" }, - {"Name": "aerialway", - "Description": "...", - "Unit": "" }, - {"Name": "barrier", - "Description": "...", - "Unit": "" }, - {"Name": "man_made", - "Description": "...", - "Unit": "" }, - {"Name": "z_order", - "Description": "...", - "Unit": "" }, - {"Name": "other_tags", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_geo_ego_jg.jg_osm_tus_streets'::regclass)::json; - --- - --- - -COMMENT ON TABLE orig_geo_ego_jg.jg_osm_tus_streets_final IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "osm_id", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_geo_ego_jg.jg_osm_tus_streets_final'::regclass)::json; - --- - --- - -COMMENT ON TABLE orig_geo_ego_jg.jg_pop_spf IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "rast", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_geo_ego_jg.jg_pop_spf'::regclass)::json; - --- - --- - -COMMENT ON TABLE orig_geo_ego_jg.jg_populated_areas_ls IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "geom", - "Description": "...", - "Unit": "" }, - {"Name": "box_id", - "Description": "...", - "Unit": "" }, - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "zensus_sum", - "Description": "...", - "Unit": "" }, - {"Name": "onts", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_geo_ego_jg.jg_populated_areas_ls'::regclass)::json; - --- - - --- - -COMMENT ON TABLE orig_geo_ego_jg.jg_streets_buffered_9.75 IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "osm_id", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_geo_ego_jg.jg_streets_buffered_9.75'::regclass)::json; - --- - - --- - -COMMENT ON TABLE orig_geo_ego_jg.osm_deu_polygon_urban IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "gid", - "Description": "...", - "Unit": "" }, - {"Name": "osm_id", - "Description": "...", - "Unit": "" }, - {"Name": "landuse", - "Description": "...", - "Unit": "" }, - {"Name": "man_made", - "Description": "...", - "Unit": "" }, - {"Name": "aeroway", - "Description": "...", - "Unit": "" }, - {"Name": "name", - "Description": "...", - "Unit": "" }, - {"Name": "way_area", - "Description": "...", - "Unit": "" }, - {"Name": "area_ha", - "Description": "...", - "Unit": "" }, - {"Name": "tags", - "Description": "...", - "Unit": "" }, - {"Name": "vg250", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_geo_ego_jg.osm_deu_polygon_urban'::regclass)::json; - --- - - --- - -COMMENT ON TABLE orig_geo_ego_jg.osm_deu_polygon_urban_buffer100_unbuffer IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "uid", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }, - {"Name": "zensus_sum", - "Description": "...", - "Unit": "" }, - {"Name": "zensus_count", - "Description": "...", - "Unit": "" }, - {"Name": "zensus_density", - "Description": "...", - "Unit": "" }, - {"Name": "ioer_sum", - "Description": "...", - "Unit": "" }, - {"Name": "ioer_count", - "Description": "...", - "Unit": "" }, - {"Name": "ioer_density", - "Description": "...", - "Unit": "" }, - {"Name": "area_ha", - "Description": "...", - "Unit": "" }, - {"Name": "sector_area_residential", - "Description": "...", - "Unit": "" }, - {"Name": "sector_area_retail", - "Description": "...", - "Unit": "" }, - {"Name": "sector_area_industrial", - "Description": "...", - "Unit": "" }, - {"Name": "sector_area_agricultural", - "Description": "...", - "Unit": "" }, - {"Name": "sector_share_residential", - "Description": "...", - "Unit": "" }, - {"Name": "sector_share_retail", - "Description": "...", - "Unit": "" }, - {"Name": "sector_share_industrial", - "Description": "...", - "Unit": "" }, - {"Name": "sector_share_agricultural", - "Description": "...", - "Unit": "" }, - {"Name": "sector_count_residential", - "Description": "...", - "Unit": "" }, - {"Name": "sector_count_retail", - "Description": "...", - "Unit": "" }, - {"Name": "sector_count_industrial", - "Description": "...", - "Unit": "" }, - {"Name": "sector_count_agricultural", - "Description": "...", - "Unit": "" }, - {"Name": "mv_poly_id", - "Description": "...", - "Unit": "" }, - {"Name": "nuts", - "Description": "...", - "Unit": "" }, - {"Name": "rs", - "Description": "...", - "Unit": "" }, - {"Name": "ags_0", - "Description": "...", - "Unit": "" }, - {"Name": "geom_centroid", - "Description": "...", - "Unit": "" }, - {"Name": "geom_surfacepoint", - "Description": "...", - "Unit": "" }, - {"Name": "geom_buffer", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_geo_ego_jg.osm_deu_polygon_urban_buffer100_unbuffer'::regclass)::json; - --- - - --- - -COMMENT ON TABLE orig_geo_ego_jg.test_2_voronoi IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "geom", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_geo_ego_jg.test_2_voronoi'::regclass)::json; - --- - - --- - -COMMENT ON TABLE orig_geo_ego_jg.test_2_voronoi_pts IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_geo_ego_jg.test_2_voronoi_pts'::regclass)::json; - --- - --- - -COMMENT ON TABLE orig_geo_ego_jg.test_voronoi IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "geom", - "Description": "...", - "Unit": "" }, - {"Name": "name", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_geo_ego_jg.test_voronoi'::regclass)::json; - --- - --- - -COMMENT ON TABLE orig_geo_ego_jg.test_voronoi_geom IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "geom", - "Description": "...", - "Unit": "" }, - {"Name": "id", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_geo_ego_jg.test_voronoi_geom'::regclass)::json; - --- - --- - -COMMENT ON TABLE orig_geo_ego_jg.test_voronoi_pts IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_geo_ego_jg.test_voronoi_pts'::regclass)::json; - --- - - --- - -COMMENT ON TABLE orig_geo_ego_jg.test_voronoi_pts_geom IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_geo_ego_jg.test_voronoi_pts_geom'::regclass)::json; - --- - --- - -COMMENT ON TABLE orig_geo_ego_jg.usw_voronoi IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "geom", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_geo_ego_jg.usw_voronoi'::regclass)::json; - --- - diff --git a/requirements.txt/SQL Documentation/orig_geo_geonames.sql b/requirements.txt/SQL Documentation/orig_geo_geonames.sql deleted file mode 100644 index d62c5244..00000000 --- a/requirements.txt/SQL Documentation/orig_geo_geonames.sql +++ /dev/null @@ -1,66 +0,0 @@ --- - -COMMENT ON TABLE orig_geo_geonames.postcode_germany IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "country_code", - "Description": "...", - "Unit": "" }, - {"Name": "postalcode", - "Description": "...", - "Unit": "" }, - {"Name": "placename", - "Description": "...", - "Unit": "" }, - {"Name": "adminname1", - "Description": "...", - "Unit": "" }, - {"Name": "admincode1", - "Description": "...", - "Unit": "" }, - {"Name": "adminname2", - "Description": "...", - "Unit": "" }, - {"Name": "admincode2", - "Description": "...", - "Unit": "" }, - {"Name": "adminname3", - "Description": "...", - "Unit": "" }, - {"Name": "admincode3", - "Description": "...", - "Unit": "" }, - {"Name": "latitude", - "Description": "...", - "Unit": "" }, - {"Name": "longitude", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_geo_geonames.postcode_germany'::regclass)::json; - --- - diff --git a/requirements.txt/SQL Documentation/orig_geo_gn250.sql b/requirements.txt/SQL Documentation/orig_geo_gn250.sql deleted file mode 100644 index 695648c9..00000000 --- a/requirements.txt/SQL Documentation/orig_geo_gn250.sql +++ /dev/null @@ -1,282 +0,0 @@ --- - -COMMENT ON TABLE orig_geo_gn250.gn250_b IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "gid", - "Description": "...", - "Unit": "" }, - {"Name": "nnid", - "Description": "...", - "Unit": "" }, - {"Name": "datum", - "Description": "...", - "Unit": "" }, - {"Name": "oba", - "Description": "...", - "Unit": "" }, - {"Name": "oba_wert", - "Description": "...", - "Unit": "" }, - {"Name": "name", - "Description": "...", - "Unit": "" }, - {"Name": "sprache", - "Description": "...", - "Unit": "" }, - {"Name": "genus", - "Description": "...", - "Unit": "" }, - {"Name": "name2", - "Description": "...", - "Unit": "" }, - {"Name": "sprache2", - "Description": "...", - "Unit": "" }, - {"Name": "genus2", - "Description": "...", - "Unit": "" }, - {"Name": "zusatz", - "Description": "...", - "Unit": "" }, - {"Name": "ags", - "Description": "...", - "Unit": "" }, - {"Name": "rs", - "Description": "...", - "Unit": "" }, - {"Name": "hoehe", - "Description": "...", - "Unit": "" }, - {"Name": "hoehe_ger", - "Description": "...", - "Unit": "" }, - {"Name": "ewz", - "Description": "...", - "Unit": "" }, - {"Name": "ewz_ger", - "Description": "...", - "Unit": "" }, - {"Name": "gewk", - "Description": "...", - "Unit": "" }, - {"Name": "gemteil", - "Description": "...", - "Unit": "" }, - {"Name": "virtuell", - "Description": "...", - "Unit": "" }, - {"Name": "gemeinde", - "Description": "...", - "Unit": "" }, - {"Name": "verwgem", - "Description": "...", - "Unit": "" }, - {"Name": "kreis", - "Description": "...", - "Unit": "" }, - {"Name": "regbezirk", - "Description": "...", - "Unit": "" }, - {"Name": "bundesland", - "Description": "...", - "Unit": "" }, - {"Name": "staat", - "Description": "...", - "Unit": "" }, - {"Name": "geola", - "Description": "...", - "Unit": "" }, - {"Name": "geobr", - "Description": "...", - "Unit": "" }, - {"Name": "gkre", - "Description": "...", - "Unit": "" }, - {"Name": "gkho", - "Description": "...", - "Unit": "" }, - {"Name": "utmre", - "Description": "...", - "Unit": "" }, - {"Name": "utmho", - "Description": "...", - "Unit": "" }, - {"Name": "box_geo", - "Description": "...", - "Unit": "" }, - {"Name": "box_gk", - "Description": "...", - "Unit": "" }, - {"Name": "box_utm", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_geo_gn250.gn250_b'::regclass)::json; - --- - --- - -COMMENT ON TABLE orig_geo_gn250.gn250_p IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "gid", - "Description": "...", - "Unit": "" }, - {"Name": "nnid", - "Description": "...", - "Unit": "" }, - {"Name": "datum", - "Description": "...", - "Unit": "" }, - {"Name": "oba", - "Description": "...", - "Unit": "" }, - {"Name": "oba_wert", - "Description": "...", - "Unit": "" }, - {"Name": "name", - "Description": "...", - "Unit": "" }, - {"Name": "sprache", - "Description": "...", - "Unit": "" }, - {"Name": "genus", - "Description": "...", - "Unit": "" }, - {"Name": "name2", - "Description": "...", - "Unit": "" }, - {"Name": "sprache2", - "Description": "...", - "Unit": "" }, - {"Name": "genus2", - "Description": "...", - "Unit": "" }, - {"Name": "zusatz", - "Description": "...", - "Unit": "" }, - {"Name": "ags", - "Description": "...", - "Unit": "" }, - {"Name": "rs", - "Description": "...", - "Unit": "" }, - {"Name": "hoehe", - "Description": "...", - "Unit": "" }, - {"Name": "hoehe_ger", - "Description": "...", - "Unit": "" }, - {"Name": "ewz", - "Description": "...", - "Unit": "" }, - {"Name": "ewz_ger", - "Description": "...", - "Unit": "" }, - {"Name": "gewk", - "Description": "...", - "Unit": "" }, - {"Name": "gemteil", - "Description": "...", - "Unit": "" }, - {"Name": "virtuell", - "Description": "...", - "Unit": "" }, - {"Name": "gemeinde", - "Description": "...", - "Unit": "" }, - {"Name": "verwgem", - "Description": "...", - "Unit": "" }, - {"Name": "kreis", - "Description": "...", - "Unit": "" }, - {"Name": "regbezirk", - "Description": "...", - "Unit": "" }, - {"Name": "bundesland", - "Description": "...", - "Unit": "" }, - {"Name": "staat", - "Description": "...", - "Unit": "" }, - {"Name": "geola", - "Description": "...", - "Unit": "" }, - {"Name": "geobr", - "Description": "...", - "Unit": "" }, - {"Name": "gkre", - "Description": "...", - "Unit": "" }, - {"Name": "gkho", - "Description": "...", - "Unit": "" }, - {"Name": "utmre", - "Description": "...", - "Unit": "" }, - {"Name": "utmho", - "Description": "...", - "Unit": "" }, - {"Name": "box_geo", - "Description": "...", - "Unit": "" }, - {"Name": "box_gk", - "Description": "...", - "Unit": "" }, - {"Name": "box_utm", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_geo_gn250.gn250_p'::regclass)::json; - --- - diff --git a/requirements.txt/SQL Documentation/orig_geo_opsd.sql b/requirements.txt/SQL Documentation/orig_geo_opsd.sql deleted file mode 100644 index 9da0dfef..00000000 --- a/requirements.txt/SQL Documentation/orig_geo_opsd.sql +++ /dev/null @@ -1,502 +0,0 @@ --- - -COMMENT ON TABLE orig_geo_opsd.opsd_hourly_timeseries IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "timestamp", - "Description": "...", - "Unit": "" }, - {"Name": "load_at", - "Description": "...", - "Unit": "" }, - {"Name": "load_ba", - "Description": "...", - "Unit": "" }, - {"Name": "load_be", - "Description": "...", - "Unit": "" }, - {"Name": "load_bg", - "Description": "...", - "Unit": "" }, - {"Name": "load_ch", - "Description": "...", - "Unit": "" }, - {"Name": "load_cs", - "Description": "...", - "Unit": "" }, - {"Name": "load_cy", - "Description": "...", - "Unit": "" }, - {"Name": "load_cz", - "Description": "...", - "Unit": "" }, - {"Name": "load_de", - "Description": "...", - "Unit": "" }, - {"Name": "load_dk", - "Description": "...", - "Unit": "" }, - {"Name": "load_dkw", - "Description": "...", - "Unit": "" }, - {"Name": "load_ee", - "Description": "...", - "Unit": "" }, - {"Name": "load_es", - "Description": "...", - "Unit": "" }, - {"Name": "load_fi", - "Description": "...", - "Unit": "" }, - {"Name": "load_fr", - "Description": "...", - "Unit": "" }, - {"Name": "load_gb", - "Description": "...", - "Unit": "" }, - {"Name": "load_gr", - "Description": "...", - "Unit": "" }, - {"Name": "load_hr", - "Description": "...", - "Unit": "" }, - {"Name": "load_hu", - "Description": "...", - "Unit": "" }, - {"Name": "load_ie", - "Description": "...", - "Unit": "" }, - {"Name": "load_is", - "Description": "...", - "Unit": "" }, - {"Name": "load_it", - "Description": "...", - "Unit": "" }, - {"Name": "load_lt", - "Description": "...", - "Unit": "" }, - {"Name": "load_lu", - "Description": "...", - "Unit": "" }, - {"Name": "load_lv", - "Description": "...", - "Unit": "" }, - {"Name": "load_me", - "Description": "...", - "Unit": "" }, - {"Name": "load_mk", - "Description": "...", - "Unit": "" }, - {"Name": "load_ni", - "Description": "...", - "Unit": "" }, - {"Name": "load_nl", - "Description": "...", - "Unit": "" }, - {"Name": "load_no", - "Description": "...", - "Unit": "" }, - {"Name": "load_pl", - "Description": "...", - "Unit": "" }, - {"Name": "load_pt", - "Description": "...", - "Unit": "" }, - {"Name": "load_ro", - "Description": "...", - "Unit": "" }, - {"Name": "load_rs", - "Description": "...", - "Unit": "" }, - {"Name": "load_se", - "Description": "...", - "Unit": "" }, - {"Name": "load_si", - "Description": "...", - "Unit": "" }, - {"Name": "load_sk", - "Description": "...", - "Unit": "" }, - {"Name": "load_uaw", - "Description": "...", - "Unit": "" }, - {"Name": "solar_de_capacity", - "Description": "...", - "Unit": "" }, - {"Name": "solar_de_forecast", - "Description": "...", - "Unit": "" }, - {"Name": "solar_de_generation", - "Description": "...", - "Unit": "" }, - {"Name": "solar_de_profile", - "Description": "...", - "Unit": "" }, - {"Name": "solar_de50hertz_forecast", - "Description": "...", - "Unit": "" }, - {"Name": "solar_de50hertz_generation", - "Description": "...", - "Unit": "" }, - {"Name": "solar_deamprion_forecast", - "Description": "...", - "Unit": "" }, - {"Name": "solar_deamprion_generation", - "Description": "...", - "Unit": "" }, - {"Name": "solar_detennet_forecast", - "Description": "...", - "Unit": "" }, - {"Name": "solar_detennet_generation", - "Description": "...", - "Unit": "" }, - {"Name": "solar_detransnetbw_forecast", - "Description": "...", - "Unit": "" }, - {"Name": "solar_detransnetbw_generation", - "Description": "...", - "Unit": "" }, - {"Name": "wind_de_capacity", - "Description": "...", - "Unit": "" }, - {"Name": "wind_de_forecast", - "Description": "...", - "Unit": "" }, - {"Name": "wind_de_generation", - "Description": "...", - "Unit": "" }, - {"Name": "wind_de_profile", - "Description": "...", - "Unit": "" }, - {"Name": "wind_de50hertz_forecast", - "Description": "...", - "Unit": "" }, - {"Name": "wind_de50hertz_generation", - "Description": "...", - "Unit": "" }, - {"Name": "wind_deamprion_forecast", - "Description": "...", - "Unit": "" }, - {"Name": "wind_deamprion_generation", - "Description": "...", - "Unit": "" }, - {"Name": "wind_detennet_forecast", - "Description": "...", - "Unit": "" }, - {"Name": "wind_detennet_generation", - "Description": "...", - "Unit": "" }, - {"Name": "wind_detransnetbw_forecast", - "Description": "...", - "Unit": "" }, - {"Name": "wind_detransnetbw_generation", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_geo_opsd.opsd_hourly_timeseries'::regclass)::json; - --- - --- - -COMMENT ON TABLE orig_geo_opsd.opsd_power_plants_germany IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "gid", - "Description": "...", - "Unit": "" }, - {"Name": "bnetza_id", - "Description": "...", - "Unit": "" }, - {"Name": "company", - "Description": "...", - "Unit": "" }, - {"Name": "name", - "Description": "...", - "Unit": "" }, - {"Name": "postcode", - "Description": "...", - "Unit": "" }, - {"Name": "city", - "Description": "...", - "Unit": "" }, - {"Name": "street", - "Description": "...", - "Unit": "" }, - {"Name": "state", - "Description": "...", - "Unit": "" }, - {"Name": "block", - "Description": "...", - "Unit": "" }, - {"Name": "commissioned_original", - "Description": "...", - "Unit": "" }, - {"Name": "commissioned", - "Description": "...", - "Unit": "" }, - {"Name": "retrofit", - "Description": "...", - "Unit": "" }, - {"Name": "shutdown", - "Description": "...", - "Unit": "" }, - {"Name": "status", - "Description": "...", - "Unit": "" }, - {"Name": "fuel", - "Description": "...", - "Unit": "" }, - {"Name": "technology", - "Description": "...", - "Unit": "" }, - {"Name": "type", - "Description": "...", - "Unit": "" }, - {"Name": "eeg", - "Description": "...", - "Unit": "" }, - {"Name": "chp", - "Description": "...", - "Unit": "" }, - {"Name": "capacity", - "Description": "...", - "Unit": "" }, - {"Name": "capacity_uba", - "Description": "...", - "Unit": "" }, - {"Name": "chp_capacity_uba", - "Description": "...", - "Unit": "" }, - {"Name": "efficiency_data", - "Description": "...", - "Unit": "" }, - {"Name": "efficiency_estimate", - "Description": "...", - "Unit": "" }, - {"Name": "network_node", - "Description": "...", - "Unit": "" }, - {"Name": "voltage", - "Description": "...", - "Unit": "" }, - {"Name": "network_operator", - "Description": "...", - "Unit": "" }, - {"Name": "name_uba", - "Description": "...", - "Unit": "" }, - {"Name": "lat", - "Description": "...", - "Unit": "" }, - {"Name": "lon", - "Description": "...", - "Unit": "" }, - {"Name": "comment", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_geo_opsd.opsd_power_plants_germany'::regclass)::json; - --- - --- - -COMMENT ON TABLE orig_geo_opsd.renewable_power_plants_germany IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "start_up_date", - "Description": "...", - "Unit": "" }, - {"Name": "electrical_capacity", - "Description": "...", - "Unit": "" }, - {"Name": "generation_type", - "Description": "...", - "Unit": "" }, - {"Name": "generation_subtype", - "Description": "...", - "Unit": "" }, - {"Name": "thermal_capacity", - "Description": "...", - "Unit": "" }, - {"Name": "city", - "Description": "...", - "Unit": "" }, - {"Name": "postcode", - "Description": "...", - "Unit": "" }, - {"Name": "address", - "Description": "...", - "Unit": "" }, - {"Name": "lon", - "Description": "...", - "Unit": "" }, - {"Name": "lat", - "Description": "...", - "Unit": "" }, - {"Name": "gps_accuracy", - "Description": "...", - "Unit": "" }, - {"Name": "validation", - "Description": "...", - "Unit": "" }, - {"Name": "notification_reason", - "Description": "...", - "Unit": "" }, - {"Name": "eeg_id", - "Description": "...", - "Unit": "" }, - {"Name": "tso", - "Description": "...", - "Unit": "" }, - {"Name": "tso_eic", - "Description": "...", - "Unit": "" }, - {"Name": "dso_id", - "Description": "...", - "Unit": "" }, - {"Name": "dso", - "Description": "...", - "Unit": "" }, - {"Name": "voltage_level", - "Description": "...", - "Unit": "" }, - {"Name": "network_node", - "Description": "...", - "Unit": "" }, - {"Name": "power_plant_id", - "Description": "...", - "Unit": "" }, - {"Name": "source", - "Description": "...", - "Unit": "" }, - {"Name": "comment", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_geo_opsd.renewable_power_plants_germany'::regclass)::json; - --- - --- - -COMMENT ON TABLE orig_geo_opsd.renewable_power_plants_germany_hv_solar_roof IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "electrical_capacity", - "Description": "...", - "Unit": "" }, - {"Name": "generation_type", - "Description": "...", - "Unit": "" }, - {"Name": "generation_subtype", - "Description": "...", - "Unit": "" }, - {"Name": "voltage_level", - "Description": "...", - "Unit": "" }, - {"Name": "subst_id", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_geo_opsd.renewable_power_plants_germany_hv_solar_roof'::regclass)::json; - --- - - diff --git a/requirements.txt/SQL Documentation/orig_geo_powerplants.sql b/requirements.txt/SQL Documentation/orig_geo_powerplants.sql deleted file mode 100644 index 60fc9d6b..00000000 --- a/requirements.txt/SQL Documentation/orig_geo_powerplants.sql +++ /dev/null @@ -1,810 +0,0 @@ - --- - -COMMENT ON TABLE orig_geo_powerplants.generators_total IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "un_id", - "Description": "...", - "Unit": "" }, - {"Name": "re_id", - "Description": "...", - "Unit": "" }, - {"Name": "conv_id", - "Description": "...", - "Unit": "" }, - {"Name": "aggr_id_pf", - "Description": "...", - "Unit": "" }, - {"Name": "aggr_id_ms", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_geo_powerplants.generators_total'::regclass)::json; - --- - --- - -COMMENT ON TABLE orig_geo_powerplants.nep_2015_powerplants IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "bnetza_id", - "Description": "...", - "Unit": "" }, - {"Name": "tso", - "Description": "...", - "Unit": "" }, - {"Name": "power_plant_name", - "Description": "...", - "Unit": "" }, - {"Name": "unit_name", - "Description": "...", - "Unit": "" }, - {"Name": "postcode", - "Description": "...", - "Unit": "" }, - {"Name": "state", - "Description": "...", - "Unit": "" }, - {"Name": "commissioning", - "Description": "...", - "Unit": "" }, - {"Name": "chp", - "Description": "...", - "Unit": "" }, - {"Name": "fuel", - "Description": "...", - "Unit": "" }, - {"Name": "rated_power", - "Description": "...", - "Unit": "" }, - {"Name": "rated_power_a2025", - "Description": "...", - "Unit": "" }, - {"Name": "rated_power_b2025", - "Description": "...", - "Unit": "" }, - {"Name": "rated_power_b2035", - "Description": "...", - "Unit": "" }, - {"Name": "rated_power_c2025", - "Description": "...", - "Unit": "" }, - {"Name": "lat", - "Description": "...", - "Unit": "" }, - {"Name": "lon", - "Description": "...", - "Unit": "" }, - {"Name": "location_checked", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }, - {"Name": "gid", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_geo_powerplants.nep_2015_powerplants'::regclass)::json; - --- - --- - -COMMENT ON TABLE orig_geo_powerplants.pf_generator_single IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "generator_id", - "Description": "...", - "Unit": "" }, - {"Name": "bus", - "Description": "...", - "Unit": "" }, - {"Name": "dispatch", - "Description": "...", - "Unit": "" }, - {"Name": "control", - "Description": "...", - "Unit": "" }, - {"Name": "p_nom", - "Description": "...", - "Unit": "" }, - {"Name": "p_nom_extendable", - "Description": "...", - "Unit": "" }, - {"Name": "p_nom_min", - "Description": "...", - "Unit": "" }, - {"Name": "p_nom_max", - "Description": "...", - "Unit": "" }, - {"Name": "p_min_pu_fixed", - "Description": "...", - "Unit": "" }, - {"Name": "p_max_pu_fixed", - "Description": "...", - "Unit": "" }, - {"Name": "sign", - "Description": "...", - "Unit": "" }, - {"Name": "source", - "Description": "...", - "Unit": "" }, - {"Name": "marginal_cost", - "Description": "...", - "Unit": "" }, - {"Name": "capital_cost", - "Description": "...", - "Unit": "" }, - {"Name": "efficiency", - "Description": "...", - "Unit": "" }, - {"Name": "w_id", - "Description": "...", - "Unit": "" }, - {"Name": "aggr_id", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_geo_powerplants.pf_generator_single'::regclass)::json; - --- - --- - -COMMENT ON TABLE orig_geo_powerplants.proc_power_plant_germany IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "gid", - "Description": "...", - "Unit": "" }, - {"Name": "bnetza_id", - "Description": "...", - "Unit": "" }, - {"Name": "company", - "Description": "...", - "Unit": "" }, - {"Name": "name", - "Description": "...", - "Unit": "" }, - {"Name": "postcode", - "Description": "...", - "Unit": "" }, - {"Name": "city", - "Description": "...", - "Unit": "" }, - {"Name": "street", - "Description": "...", - "Unit": "" }, - {"Name": "state", - "Description": "...", - "Unit": "" }, - {"Name": "block", - "Description": "...", - "Unit": "" }, - {"Name": "commissioned_original", - "Description": "...", - "Unit": "" }, - {"Name": "commissioned", - "Description": "...", - "Unit": "" }, - {"Name": "retrofit", - "Description": "...", - "Unit": "" }, - {"Name": "shutdown", - "Description": "...", - "Unit": "" }, - {"Name": "status", - "Description": "...", - "Unit": "" }, - {"Name": "fuel", - "Description": "...", - "Unit": "" }, - {"Name": "technology", - "Description": "...", - "Unit": "" }, - {"Name": "type", - "Description": "...", - "Unit": "" }, - {"Name": "eeg", - "Description": "...", - "Unit": "" }, - {"Name": "chp", - "Description": "...", - "Unit": "" }, - {"Name": "capacity", - "Description": "...", - "Unit": "" }, - {"Name": "capacity_uba", - "Description": "...", - "Unit": "" }, - {"Name": "chp_capacity_uba", - "Description": "...", - "Unit": "" }, - {"Name": "efficiency_data", - "Description": "...", - "Unit": "" }, - {"Name": "efficiency_estimate", - "Description": "...", - "Unit": "" }, - {"Name": "network_node", - "Description": "...", - "Unit": "" }, - {"Name": "voltage", - "Description": "...", - "Unit": "" }, - {"Name": "network_operator", - "Description": "...", - "Unit": "" }, - {"Name": "name_uba", - "Description": "...", - "Unit": "" }, - {"Name": "lat", - "Description": "...", - "Unit": "" }, - {"Name": "lon", - "Description": "...", - "Unit": "" }, - {"Name": "comment", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }, - {"Name": "voltage_level", - "Description": "...", - "Unit": "" }, - {"Name": "subst_id", - "Description": "...", - "Unit": "" }, - {"Name": "otg_id", - "Description": "...", - "Unit": "" }, - {"Name": "un_id", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_geo_powerplants.proc_power_plant_germany'::regclass)::json; - --- - --- - -COMMENT ON TABLE orig_geo_powerplants.proc_renewable_power_plants_germany IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "start_up_date", - "Description": "...", - "Unit": "" }, - {"Name": "electrical_capacity", - "Description": "...", - "Unit": "" }, - {"Name": "generation_type", - "Description": "...", - "Unit": "" }, - {"Name": "generation_subtype", - "Description": "...", - "Unit": "" }, - {"Name": "thermal_capacity", - "Description": "...", - "Unit": "" }, - {"Name": "city", - "Description": "...", - "Unit": "" }, - {"Name": "postcode", - "Description": "...", - "Unit": "" }, - {"Name": "addresss", - "Description": "...", - "Unit": "" }, - {"Name": "lon", - "Description": "...", - "Unit": "" }, - {"Name": "lat", - "Description": "...", - "Unit": "" }, - {"Name": "gps_accuracy", - "Description": "...", - "Unit": "" }, - {"Name": "valididation", - "Description": "...", - "Unit": "" }, - {"Name": "notification_reason", - "Description": "...", - "Unit": "" }, - {"Name": "eeg_id", - "Description": "...", - "Unit": "" }, - {"Name": "tso", - "Description": "...", - "Unit": "" }, - {"Name": "tso_eic", - "Description": "...", - "Unit": "" }, - {"Name": "dso_id", - "Description": "...", - "Unit": "" }, - {"Name": "dso", - "Description": "...", - "Unit": "" }, - {"Name": "voltage_level", - "Description": "...", - "Unit": "" }, - {"Name": "network_node", - "Description": "...", - "Unit": "" }, - {"Name": "power_plant_id", - "Description": "...", - "Unit": "" }, - {"Name": "source", - "Description": "...", - "Unit": "" }, - {"Name": "comment", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }, - {"Name": "voltage", - "Description": "...", - "Unit": "" }, - {"Name": "subst_id", - "Description": "...", - "Unit": "" }, - {"Name": "otg_id", - "Description": "...", - "Unit": "" }, - {"Name": "un_id", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_geo_powerplants.proc_renewable_power_plants_germany'::regclass)::json; - --- - --- - -COMMENT ON TABLE orig_geo_powerplants.proc_renewable_power_plants_nep2035 IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "scenario_year", - "Description": "...", - "Unit": "" }, - {"Name": "electrical_capacity", - "Description": "...", - "Unit": "" }, - {"Name": "generation_type", - "Description": "...", - "Unit": "" }, - {"Name": "generation_subtype", - "Description": "...", - "Unit": "" }, - {"Name": "thermal_capacity", - "Description": "...", - "Unit": "" }, - {"Name": "nuts", - "Description": "...", - "Unit": "" }, - {"Name": "lon", - "Description": "...", - "Unit": "" }, - {"Name": "lat", - "Description": "...", - "Unit": "" }, - {"Name": "voltage_level", - "Description": "...", - "Unit": "" }, - {"Name": "network_node", - "Description": "...", - "Unit": "" }, - {"Name": "source", - "Description": "...", - "Unit": "" }, - {"Name": "comment", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }, - {"Name": "voltage", - "Description": "...", - "Unit": "" }, - {"Name": "subst_id", - "Description": "...", - "Unit": "" }, - {"Name": "otg_id", - "Description": "...", - "Unit": "" }, - {"Name": "un_id", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_geo_powerplants.proc_renewable_power_plants_nep2035'::regclass)::json; - --- - --- - -COMMENT ON TABLE orig_geo_powerplants.pv_dev_nep_germany_mun IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "pv_units", - "Description": "...", - "Unit": "" }, - {"Name": "pv_cap_2014", - "Description": "...", - "Unit": "" }, - {"Name": "pv_add_cap_2035", - "Description": "...", - "Unit": "" }, - {"Name": "voltage_level", - "Description": "...", - "Unit": "" }, - {"Name": "rs_0", - "Description": "...", - "Unit": "" }, - {"Name": "pv_avg_cap", - "Description": "...", - "Unit": "" }, - {"Name": "pv_new_units", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_geo_powerplants.pv_dev_nep_germany_mun'::regclass)::json; - --- - - --- - -COMMENT ON TABLE orig_geo_powerplants.renewable_power_plants_germany IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "start_up_date", - "Description": "...", - "Unit": "" }, - {"Name": "electrical_capacity", - "Description": "...", - "Unit": "" }, - {"Name": "generation_type", - "Description": "...", - "Unit": "" }, - {"Name": "generation_subtype", - "Description": "...", - "Unit": "" }, - {"Name": "thermal_capacity", - "Description": "...", - "Unit": "" }, - {"Name": "city", - "Description": "...", - "Unit": "" }, - {"Name": "postcode", - "Description": "...", - "Unit": "" }, - {"Name": "address", - "Description": "...", - "Unit": "" }, - {"Name": "lon", - "Description": "...", - "Unit": "" }, - {"Name": "lat", - "Description": "...", - "Unit": "" }, - {"Name": "gps_accuracy", - "Description": "...", - "Unit": "" }, - {"Name": "validation", - "Description": "...", - "Unit": "" }, - {"Name": "notification_reason", - "Description": "...", - "Unit": "" }, - {"Name": "eeg_id", - "Description": "...", - "Unit": "" }, - {"Name": "tso", - "Description": "...", - "Unit": "" }, - {"Name": "tso_eic", - "Description": "...", - "Unit": "" }, - {"Name": "dso_id", - "Description": "...", - "Unit": "" }, - {"Name": "dso", - "Description": "...", - "Unit": "" }, - {"Name": "voltage_level", - "Description": "...", - "Unit": "" }, - {"Name": "network_node", - "Description": "...", - "Unit": "" }, - {"Name": "power_plant_id", - "Description": "...", - "Unit": "" }, - {"Name": "source", - "Description": "...", - "Unit": "" }, - {"Name": "comment", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_geo_powerplants.renewable_power_plants_germany'::regclass)::json; - --- - - - --- - -COMMENT ON TABLE orig_geo_powerplants.renewable_power_plants_germany_to_region IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "re_id", - "Description": "...", - "Unit": "" }, - {"Name": "subst_id", - "Description": "...", - "Unit": "" }, - {"Name": "otg_id", - "Description": "...", - "Unit": "" }, - {"Name": "un_id", - "Description": "...", - "Unit": "" }, - {"Name": "nuts", - "Description": "...", - "Unit": "" }, - {"Name": "rs_0", - "Description": "...", - "Unit": "" }, - {"Name": "id_vg250", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_geo_powerplants.renewable_power_plants_germany_to_region'::regclass)::json; - --- - - --- - -COMMENT ON TABLE orig_geo_powerplants.voltage_level IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "voltage_level", - "Description": "...", - "Unit": "" }, - {"Name": "voltage", - "Description": "...", - "Unit": "" }, - {"Name": "voltage_disc", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "05.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_geo_powerplants.voltage_level'::regclass)::json; - --- - - diff --git a/requirements.txt/SQL Documentation/orig_ioer.sql b/requirements.txt/SQL Documentation/orig_ioer.sql deleted file mode 100644 index 59f42942..00000000 --- a/requirements.txt/SQL Documentation/orig_ioer.sql +++ /dev/null @@ -1,43 +0,0 @@ - --- - -COMMENT ON TABLE orig_ioer.ioer_urban_share_industrial_centroid IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "rid", - "Description": "...", - "Unit": "" }, - {"Name": "ioer_share", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "10.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_ioer.ioer_urban_share_industrial_centroid'::regclass)::json; - --- - diff --git a/requirements.txt/SQL Documentation/orig_osm.sql b/requirements.txt/SQL Documentation/orig_osm.sql deleted file mode 100644 index 7d1203d0..00000000 --- a/requirements.txt/SQL Documentation/orig_osm.sql +++ /dev/null @@ -1,1206 +0,0 @@ - --- - -COMMENT ON TABLE orig_osm.ego_deu_loads_osm IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "area_ha", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "10.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_osm.ego_deu_loads_osm'::regclass)::json; - --- - - --- - -COMMENT ON TABLE orig_osm.osm_deu_line IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "osm_id", - "Description": "...", - "Unit": "" }, - {"Name": "access", - "Description": "...", - "Unit": "" }, - {"Name": "addr:housename", - "Description": "...", - "Unit": "" }, - {"Name": "addr:housnumber", - "Description": "...", - "Unit": "" }, - {"Name": "addr:interpolation", - "Description": "...", - "Unit": "" }, - {"Name": "admin_level", - "Description": "...", - "Unit": "" }, - {"Name": "aerialway", - "Description": "...", - "Unit": "" }, - {"Name": "aeroway", - "Description": "...", - "Unit": "" }, - {"Name": "amenity", - "Description": "...", - "Unit": "" }, - {"Name": "area", - "Description": "...", - "Unit": "" }, - {"Name": "barrier", - "Description": "...", - "Unit": "" }, - {"Name": "bicycle", - "Description": "...", - "Unit": "" }, - {"Name": "brand", - "Description": "...", - "Unit": "" }, - {"Name": "bridge", - "Description": "...", - "Unit": "" }, - {"Name": "boundary", - "Description": "...", - "Unit": "" }, - {"Name": "building", - "Description": "...", - "Unit": "" }, - {"Name": "construction", - "Description": "...", - "Unit": "" }, - {"Name": "covered", - "Description": "...", - "Unit": "" }, - {"Name": "culvert", - "Description": "...", - "Unit": "" }, - {"Name": "cutting", - "Description": "...", - "Unit": "" }, - {"Name": "denomination", - "Description": "...", - "Unit": "" }, - {"Name": "disused", - "Description": "...", - "Unit": "" }, - {"Name": "embankment", - "Description": "...", - "Unit": "" }, - {"Name": "foot", - "Description": "...", - "Unit": "" }, - {"Name": "generator:source", - "Description": "...", - "Unit": "" }, - {"Name": "harbour", - "Description": "...", - "Unit": "" }, - {"Name": "highway", - "Description": "...", - "Unit": "" }, - {"Name": "historic", - "Description": "...", - "Unit": "" }, - {"Name": "horse", - "Description": "...", - "Unit": "" }, - {"Name": "intermittent", - "Description": "...", - "Unit": "" }, - {"Name": "junction", - "Description": "...", - "Unit": "" }, - {"Name": "landuse", - "Description": "...", - "Unit": "" }, - {"Name": "layer", - "Description": "...", - "Unit": "" }, - {"Name": "leisure", - "Description": "...", - "Unit": "" }, - {"Name": "lock", - "Description": "...", - "Unit": "" }, - {"Name": "man_made", - "Description": "...", - "Unit": "" }, - {"Name": "military", - "Description": "...", - "Unit": "" }, - {"Name": "motorcar", - "Description": "...", - "Unit": "" }, - {"Name": "name", - "Description": "...", - "Unit": "" }, - {"Name": "natural", - "Description": "...", - "Unit": "" }, - {"Name": "office", - "Description": "...", - "Unit": "" }, - {"Name": "oneway", - "Description": "...", - "Unit": "" }, - {"Name": "operator", - "Description": "...", - "Unit": "" }, - {"Name": "place", - "Description": "...", - "Unit": "" }, - {"Name": "population", - "Description": "...", - "Unit": "" }, - {"Name": "power", - "Description": "...", - "Unit": "" }, - {"Name": "power_source", - "Description": "...", - "Unit": "" }, - {"Name": "public_transport", - "Description": "...", - "Unit": "" }, - {"Name": "railway", - "Description": "...", - "Unit": "" }, - {"Name": "ref", - "Description": "...", - "Unit": "" }, - {"Name": "religion", - "Description": "...", - "Unit": "" }, - {"Name": "route", - "Description": "...", - "Unit": "" }, - {"Name": "service", - "Description": "...", - "Unit": "" }, - {"Name": "shop", - "Description": "...", - "Unit": "" }, - {"Name": "sport", - "Description": "...", - "Unit": "" }, - {"Name": "surface", - "Description": "...", - "Unit": "" }, - {"Name": "toll", - "Description": "...", - "Unit": "" }, - {"Name": "tourism", - "Description": "...", - "Unit": "" }, - {"Name": "tower:type", - "Description": "...", - "Unit": "" }, - {"Name": "tracktype", - "Description": "...", - "Unit": "" }, - {"Name": "tunnel", - "Description": "...", - "Unit": "" }, - {"Name": "water", - "Description": "...", - "Unit": "" }, - {"Name": "waterway", - "Description": "...", - "Unit": "" }, - {"Name": "wetland", - "Description": "...", - "Unit": "" }, - {"Name": "witdth", - "Description": "...", - "Unit": "" }, - {"Name": "wood", - "Description": "...", - "Unit": "" }, - {"Name": "z_order", - "Description": "...", - "Unit": "" }, - {"Name": "way_area", - "Description": "...", - "Unit": "" }, - {"Name": "tags", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }, - {"Name": "gid", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "10.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_osm.osm_deu_line'::regclass)::json; - --- - - --- - -COMMENT ON TABLE orig_osm.osm_deu_nodes IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "lat", - "Description": "...", - "Unit": "" }, - {"Name": "lon", - "Description": "...", - "Unit": "" }, - {"Name": "tags", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "10.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_osm.osm_deu_nodes'::regclass)::json; - --- - --- - -COMMENT ON TABLE orig_osm.osm_deu_point IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "osm_id", - "Description": "...", - "Unit": "" }, - {"Name": "access", - "Description": "...", - "Unit": "" }, - {"Name": "addr:housename", - "Description": "...", - "Unit": "" }, - {"Name": "addr:housnumber", - "Description": "...", - "Unit": "" }, - {"Name": "addr:interpolation", - "Description": "...", - "Unit": "" }, - {"Name": "admin_level", - "Description": "...", - "Unit": "" }, - {"Name": "aerialway", - "Description": "...", - "Unit": "" }, - {"Name": "aeroway", - "Description": "...", - "Unit": "" }, - {"Name": "amenity", - "Description": "...", - "Unit": "" }, - {"Name": "area", - "Description": "...", - "Unit": "" }, - {"Name": "barrier", - "Description": "...", - "Unit": "" }, - {"Name": "bicycle", - "Description": "...", - "Unit": "" }, - {"Name": "brand", - "Description": "...", - "Unit": "" }, - {"Name": "bridge", - "Description": "...", - "Unit": "" }, - {"Name": "boundary", - "Description": "...", - "Unit": "" }, - {"Name": "building", - "Description": "...", - "Unit": "" }, - {"Name": "capital", - "Description": "...", - "Unit": "" }, - {"Name": "construction", - "Description": "...", - "Unit": "" }, - {"Name": "covered", - "Description": "...", - "Unit": "" }, - {"Name": "culvert", - "Description": "...", - "Unit": "" }, - {"Name": "cutting", - "Description": "...", - "Unit": "" }, - {"Name": "denomination", - "Description": "...", - "Unit": "" }, - {"Name": "disused", - "Description": "...", - "Unit": "" }, - {"Name": "ele", - "Description": "...", - "Unit": "" }, - {"Name": "embankment", - "Description": "...", - "Unit": "" }, - {"Name": "foot", - "Description": "...", - "Unit": "" }, - {"Name": "generator:source", - "Description": "...", - "Unit": "" }, - {"Name": "harbour", - "Description": "...", - "Unit": "" }, - {"Name": "highway", - "Description": "...", - "Unit": "" }, - {"Name": "historic", - "Description": "...", - "Unit": "" }, - {"Name": "horse", - "Description": "...", - "Unit": "" }, - {"Name": "intermittent", - "Description": "...", - "Unit": "" }, - {"Name": "junction", - "Description": "...", - "Unit": "" }, - {"Name": "landuse", - "Description": "...", - "Unit": "" }, - {"Name": "layer", - "Description": "...", - "Unit": "" }, - {"Name": "leisure", - "Description": "...", - "Unit": "" }, - {"Name": "lock", - "Description": "...", - "Unit": "" }, - {"Name": "man_made", - "Description": "...", - "Unit": "" }, - {"Name": "military", - "Description": "...", - "Unit": "" }, - {"Name": "motorcar", - "Description": "...", - "Unit": "" }, - {"Name": "name", - "Description": "...", - "Unit": "" }, - {"Name": "natural", - "Description": "...", - "Unit": "" }, - {"Name": "office", - "Description": "...", - "Unit": "" }, - {"Name": "oneway", - "Description": "...", - "Unit": "" }, - {"Name": "operator", - "Description": "...", - "Unit": "" }, - {"Name": "place", - "Description": "...", - "Unit": "" }, - {"Name": "poi", - "Description": "...", - "Unit": "" }, - {"Name": "population", - "Description": "...", - "Unit": "" }, - {"Name": "power", - "Description": "...", - "Unit": "" }, - {"Name": "power_source", - "Description": "...", - "Unit": "" }, - {"Name": "public_transport", - "Description": "...", - "Unit": "" }, - {"Name": "railway", - "Description": "...", - "Unit": "" }, - {"Name": "ref", - "Description": "...", - "Unit": "" }, - {"Name": "religion", - "Description": "...", - "Unit": "" }, - {"Name": "route", - "Description": "...", - "Unit": "" }, - {"Name": "service", - "Description": "...", - "Unit": "" }, - {"Name": "shop", - "Description": "...", - "Unit": "" }, - {"Name": "sport", - "Description": "...", - "Unit": "" }, - {"Name": "surface", - "Description": "...", - "Unit": "" }, - {"Name": "toll", - "Description": "...", - "Unit": "" }, - {"Name": "tourism", - "Description": "...", - "Unit": "" }, - {"Name": "tower:type", - "Description": "...", - "Unit": "" }, - {"Name": "tunnel", - "Description": "...", - "Unit": "" }, - {"Name": "water", - "Description": "...", - "Unit": "" }, - {"Name": "waterway", - "Description": "...", - "Unit": "" }, - {"Name": "wetland", - "Description": "...", - "Unit": "" }, - {"Name": "witdth", - "Description": "...", - "Unit": "" }, - {"Name": "wood", - "Description": "...", - "Unit": "" }, - {"Name": "z_order", - "Description": "...", - "Unit": "" }, - {"Name": "tags", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }, - {"Name": "gid", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "10.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_osm.osm_deu_point'::regclass)::json; - --- - - --- - -COMMENT ON TABLE orig_osm.osm_deu_polygon IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "osm_id", - "Description": "...", - "Unit": "" }, - {"Name": "access", - "Description": "...", - "Unit": "" }, - {"Name": "addr:housename", - "Description": "...", - "Unit": "" }, - {"Name": "addr:housnumber", - "Description": "...", - "Unit": "" }, - {"Name": "addr:interpolation", - "Description": "...", - "Unit": "" }, - {"Name": "admin_level", - "Description": "...", - "Unit": "" }, - {"Name": "aerialway", - "Description": "...", - "Unit": "" }, - {"Name": "aeroway", - "Description": "...", - "Unit": "" }, - {"Name": "amenity", - "Description": "...", - "Unit": "" }, - {"Name": "area", - "Description": "...", - "Unit": "" }, - {"Name": "barrier", - "Description": "...", - "Unit": "" }, - {"Name": "bicycle", - "Description": "...", - "Unit": "" }, - {"Name": "brand", - "Description": "...", - "Unit": "" }, - {"Name": "bridge", - "Description": "...", - "Unit": "" }, - {"Name": "boundary", - "Description": "...", - "Unit": "" }, - {"Name": "building", - "Description": "...", - "Unit": "" }, - {"Name": "construction", - "Description": "...", - "Unit": "" }, - {"Name": "covered", - "Description": "...", - "Unit": "" }, - {"Name": "culvert", - "Description": "...", - "Unit": "" }, - {"Name": "cutting", - "Description": "...", - "Unit": "" }, - {"Name": "denomination", - "Description": "...", - "Unit": "" }, - {"Name": "disused", - "Description": "...", - "Unit": "" }, - {"Name": "embankment", - "Description": "...", - "Unit": "" }, - {"Name": "foot", - "Description": "...", - "Unit": "" }, - {"Name": "generator:source", - "Description": "...", - "Unit": "" }, - {"Name": "harbour", - "Description": "...", - "Unit": "" }, - {"Name": "highway", - "Description": "...", - "Unit": "" }, - {"Name": "historic", - "Description": "...", - "Unit": "" }, - {"Name": "horse", - "Description": "...", - "Unit": "" }, - {"Name": "intermittent", - "Description": "...", - "Unit": "" }, - {"Name": "junction", - "Description": "...", - "Unit": "" }, - {"Name": "landuse", - "Description": "...", - "Unit": "" }, - {"Name": "layer", - "Description": "...", - "Unit": "" }, - {"Name": "leisure", - "Description": "...", - "Unit": "" }, - {"Name": "lock", - "Description": "...", - "Unit": "" }, - {"Name": "man_made", - "Description": "...", - "Unit": "" }, - {"Name": "military", - "Description": "...", - "Unit": "" }, - {"Name": "motorcar", - "Description": "...", - "Unit": "" }, - {"Name": "name", - "Description": "...", - "Unit": "" }, - {"Name": "natural", - "Description": "...", - "Unit": "" }, - {"Name": "office", - "Description": "...", - "Unit": "" }, - {"Name": "oneway", - "Description": "...", - "Unit": "" }, - {"Name": "operator", - "Description": "...", - "Unit": "" }, - {"Name": "place", - "Description": "...", - "Unit": "" }, - {"Name": "population", - "Description": "...", - "Unit": "" }, - {"Name": "power", - "Description": "...", - "Unit": "" }, - {"Name": "power_source", - "Description": "...", - "Unit": "" }, - {"Name": "public_transport", - "Description": "...", - "Unit": "" }, - {"Name": "railway", - "Description": "...", - "Unit": "" }, - {"Name": "ref", - "Description": "...", - "Unit": "" }, - {"Name": "religion", - "Description": "...", - "Unit": "" }, - {"Name": "route", - "Description": "...", - "Unit": "" }, - {"Name": "service", - "Description": "...", - "Unit": "" }, - {"Name": "shop", - "Description": "...", - "Unit": "" }, - {"Name": "sport", - "Description": "...", - "Unit": "" }, - {"Name": "surface", - "Description": "...", - "Unit": "" }, - {"Name": "toll", - "Description": "...", - "Unit": "" }, - {"Name": "tourism", - "Description": "...", - "Unit": "" }, - {"Name": "tower:type", - "Description": "...", - "Unit": "" }, - {"Name": "tracktype", - "Description": "...", - "Unit": "" }, - {"Name": "tunnel", - "Description": "...", - "Unit": "" }, - {"Name": "water", - "Description": "...", - "Unit": "" }, - {"Name": "waterway", - "Description": "...", - "Unit": "" }, - {"Name": "wetland", - "Description": "...", - "Unit": "" }, - {"Name": "witdth", - "Description": "...", - "Unit": "" }, - {"Name": "wood", - "Description": "...", - "Unit": "" }, - {"Name": "z_order", - "Description": "...", - "Unit": "" }, - {"Name": "way_area", - "Description": "...", - "Unit": "" }, - {"Name": "tags", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }, - {"Name": "gid", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "10.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_osm.osm_deu_polygon'::regclass)::json; - --- - - --- - -COMMENT ON TABLE orig_osm.osm_deu_polygon_urban_old IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "gid", - "Description": "...", - "Unit": "" }, - {"Name": "osm_id", - "Description": "...", - "Unit": "" }, - {"Name": "name", - "Description": "...", - "Unit": "" }, - {"Name": "sector", - "Description": "...", - "Unit": "" }, - {"Name": "tags", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "10.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_osm.osm_deu_polygon_urban_old'::regclass)::json; - --- - - --- - -COMMENT ON TABLE orig_osm.osm_deu_rels IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "way_off", - "Description": "...", - "Unit": "" }, - {"Name": "rel_off", - "Description": "...", - "Unit": "" }, - {"Name": "parts", - "Description": "...", - "Unit": "" }, - {"Name": "members", - "Description": "...", - "Unit": "" }, - {"Name": "tags", - "Description": "...", - "Unit": "" }, - {"Name": "pending", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "10.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_osm.osm_deu_rels'::regclass)::json; - --- - - --- - -COMMENT ON TABLE orig_osm.osm_deu_roads IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "osm_id", - "Description": "...", - "Unit": "" }, - {"Name": "access", - "Description": "...", - "Unit": "" }, - {"Name": "addr:housename", - "Description": "...", - "Unit": "" }, - {"Name": "addr:housnumber", - "Description": "...", - "Unit": "" }, - {"Name": "addr:interpolation", - "Description": "...", - "Unit": "" }, - {"Name": "admin_level", - "Description": "...", - "Unit": "" }, - {"Name": "aerialway", - "Description": "...", - "Unit": "" }, - {"Name": "aeroway", - "Description": "...", - "Unit": "" }, - {"Name": "amenity", - "Description": "...", - "Unit": "" }, - {"Name": "area", - "Description": "...", - "Unit": "" }, - {"Name": "barrier", - "Description": "...", - "Unit": "" }, - {"Name": "bicycle", - "Description": "...", - "Unit": "" }, - {"Name": "brand", - "Description": "...", - "Unit": "" }, - {"Name": "bridge", - "Description": "...", - "Unit": "" }, - {"Name": "boundary", - "Description": "...", - "Unit": "" }, - {"Name": "building", - "Description": "...", - "Unit": "" }, - {"Name": "construction", - "Description": "...", - "Unit": "" }, - {"Name": "covered", - "Description": "...", - "Unit": "" }, - {"Name": "culvert", - "Description": "...", - "Unit": "" }, - {"Name": "cutting", - "Description": "...", - "Unit": "" }, - {"Name": "denomination", - "Description": "...", - "Unit": "" }, - {"Name": "disused", - "Description": "...", - "Unit": "" }, - {"Name": "embankment", - "Description": "...", - "Unit": "" }, - {"Name": "foot", - "Description": "...", - "Unit": "" }, - {"Name": "generator:source", - "Description": "...", - "Unit": "" }, - {"Name": "harbour", - "Description": "...", - "Unit": "" }, - {"Name": "highway", - "Description": "...", - "Unit": "" }, - {"Name": "historic", - "Description": "...", - "Unit": "" }, - {"Name": "horse", - "Description": "...", - "Unit": "" }, - {"Name": "intermittent", - "Description": "...", - "Unit": "" }, - {"Name": "junction", - "Description": "...", - "Unit": "" }, - {"Name": "landuse", - "Description": "...", - "Unit": "" }, - {"Name": "layer", - "Description": "...", - "Unit": "" }, - {"Name": "leisure", - "Description": "...", - "Unit": "" }, - {"Name": "lock", - "Description": "...", - "Unit": "" }, - {"Name": "man_made", - "Description": "...", - "Unit": "" }, - {"Name": "military", - "Description": "...", - "Unit": "" }, - {"Name": "motorcar", - "Description": "...", - "Unit": "" }, - {"Name": "name", - "Description": "...", - "Unit": "" }, - {"Name": "natural", - "Description": "...", - "Unit": "" }, - {"Name": "office", - "Description": "...", - "Unit": "" }, - {"Name": "oneway", - "Description": "...", - "Unit": "" }, - {"Name": "operator", - "Description": "...", - "Unit": "" }, - {"Name": "place", - "Description": "...", - "Unit": "" }, - {"Name": "population", - "Description": "...", - "Unit": "" }, - {"Name": "power", - "Description": "...", - "Unit": "" }, - {"Name": "power_source", - "Description": "...", - "Unit": "" }, - {"Name": "public_transport", - "Description": "...", - "Unit": "" }, - {"Name": "railway", - "Description": "...", - "Unit": "" }, - {"Name": "ref", - "Description": "...", - "Unit": "" }, - {"Name": "religion", - "Description": "...", - "Unit": "" }, - {"Name": "route", - "Description": "...", - "Unit": "" }, - {"Name": "service", - "Description": "...", - "Unit": "" }, - {"Name": "shop", - "Description": "...", - "Unit": "" }, - {"Name": "sport", - "Description": "...", - "Unit": "" }, - {"Name": "surface", - "Description": "...", - "Unit": "" }, - {"Name": "toll", - "Description": "...", - "Unit": "" }, - {"Name": "tourism", - "Description": "...", - "Unit": "" }, - {"Name": "tower:type", - "Description": "...", - "Unit": "" }, - {"Name": "tracktype", - "Description": "...", - "Unit": "" }, - {"Name": "tunnel", - "Description": "...", - "Unit": "" }, - {"Name": "water", - "Description": "...", - "Unit": "" }, - {"Name": "waterway", - "Description": "...", - "Unit": "" }, - {"Name": "wetland", - "Description": "...", - "Unit": "" }, - {"Name": "witdth", - "Description": "...", - "Unit": "" }, - {"Name": "wood", - "Description": "...", - "Unit": "" }, - {"Name": "z_order", - "Description": "...", - "Unit": "" }, - {"Name": "way_area", - "Description": "...", - "Unit": "" }, - {"Name": "tags", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }, - {"Name": "gid", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "10.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_osm.osm_deu_roads'::regclass)::json; - --- - - --- - -COMMENT ON TABLE orig_osm.osm_deu_ways IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "id", - "Description": "...", - "Unit": "" }, - {"Name": "nodes", - "Description": "...", - "Unit": "" }, - {"Name": "tags", - "Description": "...", - "Unit": "" }, - {"Name": "pending", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "10.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_osm.osm_deu_ways'::regclass)::json; - --- - - diff --git a/requirements.txt/SQL Documentation/orig_scenario_data.sql b/requirements.txt/SQL Documentation/orig_scenario_data.sql deleted file mode 100644 index fb43ef4a..00000000 --- a/requirements.txt/SQL Documentation/orig_scenario_data.sql +++ /dev/null @@ -1,45 +0,0 @@ - --- - -COMMENT ON TABLE orig_scenario_data.nep_2015_scenario_capacities IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "state", - "Description": "...", - "Unit": "" }, - {"Name": "generator_type", - "Description": "...", - "Unit": "" }, - {"Name": "capacity", - "Description": "...", - "Unit": "" }, - {"Name": "nuts", - "Description": "...", - "Unit": "" }, - {"Name": "scenario_name", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "10.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('orig_scenario_data.nep_2015_scenario_capacities'::regclass)::json; - --- diff --git a/requirements.txt/SQL Documentation/res_ego_hv_powerflow.sql b/requirements.txt/SQL Documentation/res_ego_hv_powerflow.sql deleted file mode 100644 index f6928511..00000000 --- a/requirements.txt/SQL Documentation/res_ego_hv_powerflow.sql +++ /dev/null @@ -1,355 +0,0 @@ - --- - -COMMENT ON TABLE res_ego_hv_powerflow.res_bus IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "scn_name", - "Description": "...", - "Unit": "" }, - {"Name": "result_id", - "Description": "...", - "Unit": "" }, - {"Name": "bus_id", - "Description": "...", - "Unit": "" }, - {"Name": "temp_id", - "Description": "...", - "Unit": "" }, - {"Name": "control", - "Description": "...", - "Unit": "" }, - {"Name": "p", - "Description": "...", - "Unit": "" }, - {"Name": "q", - "Description": "...", - "Unit": "" }, - {"Name": "v_mag_pu", - "Description": "...", - "Unit": "" }, - {"Name": "v_ang", - "Description": "...", - "Unit": "" }, - {"Name": "marginal_price", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "10.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('res_ego_hv_powerflow.res_bus'::regclass)::json; - --- - - --- - -COMMENT ON TABLE res_ego_hv_powerflow.res_generator IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "scn_name", - "Description": "...", - "Unit": "" }, - {"Name": "result_id", - "Description": "...", - "Unit": "" }, - {"Name": "generator_id", - "Description": "...", - "Unit": "" }, - {"Name": "temp_id", - "Description": "...", - "Unit": "" }, - {"Name": "control", - "Description": "...", - "Unit": "" }, - {"Name": "p", - "Description": "...", - "Unit": "" }, - {"Name": "q", - "Description": "...", - "Unit": "" }, - {"Name": "p_nom_opt", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "10.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('res_ego_hv_powerflow.res_generator'::regclass)::json; - --- - - --- - -COMMENT ON TABLE res_ego_hv_powerflow.res_line IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "scn_name", - "Description": "...", - "Unit": "" }, - {"Name": "result_id", - "Description": "...", - "Unit": "" }, - {"Name": "line_id", - "Description": "...", - "Unit": "" }, - {"Name": "temp_id", - "Description": "...", - "Unit": "" }, - {"Name": "p0", - "Description": "...", - "Unit": "" }, - {"Name": "q0", - "Description": "...", - "Unit": "" }, - {"Name": "p1", - "Description": "...", - "Unit": "" }, - {"Name": "q1", - "Description": "...", - "Unit": "" }, - {"Name": "s_nom_opt", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }, - {"Name": "topo", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "10.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('res_ego_hv_powerflow.res_line'::regclass)::json; - --- - - --- - -COMMENT ON TABLE res_ego_hv_powerflow.res_load IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "scn_name", - "Description": "...", - "Unit": "" }, - {"Name": "result_id", - "Description": "...", - "Unit": "" }, - {"Name": "load_id", - "Description": "...", - "Unit": "" }, - {"Name": "temp_id", - "Description": "...", - "Unit": "" }, - {"Name": "p", - "Description": "...", - "Unit": "" }, - {"Name": "q", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "10.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('res_ego_hv_powerflow.res_load'::regclass)::json; - --- - - --- - -COMMENT ON TABLE res_ego_hv_powerflow.res_storage IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "scn_name", - "Description": "...", - "Unit": "" }, - {"Name": "result_id", - "Description": "...", - "Unit": "" }, - {"Name": "storage_id", - "Description": "...", - "Unit": "" }, - {"Name": "temp_id", - "Description": "...", - "Unit": "" }, - {"Name": "p", - "Description": "...", - "Unit": "" }, - {"Name": "q", - "Description": "...", - "Unit": "" }, - {"Name": "soa", - "Description": "...", - "Unit": "" }, - {"Name": "spill", - "Description": "...", - "Unit": "" }, - {"Name": "p_nom_opt", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "10.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('res_ego_hv_powerflow.res_storage'::regclass)::json; - --- - - --- - -COMMENT ON TABLE res_ego_hv_powerflow.res_transformer IS -'{ -"Name": "...", -"Source": [{ - "Name": "...", - "URL": "..." }], -"Reference date": "...", -"Date of collection": "...", -"Original file": "...", -"Spatial resolution": ["Germany"], -"Description": ["..."], -"Column": [ - {"Name": "scn_name", - "Description": "...", - "Unit": "" }, - {"Name": "result_id", - "Description": "...", - "Unit": "" }, - {"Name": "trafo_id", - "Description": "...", - "Unit": "" }, - {"Name": "temp_id", - "Description": "...", - "Unit": "" }, - {"Name": "control", - "Description": "...", - "Unit": "" }, - {"Name": "p0", - "Description": "...", - "Unit": "" }, - {"Name": "q0", - "Description": "...", - "Unit": "" }, - {"Name": "p1", - "Description": "...", - "Unit": "" }, - {"Name": "q1", - "Description": "...", - "Unit": "" }, - {"Name": "geom", - "Description": "...", - "Unit": "" }, - {"Name": "topo", - "Description": "...", - "Unit": "" }], -"Changes":[ - {"Name": "Mario Kropshofer", - "Mail": "mario.kropshofer2@stud.fh-flensburg.de", - "Date": "10.10.2016", - "Comment": "..." } - ], -"ToDo": ["Please complete"], -"Licence": ["..."], -"Instructions for proper use": ["..."] -}'; - - -SELECT obj_description('res_ego_hv_powerflow.res_transformer'::regclass)::json; - --- - - diff --git a/requirements.txt/doc/Makefile b/requirements.txt/doc/Makefile deleted file mode 100644 index 9117f211..00000000 --- a/requirements.txt/doc/Makefile +++ /dev/null @@ -1,192 +0,0 @@ -# Makefile for Sphinx documentation -# - -# You can set these variables from the command line. -SPHINXOPTS = -SPHINXBUILD = sphinx-build -PAPER = -BUILDDIR = _build - -# User-friendly check for sphinx-build -ifeq ($(shell which $(SPHINXBUILD) >/dev/null 2>&1; echo $$?), 1) -$(error The '$(SPHINXBUILD)' command was not found. Make sure you have Sphinx installed, then set the SPHINXBUILD environment variable to point to the full path of the '$(SPHINXBUILD)' executable. Alternatively you can add the directory with the executable to your PATH. If you don't have Sphinx installed, grab it from http://sphinx-doc.org/) -endif - -# Internal variables. -PAPEROPT_a4 = -D latex_paper_size=a4 -PAPEROPT_letter = -D latex_paper_size=letter -ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) . -# the i18n builder cannot share the environment and doctrees with the others -I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) . - -.PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest coverage gettext - -help: - @echo "Please use \`make ' where is one of" - @echo " html to make standalone HTML files" - @echo " dirhtml to make HTML files named index.html in directories" - @echo " singlehtml to make a single large HTML file" - @echo " pickle to make pickle files" - @echo " json to make JSON files" - @echo " htmlhelp to make HTML files and a HTML help project" - @echo " qthelp to make HTML files and a qthelp project" - @echo " applehelp to make an Apple Help Book" - @echo " devhelp to make HTML files and a Devhelp project" - @echo " epub to make an epub" - @echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter" - @echo " latexpdf to make LaTeX files and run them through pdflatex" - @echo " latexpdfja to make LaTeX files and run them through platex/dvipdfmx" - @echo " text to make text files" - @echo " man to make manual pages" - @echo " texinfo to make Texinfo files" - @echo " info to make Texinfo files and run them through makeinfo" - @echo " gettext to make PO message catalogs" - @echo " changes to make an overview of all changed/added/deprecated items" - @echo " xml to make Docutils-native XML files" - @echo " pseudoxml to make pseudoxml-XML files for display purposes" - @echo " linkcheck to check all external links for integrity" - @echo " doctest to run all doctests embedded in the documentation (if enabled)" - @echo " coverage to run coverage check of the documentation (if enabled)" - -clean: - rm -rf $(BUILDDIR)/* - -html: - $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html - @echo - @echo "Build finished. The HTML pages are in $(BUILDDIR)/html." - -dirhtml: - $(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml - @echo - @echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml." - -singlehtml: - $(SPHINXBUILD) -b singlehtml $(ALLSPHINXOPTS) $(BUILDDIR)/singlehtml - @echo - @echo "Build finished. The HTML page is in $(BUILDDIR)/singlehtml." - -pickle: - $(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) $(BUILDDIR)/pickle - @echo - @echo "Build finished; now you can process the pickle files." - -json: - $(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $(BUILDDIR)/json - @echo - @echo "Build finished; now you can process the JSON files." - -htmlhelp: - $(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) $(BUILDDIR)/htmlhelp - @echo - @echo "Build finished; now you can run HTML Help Workshop with the" \ - ".hhp project file in $(BUILDDIR)/htmlhelp." - -qthelp: - $(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) $(BUILDDIR)/qthelp - @echo - @echo "Build finished; now you can run "qcollectiongenerator" with the" \ - ".qhcp project file in $(BUILDDIR)/qthelp, like this:" - @echo "# qcollectiongenerator $(BUILDDIR)/qthelp/ding0.qhcp" - @echo "To view the help file:" - @echo "# assistant -collectionFile $(BUILDDIR)/qthelp/ding0.qhc" - -applehelp: - $(SPHINXBUILD) -b applehelp $(ALLSPHINXOPTS) $(BUILDDIR)/applehelp - @echo - @echo "Build finished. The help book is in $(BUILDDIR)/applehelp." - @echo "N.B. You won't be able to view it unless you put it in" \ - "~/Library/Documentation/Help or install it in your application" \ - "bundle." - -devhelp: - $(SPHINXBUILD) -b devhelp $(ALLSPHINXOPTS) $(BUILDDIR)/devhelp - @echo - @echo "Build finished." - @echo "To view the help file:" - @echo "# mkdir -p $$HOME/.local/share/devhelp/ding0" - @echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/ding0" - @echo "# devhelp" - -epub: - $(SPHINXBUILD) -b epub $(ALLSPHINXOPTS) $(BUILDDIR)/epub - @echo - @echo "Build finished. The epub file is in $(BUILDDIR)/epub." - -latex: - $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex - @echo - @echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex." - @echo "Run \`make' in that directory to run these through (pdf)latex" \ - "(use \`make latexpdf' here to do that automatically)." - -latexpdf: - $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex - @echo "Running LaTeX files through pdflatex..." - $(MAKE) -C $(BUILDDIR)/latex all-pdf - @echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex." - -latexpdfja: - $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex - @echo "Running LaTeX files through platex and dvipdfmx..." - $(MAKE) -C $(BUILDDIR)/latex all-pdf-ja - @echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex." - -text: - $(SPHINXBUILD) -b text $(ALLSPHINXOPTS) $(BUILDDIR)/text - @echo - @echo "Build finished. The text files are in $(BUILDDIR)/text." - -man: - $(SPHINXBUILD) -b man $(ALLSPHINXOPTS) $(BUILDDIR)/man - @echo - @echo "Build finished. The manual pages are in $(BUILDDIR)/man." - -texinfo: - $(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo - @echo - @echo "Build finished. The Texinfo files are in $(BUILDDIR)/texinfo." - @echo "Run \`make' in that directory to run these through makeinfo" \ - "(use \`make info' here to do that automatically)." - -info: - $(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo - @echo "Running Texinfo files through makeinfo..." - make -C $(BUILDDIR)/texinfo info - @echo "makeinfo finished; the Info files are in $(BUILDDIR)/texinfo." - -gettext: - $(SPHINXBUILD) -b gettext $(I18NSPHINXOPTS) $(BUILDDIR)/locale - @echo - @echo "Build finished. The message catalogs are in $(BUILDDIR)/locale." - -changes: - $(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $(BUILDDIR)/changes - @echo - @echo "The overview file is in $(BUILDDIR)/changes." - -linkcheck: - $(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck - @echo - @echo "Link check complete; look for any errors in the above output " \ - "or in $(BUILDDIR)/linkcheck/output.txt." - -doctest: - $(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest - @echo "Testing of doctests in the sources finished, look at the " \ - "results in $(BUILDDIR)/doctest/output.txt." - -coverage: - $(SPHINXBUILD) -b coverage $(ALLSPHINXOPTS) $(BUILDDIR)/coverage - @echo "Testing of coverage in the sources finished, look at the " \ - "results in $(BUILDDIR)/coverage/python.txt." - -xml: - $(SPHINXBUILD) -b xml $(ALLSPHINXOPTS) $(BUILDDIR)/xml - @echo - @echo "Build finished. The XML files are in $(BUILDDIR)/xml." - -pseudoxml: - $(SPHINXBUILD) -b pseudoxml $(ALLSPHINXOPTS) $(BUILDDIR)/pseudoxml - @echo -@echo "Build finished. The pseudo-XML files are in $(BUILDDIR)/pseudoxml." diff --git a/requirements.txt/doc/conf.py b/requirements.txt/doc/conf.py deleted file mode 100644 index 0c6ef8c2..00000000 --- a/requirements.txt/doc/conf.py +++ /dev/null @@ -1,372 +0,0 @@ -""" -This file is part of the open_eGo project open_eGo: https://openegoproject.wordpress.com - -eGo lives at github: https://github.com/openego/eGo/ -The documentation is available on RTD: https://openego.readthedocs.io""" - -__copyright__ = "Flensburg University of Applied Sciences, Europa-Universität Flensburg, Centre for Sustainable Energy Systems, DLR-Institute for Networked Energy Systems" -__license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" -__author__ = "wolf_bunke" - - -# -*- coding: utf-8 -*- -# -# eGo documentation build configuration file, created by -# sphinx-quickstart on Fri Sep 29 10:55:47 2017. -# -# This file is execfile()d with the current directory set to its -# containing dir. -# -# Note that not all possible configuration values are present in this -# autogenerated file. -# -# All configuration values have a default; values that are commented out -# serve to show the default. - -import sys -import os -import shlex -from unittest.mock import MagicMock -#from mock import Mock as MagicMock - -# If extensions (or modules to document with autodoc) are in another directory, -# add these directories to sys.path here. If the directory is relative to the -# documentation root, use os.path.abspath to make it absolute, like shown here. -#sys.path.insert(0, os.path.abspath('.')) -sys.path.insert(0, os.path.abspath('../')) - -# -- General configuration ------------------------------------------------ - -# If your documentation needs a minimal Sphinx version, state it here. -#needs_sphinx = '1.0' - -# Add any Sphinx extension module names here, as strings. They can be -# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom -# ones. -extensions = [ - 'sphinx.ext.autodoc', - 'sphinx.ext.intersphinx', - 'sphinx.ext.todo', - 'sphinx.ext.coverage', - 'sphinx.ext.imgmath' , - 'sphinx.ext.viewcode', -# 'sphinx.ext.autosummary', -# 'sphinxcontrib.napoleon',#enable Napoleon interpreter of docstrings Sphinx v<=1.2 - 'sphinx.ext.napoleon', #enable Napoleon Sphinx v>1.3 -# 'sphinx_paramlinks',#to have links to the types of the parameters of the functions - 'numpydoc', - 'sphinx.ext.extlinks' # enables external links with a key -] - -# Napoleon settings -napoleon_google_docstring = True -napoleon_numpy_docstring = True -napoleon_include_init_with_doc = False -napoleon_include_private_with_doc = False -napoleon_include_special_with_doc = False -napoleon_use_admonition_for_examples = False -napoleon_use_admonition_for_notes = False -napoleon_use_admonition_for_references = False -napoleon_use_ivar = False -napoleon_use_param = True -napoleon_use_rtype = True -napoleon_use_keyword = False - - -# Dictionary of external links -extlinks = {'pandas':('http://pandas.pydata.org/pandas-docs/stable/api.html#%s', - 'pandas.'), - 'sqlalchemy':('http://docs.sqlalchemy.org/en/latest/orm/session_basics.html%s', - 'SQLAlchemy session object'), - 'shapely':('http://toblerity.org/shapely/manual.html#%s', - 'Shapely object') -} - - - - - -# Add any paths that contain templates here, relative to this directory. -templates_path = ['_templates'] - -# The suffix(es) of source filenames. -# You can specify multiple suffix as a list of string: -# source_suffix = ['.rst', '.md'] -source_suffix = '.rst' - -# The encoding of source files. -#source_encoding = 'utf-8-sig' - -# The master toctree document. -master_doc = 'index' - -# General information about the project. -project = u'open_eGo Data Processing' -copyright = u'2015-2017, open_eGo-Team' -author = u'open_eGo-Team' - - -# The version info for the project you're documenting, acts as replacement for -# |version| and |release|, also used in various other places throughout the -# built documents. -# -# The short X.Y version. -version = 'v0.3.0' -# The full version, including alpha/beta/rc tags. -release = 'V0.3.0dev' - - -# The language for content autogenerated by Sphinx. Refer to documentation -# for a list of supported languages. -# -# This is also used if you do content translation via gettext catalogs. -# Usually you set "language" from the command line for these cases. -language = None - -# There are two options for replacing |today|: either, you set today to some -# non-false value, then it is used: -#today = '' -# Else, today_fmt is used as the format for a strftime call. -#today_fmt = '%B %d, %Y' - -# List of patterns, relative to source directory, that match files and -# directories to ignore when looking for source files. -exclude_patterns = ['_build', 'whatsnew'] - -# The reST default role (used for this markup: `text`) to use for all -# documents. -#default_role = None - -# If true, '()' will be appended to :func: etc. cross-reference text. -#add_function_parentheses = True - -# If true, the current module name will be prepended to all description -# unit titles (such as .. function::). -#add_module_names = True - -# If true, sectionauthor and moduleauthor directives will be shown in the -# output. They are ignored by default. -#show_authors = False - -# The name of the Pygments (syntax highlighting) style to use. -pygments_style = 'sphinx' - -# A list of ignored prefixes for module index sorting. -#modindex_common_prefix = [] - -# If true, keep warnings as "system message" paragraphs in the built documents. -#keep_warnings = False - -# If true, `todo` and `todoList` produce output, else they produce nothing. -todo_include_todos = True - - -# Fix import error of modules which depend on C modules (mock out the imports for these modules) -# see http://read-the-docs.readthedocs.io/en/latest/faq.html#i-get-import-errors-on-libraries-that-depend-on-c-modules - - -if 'READTHEDOCS' in os.environ: - class Mock(MagicMock): - @classmethod - def __getattr__(cls, name): - return MagicMock() - - MOCK_MODULES = ['ding0', 'ding0.results', 'shapely'] - sys.modules.update((mod_name, Mock()) for mod_name in MOCK_MODULES) - - MOCK_MODULES = ['libgeos', 'geos', 'libgeos_c', 'geos_c','libgeos_c.so.1', - 'libgeos_c.so', 'shapely', 'geoalchemy2', 'geoalchemy2.shape '] - - - -# -- Options for HTML output ---------------------------------------------- - -# The theme to use for HTML and HTML Help pages. See the documentation for -# a list of builtin themes. -# html_theme = 'alabaster' - -import sphinx_rtd_theme -html_theme_path = [sphinx_rtd_theme.get_html_theme_path()] -html_theme = 'sphinx_rtd_theme' - -# Theme options are theme-specific and customize the look and feel of a theme -# further. For a list of options available for each theme, see the -# documentation. -#html_theme_options = {} - -# Add any paths that contain custom themes here, relative to this directory. -#html_theme_path = [] - -# The name for this set of Sphinx documents. If None, it defaults to -# " v documentation". -#html_title = None - -# A shorter title for the navigation bar. Default is the same as html_title. -#html_short_title = None - -# The name of an image file (relative to this directory) to place at the top -# of the sidebar. -#html_logo = None - -# The name of an image file (within the static path) to use as favicon of the -# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32 -# pixels large. -#html_favicon = None - -# Add any paths that contain custom static files (such as style sheets) here, -# relative to this directory. They are copied after the builtin static files, -# so a file named "default.css" will overwrite the builtin "default.css". -# html_static_path = ['_static'] - -# Add any extra paths that contain custom files (such as robots.txt or -# .htaccess) here, relative to this directory. These files are copied -# directly to the root of the documentation. -#html_extra_path = [] - -# If not '', a 'Last updated on:' timestamp is inserted at every page bottom, -# using the given strftime format. -#html_last_updated_fmt = '%b %d, %Y' - -# If true, SmartyPants will be used to convert quotes and dashes to -# typographically correct entities. -#html_use_smartypants = True - -# Custom sidebar templates, maps document names to template names. -#html_sidebars = {} - -# Additional templates that should be rendered to pages, maps page names to -# template names. -#html_additional_pages = {} - -# If false, no module index is generated. -#html_domain_indices = True - -# If false, no index is generated. -#html_use_index = True - -# If true, the index is split into individual pages for each letter. -#html_split_index = False - -# If true, links to the reST sources are added to the pages. -#html_show_sourcelink = True - -# If true, "Created using Sphinx" is shown in the HTML footer. Default is True. -#html_show_sphinx = True - -# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True. -#html_show_copyright = True - -# If true, an OpenSearch description file will be output, and all pages will -# contain a tag referring to it. The value of this option must be the -# base URL from which the finished HTML is served. -#html_use_opensearch = '' - -# This is the file name suffix for HTML files (e.g. ".xhtml"). -#html_file_suffix = None - -# Language to be used for generating the HTML full-text search index. -# Sphinx supports the following languages: -# 'da', 'de', 'en', 'es', 'fi', 'fr', 'hu', 'it', 'ja' -# 'nl', 'no', 'pt', 'ro', 'ru', 'sv', 'tr' -#html_search_language = 'en' - -# A dictionary with options for the search language support, empty by default. -# Now only 'ja' uses this config value -#html_search_options = {'type': 'default'} - -# The name of a javascript file (relative to the configuration directory) that -# implements a search results scorer. If empty, the default will be used. -#html_search_scorer = 'scorer.js' - -# Output file base name for HTML help builder. -htmlhelp_basename = 'eGodoc' - -# -- Options for LaTeX output --------------------------------------------- - -latex_elements = { -# The paper size ('letterpaper' or 'a4paper'). -#'papersize': 'letterpaper', - -# The font size ('10pt', '11pt' or '12pt'). -#'pointsize': '10pt', - -# Additional stuff for the LaTeX preamble. -#'preamble': '', - -# Latex figure (float) alignment -#'figure_align': 'htbp', -} - -# Grouping the document tree into LaTeX files. List of tuples -# (source start file, target name, title, -# author, documentclass [howto, manual, or own class]). -latex_documents = [ - (master_doc, 'open_eGo_Data_Processing.tex', u'open_eGo Documentation', - u'open_eGo-Team', 'manual'), -] - -# The name of an image file (relative to this directory) to place at the top of -# the title page. -#latex_logo = None - -# For "manual" documents, if this is true, then toplevel headings are parts, -# not chapters. -#latex_use_parts = False - -# If true, show page references after internal links. -#latex_show_pagerefs = False - -# If true, show URL addresses after external links. -#latex_show_urls = False - -# Documents to append as an appendix to all manuals. -#latex_appendices = [] - -# If false, no module index is generated. -#latex_domain_indices = True - - -# -- Options for manual page output --------------------------------------- - -# One entry per manual page. List of tuples -# (source start file, name, description, authors, manual section). -man_pages = [ - (master_doc, 'data_processing', u'eGo Documentation', - [author], 1) -] - -# If true, show URL addresses after external links. -#man_show_urls = False - - -# -- Options for Texinfo output ------------------------------------------- - -# Grouping the document tree into Texinfo files. List of tuples -# (source start file, target name, title, author, -# dir menu entry, description, category) -texinfo_documents = [ - (master_doc, 'data_processing', u'eGo Documentation', - author, 'data_processing', 'Titel', - 'Miscellaneous'), -] - -# Documents to append as an appendix to all manuals. -#texinfo_appendices = [] - -# If false, no module index is generated. -#texinfo_domain_indices = True - -# How to display URL addresses: 'footnote', 'no', or 'inline'. -#texinfo_show_urls = 'footnote' - -# If true, do not generate a @detailmenu in the "Top" node's menu. -#texinfo_no_detailmenu = False - - -# Example configuration for intersphinx: refer to the Python standard library. -intersphinx_mapping = {'python': ('https://docs.python.org/3', None)} - -# Numbered figures -numfig = True - -autodoc_member_order = 'bysource' diff --git a/requirements.txt/doc/index.rst b/requirements.txt/doc/index.rst deleted file mode 100644 index 3040564c..00000000 --- a/requirements.txt/doc/index.rst +++ /dev/null @@ -1,27 +0,0 @@ -Welcome to Data processing documentation of open_eGo -==================================================== - - - - - -.. image:: https://openegoproject.files.wordpress.com/2017/02/open_ego_logo_breit.png?w=400 - :align: right - :scale: 100% - - -.. toctree:: - :maxdepth: 7 - :titlesonly: - - scenario - - - - -Indices and tables -================== - -* :ref:`genindex` -* :ref:`modindex` -* :ref:`search` diff --git a/requirements.txt/doc/make.bat b/requirements.txt/doc/make.bat deleted file mode 100644 index ea3430fb..00000000 --- a/requirements.txt/doc/make.bat +++ /dev/null @@ -1,263 +0,0 @@ -@ECHO OFF - -REM Command file for Sphinx documentation - -if "%SPHINXBUILD%" == "" ( - set SPHINXBUILD=sphinx-build -) -set BUILDDIR=_build -set ALLSPHINXOPTS=-d %BUILDDIR%/doctrees %SPHINXOPTS% . -set I18NSPHINXOPTS=%SPHINXOPTS% . -if NOT "%PAPER%" == "" ( - set ALLSPHINXOPTS=-D latex_paper_size=%PAPER% %ALLSPHINXOPTS% - set I18NSPHINXOPTS=-D latex_paper_size=%PAPER% %I18NSPHINXOPTS% -) - -if "%1" == "" goto help - -if "%1" == "help" ( - :help - echo.Please use `make ^` where ^ is one of - echo. html to make standalone HTML files - echo. dirhtml to make HTML files named index.html in directories - echo. singlehtml to make a single large HTML file - echo. pickle to make pickle files - echo. json to make JSON files - echo. htmlhelp to make HTML files and a HTML help project - echo. qthelp to make HTML files and a qthelp project - echo. devhelp to make HTML files and a Devhelp project - echo. epub to make an epub - echo. latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter - echo. text to make text files - echo. man to make manual pages - echo. texinfo to make Texinfo files - echo. gettext to make PO message catalogs - echo. changes to make an overview over all changed/added/deprecated items - echo. xml to make Docutils-native XML files - echo. pseudoxml to make pseudoxml-XML files for display purposes - echo. linkcheck to check all external links for integrity - echo. doctest to run all doctests embedded in the documentation if enabled - echo. coverage to run coverage check of the documentation if enabled - goto end -) - -if "%1" == "clean" ( - for /d %%i in (%BUILDDIR%\*) do rmdir /q /s %%i - del /q /s %BUILDDIR%\* - goto end -) - - -REM Check if sphinx-build is available and fallback to Python version if any -%SPHINXBUILD% 2> nul -if errorlevel 9009 goto sphinx_python -goto sphinx_ok - -:sphinx_python - -set SPHINXBUILD=python -m sphinx.__init__ -%SPHINXBUILD% 2> nul -if errorlevel 9009 ( - echo. - echo.The 'sphinx-build' command was not found. Make sure you have Sphinx - echo.installed, then set the SPHINXBUILD environment variable to point - echo.to the full path of the 'sphinx-build' executable. Alternatively you - echo.may add the Sphinx directory to PATH. - echo. - echo.If you don't have Sphinx installed, grab it from - echo.http://sphinx-doc.org/ - exit /b 1 -) - -:sphinx_ok - - -if "%1" == "html" ( - %SPHINXBUILD% -b html %ALLSPHINXOPTS% %BUILDDIR%/html - if errorlevel 1 exit /b 1 - echo. - echo.Build finished. The HTML pages are in %BUILDDIR%/html. - goto end -) - -if "%1" == "dirhtml" ( - %SPHINXBUILD% -b dirhtml %ALLSPHINXOPTS% %BUILDDIR%/dirhtml - if errorlevel 1 exit /b 1 - echo. - echo.Build finished. The HTML pages are in %BUILDDIR%/dirhtml. - goto end -) - -if "%1" == "singlehtml" ( - %SPHINXBUILD% -b singlehtml %ALLSPHINXOPTS% %BUILDDIR%/singlehtml - if errorlevel 1 exit /b 1 - echo. - echo.Build finished. The HTML pages are in %BUILDDIR%/singlehtml. - goto end -) - -if "%1" == "pickle" ( - %SPHINXBUILD% -b pickle %ALLSPHINXOPTS% %BUILDDIR%/pickle - if errorlevel 1 exit /b 1 - echo. - echo.Build finished; now you can process the pickle files. - goto end -) - -if "%1" == "json" ( - %SPHINXBUILD% -b json %ALLSPHINXOPTS% %BUILDDIR%/json - if errorlevel 1 exit /b 1 - echo. - echo.Build finished; now you can process the JSON files. - goto end -) - -if "%1" == "htmlhelp" ( - %SPHINXBUILD% -b htmlhelp %ALLSPHINXOPTS% %BUILDDIR%/htmlhelp - if errorlevel 1 exit /b 1 - echo. - echo.Build finished; now you can run HTML Help Workshop with the ^ -.hhp project file in %BUILDDIR%/htmlhelp. - goto end -) - -if "%1" == "qthelp" ( - %SPHINXBUILD% -b qthelp %ALLSPHINXOPTS% %BUILDDIR%/qthelp - if errorlevel 1 exit /b 1 - echo. - echo.Build finished; now you can run "qcollectiongenerator" with the ^ -.qhcp project file in %BUILDDIR%/qthelp, like this: - echo.^> qcollectiongenerator %BUILDDIR%\qthelp\ding0.qhcp - echo.To view the help file: - echo.^> assistant -collectionFile %BUILDDIR%\qthelp\ding0.ghc - goto end -) - -if "%1" == "devhelp" ( - %SPHINXBUILD% -b devhelp %ALLSPHINXOPTS% %BUILDDIR%/devhelp - if errorlevel 1 exit /b 1 - echo. - echo.Build finished. - goto end -) - -if "%1" == "epub" ( - %SPHINXBUILD% -b epub %ALLSPHINXOPTS% %BUILDDIR%/epub - if errorlevel 1 exit /b 1 - echo. - echo.Build finished. The epub file is in %BUILDDIR%/epub. - goto end -) - -if "%1" == "latex" ( - %SPHINXBUILD% -b latex %ALLSPHINXOPTS% %BUILDDIR%/latex - if errorlevel 1 exit /b 1 - echo. - echo.Build finished; the LaTeX files are in %BUILDDIR%/latex. - goto end -) - -if "%1" == "latexpdf" ( - %SPHINXBUILD% -b latex %ALLSPHINXOPTS% %BUILDDIR%/latex - cd %BUILDDIR%/latex - make all-pdf - cd %~dp0 - echo. - echo.Build finished; the PDF files are in %BUILDDIR%/latex. - goto end -) - -if "%1" == "latexpdfja" ( - %SPHINXBUILD% -b latex %ALLSPHINXOPTS% %BUILDDIR%/latex - cd %BUILDDIR%/latex - make all-pdf-ja - cd %~dp0 - echo. - echo.Build finished; the PDF files are in %BUILDDIR%/latex. - goto end -) - -if "%1" == "text" ( - %SPHINXBUILD% -b text %ALLSPHINXOPTS% %BUILDDIR%/text - if errorlevel 1 exit /b 1 - echo. - echo.Build finished. The text files are in %BUILDDIR%/text. - goto end -) - -if "%1" == "man" ( - %SPHINXBUILD% -b man %ALLSPHINXOPTS% %BUILDDIR%/man - if errorlevel 1 exit /b 1 - echo. - echo.Build finished. The manual pages are in %BUILDDIR%/man. - goto end -) - -if "%1" == "texinfo" ( - %SPHINXBUILD% -b texinfo %ALLSPHINXOPTS% %BUILDDIR%/texinfo - if errorlevel 1 exit /b 1 - echo. - echo.Build finished. The Texinfo files are in %BUILDDIR%/texinfo. - goto end -) - -if "%1" == "gettext" ( - %SPHINXBUILD% -b gettext %I18NSPHINXOPTS% %BUILDDIR%/locale - if errorlevel 1 exit /b 1 - echo. - echo.Build finished. The message catalogs are in %BUILDDIR%/locale. - goto end -) - -if "%1" == "changes" ( - %SPHINXBUILD% -b changes %ALLSPHINXOPTS% %BUILDDIR%/changes - if errorlevel 1 exit /b 1 - echo. - echo.The overview file is in %BUILDDIR%/changes. - goto end -) - -if "%1" == "linkcheck" ( - %SPHINXBUILD% -b linkcheck %ALLSPHINXOPTS% %BUILDDIR%/linkcheck - if errorlevel 1 exit /b 1 - echo. - echo.Link check complete; look for any errors in the above output ^ -or in %BUILDDIR%/linkcheck/output.txt. - goto end -) - -if "%1" == "doctest" ( - %SPHINXBUILD% -b doctest %ALLSPHINXOPTS% %BUILDDIR%/doctest - if errorlevel 1 exit /b 1 - echo. - echo.Testing of doctests in the sources finished, look at the ^ -results in %BUILDDIR%/doctest/output.txt. - goto end -) - -if "%1" == "coverage" ( - %SPHINXBUILD% -b coverage %ALLSPHINXOPTS% %BUILDDIR%/coverage - if errorlevel 1 exit /b 1 - echo. - echo.Testing of coverage in the sources finished, look at the ^ -results in %BUILDDIR%/coverage/python.txt. - goto end -) - -if "%1" == "xml" ( - %SPHINXBUILD% -b xml %ALLSPHINXOPTS% %BUILDDIR%/xml - if errorlevel 1 exit /b 1 - echo. - echo.Build finished. The XML files are in %BUILDDIR%/xml. - goto end -) - -if "%1" == "pseudoxml" ( - %SPHINXBUILD% -b pseudoxml %ALLSPHINXOPTS% %BUILDDIR%/pseudoxml - if errorlevel 1 exit /b 1 - echo. - echo.Build finished. The pseudo-XML files are in %BUILDDIR%/pseudoxml. - goto end -) - -:end diff --git a/requirements.txt/doc/renewables.rst b/requirements.txt/doc/renewables.rst deleted file mode 100644 index 3f187530..00000000 --- a/requirements.txt/doc/renewables.rst +++ /dev/null @@ -1,50 +0,0 @@ -======================================== -Methodologies of Renewable Energy Plants -======================================== - -[Intro] - -******************** -Renewable allocation -******************** - -The Methodology of the expansion and allocation of renewable energy plants is -done in two parts. The first part is the developent and expansion of renewable -power palnts by a scenario input of installed capacities. The allocation based on -the spacial level of municipalities. The second part allocated the surplus of -power plants power plants on a high spacial resultion by white areas and other -Polygon objects (see XXX). - - - -Expansion of power plants by technology -======================================= - - -Wind onshore ------------- - Text - -Wind offshore -------------- - text - -Solar ------ - text - -Hydro Power ------------ - run of river and reservoir - - -Pumped Storage --------------- - -Biomass -------- - text - -geothermal ----------- - text diff --git a/requirements.txt/doc/scenario.rst b/requirements.txt/doc/scenario.rst deleted file mode 100644 index 7845df4a..00000000 --- a/requirements.txt/doc/scenario.rst +++ /dev/null @@ -1,80 +0,0 @@ -================== -Scenario framework -================== - - - - -.. csv-table:: Overview of eGo Scenarios - :file: https://raw.githubusercontent.com/openego/.... - :delim: ; - :header-rows: 1 - :widths: 5, 1, 1, 5 - :stub-columns: 0 - - - -***************** -Global assumption -***************** - -Weater year -=========== - All scenarios using the reanalysis weater data of coastDat-2 Hindcast data model - from the Helmholtz-Zentrum Geesthacht (HZG). - - - - - - - -********** -Status Quo -********** - - - - - -******** -NEP 2035 -******** - -[NEP2015] - - -Scenario definition of renpassG!S -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -.. include:: https://raw.githubusercontent.com/znes/FlEnS/master/open_eGo/NEP_2035/README.rst - - - - -******** -eGo 100 -******** - - - - - -*********** -Methodology -*********** - - - -********** -References -********** - -.. [NEP2015] Übertragungsnetzbetreiber Deutschland, Netzentwicklungsplan - Strom 2025, Version 2015, 1. Entwurf, 2015. https://www.netzentwicklungsplan.de/sites/default/files/paragraphs-files/NEP_2025_1_Entwurf_Teil1_0_0.pdf - -.. [coastdat-2] coastDat-2 Hindcast model http://www.coastdat.de/data/index.php.en - -.. [FlEnS] Wolf-Dieter Bunke Martin Söthe Marion Christ Cord Kaldemeyer - *(Fl)ensburg (En)ergy (S)cenarios - open_eGo Scenarios for 2014/2035/2050*. - https://osf.io/bpf36/ diff --git a/requirements.txt/ego_scenario_log_example.sql b/requirements.txt/ego_scenario_log_example.sql deleted file mode 100644 index bdf6ac99..00000000 --- a/requirements.txt/ego_scenario_log_example.sql +++ /dev/null @@ -1,12 +0,0 @@ -/* -Example of the use of the function ego_scenario_log -The function add an entry to the table model_draft.ego_scenario_log - -__copyright__ = "Copyright Reiner Lemoine Institut gGmbH" -__license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" -__url__ = "https://github.com/openego/data_processing/blob/master/LICENSE" -__author__ = "Ludee" -*/ - --- ego scenario log (version,io,schema_name,table_name,script_name,comment) -SELECT ego_scenario_log('v0.2.10','test','model_draft','test_table','ego_scenario_log_example.sql',''); diff --git a/requirements.txt/metadata_on_table_example.sql b/requirements.txt/metadata_on_table_example.sql deleted file mode 100644 index 520723ca..00000000 --- a/requirements.txt/metadata_on_table_example.sql +++ /dev/null @@ -1,118 +0,0 @@ -/* -This script provides an SQL example of the metadata documentation -A definition of metadata can be found in the openmod glossary http://wiki.openmod-initiative.org/wiki/Metadata -A further description can be found on http://wiki.openmod-initiative.org/wiki/DatabaseRules - -__copyright__ = "Reiner Lemoine Institut" -__license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" -__url__ = "https://github.com/openego/data_processing/blob/master/LICENSE" -__author__ = "Ludee" -__contains__ = "http://stackoverflow.com/questions/383692/what-is-json-and-why-would-i-use-it","https://specs.frictionlessdata.io/data-package/" - --- metadata description --- metadata template - -Additional information: -- Dates must follow the ISO8601 (JJJJ-MM-TT) -- Use a space between Numbers and units (100 m) -- If not applicable use "none" -*/ - --- test table -DROP TABLE IF EXISTS model_draft.test_table; -CREATE TABLE model_draft.test_table ( - id serial, - year integer, - value double precision, - geom geometry(Point, 4326), - CONSTRAINT table_pkey PRIMARY KEY (id) ); - - --- metadata description -COMMENT ON TABLE model_draft.test_table IS '{ - "title": "Good example title", - "description": "example metadata for example data", - "language": [ "eng", "ger", "fre" ], - "spatial": - {"location": "none", - "extent": "europe", - "resolution": "100 m"}, - "temporal": - {"reference_date": "2016-01-01", - "start": "2017-01-01", - "end": "2017-12-31", - "resolution": "hour"}, - "sources": [ - {"name": "eGo dataprocessing", "description": "", "url": "https://github.com/openego/data_processing", "license": "GNU Affero General Public License Version 3 (AGPL-3.0)", "copyright": "© Reiner Lemoine Institut"}, - {"name": "", "description": "", "url": "", "license": "", "copyright": ""} ], - "license": - {"id": "ODbL-1.0", - "name": "Open Data Commons Open Database License 1.0", - "version": "1.0", - "url": "https://opendatacommons.org/licenses/odbl/1.0/", - "instruction": "You are free: To Share, To Create, To Adapt; As long as you: Attribute, Share-Alike, Keep open!", - "copyright": "© Reiner Lemoine Institut"}, - "contributors": [ - {"name": "Ludee", "email": "", "date": "2016-06-16", "comment": "Create metadata"}, - {"name": "Ludee", "email": "", "date": "2016-11-22", "comment": "Update metadata"}, - {"name": "Ludee", "email": "", "date": "2016-11-22", "comment": "Update header and license"}, - {"name": "Ludee", "email": "", "date": "2017-03-16", "comment": "Add license to source"}, - {"name": "Ludee", "email": "", "date": "2017-03-28", "comment": "Add copyright to source and license"}, - {"name": "Ludee", "email": "", "date": "2017-05-30", "comment": "Update metadata to version 1.3"}, - {"name": "Ludee", "email": "", "date": "2017-06-26", "comment": "Update metadata version 1.3: move reference_date into temporal and remove some array"} ], - "resources": [ - {"name": "model_draft.test_table", - "format": "PostgreSQL", - "fields": [ - {"name": "id", "description": "Unique identifier", "unit": ""}, - {"name": "year", "description": "Reference year", "unit": ""}, - {"name": "value", "description": "Example value", "unit": "MW"}, - {"name": "geom", "description": "Geometry", "unit": ""} ] } ], - "metadata_version": "1.3"}'; - --- select description -SELECT obj_description('model_draft.test_table' ::regclass) ::json; - --- select description -SELECT obj_description('model_draft.test_table' ::regclass) ::json; - - --- metadata template -COMMENT ON TABLE model_draft.test_table IS '{ - "title": "", - "description": "", - "language": [ "eng", "ger" ], - "spatial": - {"location": "", - "extent": "", - "resolution": ""}, - "temporal": - {"reference_date": "", - "start": "", - "end": "", - "resolution": ""}, - "sources": [ - {"name": "", "description": "", "url": "", "license": "", "copyright": ""}, - {"name": "", "description": "", "url": "", "license": "", "copyright": ""} ], - "license": - {"id": "", - "name": "", - "version": "", - "url": "", - "instruction": "", - "copyright": ""}, - "contributors": [ - {"name": "", "email": "", "date": "", "comment": ""}, - {"name": "", "email": "", "date": "", "comment": ""} ], - "resources": [ - {"name": "", - "format": "PostgreSQL", - "fields": [ - {"name": "id", "description": "Unique identifier", "unit": ""}, - {"name": "year", "description": "Reference year", "unit": ""}, - {"name": "value", "description": "Example value", "unit": ""}, - {"name": "geom", "description": "Geometry", "unit": ""} ] } ], - "metadata_version": "1.3"}'; - --- select description -SELECT obj_description('model_draft.test_table' ::regclass) ::json; diff --git a/requirements.txt/requirements.txt b/requirements.txt/requirements.txt deleted file mode 100644 index 070cb9c5..00000000 --- a/requirements.txt/requirements.txt +++ /dev/null @@ -1,6 +0,0 @@ -# Packages for read the docs -# Using single requirments for docs, see: -# https://github.com/rtfd/readthedocs.org/issues/2070 -sphinx_rtd_theme -numpy == 1.12.1 -numpydoc == 0.7.0 diff --git a/requirements.txt/script_header_example.py b/requirements.txt/script_header_example.py deleted file mode 100644 index 701ac618..00000000 --- a/requirements.txt/script_header_example.py +++ /dev/null @@ -1,16 +0,0 @@ -#!/usr/bin/env python3 -"""This is the docstring for the example.py module. Modules names should -have short, all-lowercase names. The module name may have underscores if -this improves readability. -Every module should have a docstring at the very top of the file. The -module's docstring may extend over multiple lines. If your docstring does -extend over multiple lines, the closing three quotation marks must be on -a line by itself, preferably preceded by a blank line. -""" - -__copyright__ = "Copyright ego developer group" -__license__ = "GPLv3" - -import some_package - -my code.... diff --git a/requirements.txt/script_header_example.sql b/requirements.txt/script_header_example.sql deleted file mode 100644 index 1a2bbf04..00000000 --- a/requirements.txt/script_header_example.sql +++ /dev/null @@ -1,11 +0,0 @@ -/* -A description of the module (short but could be more than one line). -Modules names should have short, all-lowercase names. -The module name may have underscores if this improves readability. - -__copyright__ = "Copyright Reiner Lemoine Institut gGmbH" -__license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" -__url__ = "https://github.com/openego/data_processing/blob/master/LICENSE" -__author__ = "Ludee" -__contains__ = "url" -*/ \ No newline at end of file From 5cd29543fc2e63dfa617abd767187c69b06a5155 Mon Sep 17 00:00:00 2001 From: wolfbunke Date: Thu, 8 Feb 2018 09:12:22 +0100 Subject: [PATCH 019/104] add requirements for rtd --- documentation/requirements.txt | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 documentation/requirements.txt diff --git a/documentation/requirements.txt b/documentation/requirements.txt new file mode 100644 index 00000000..070cb9c5 --- /dev/null +++ b/documentation/requirements.txt @@ -0,0 +1,6 @@ +# Packages for read the docs +# Using single requirments for docs, see: +# https://github.com/rtfd/readthedocs.org/issues/2070 +sphinx_rtd_theme +numpy == 1.12.1 +numpydoc == 0.7.0 From 6699e41bde705b712e0fa9b124c5699811a449e0 Mon Sep 17 00:00:00 2001 From: wolfbunke Date: Thu, 8 Feb 2018 09:19:09 +0100 Subject: [PATCH 020/104] add RTD button --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 6313a73a..02771730 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,7 @@ +.. image:: https://readthedocs.org/projects/data-processing/badge/?version=latest + :target: http://data-processing.readthedocs.io/en/latest/?badge=latest + :alt: Documentation Status + # eGo dataprocessing (geo)data processing, database setup, data validation From 46bce178d2d7aa69b17a82e4746cee037e9cfb8f Mon Sep 17 00:00:00 2001 From: wolfbunke Date: Thu, 8 Feb 2018 09:26:48 +0100 Subject: [PATCH 021/104] add files for testing --- .../boundaries/ego_pp_gn250_metadata.rst | 19 ++++++++ .../boundaries/ego_pp_vg250_metadata.rst | 18 ++++++++ .../ego_dp_res_rea_by_scenario.rst | 46 +++++++++++++++++++ .../ego_dp_structure_boundaries_vg250.rst | 21 +++++++++ .../preprocessing/ego_dp_structure_census.rst | 20 ++++++++ .../ego_dp_structure_osm_landuse.rst | 18 ++++++++ .../ego_dp_structure_scenariolog.rst | 21 +++++++++ .../ego_dp_structure_versioning.rst | 20 ++++++++ .../ego_nep_2015_scenario_capacities.rst | 19 ++++++++ .../preprocessing/ego_pre_slp_parameters.rst | 20 ++++++++ .../preprocessing/ego_pre_voltage_level.rst | 18 ++++++++ .../oedb_setup_schema_structure.rst | 18 ++++++++ .../ego_pp_osm_line_street_mview.rst | 18 ++++++++ .../society/ego_pp_destatis_zensus_import.rst | 18 ++++++++ .../ego_pp_destatis_zensus_metadata.rst | 18 ++++++++ 15 files changed, 312 insertions(+) create mode 100644 documentation/doc/preprocessing/boundaries/ego_pp_gn250_metadata.rst create mode 100644 documentation/doc/preprocessing/boundaries/ego_pp_vg250_metadata.rst create mode 100644 documentation/doc/preprocessing/ego_dp_res_rea_by_scenario.rst create mode 100644 documentation/doc/preprocessing/ego_dp_structure_boundaries_vg250.rst create mode 100644 documentation/doc/preprocessing/ego_dp_structure_census.rst create mode 100644 documentation/doc/preprocessing/ego_dp_structure_osm_landuse.rst create mode 100644 documentation/doc/preprocessing/ego_dp_structure_scenariolog.rst create mode 100644 documentation/doc/preprocessing/ego_dp_structure_versioning.rst create mode 100644 documentation/doc/preprocessing/ego_nep_2015_scenario_capacities.rst create mode 100644 documentation/doc/preprocessing/ego_pre_slp_parameters.rst create mode 100644 documentation/doc/preprocessing/ego_pre_voltage_level.rst create mode 100644 documentation/doc/preprocessing/oedb_setup_schema_structure.rst create mode 100644 documentation/doc/preprocessing/openstreetmap/ego_pp_osm_line_street_mview.rst create mode 100644 documentation/doc/preprocessing/society/ego_pp_destatis_zensus_import.rst create mode 100644 documentation/doc/preprocessing/society/ego_pp_destatis_zensus_metadata.rst diff --git a/documentation/doc/preprocessing/boundaries/ego_pp_gn250_metadata.rst b/documentation/doc/preprocessing/boundaries/ego_pp_gn250_metadata.rst new file mode 100644 index 00000000..b8021fc7 --- /dev/null +++ b/documentation/doc/preprocessing/boundaries/ego_pp_gn250_metadata.rst @@ -0,0 +1,19 @@ +.. AUTOGENERATED - DO NOT TOUCH! + +description +Metadata for gn250 tables +Geographische Namen 1:250 000 - GN250 + + +copyright + Reiner Lemoine Institut + +license + GNU Affero General Public License Version 3 (AGPL-3.0) + +url + https://github.com/openego/data_processing/blob/master/LICENSE + +author + Ludee + diff --git a/documentation/doc/preprocessing/boundaries/ego_pp_vg250_metadata.rst b/documentation/doc/preprocessing/boundaries/ego_pp_vg250_metadata.rst new file mode 100644 index 00000000..4fd80932 --- /dev/null +++ b/documentation/doc/preprocessing/boundaries/ego_pp_vg250_metadata.rst @@ -0,0 +1,18 @@ +.. AUTOGENERATED - DO NOT TOUCH! + +description +Metadata for vg250 tables + + +copyright + Reiner Lemoine Institut + +license + GNU Affero General Public License Version 3 (AGPL-3.0) + +url + https://github.com/openego/data_processing/blob/master/LICENSE + +author + Ludee + diff --git a/documentation/doc/preprocessing/ego_dp_res_rea_by_scenario.rst b/documentation/doc/preprocessing/ego_dp_res_rea_by_scenario.rst new file mode 100644 index 00000000..1c836f36 --- /dev/null +++ b/documentation/doc/preprocessing/ego_dp_res_rea_by_scenario.rst @@ -0,0 +1,46 @@ +.. AUTOGENERATED - DO NOT TOUCH! + +description +SQL Script that prepare and insert single renewable power plant data by a given +scenario in order to create a high resulution allocation renewable energy expansion. + +For the project open_eGo and the tools eTraGo, eDisGo and eGo the scenarios are +named 'Status Quo' (2015), 'NEP 2035', 'eGo 100'. Learn more about the scenario here [link] + +This script is divided into two parts: + +Part I: + Development of new renewable power plants by NEP 2035 scenario data +Part II: + Development of new renewable power plants by ego 100% scenario data + +Methodology +----------- +Both parts of the script work more or less with the same Methodology of an expansion +and allocation of renewable energy plants. + +Renewable allocation +-------------------- + +Documentation +------------- +flags: +repowering : old unit get an update of this electrical_capacity (plus or minus) +commissioning: New unit by a scenario assumption +decommissioning: decommissioning of status quo units by a scenario assumption +constantly: existing plant of status quo or other scenarios + + + +copyright + Europa-Universität Flensburg, Centre for Sustainable Energy Systems + +license + GNU Affero General Public License Version 3 (AGPL-3.0) + +url + https://github.com/openego/data_processing/blob/master/LICENSE + +author + wolfbunke + diff --git a/documentation/doc/preprocessing/ego_dp_structure_boundaries_vg250.rst b/documentation/doc/preprocessing/ego_dp_structure_boundaries_vg250.rst new file mode 100644 index 00000000..26a1e07b --- /dev/null +++ b/documentation/doc/preprocessing/ego_dp_structure_boundaries_vg250.rst @@ -0,0 +1,21 @@ +.. AUTOGENERATED - DO NOT TOUCH! + +description +Setup borders +Inputs are german administrative borders (boundaries.bkg_vg250) +Create mviews with transformed CRS (EPSG:3035) and corrected geometries +Municipalities / Gemeinden are fragmented and cleaned from ringholes (bkg_vg250_6_gem_clean) + + +copyright + Reiner Lemoine Institut + +license + GNU Affero General Public License Version 3 (AGPL-3.0) + +url + https://github.com/openego/data_processing/blob/master/LICENSE + +author + Ludee + diff --git a/documentation/doc/preprocessing/ego_dp_structure_census.rst b/documentation/doc/preprocessing/ego_dp_structure_census.rst new file mode 100644 index 00000000..bfa3d72c --- /dev/null +++ b/documentation/doc/preprocessing/ego_dp_structure_census.rst @@ -0,0 +1,20 @@ +.. AUTOGENERATED - DO NOT TOUCH! + +description +Result tables for eGoDP + +WARNING: It drops the table and deletes old entries when executed! + + +copyright + Reiner Lemoine Institut + +license + GNU Affero General Public License Version 3 (AGPL-3.0) + +url + https://github.com/openego/data_processing/blob/master/LICENSE + +author + Ludee, IlkaCu + diff --git a/documentation/doc/preprocessing/ego_dp_structure_osm_landuse.rst b/documentation/doc/preprocessing/ego_dp_structure_osm_landuse.rst new file mode 100644 index 00000000..9501b7b2 --- /dev/null +++ b/documentation/doc/preprocessing/ego_dp_structure_osm_landuse.rst @@ -0,0 +1,18 @@ +.. AUTOGENERATED - DO NOT TOUCH! + +description +analyse OSM landuse data + + +copyright + Reiner Lemoine Institut + +license + GNU Affero General Public License Version 3 (AGPL-3.0) + +url + https://github.com/openego/data_processing/blob/master/LICENSE + +author + Ludee + diff --git a/documentation/doc/preprocessing/ego_dp_structure_scenariolog.rst b/documentation/doc/preprocessing/ego_dp_structure_scenariolog.rst new file mode 100644 index 00000000..1032bb76 --- /dev/null +++ b/documentation/doc/preprocessing/ego_dp_structure_scenariolog.rst @@ -0,0 +1,21 @@ +.. AUTOGENERATED - DO NOT TOUCH! + +description +Setup scenario log table +Creates a table to get inserts from other processed tables + +WARNING: It drops the table and deletes old entries when executed! + + +copyright + Reiner Lemoine Institut + +license + GNU Affero General Public License Version 3 (AGPL-3.0) + +url + https://github.com/openego/data_processing/blob/master/LICENSE + +author + Ludee + diff --git a/documentation/doc/preprocessing/ego_dp_structure_versioning.rst b/documentation/doc/preprocessing/ego_dp_structure_versioning.rst new file mode 100644 index 00000000..bfa3d72c --- /dev/null +++ b/documentation/doc/preprocessing/ego_dp_structure_versioning.rst @@ -0,0 +1,20 @@ +.. AUTOGENERATED - DO NOT TOUCH! + +description +Result tables for eGoDP + +WARNING: It drops the table and deletes old entries when executed! + + +copyright + Reiner Lemoine Institut + +license + GNU Affero General Public License Version 3 (AGPL-3.0) + +url + https://github.com/openego/data_processing/blob/master/LICENSE + +author + Ludee, IlkaCu + diff --git a/documentation/doc/preprocessing/ego_nep_2015_scenario_capacities.rst b/documentation/doc/preprocessing/ego_nep_2015_scenario_capacities.rst new file mode 100644 index 00000000..0f382526 --- /dev/null +++ b/documentation/doc/preprocessing/ego_nep_2015_scenario_capacities.rst @@ -0,0 +1,19 @@ +.. AUTOGENERATED - DO NOT TOUCH! + +description +Setup for scenario capacities NEP 2015 + + + +copyright + Europa-Universität Flensburg, Centre for Sustainable Energy Systems + +license + GNU Affero General Public License Version 3 (AGPL-3.0) + +url + https://github.com/openego/data_processing/blob/master/LICENSE + +author + wolfbunke + diff --git a/documentation/doc/preprocessing/ego_pre_slp_parameters.rst b/documentation/doc/preprocessing/ego_pre_slp_parameters.rst new file mode 100644 index 00000000..c1c085c7 --- /dev/null +++ b/documentation/doc/preprocessing/ego_pre_slp_parameters.rst @@ -0,0 +1,20 @@ +.. AUTOGENERATED - DO NOT TOUCH! + +description +Create table with assumptions and parameters on standard load profiles (SLP) + +WARNING: It drops the table and deletes old entries when executed! + + +copyright + Reiner Lemoine Institut + +license + GNU Affero General Public License Version 3 (AGPL-3.0) + +url + https://github.com/openego/data_processing/blob/master/LICENSE + +author + gplssm + diff --git a/documentation/doc/preprocessing/ego_pre_voltage_level.rst b/documentation/doc/preprocessing/ego_pre_voltage_level.rst new file mode 100644 index 00000000..5e939b3c --- /dev/null +++ b/documentation/doc/preprocessing/ego_pre_voltage_level.rst @@ -0,0 +1,18 @@ +.. AUTOGENERATED - DO NOT TOUCH! + +description +Set or adjust voltage_level according to installed capacity and technology of power plants. + + +copyright + Flensburg University of Applied Sciences, Centre for Sustainable Energy Systems + +license + GNU Affero General Public License Version 3 (AGPL-3.0) + +url + https://github.com/openego/data_processing/blob/master/LICENSE + +author + IlkaCu + diff --git a/documentation/doc/preprocessing/oedb_setup_schema_structure.rst b/documentation/doc/preprocessing/oedb_setup_schema_structure.rst new file mode 100644 index 00000000..a286046c --- /dev/null +++ b/documentation/doc/preprocessing/oedb_setup_schema_structure.rst @@ -0,0 +1,18 @@ +.. AUTOGENERATED - DO NOT TOUCH! + +description +Setup the OpenEnergy Database (oedb) schema structure + + +copyright + Reiner Lemoine Institut + +license + GNU Affero General Public License Version 3 (AGPL-3.0) + +url + https://github.com/openego/data_processing/blob/master/LICENSE + +author + Ludee + diff --git a/documentation/doc/preprocessing/openstreetmap/ego_pp_osm_line_street_mview.rst b/documentation/doc/preprocessing/openstreetmap/ego_pp_osm_line_street_mview.rst new file mode 100644 index 00000000..152c8d2f --- /dev/null +++ b/documentation/doc/preprocessing/openstreetmap/ego_pp_osm_line_street_mview.rst @@ -0,0 +1,18 @@ +.. AUTOGENERATED - DO NOT TOUCH! + +description +Extracted OSM streets from line + + +copyright + Reiner Lemoine Institut + +license + GNU Affero General Public License Version 3 (AGPL-3.0) + +url + https://github.com/openego/data_processing/blob/master/LICENSE + +author + jong42, Ludee + diff --git a/documentation/doc/preprocessing/society/ego_pp_destatis_zensus_import.rst b/documentation/doc/preprocessing/society/ego_pp_destatis_zensus_import.rst new file mode 100644 index 00000000..512f9b80 --- /dev/null +++ b/documentation/doc/preprocessing/society/ego_pp_destatis_zensus_import.rst @@ -0,0 +1,18 @@ +.. AUTOGENERATED - DO NOT TOUCH! + +description +Import DESTATIS zensus 2011 table + + +copyright + Reiner Lemoine Institut + +license + GNU Affero General Public License Version 3 (AGPL-3.0) + +url + https://github.com/openego/data_processing/blob/master/LICENSE + +author + Ludee + diff --git a/documentation/doc/preprocessing/society/ego_pp_destatis_zensus_metadata.rst b/documentation/doc/preprocessing/society/ego_pp_destatis_zensus_metadata.rst new file mode 100644 index 00000000..512f9b80 --- /dev/null +++ b/documentation/doc/preprocessing/society/ego_pp_destatis_zensus_metadata.rst @@ -0,0 +1,18 @@ +.. AUTOGENERATED - DO NOT TOUCH! + +description +Import DESTATIS zensus 2011 table + + +copyright + Reiner Lemoine Institut + +license + GNU Affero General Public License Version 3 (AGPL-3.0) + +url + https://github.com/openego/data_processing/blob/master/LICENSE + +author + Ludee + From d6432a83e328cd85f4d3b3b18f54500e30356503 Mon Sep 17 00:00:00 2001 From: wolfbunke Date: Thu, 8 Feb 2018 09:41:32 +0100 Subject: [PATCH 022/104] add test files --- documentation/doc/dataprocessing.rst | 5 +++++ documentation/doc/dataprocessing/modules.rst | 6 ++++++ documentation/doc/preprocessing.rst | 5 +++++ documentation/doc/preprocessing/modules.rst | 9 +++++++++ 4 files changed, 25 insertions(+) create mode 100644 documentation/doc/dataprocessing.rst create mode 100644 documentation/doc/dataprocessing/modules.rst create mode 100644 documentation/doc/preprocessing.rst create mode 100644 documentation/doc/preprocessing/modules.rst diff --git a/documentation/doc/dataprocessing.rst b/documentation/doc/dataprocessing.rst new file mode 100644 index 00000000..b76f493e --- /dev/null +++ b/documentation/doc/dataprocessing.rst @@ -0,0 +1,5 @@ +.. toctree:: + :maxdepth: 7 + :titlesonly: + + Dataprocessing diff --git a/documentation/doc/dataprocessing/modules.rst b/documentation/doc/dataprocessing/modules.rst new file mode 100644 index 00000000..42ed7a9d --- /dev/null +++ b/documentation/doc/dataprocessing/modules.rst @@ -0,0 +1,6 @@ +=============== +Data Processing +=============== + + +.. include:: diff --git a/documentation/doc/preprocessing.rst b/documentation/doc/preprocessing.rst new file mode 100644 index 00000000..76a08261 --- /dev/null +++ b/documentation/doc/preprocessing.rst @@ -0,0 +1,5 @@ +.. toctree:: + :maxdepth: 7 + :titlesonly: + + Preprocessing diff --git a/documentation/doc/preprocessing/modules.rst b/documentation/doc/preprocessing/modules.rst new file mode 100644 index 00000000..54a894bf --- /dev/null +++ b/documentation/doc/preprocessing/modules.rst @@ -0,0 +1,9 @@ +============= +Preprocessing +============= + + +.. include:: ego_dp_res_rea_by_scenario.rst + + +.. include:: ego_dp_structure_boundaries_vg250.rst From 268c73652d138cb2792c1a9c4302dd2a45c5fd54 Mon Sep 17 00:00:00 2001 From: wolfbunke Date: Thu, 8 Feb 2018 09:43:14 +0100 Subject: [PATCH 023/104] add pre and dataprocessing link --- documentation/doc/index.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/documentation/doc/index.rst b/documentation/doc/index.rst index 3040564c..855324b2 100644 --- a/documentation/doc/index.rst +++ b/documentation/doc/index.rst @@ -14,11 +14,14 @@ Welcome to Data processing documentation of open_eGo :maxdepth: 7 :titlesonly: + dataprocessing + preprocessing scenario + Indices and tables ================== From 270f6c641646f2e3bbe3fa404a770a284b643c9c Mon Sep 17 00:00:00 2001 From: wolfbunke Date: Thu, 8 Feb 2018 09:48:21 +0100 Subject: [PATCH 024/104] add rtd button for branch --- README.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 02771730..508fe870 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,12 @@ -.. image:: https://readthedocs.org/projects/data-processing/badge/?version=latest - :target: http://data-processing.readthedocs.io/en/latest/?badge=latest +.. image:: https://readthedocs.org/projects/data-processing/badge/?version=feature-docu-wolf + :target: http://data-processing.readthedocs.io/en/latest/?badge=feature-docu-wolf :alt: Documentation Status + +.. image:: https://openegoproject.files.wordpress.com/2017/02/open_ego_logo_breit.png?w=400 + + + # eGo dataprocessing (geo)data processing, database setup, data validation From de926cfb1689d3f0ce2737984f128e796973d4db Mon Sep 17 00:00:00 2001 From: Ludee Date: Thu, 8 Feb 2018 10:23:22 +0100 Subject: [PATCH 025/104] add bpmn section gd --- dataprocessing/eGo_data_processing.py | 2 +- .../ego_dp_bpmn_section_griddistrict.graphml | 550 ++++++++++++++++++ .../ego_dp_bpmn_section_substation.graphml | 100 ++-- 3 files changed, 601 insertions(+), 51 deletions(-) create mode 100644 documentation/bpmn/ego_dp_bpmn_section_griddistrict.graphml diff --git a/dataprocessing/eGo_data_processing.py b/dataprocessing/eGo_data_processing.py index a022a344..92f57a92 100644 --- a/dataprocessing/eGo_data_processing.py +++ b/dataprocessing/eGo_data_processing.py @@ -4,7 +4,7 @@ Also see corresponding BPML diagram. """ -__copyright__ = "Reiner Lemoine Institut gGmbH" +__copyright__ = "Reiner Lemoine Institut" __license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" __url__ = "https://github.com/openego/data_processing/blob/master/LICENSE" __author__ = "gplssm, Ludee" diff --git a/documentation/bpmn/ego_dp_bpmn_section_griddistrict.graphml b/documentation/bpmn/ego_dp_bpmn_section_griddistrict.graphml new file mode 100644 index 00000000..265b4aab --- /dev/null +++ b/documentation/bpmn/ego_dp_bpmn_section_griddistrict.graphml @@ -0,0 +1,550 @@ + + + + + + + + + + + + + + + + + + + + + + + eGo DataProcessing - griddistrict + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ego_dp_mv_griddistrict.sql + + + + + + + + + + + + + + + + + + ego_political_boundary_hvmv_subst_per_gem_1_mview +ego_political_boundary_hvmv_subst_per_gem_2_mview +ego_political_boundary_hvmv_subst_per_gem_3_mview +ego_grid_hvmv_substation_voronoi_mview +ego_grid_mv_griddistrict +ego_grid_mv_griddistrict_dump + + + + + + + + + + + + + + + + + + + + + + + 2 min + + + + + + + + + + + + + + + + + + + + + + model_draft.vg250_6_gem_clean_mview +model_draft.ego_grid_hvmv_substation +model_draft.ego_grid_hvmv_substation_voronoi + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Geodatenzugangsgesetz (GeoZG) +© GeoBasis-DE / BKG 2016 (Daten verändert) + + + + + + + + + + + + + + + + + + + + + + political_boundary.bkg_vg250 + + + + + + + + + + + + + + + + + + + + + + + Geodatenzugangsgesetz (GeoZG) +© GeoBasis-DE / BKG 2016 (Daten verändert) + + + + + + + + + + + + + + + + + + + + + + Open Database License (ODbL) v1.0 +© OpenStreetMap contributors + + + + + + + + + + + + + + + + + + + + + + model_draft.ego_grid_mv_griddistrict +grid.ego_mv_griddistrict + + + + + + + + + + + + + + + + + + + + + + + Open Database License (ODbL) v1.0 +© OpenStreetMap contributors + + + + + + + + + + + + + + + + + + + + + + Geodatenzugangsgesetz (GeoZG) +© GeoBasis-DE / BKG 2016 (Daten verändert) + + + + + + + + + + + + + + + + + + + + + + model_draft.ego_grid_hvmv_substation +grid.ego_hvmv_substation + + + + + + + + + + + + + + + + + + + + + + + Open Database License (ODbL) v1.0 +© OpenStreetMap contributors + + + + + + + + + + + + + + + + + + + + + + Geodatenzugangsgesetz (GeoZG) +© GeoBasis-DE / BKG 2016 (Daten verändert) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/documentation/bpmn/ego_dp_bpmn_section_substation.graphml b/documentation/bpmn/ego_dp_bpmn_section_substation.graphml index 6363f55a..3888de0e 100644 --- a/documentation/bpmn/ego_dp_bpmn_section_substation.graphml +++ b/documentation/bpmn/ego_dp_bpmn_section_substation.graphml @@ -17,11 +17,11 @@ - + - eGo DataProcessing - + eGo DataProcessing - substation + @@ -53,18 +53,18 @@ - + - + - + @@ -75,7 +75,7 @@ - + ego_dp_substation_hvmv_voronoi.sql @@ -93,7 +93,7 @@ - + model_draft.ego_grid_hvmv_substation_dummy @@ -117,7 +117,7 @@ model_draft.ego_grid_hvmv_substation_voronoi - + 6 min @@ -139,7 +139,7 @@ model_draft.ego_grid_hvmv_substation_voronoi - + model_draft.ego_grid_hvmv_substation @@ -162,7 +162,7 @@ model_draft.ego_grid_hvmv_substation_voronoi - + model_draft.ego_grid_hvmv_substation @@ -185,7 +185,7 @@ model_draft.ego_grid_hvmv_substation_voronoi - + @@ -205,7 +205,7 @@ ego_dp_substation_hvmv.sql - + @@ -225,7 +225,7 @@ ego_dp_substation_ehv.sql - + 32 min @@ -247,7 +247,7 @@ ego_dp_substation_ehv.sql - + 3 min @@ -269,7 +269,7 @@ ego_dp_substation_ehv.sql - + openstreetmap.osm_deu_ways @@ -296,7 +296,7 @@ political_boundary.bkg_vg250_1_sta_union_mview - + openstreetmap.osm_deu_ways @@ -323,7 +323,7 @@ political_bkg_vg250_1_sta_union_mview - + model_draft.ego_grid_ehv_substation @@ -346,7 +346,7 @@ political_bkg_vg250_1_sta_union_mview - + @@ -370,7 +370,7 @@ political_bkg_vg250_1_sta_union_mview - + @@ -390,7 +390,7 @@ ego_dp_substation_otg.sql - + 1 sec @@ -412,7 +412,7 @@ ego_dp_substation_otg.sql - + grid.otg_ehvhv_bus_data @@ -437,7 +437,7 @@ model_draft.ego_grid_hvmv_substation - + model_draft.ego_grid_ehv_substation @@ -461,7 +461,7 @@ model_draft.ego_grid_hvmv_substation - + Open Database License (ODbL) v1.0 @@ -484,7 +484,7 @@ model_draft.ego_grid_hvmv_substation - + @@ -508,7 +508,7 @@ model_draft.ego_grid_hvmv_substation - + openstreetmap.osm_deu @@ -531,7 +531,7 @@ model_draft.ego_grid_hvmv_substation - + Geodatenzugangsgesetz (GeoZG) @@ -554,7 +554,7 @@ model_draft.ego_grid_hvmv_substation - + political_boundary.bkg_vg250 @@ -577,7 +577,7 @@ model_draft.ego_grid_hvmv_substation - + Open Database License (ODbL) v1.0 @@ -600,7 +600,7 @@ model_draft.ego_grid_hvmv_substation - + Open Database License (ODbL) v1.0 @@ -623,7 +623,7 @@ model_draft.ego_grid_hvmv_substation - + Open Database License (ODbL) v1.0 @@ -646,7 +646,7 @@ model_draft.ego_grid_hvmv_substation - + Open Database License (ODbL) v1.0 @@ -669,7 +669,7 @@ model_draft.ego_grid_hvmv_substation - + Open Database License (ODbL) v1.0 @@ -692,7 +692,7 @@ model_draft.ego_grid_hvmv_substation - + Geodatenzugangsgesetz (GeoZG) @@ -715,7 +715,7 @@ model_draft.ego_grid_hvmv_substation - + Geodatenzugangsgesetz (GeoZG) @@ -738,7 +738,7 @@ model_draft.ego_grid_hvmv_substation - + Geodatenzugangsgesetz (GeoZG) @@ -761,7 +761,7 @@ model_draft.ego_grid_hvmv_substation - + Geodatenzugangsgesetz (GeoZG) @@ -784,7 +784,7 @@ model_draft.ego_grid_hvmv_substation - + model_draft.ego_grid_hvmv_substation @@ -808,7 +808,7 @@ grid.ego_hvmv_substation - + Open Database License (ODbL) v1.0 @@ -831,7 +831,7 @@ grid.ego_hvmv_substation - + Geodatenzugangsgesetz (GeoZG) @@ -854,7 +854,7 @@ grid.ego_hvmv_substation - + ego_dp_substation_ehv_voronoi.sql @@ -873,7 +873,7 @@ grid.ego_hvmv_substation - + model_draft.ego_grid_ehv_substation_voronoi @@ -896,7 +896,7 @@ grid.ego_hvmv_substation - + ? @@ -918,7 +918,7 @@ grid.ego_hvmv_substation - + model_draft.ego_grid_ehv_substation @@ -941,7 +941,7 @@ grid.ego_hvmv_substation - + model_draft.ego_grid_ehv_substation @@ -965,7 +965,7 @@ grid.ego_ehv_substation - + Open Database License (ODbL) v1.0 @@ -988,7 +988,7 @@ grid.ego_ehv_substation - + Geodatenzugangsgesetz (GeoZG) @@ -1011,7 +1011,7 @@ grid.ego_ehv_substation - + Open Database License (ODbL) v1.0 @@ -1034,7 +1034,7 @@ grid.ego_ehv_substation - + Geodatenzugangsgesetz (GeoZG) @@ -1057,7 +1057,7 @@ grid.ego_ehv_substation - + grid.otg_ehvhv_bus_data From be1a83687c53c2e0f13e9125f970016d76f03960 Mon Sep 17 00:00:00 2001 From: Ludee Date: Thu, 8 Feb 2018 10:40:24 +0100 Subject: [PATCH 026/104] update documentation --- dataprocessing/eGo_data_processing.py | 6 +- .../sql_snippets/ego_dp_mv_griddistrict.sql | 15 ++-- .../ego_dp_substation_id_to_generator.sql | 83 +++++++++++-------- 3 files changed, 59 insertions(+), 45 deletions(-) diff --git a/dataprocessing/eGo_data_processing.py b/dataprocessing/eGo_data_processing.py index 92f57a92..f5fe5ad1 100644 --- a/dataprocessing/eGo_data_processing.py +++ b/dataprocessing/eGo_data_processing.py @@ -50,9 +50,9 @@ def data_processing(): 'ego_dp_substation_hvmv_voronoi.sql', # HVMV Voronoi cells based on HVMV substations 'ego_dp_substation_ehv_voronoi.sql', # EHV Voronoi cells based on EHV substations - ## GRIDDISTRICT - 'ego_dp_mv_griddistrict.sql', # MV Griddistricts from municipalities and Voronoi cells - 'ego_dp_substation_id_to_generator.sql', # Assign subst_id to pp lists + ## GRIDDISTRICT + 'ego_dp_mv_griddistrict.sql', # MV GridDistricts from municipalities and Voronoi cells + 'ego_dp_substation_id_to_generator.sql', # Assign Substation ID (subst_id) to Generator (Conventional and Renewable) ## LOADAREA 'ego_dp_loadarea_landuse.sql', # OSM landuse sector diff --git a/dataprocessing/sql_snippets/ego_dp_mv_griddistrict.sql b/dataprocessing/sql_snippets/ego_dp_mv_griddistrict.sql index fc734f76..8b9c91cb 100644 --- a/dataprocessing/sql_snippets/ego_dp_mv_griddistrict.sql +++ b/dataprocessing/sql_snippets/ego_dp_mv_griddistrict.sql @@ -1,10 +1,13 @@ /* -mv griddistrict - -__copyright__ = "Reiner Lemoine Institut" -__license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" -__url__ = "https://github.com/openego/data_processing/blob/master/LICENSE" -__author__ = "Ludee" +MV GridDistricts +Generate MV GridDistricts from municipalities and Voronoi cells. +Each HVMV Substation receives one catchment area. +Detailed description can be found in Hülk et. al. 2017. + +__copyright__ = "Reiner Lemoine Institut" +__license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" +__url__ = "https://github.com/openego/data_processing/blob/master/LICENSE" +__author__ = "Ludee" */ ---------- ---------- ---------- diff --git a/dataprocessing/sql_snippets/ego_dp_substation_id_to_generator.sql b/dataprocessing/sql_snippets/ego_dp_substation_id_to_generator.sql index 79c013c2..25623aa1 100644 --- a/dataprocessing/sql_snippets/ego_dp_substation_id_to_generator.sql +++ b/dataprocessing/sql_snippets/ego_dp_substation_id_to_generator.sql @@ -1,74 +1,85 @@ - /* +Substation ID to Generator +All powerplants (Conventional and Renewable) receive the corresponding Substation ID. +Either the HVMV Substation ID (= MV Griddistrict ID) or the EHV Substaion ID. Identify corresponding subst_id for all power plants according to their voltage_level and geometry. -__copyright__ = "Flensburg University of Applied Sciences, Centre for Sustainable Energy Systems" -__license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" -__url__ = "https://github.com/openego/data_processing/blob/master/LICENSE" -__author__ = "IlkaCu" + +__copyright__ = "Flensburg University of Applied Sciences, Centre for Sustainable Energy Systems" +__license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" +__url__ = "https://github.com/openego/data_processing/blob/master/LICENSE" +__author__ = "IlkaCu" */ + ------------------ -- Conventional power plants ------------------ - -- Identify corresponding bus with the help of grid districts UPDATE model_draft.ego_dp_supply_conv_powerplant a - SET subst_id = b.subst_id - FROM model_draft.ego_grid_mv_griddistrict b - WHERE a.geom && ST_TRANSFORM(b.geom,4326) - AND ST_Intersects(a.geom, ST_TRANSFORM(b.geom,4326)) - AND voltage_level >= 3; + SET subst_id = b.subst_id + FROM model_draft.ego_grid_mv_griddistrict b + WHERE a.geom && ST_TRANSFORM(b.geom,4326) + AND ST_Intersects(a.geom, ST_TRANSFORM(b.geom,4326)) + AND voltage_level >= 3; -- Identify corresponding bus with the help of ehv-Voronoi UPDATE model_draft.ego_dp_supply_conv_powerplant a - SET subst_id = b.subst_id - FROM model_draft.ego_grid_ehv_substation_voronoi b - WHERE a.geom && b.geom - AND ST_Intersects(a.geom, b.geom) - AND voltage_level <= 2; + SET subst_id = b.subst_id + FROM model_draft.ego_grid_ehv_substation_voronoi b + WHERE a.geom && b.geom + AND ST_Intersects(a.geom, b.geom) + AND voltage_level <= 2; --- Assign conventional pp with voltage_level >2 located outside of Germany to their closest 110 kV substation +-- Assign conventional pp with voltage_level >=2 located outside of Germany to their closest 110 kV substation ALTER TABLE model_draft.ego_dp_supply_conv_powerplant - ADD COLUMN subst_id_NN int; + ADD COLUMN subst_id_NN int; UPDATE model_draft.ego_dp_supply_conv_powerplant a - SET subst_id_NN = result.subst_id - FROM - (SELECT DISTINCT ON (pp.id) pp.id, subst.subst_id, ST_Distance(ST_Transform(subst.geom, 4326), pp.geom) as dist - FROM model_draft.ego_dp_supply_conv_powerplant As pp, model_draft.ego_grid_hvmv_substation As subst - ORDER BY pp.id, ST_Distance(ST_Transform(subst.geom, 4326), pp.geom), subst.subst_id) as result - WHERE a.id=result.id; + SET subst_id_NN = result.subst_id + FROM + (SELECT DISTINCT ON (pp.id) + pp.id, + subst.subst_id, + ST_Distance(ST_Transform(subst.geom, 4326), pp.geom) as dist + FROM model_draft.ego_dp_supply_conv_powerplant As pp, + model_draft.ego_grid_hvmv_substation As subst + ORDER BY pp.id, + ST_Distance(ST_Transform(subst.geom, 4326), pp.geom), + subst.subst_id + ) as result + WHERE a.id=result.id; UPDATE model_draft.ego_dp_supply_conv_powerplant a - SET subst_id=subst_id_NN - WHERE subst_id IS NULL and voltage_level > 2; + SET subst_id=subst_id_NN + WHERE subst_id IS NULL and voltage_level > 2; ALTER TABLE model_draft.ego_dp_supply_conv_powerplant - DROP COLUMN subst_id_NN; + DROP COLUMN subst_id_NN; -- ego scenario log (version,io,schema_name,table_name,script_name,comment) SELECT ego_scenario_log('v0.3.0','input','model_draft','ego_dp_supply_conv_powerplant','ego_dp_substation_id_to_generator.sql',' '); + ------------------ -- Renewable power plants ------------------ -- Identify corresponding bus with the help of grid districts UPDATE model_draft.ego_dp_supply_res_powerplant a - SET subst_id = b.subst_id - FROM model_draft.ego_grid_mv_griddistrict b - WHERE a.geom && ST_TRANSFORM(b.geom,4326) - AND ST_Intersects(a.geom, ST_TRANSFORM(b.geom,4326)) - AND voltage_level >= 3; + SET subst_id = b.subst_id + FROM model_draft.ego_grid_mv_griddistrict b + WHERE a.geom && ST_TRANSFORM(b.geom,4326) + AND ST_Intersects(a.geom, ST_TRANSFORM(b.geom,4326)) + AND voltage_level >= 3; -- Identify corresponding bus with the help of ehv-Voronoi UPDATE model_draft.ego_dp_supply_res_powerplant a - SET subst_id = b.subst_id - FROM model_draft.ego_grid_ehv_substation_voronoi b - WHERE a.geom && b.geom - AND ST_Intersects(a.geom, b.geom) + SET subst_id = b.subst_id + FROM model_draft.ego_grid_ehv_substation_voronoi b + WHERE a.geom && b.geom + AND ST_Intersects(a.geom, b.geom) AND voltage_level <= 2; -- ego scenario log (version,io,schema_name,table_name,script_name,comment) From fb03fd38c0d40fbcf2bc223599b6b52df16b89f8 Mon Sep 17 00:00:00 2001 From: IlkaCu Date: Thu, 8 Feb 2018 10:47:56 +0100 Subject: [PATCH 027/104] Update docu hv_setup #92 --- .../ego_dp_powerflow_hv_setup.sql | 34 ++++++++++--------- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/dataprocessing/sql_snippets/ego_dp_powerflow_hv_setup.sql b/dataprocessing/sql_snippets/ego_dp_powerflow_hv_setup.sql index 5b289035..5b772ec8 100644 --- a/dataprocessing/sql_snippets/ego_dp_powerflow_hv_setup.sql +++ b/dataprocessing/sql_snippets/ego_dp_powerflow_hv_setup.sql @@ -1,20 +1,22 @@ /* -setup for hv powerflow - -PF HV scenario settings -PF HV source -PF HV bus -PF HV busmap -PF HV generator -PF HV line -PF HV load -PF HV storage -PF HV temp resolution -PF HV transformer -PF HV mag set -PF HV generator PQ set -PF HV load PQ set -PF HV storage PQ set +This script creates all tables which are needed for hv-powerflow calculations. The characteristics of those tables +follow the structure of PyPSA's input data. + +The following tables are created: +`model_draft.ego_grid_pf_hv_scenario_settings `_ +`model_draft.ego_grid_pf_hv_source `_ +`model_draft.ego_grid_pf_hv_bus `_ +`model_draft.ego_grid_pf_hv_busmap `_ +`model_draft.ego_grid_pf_hv_generator `_ +`model_draft.ego_grid_pf_hv_line `_ +`model_draft.ego_grid_pf_hv_load `_ +`model_draft.ego_grid_pf_hv_storage `_ +`model_draft.ego_grid_pf_hv_temp_resolution `_ +`model_draft.ego_grid_pf_hv_transformer `_ +`model_draft.ego_grid_pf_hv_bus_v_mag_set `_ +`model_draft.ego_grid_pf_hv_generator_pq_set `_ +`model_draft.ego_grid_pf_hv_load_pq_set `_ +`model_draft.ego_grid_pf_hv_storage_pq_set `_ __copyright__ = "Flensburg University of Applied Sciences, Centre for Sustainable Energy Systems" __license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" From 4de27a988e6dcabcb2c4ab0fd963346075c5564c Mon Sep 17 00:00:00 2001 From: Ludee Date: Thu, 8 Feb 2018 10:52:17 +0100 Subject: [PATCH 028/104] update docu loadarea --- dataprocessing/eGo_data_processing.py | 24 +- .../sql_snippets/ego_dp_loadarea_landuse.sql | 137 +- .../bpmn/ego_dp_bpmn_section_loadarea.graphml | 1995 +++++++++++++++++ 3 files changed, 2080 insertions(+), 76 deletions(-) create mode 100644 documentation/bpmn/ego_dp_bpmn_section_loadarea.graphml diff --git a/dataprocessing/eGo_data_processing.py b/dataprocessing/eGo_data_processing.py index f5fe5ad1..845405d7 100644 --- a/dataprocessing/eGo_data_processing.py +++ b/dataprocessing/eGo_data_processing.py @@ -54,18 +54,18 @@ def data_processing(): 'ego_dp_mv_griddistrict.sql', # MV GridDistricts from municipalities and Voronoi cells 'ego_dp_substation_id_to_generator.sql', # Assign Substation ID (subst_id) to Generator (Conventional and Renewable) - ## LOADAREA - 'ego_dp_loadarea_landuse.sql', # OSM landuse sector - 'ego_dp_loadarea_industry_consumer.sql', # Industry consumer - 'ego_dp_loadarea_loads.sql', # Loads from OSM landuse - 'ego_dp_loadarea_census.sql', # Loads from Census - 'ego_dp_loadarea_loadmelt.sql', # Melt OSM landuse and Zensus loads - 'ego_dp_loadarea_loadcut_griddistrict.sql', # Cut Loadarea with MV Griddistrict - 'ego_dp_loadarea_loadcut_voronoi.sql', # Cut Loadarea with MV Voronoi cells - 'ego_dp_loadarea_consumption.sql', # Allocate consumption to Loadareas - 'ego_dp_loadarea_peakload.sql', # Peak loads per Loadarea - 'ego_dp_loadarea_griddistrict_results.sql', # Results for MV Griddistrict - 'ego_dp_loadarea_statistic.sql', # Results and statistics for eGoDP + ## LOADAREA + 'ego_dp_loadarea_landuse.sql', # OSM landuse sectors + 'ego_dp_loadarea_industry_consumer.sql', # Industry consumer + 'ego_dp_loadarea_loads.sql', # Loads from OSM landuse + 'ego_dp_loadarea_census.sql', # Loads from Census + 'ego_dp_loadarea_loadmelt.sql', # Melt OSM landuse and Zensus loads + 'ego_dp_loadarea_loadcut_griddistrict.sql', # Cut Loadarea with MV Griddistrict + 'ego_dp_loadarea_loadcut_voronoi.sql', # Cut Loadarea with MV Voronoi cells + 'ego_dp_loadarea_consumption.sql', # Allocate consumption to Loadareas + 'ego_dp_loadarea_peakload.sql', # Peak loads per Loadarea + 'ego_dp_loadarea_griddistrict_results.sql', # Results for MV Griddistrict + 'ego_dp_loadarea_statistic.sql', # Results and statistics for eGoDP ## LOWVOLTAGE 'ego_dp_lv_substation.sql', # MVLV Substation inside Loadarea diff --git a/dataprocessing/sql_snippets/ego_dp_loadarea_landuse.sql b/dataprocessing/sql_snippets/ego_dp_loadarea_landuse.sql index 73fcfa9e..e5fbc4a7 100644 --- a/dataprocessing/sql_snippets/ego_dp_loadarea_landuse.sql +++ b/dataprocessing/sql_snippets/ego_dp_loadarea_landuse.sql @@ -1,15 +1,23 @@ /* -osm landuse sector - -__copyright__ = "Reiner Lemoine Institut" -__license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" -__url__ = "https://github.com/openego/data_processing/blob/master/LICENSE" -__author__ = "Ludee" +OSM landuse sectors +Extract landuse areas from OpenStreetMap. +Cut the landuse with German boders (vg250) and make valid geometries. +Divide into 4 landuse sectors: +1. Residential +2. Retail +3. Industrial +4. Agricultural + +__copyright__ = "Reiner Lemoine Institut" +__license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" +__url__ = "https://github.com/openego/data_processing/blob/master/LICENSE" +__author__ = "Ludee" */ ----------- ---------- ---------- ---------- ---------- ---------- --- "2. Data Setup OSM" 2016-04-18 10:00 11s ----------- ---------- ---------- ---------- ---------- ---------- + +---------- ---------- ---------- +-- Setup OSM +---------- ---------- ---------- -- -- "Validate (geom)" (OK!) -> 100ms =0 -- DROP VIEW IF EXISTS openstreetmap.osm_deu_polygon_error_geom_view CASCADE; @@ -33,8 +41,9 @@ __author__ = "Ludee" -- -- "Drop empty view" (OK!) -> 1.581.000ms =1 -- SELECT f_drop_view('{osm_deu_polygon_error_geom_view}', 'orig_osm'); + ---------- ---------- ---------- --- "Filter OSM Urban Landuse" +-- Filter OSM Urban Landuse ---------- ---------- ---------- -- ToDo: change "urban" to electrified @@ -42,60 +51,63 @@ __author__ = "Ludee" SELECT ego_scenario_log('v0.3.0','input','openstreetmap','osm_deu_polygon','ego_dp_loadarea_landuse.sql',' '); -- filter urban -DROP TABLE IF EXISTS openstreetmap.osm_deu_polygon_urban CASCADE; -CREATE TABLE openstreetmap.osm_deu_polygon_urban AS - SELECT osm.gid ::integer AS gid, - osm.osm_id ::integer AS osm_id, - --osm.landuse ::text AS landuse, - --osm.man_made ::text AS man_made, - --osm.aeroway ::text AS aeroway, - osm.name ::text AS name, - --osm.way_area ::double precision AS way_area, - '0' ::integer AS sector, - ST_AREA(ST_TRANSFORM(osm.geom,3035))/10000 ::double precision AS area_ha, - osm.tags ::hstore AS tags, - 'outside' ::text AS vg250, - ST_MULTI(ST_TRANSFORM(osm.geom,3035)) ::geometry(MultiPolygon,3035) AS geom - FROM openstreetmap.osm_deu_polygon AS osm - WHERE tags @> '"landuse"=>"residential"'::hstore OR - tags @> '"landuse"=>"commercial"'::hstore OR - tags @> '"landuse"=>"retail"'::hstore OR - tags @> '"landuse"=>"industrial;retail"'::hstore OR - - tags @> '"landuse"=>"industrial"'::hstore OR - tags @> '"landuse"=>"port"'::hstore OR - tags @> '"man_made"=>"wastewater_plant"'::hstore OR - tags @> '"aeroway"=>"terminal"'::hstore OR - tags @> '"aeroway"=>"gate"'::hstore OR - tags @> '"man_made"=>"works"'::hstore OR - - tags @> '"landuse"=>"farmyard"'::hstore OR - tags @> '"landuse"=>"greenhouse_horticulture"'::hstore - - --osm.landuse='residential' OR - --osm.landuse='commercial' OR - --osm.landuse='retail' OR - --osm.landuse='industrial;retail' OR - --osm.landuse='industrial' OR - --osm.landuse='port' OR - --osm.man_made='wastewater_plant' OR - --osm.aeroway='terminal' OR - --osm.aeroway='gate' OR - --osm.man_made='works' OR - --osm.landuse='farmyard' OR - --osm.landuse='greenhouse_horticulture' - ORDER BY osm.gid; +DROP TABLE IF EXISTS openstreetmap.osm_deu_polygon_urban CASCADE; +CREATE TABLE openstreetmap.osm_deu_polygon_urban AS + SELECT osm.gid ::integer AS gid, + osm.osm_id ::integer AS osm_id, + --osm.landuse ::text AS landuse, + --osm.man_made ::text AS man_made, + --osm.aeroway ::text AS aeroway, + osm.name ::text AS name, + --osm.way_area ::double precision AS way_area, + '0' ::integer AS sector, + ST_AREA(ST_TRANSFORM(osm.geom,3035))/10000 ::double precision AS area_ha, + osm.tags ::hstore AS tags, + 'outside' ::text AS vg250, + ST_MULTI(ST_TRANSFORM(osm.geom,3035)) ::geometry(MultiPolygon,3035) AS geom + FROM openstreetmap.osm_deu_polygon AS osm + WHERE + tags @> '"landuse"=>"residential"'::hstore OR + tags @> '"landuse"=>"commercial"'::hstore OR + tags @> '"landuse"=>"retail"'::hstore OR + tags @> '"landuse"=>"industrial;retail"'::hstore OR + + tags @> '"landuse"=>"industrial"'::hstore OR + tags @> '"landuse"=>"port"'::hstore OR + tags @> '"man_made"=>"wastewater_plant"'::hstore OR + tags @> '"aeroway"=>"terminal"'::hstore OR + tags @> '"aeroway"=>"gate"'::hstore OR + tags @> '"man_made"=>"works"'::hstore OR + + tags @> '"landuse"=>"farmyard"'::hstore OR + tags @> '"landuse"=>"greenhouse_horticulture"'::hstore + + --osm.landuse='residential' OR + --osm.landuse='commercial' OR + --osm.landuse='retail' OR + --osm.landuse='industrial;retail' OR + + --osm.landuse='industrial' OR + --osm.landuse='port' OR + --osm.man_made='wastewater_plant' OR + --osm.aeroway='terminal' OR + --osm.aeroway='gate' OR + --osm.man_made='works' OR + + --osm.landuse='farmyard' OR + --osm.landuse='greenhouse_horticulture' + ORDER BY osm.gid; -- PK ALTER TABLE openstreetmap.osm_deu_polygon_urban - ADD PRIMARY KEY (gid); + ADD PRIMARY KEY (gid); -- index GIST (geom) -CREATE INDEX osm_deu_polygon_urban_geom_idx - ON openstreetmap.osm_deu_polygon_urban USING GIST (geom); +CREATE INDEX osm_deu_polygon_urban_geom_idx + ON openstreetmap.osm_deu_polygon_urban USING GIST (geom); -- grant (oeuser) -ALTER TABLE openstreetmap.osm_deu_polygon_urban OWNER TO oeuser; +ALTER TABLE openstreetmap.osm_deu_polygon_urban OWNER TO oeuser; -- OSM Urban Landuse Inside vg250 @@ -288,10 +300,6 @@ INSERT INTO openstreetmap.osm_deu_polygon_urban -- ego scenario log (version,io,schema_name,table_name,script_name,comment) SELECT ego_scenario_log('v0.3.0','output','openstreetmap','osm_deu_polygon_urban','ego_dp_loadarea_landuse.sql',' '); - ----------- ---------- ---------- --- "(Geo) Data Validation" ----------- ---------- ---------- -- -- "Validate (geom)" (OK!) -> 22.000ms =0 -- DROP MATERIALIZED VIEW IF EXISTS openstreetmap.osm_deu_polygon_urban_error_geom_mview CASCADE; @@ -312,7 +320,6 @@ SELECT ego_scenario_log('v0.3.0','output','openstreetmap','osm_deu_polygon_urban -- GRANT ALL ON TABLE openstreetmap.osm_deu_polygon_urban_error_geom_view TO oeuser WITH GRANT OPTION; -- ALTER TABLE openstreetmap.osm_deu_polygon_urban_error_geom_view OWNER TO oeuser; ----------- ---------- ---------- -- -- "Validate (geom)" (OK!) -> 22.000ms =0 -- DROP VIEW IF EXISTS openstreetmap.osm_deu_polygon_urban_error_geom_view CASCADE; @@ -337,7 +344,9 @@ SELECT ego_scenario_log('v0.3.0','output','openstreetmap','osm_deu_polygon_urban -- SELECT f_drop_view('{osm_deu_polygon_urban_error_geom_view}', 'orig_osm'); --- "Filter by Sector" +---------- ---------- ---------- +-- Filter Sectors +---------- ---------- ---------- -- Sector 1. Residential -- update sector @@ -437,7 +446,7 @@ ALTER TABLE openstreetmap.osm_deu_polygon_urban_sector_3_industrial_mview OWNER SELECT ego_scenario_log('v0.3.0','output','openstreetmap','osm_deu_polygon_urban_sector_3_industrial_mview','ego_dp_loadarea_landuse.sql',' '); --- sector 4. Agricultural +-- Sector 4. Agricultural -- update sector UPDATE openstreetmap.osm_deu_polygon_urban SET sector = '4' diff --git a/documentation/bpmn/ego_dp_bpmn_section_loadarea.graphml b/documentation/bpmn/ego_dp_bpmn_section_loadarea.graphml new file mode 100644 index 00000000..84697ac0 --- /dev/null +++ b/documentation/bpmn/ego_dp_bpmn_section_loadarea.graphml @@ -0,0 +1,1995 @@ + + + + + + + + + + + + + + + + + + + + + + + eGo DataProcessing - substation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ego_dp_loadarea_landuse.sql + + + + + + + + + + + + + + + + + + openstreetmap.osm_deu_polygon_urban +osm_deu_polygon_urban_sector_1_residential_mview +osm_deu_polygon_urban_sector_2_retail_mview +osm_deu_polygon_urban_sector_3_industrial_mview +osm_deu_polygon_urban_sector_4_agricultural_mview + + + + + + + + + + + + + + + + + + + + + + + social.destatis_zensus_population_per_ha_mview +model_draft.ego_demand_la_zensus +model_draft.ego_demand_la_zensus_cluster +model_draft.zensus_population_per_load_area_stats_mview + + + + + + + + + + + + + + + + + + + + + + + ego_dp_loadarea_loadmelt.sql + + + + + + + + + + + + + + + + + + model_draft.ego_demand_load_collect +model_draft.ego_demand_load_collect_buffer100_mview +model_draft.ego_demand_load_melt + + + + + + + + + + + + + + + + + + + + + + + ego_dp_loadarea_loadcut_griddistrict.sql + + + + + + + + + + + + + + + + + + model_draft.ego_osm_sector_per_griddistrict_1_residential +model_draft.ego_osm_sector_per_griddistrict_2_retail +model_draft.ego_osm_sector_per_griddistrict_3_industrial +model_draft.ego_osm_sector_per_griddistrict_4_agricultural +model_draft.ego_demand_loadarea_centre_mview +model_draft.ego_demand_loadarea_smaller100m2_mview +model_draft.ego_demand_loadarea_error_noags_mview +model_draft.ego_demand_loadarea + + + + + + + + + + + + + + + + + + + + + + + 20 sec + + + + + + + + + + + + + + + + + + + + + + 30 min + + + + + + + + + + + + + + + + + + + + + + 20 min + + + + + + + + + + + + + + + + + + + + + + 30 min + + + + + + + + + + + + + + + + + + + + + + openstreetmap.osm_deu_polygon +political_bkg_vg250_1_sta_union_mview + + + + + + + + + + + + + + + + + + + + + + + social.destatis_zensus_population_per_ha +model_draft.ego_demand_la_osm + + + + + + + + + + + + + + + + + + + + + + + ego_dp_loadarea_industry_consumer.sql + + + + + + + + + + + + + + + + + + model_draft.ego_landuse_industry +model_draft.ego_demand_hv_largescaleconsumer + + + + + + + + + + + + + + + + + + + + + + + demand.ego_demand_federalstate +economic.destatis_gva_per_districts +political_boundary.bkg_vg250_4_krs_mview +supply.ego_conv_powerplant +model_draft.ego_grid_ehv_substation_voronoi +model_draft.ego_grid_hvmv_substation + + + + + + + + + + + + + + + + + + + + + + + + 10 sec + + + + + + + + + + + + + + + + + + + + + + ego_dp_loadarea_loads.sql + + + + + + + + + + + + + + + + + + model_draft.ego_demand_la_osm + + + + + + + + + + + + + + + + + + + + + + + 45 min + + + + + + + + + + + + + + + + + + + + + + model_draft.ego_demand_hv_largescaleconsumer +openstreetmap.osm_deu_polygon_urban + + + + + + + + + + + + + + + + + + + + + + + model_draft.ego_deu_loads_osm +model_draft.ego_social_zensus_load_cluster + + + + + + + + + + + + + + + + + + + + + + + ego_dp_loadarea_consumption.sql + + + + + + + + + + + + + + + + + + model_draft.ego_demand_loadarea +demand.ego_loadarea + + + + + + + + + + + + + + + + + + + + + + + 16 sec + + + + + + + + + + + + + + + + + + + + + + model_draft.ego_demand_per_district +model_draft.ego_demand_loadarea +demand.ego_demand_federalstate + + + + + + + + + + + + + + + + + + + + + + + model_draft.ego_demand_load_melt +model_draft.ego_grid_mv_griddistrict +social.destatis_zensus_population_per_ha_mview +economic.ioer_urban_share_industrial_centroid +openstreetmap.osm_deu_polygon_urban_sector_1_residential_mview +openstreetmap.osm_deu_polygon_urban_sector_2_retail_mview +openstreetmap.osm_deu_polygon_urban_sector_3_industrial_mview +openstreetmap.osm_deu_polygon_urban_sector_4_agricultural_mview +model_draft.ego_political_boundary_bkg_vg250_6_gem_clean + + + + + + + + + + + + + + + + + + + + + + + Datenlizenz Deutschland – Namensnennung – Version 2.0 +Statistisches Bundesamt, Wiesbaden, Genesis-Online, 2016; Datenlizenz by-2-0 + + + + + + + + + + + + + + + + + + + + + + ego_dp_loadarea_census.sql + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Open Database License (ODbL) v1.0 +© OpenStreetMap contributors + + + + + + + + + + + + + + + + + + + + + + openstreetmap.osm_deu + + + + + + + + + + + + + + + + + economic.destatis_gva_per_districts + + + + + + + + + + + + + + + + + Geodatenzugangsgesetz (GeoZG) +© GeoBasis-DE / BKG 2016 (Daten verändert) + + + + + + + + + + + + + + + + + + + + + + political_boundary.bkg_vg250 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + social.destatis_zensus_population_per_ha + + + + + + + + + + + + + + + + + Open Database License (ODbL) v1.0 +© OpenStreetMap contributors + + + + + + + + + + + + + + + + + + + + + + Geodatenzugangsgesetz (GeoZG) +© GeoBasis-DE / BKG 2016 (Daten verändert) + + + + + + + + + + + + + + + + + + + + + + Open Database License (ODbL) v1.0 +© OpenStreetMap contributors + + + + + + + + + + + + + + + + + + + + + + Geodatenzugangsgesetz (GeoZG) +© GeoBasis-DE / BKG 2016 (Daten verändert) + + + + + + + + + + + + + + + + + + + + + + Open Database License (ODbL) v1.0 +© OpenStreetMap contributors + + + + + + + + + + + + + + + + + + + + + + Geodatenzugangsgesetz (GeoZG) +© GeoBasis-DE / BKG 2016 (Daten verändert) + + + + + + + + + + + + + + + + + + + + + + Datenlizenz Deutschland – Namensnennung – Version 2.0 +Statistisches Bundesamt, Wiesbaden, Genesis-Online, 2016; Datenlizenz by-2-0 + + + + + + + + + + + + + + + + + + + + + + supply.ego_conv_powerplant + + + + + + + + + + + + + + + + + model_draft.ego_grid_ehv_substation +grid.ego_ehv_substation + + + + + + + + + + + + + + + + + Open Database License (ODbL) v1.0 +© OpenStreetMap contributors + + + + + + + + + + + + + + + + + + + + + + Geodatenzugangsgesetz (GeoZG) +© GeoBasis-DE / BKG 2016 (Daten verändert) + + + + + + + + + + + + + + + + + + + + + + demand.ego_demand_federalstate + + + + + + + + + + + + + + + + + model_draft.ego_grid_hvmv_substation +model_draft.ego_grid_mv_griddistrict +model_draft.ego_demand_loadarea + + + + + + + + + + + + + + + + + + + + + + + 5 min + + + + + + + + + + + + + + + + + + + + + + model_draft.ego_data_processing_results +model_draft.ego_data_processing_results_mvgd +political_boundary.bkg_vg250_statistics_mview + + + + + + + + + + + + + + + + + + + + + + + ego_dp_loadarea_statistic.sql + + + + + + + + + + + + + + + + + + ego_dp_loadarea_loadcut_voronoi.sql + + + + + + + + + + + + + + + + + + ego_dp_loadarea_peakload.py + + + + + + + + + + + + + + + + + + model_draft.ego_demand_loadarea + + + + + + + + + + + + + + + + + + + + + + + model_draft.ego_demand_loadarea_peak_load + + + + + + + + + + + + + + + + + + + + + + + 10 h + + + + + + + + + + + + + + + + + + + + + + ego_dp_loadarea_griddistrict_results.sql + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + From 68ec5b73c41212808dc0015bc1f98d008416c78a Mon Sep 17 00:00:00 2001 From: wolfbunke Date: Thu, 8 Feb 2018 11:12:22 +0100 Subject: [PATCH 029/104] add new files --- documentation/doc/getting_started.rst | 3 +++ documentation/doc/scripts.rst | 27 +++++++++++++++++++++++++++ documentation/doc/whatsnew.rst | 12 ++++++++++++ documentation/doc/whatsnew/v0-3-0.rst | 24 ++++++++++++++++++++++++ 4 files changed, 66 insertions(+) create mode 100644 documentation/doc/getting_started.rst create mode 100644 documentation/doc/scripts.rst create mode 100644 documentation/doc/whatsnew.rst create mode 100644 documentation/doc/whatsnew/v0-3-0.rst diff --git a/documentation/doc/getting_started.rst b/documentation/doc/getting_started.rst new file mode 100644 index 00000000..a1c5572b --- /dev/null +++ b/documentation/doc/getting_started.rst @@ -0,0 +1,3 @@ +=============== +Getting Started +=============== diff --git a/documentation/doc/scripts.rst b/documentation/doc/scripts.rst new file mode 100644 index 00000000..d3f2f2eb --- /dev/null +++ b/documentation/doc/scripts.rst @@ -0,0 +1,27 @@ +======================= +Data processing scripts +======================= + + + +Data processing +=============== + +SQL-Scripts +----------- +[add file name and Links to doc/dataprocessing/"name"] + +Python-Scripts +-------------- +[use sphinx doc strings] + +Preprocessing +============= + +SQL-Scripts +----------- +[add file name and Links to doc/dataprocessing/"name"] + +Python-Scripts +-------------- +[use sphinx doc strings] diff --git a/documentation/doc/whatsnew.rst b/documentation/doc/whatsnew.rst new file mode 100644 index 00000000..a6143927 --- /dev/null +++ b/documentation/doc/whatsnew.rst @@ -0,0 +1,12 @@ +What's New +~~~~~~~~~~ + +See what's new as per release! + +.. contents:: `Releases` + :depth: 1 + :local: + :backlinks: top + + +.. include:: whatsnew/v0-3-0.rst diff --git a/documentation/doc/whatsnew/v0-3-0.rst b/documentation/doc/whatsnew/v0-3-0.rst new file mode 100644 index 00000000..7f206623 --- /dev/null +++ b/documentation/doc/whatsnew/v0-3-0.rst @@ -0,0 +1,24 @@ +Release v0.3.0 (December 18, 2017) +++++++++++++++++++++++++++++++++++ + +[Description] + + + +Added features +-------------- + +* + + +Bug fixes +--------- + +* + + +Other changes +------------- + +* + From d100755206a1b942f762f03e7522398fba3bd5e0 Mon Sep 17 00:00:00 2001 From: wolfbunke Date: Thu, 8 Feb 2018 11:13:08 +0100 Subject: [PATCH 030/104] add new files --- documentation/doc/index.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/documentation/doc/index.rst b/documentation/doc/index.rst index 855324b2..79666736 100644 --- a/documentation/doc/index.rst +++ b/documentation/doc/index.rst @@ -14,9 +14,13 @@ Welcome to Data processing documentation of open_eGo :maxdepth: 7 :titlesonly: + index + getting_started dataprocessing preprocessing scenario + + whatsnew From c706d829fd112f9c4a4f65d39dd52cff48f90db4 Mon Sep 17 00:00:00 2001 From: Ludee Date: Thu, 8 Feb 2018 11:15:38 +0100 Subject: [PATCH 031/104] update docu --- dataprocessing/eGo_data_processing.py | 4 +- .../ego_dp_loadarea_industry_consumer.sql | 38 ++++++++++--------- .../bpmn/ego_dp_bpmn_section_loadarea.graphml | 37 +++++++++++++++++- 3 files changed, 59 insertions(+), 20 deletions(-) diff --git a/dataprocessing/eGo_data_processing.py b/dataprocessing/eGo_data_processing.py index 845405d7..038ff95a 100644 --- a/dataprocessing/eGo_data_processing.py +++ b/dataprocessing/eGo_data_processing.py @@ -55,8 +55,8 @@ def data_processing(): 'ego_dp_substation_id_to_generator.sql', # Assign Substation ID (subst_id) to Generator (Conventional and Renewable) ## LOADAREA - 'ego_dp_loadarea_landuse.sql', # OSM landuse sectors - 'ego_dp_loadarea_industry_consumer.sql', # Industry consumer + 'ego_dp_loadarea_landuse.sql', # OSM landuse sectors + 'ego_dp_loadarea_industry_consumer.sql', # OSM Industry consumer 'ego_dp_loadarea_loads.sql', # Loads from OSM landuse 'ego_dp_loadarea_census.sql', # Loads from Census 'ego_dp_loadarea_loadmelt.sql', # Melt OSM landuse and Zensus loads diff --git a/dataprocessing/sql_snippets/ego_dp_loadarea_industry_consumer.sql b/dataprocessing/sql_snippets/ego_dp_loadarea_industry_consumer.sql index 13b37dc6..e9d5e263 100644 --- a/dataprocessing/sql_snippets/ego_dp_loadarea_industry_consumer.sql +++ b/dataprocessing/sql_snippets/ego_dp_loadarea_industry_consumer.sql @@ -1,12 +1,16 @@ /* -osm industry - -__copyright__ = "Reiner Lemoine Institut" -__license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" -__url__ = "https://github.com/openego/data_processing/blob/master/LICENSE" -__author__ = "IlkaCu, Ludee" +OSM Industry consumer +Calculate specific electricity consumption per million Euro GVA for each federal state. +Calculate the electricity consumption for each industry polygon. +Identify corresponding bus for large scale consumer (lsc) with the help of ehv-voronoi. + +__copyright__ = "Reiner Lemoine Institut" +__license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" +__url__ = "https://github.com/openego/data_processing/blob/master/LICENSE" +__author__ = "IlkaCu, Ludee" */ + -- ego scenario log (version,io,schema_name,table_name,script_name,comment) SELECT ego_scenario_log('v0.3.0','input','demand','ego_demand_federalstate','ego_dp_loadarea_industry_consumer.sql',' '); @@ -16,19 +20,19 @@ SELECT ego_scenario_log('v0.3.0','input','economy','destatis_gva_per_district',' -- Calculate specific electricity consumption per million Euro GVA for each federal state DROP TABLE IF EXISTS model_draft.ego_demand_per_gva CASCADE; CREATE TABLE model_draft.ego_demand_per_gva AS - (SELECT a.eu_code, - a.federal_states, - a.elec_consumption_industry/b.gva_industry AS elec_consumption_industry, - a.elec_consumption_tertiary_sector/b.gva_tertiary_sector AS elec_consumption_tertiary_sector - FROM demand.ego_demand_federalstate a, -- ego_demand_federalstate - economy.destatis_gva_per_district b -- destatis_gva_per_district - WHERE a.eu_code = b.eu_code - ORDER BY eu_code ); + (SELECT a.eu_code, + a.federal_states, + a.elec_consumption_industry/b.gva_industry AS elec_consumption_industry, + a.elec_consumption_tertiary_sector/b.gva_tertiary_sector AS elec_consumption_tertiary_sector + FROM demand.ego_demand_federalstate a, -- ego_demand_federalstate + economy.destatis_gva_per_district b -- destatis_gva_per_district + WHERE a.eu_code = b.eu_code + ORDER BY eu_code ); -- PK ALTER TABLE model_draft.ego_demand_per_gva - ADD PRIMARY KEY (eu_code), - OWNER TO oeuser; + ADD PRIMARY KEY (eu_code), + OWNER TO oeuser; -- metadata COMMENT ON TABLE model_draft.ego_demand_per_gva IS @@ -60,7 +64,7 @@ COMMENT ON TABLE model_draft.ego_demand_per_gva IS "Mail": "mario.kropshofer2@stud.fh-flensburg.de", "Date": "05.10.2016", "Comment": "..." }, - {"Name": "Ilka Cussmann", + {"Name": "Ilka Cussmann", "Mail": "", "Date": "25.10.2016", "Comment": "Completed json-String" } diff --git a/documentation/bpmn/ego_dp_bpmn_section_loadarea.graphml b/documentation/bpmn/ego_dp_bpmn_section_loadarea.graphml index 84697ac0..bc09a2bb 100644 --- a/documentation/bpmn/ego_dp_bpmn_section_loadarea.graphml +++ b/documentation/bpmn/ego_dp_bpmn_section_loadarea.graphml @@ -1142,7 +1142,7 @@ grid.ego_ehv_substation - + demand.ego_demand_federalstate @@ -1368,6 +1368,29 @@ political_boundary.bkg_vg250_statistics_mview + + + + + + + Open Database License (ODbL) v1.0 +© OpenStreetMap contributors + + + + + + + + + + + + + + + @@ -1988,6 +2011,18 @@ political_boundary.bkg_vg250_statistics_mview + + + + + + + + + + + + From 33964af9ef36c26b2445902422d5841d23e8e28d Mon Sep 17 00:00:00 2001 From: IlkaCu Date: Thu, 8 Feb 2018 11:20:40 +0100 Subject: [PATCH 032/104] Update docu osmTgmod_to_pypsa #92 --- .../sql_snippets/ego_dp_powerflow_osmtgmod_to_pypsa.sql | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dataprocessing/sql_snippets/ego_dp_powerflow_osmtgmod_to_pypsa.sql b/dataprocessing/sql_snippets/ego_dp_powerflow_osmtgmod_to_pypsa.sql index 52691129..f121596d 100644 --- a/dataprocessing/sql_snippets/ego_dp_powerflow_osmtgmod_to_pypsa.sql +++ b/dataprocessing/sql_snippets/ego_dp_powerflow_osmtgmod_to_pypsa.sql @@ -1,5 +1,8 @@ /* -osmTGmod2pyPSA +`osmTGmod `_ provides a model of the German EHV and HV grid based on OpenStreetMap. +This script extracts `bus `_ and `branch data `_ provided by osmTGmod +and inserts the grid model into the corresponding powerflow tables. +Additionally some (electrical) properties for transformers are adjusted or added. __copyright__ = "Flensburg University of Applied Sciences, Centre for Sustainable Energy Systems" __license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" From 7d12923aae69fd0ace9280557780d6f27eebddea Mon Sep 17 00:00:00 2001 From: WolfBunke Date: Thu, 8 Feb 2018 11:29:27 +0100 Subject: [PATCH 033/104] Update and rename README.md to README.rst --- README.md => README.rst | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) rename README.md => README.rst (69%) diff --git a/README.md b/README.rst similarity index 69% rename from README.md rename to README.rst index 508fe870..2637427d 100644 --- a/README.md +++ b/README.rst @@ -1,22 +1,25 @@ .. image:: https://readthedocs.org/projects/data-processing/badge/?version=feature-docu-wolf :target: http://data-processing.readthedocs.io/en/latest/?badge=feature-docu-wolf :alt: Documentation Status - - + .. image:: https://openegoproject.files.wordpress.com/2017/02/open_ego_logo_breit.png?w=400 +=================== +eGo dataprocessing +=================== -# eGo dataprocessing (geo)data processing, database setup, data validation -# Copyleft - +========= +Copyleft +========= Code licensed under "GNU Affero General Public License Version 3 (AGPL-3.0)" It is a collaborative work with several copyright owner: -Cite as "eGo dataprocessing © Flensburg University of Applied Sciences, Centre for Sustainable Energy Systems © Europa-Universität Flensburg, Centre for Sustainable Energy Systems © Reiner Lemoine Institut © DLR Institute for Networked Energy Systems" +Cite as "eGo dataprocessing © Flensburg University of Applied Sciences, Centre for Sustainable Energy Systems © Europa-Universität Flensburg, Centre for Sustainable Energy Systems © Reiner Lemoine Institut © DLR Institute for Networked Energy Systems" -## Installation +Installation +============ Installation of latest release @@ -30,14 +33,17 @@ Installation (of developer version) via pip on linux systems as follows sudo pip3 install -e ``` -### Troubleshooting +Troubleshooting + +On Windows +*********** -#### On Windows 1. __Problem__: Installation of required package shapely fails. __Solution__: Install pre-build wheel from [here](http://www.lfd.uci.edu/~gohlke/pythonlibs/#shapely) - ## Run +Run +==== You can run data processing by calling command-line script From 30e7e43da356c1a79a3ab87428c07f1c6bbae3b9 Mon Sep 17 00:00:00 2001 From: IlkaCu Date: Thu, 8 Feb 2018 11:33:39 +0100 Subject: [PATCH 034/104] Update docu electrical_neighbours #92 --- .../sql_snippets/ego_dp_powerflow_electrical_neighbour.sql | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dataprocessing/sql_snippets/ego_dp_powerflow_electrical_neighbour.sql b/dataprocessing/sql_snippets/ego_dp_powerflow_electrical_neighbour.sql index ed9dc8e3..f1903f6b 100644 --- a/dataprocessing/sql_snippets/ego_dp_powerflow_electrical_neighbour.sql +++ b/dataprocessing/sql_snippets/ego_dp_powerflow_electrical_neighbour.sql @@ -1,5 +1,7 @@ /* -Creates border crossing lines and buses for electrical neighbours +The electricity grid model extracted from osmTGmod is limited to the German territory. This script adds border crossing +lines and corresponding buses and transformers to all neighbouring countries which have a direct electrical connection +to the German grid. __copyright__ = "Flensburg University of Applied Sciences, Centre for Sustainable Energy Systems" __license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" From 8b4b04b580f2938646b8519d38d73a37f2dbc12c Mon Sep 17 00:00:00 2001 From: wolfbunke Date: Thu, 8 Feb 2018 11:36:35 +0100 Subject: [PATCH 035/104] remove index from toc --- documentation/doc/index.rst | 1 - 1 file changed, 1 deletion(-) diff --git a/documentation/doc/index.rst b/documentation/doc/index.rst index 79666736..1815f46f 100644 --- a/documentation/doc/index.rst +++ b/documentation/doc/index.rst @@ -14,7 +14,6 @@ Welcome to Data processing documentation of open_eGo :maxdepth: 7 :titlesonly: - index getting_started dataprocessing preprocessing From 9195bf044fd1171b1fe1335431c016ac1b68917b Mon Sep 17 00:00:00 2001 From: IlkaCu Date: Thu, 8 Feb 2018 11:50:17 +0100 Subject: [PATCH 036/104] Update docu grid_future_scenarios #92 --- .../sql_snippets/ego_dp_powerflow_grid_future_scenarios.sql | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dataprocessing/sql_snippets/ego_dp_powerflow_grid_future_scenarios.sql b/dataprocessing/sql_snippets/ego_dp_powerflow_grid_future_scenarios.sql index 4f3ffbaa..7022a399 100644 --- a/dataprocessing/sql_snippets/ego_dp_powerflow_grid_future_scenarios.sql +++ b/dataprocessing/sql_snippets/ego_dp_powerflow_grid_future_scenarios.sql @@ -1,5 +1,8 @@ /* -Copy SQ grid to 'NEP 2035' and 'eGo 100' scenario +The grid model which is used as an input for powerflow calculations and optimization in open_eGo is the same in all +three scenarios 'SQ', 'NEP 2035' and 'eGo100'. +In the following script the grid model created for the 'SQ' scenario in the previous scripts is duplicated for the remaining +two future scenarios __copyright__ = "Flensburg University of Applied Sciences, Centre for Sustainable Energy Systems" __license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" From 876b01172369128e010b9e311bc41e872d6140e9 Mon Sep 17 00:00:00 2001 From: Ludee Date: Thu, 8 Feb 2018 11:50:26 +0100 Subject: [PATCH 037/104] update docu --- dataprocessing/eGo_data_processing.py | 4 +- .../sql_snippets/ego_dp_loadarea_census.sql | 288 ++++++++---------- .../sql_snippets/ego_dp_loadarea_loads.sql | 19 +- .../sql_snippets/ego_dp_mv_griddistrict.sql | 4 +- 4 files changed, 135 insertions(+), 180 deletions(-) diff --git a/dataprocessing/eGo_data_processing.py b/dataprocessing/eGo_data_processing.py index 038ff95a..cde593c6 100644 --- a/dataprocessing/eGo_data_processing.py +++ b/dataprocessing/eGo_data_processing.py @@ -57,8 +57,8 @@ def data_processing(): ## LOADAREA 'ego_dp_loadarea_landuse.sql', # OSM landuse sectors 'ego_dp_loadarea_industry_consumer.sql', # OSM Industry consumer - 'ego_dp_loadarea_loads.sql', # Loads from OSM landuse - 'ego_dp_loadarea_census.sql', # Loads from Census + 'ego_dp_loadarea_loads.sql', # OSM Loads from landuse + 'ego_dp_loadarea_census.sql', # Loads from Census 2011 'ego_dp_loadarea_loadmelt.sql', # Melt OSM landuse and Zensus loads 'ego_dp_loadarea_loadcut_griddistrict.sql', # Cut Loadarea with MV Griddistrict 'ego_dp_loadarea_loadcut_voronoi.sql', # Cut Loadarea with MV Voronoi cells diff --git a/dataprocessing/sql_snippets/ego_dp_loadarea_census.sql b/dataprocessing/sql_snippets/ego_dp_loadarea_census.sql index f6808227..8b0ea87a 100644 --- a/dataprocessing/sql_snippets/ego_dp_loadarea_census.sql +++ b/dataprocessing/sql_snippets/ego_dp_loadarea_census.sql @@ -1,11 +1,12 @@ /* -census 2011 population per ha +Loads from Census 2011 +Include Census 2011 population per ha Identify population in osm loads -__copyright__ = "Reiner Lemoine Institut" -__license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" -__url__ = "https://github.com/openego/data_processing/blob/master/LICENSE" -__author__ = "Ludee" +__copyright__ = "Reiner Lemoine Institut" +__license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" +__url__ = "https://github.com/openego/data_processing/blob/master/LICENSE" +__author__ = "Ludee" */ @@ -13,203 +14,156 @@ __author__ = "Ludee" SELECT ego_scenario_log('v0.3.0','input','society','destatis_zensus_population_per_ha_mview','ego_dp_loadarea_census.sql',' '); -- zensus load -DROP TABLE IF EXISTS model_draft.ego_demand_la_zensus CASCADE; -CREATE TABLE model_draft.ego_demand_la_zensus ( - id SERIAL NOT NULL, - gid integer, - population integer, - inside_la boolean, - geom_point geometry(Point,3035), - geom geometry(Polygon,3035), - CONSTRAINT ego_demand_la_zensus_pkey PRIMARY KEY (id)); - --- insert zensus loads -INSERT INTO model_draft.ego_demand_la_zensus (gid,population,inside_la,geom_point,geom) - SELECT zensus.gid ::integer, - zensus.population ::integer, - 'FALSE' ::boolean AS inside_la, - zensus.geom_point ::geometry(Point,3035), - zensus.geom ::geometry(Polygon,3035) - FROM society.destatis_zensus_population_per_ha_mview AS zensus; +DROP TABLE IF EXISTS model_draft.ego_demand_la_zensus CASCADE; +CREATE TABLE model_draft.ego_demand_la_zensus ( + id SERIAL NOT NULL, + gid integer, + population integer, + inside_la boolean, + geom_point geometry(Point,3035), + geom geometry(Polygon,3035), + CONSTRAINT ego_demand_la_zensus_pkey PRIMARY KEY (id)); -- index gist (geom_point) -CREATE INDEX ego_demand_la_zensus_geom_point_idx - ON model_draft.ego_demand_la_zensus USING GIST (geom_point); +CREATE INDEX ego_demand_la_zensus_geom_point_idx + ON model_draft.ego_demand_la_zensus USING GIST (geom_point); -- index gist (geom) -CREATE INDEX ego_demand_la_zensus_geom_idx - ON model_draft.ego_demand_la_zensus USING GIST (geom); +CREATE INDEX ego_demand_la_zensus_geom_idx + ON model_draft.ego_demand_la_zensus USING GIST (geom); + +-- grant (oeuser) +ALTER TABLE model_draft.ego_demand_la_zensus OWNER TO oeuser; + +-- metadata +COMMENT ON TABLE model_draft.ego_demand_la_zensus IS '{ + "comment": "eGoDP - Temporary table", + "version": "v0.3.0" }' ; + +-- insert zensus loads + INSERT INTO model_draft.ego_demand_la_zensus (gid,population,inside_la,geom_point,geom) + SELECT zensus.gid ::integer, + zensus.population ::integer, + 'FALSE' ::boolean AS inside_la, + zensus.geom_point ::geometry(Point,3035), + zensus.geom ::geometry(Polygon,3035) + FROM society.destatis_zensus_population_per_ha_mview AS zensus; + -- ego scenario log (version,io,schema_name,table_name,script_name,comment) SELECT ego_scenario_log('v0.3.0','input','model_draft','ego_demand_la_osm','ego_dp_loadarea_census.sql',' '); - + -- population in osm loads -UPDATE model_draft.ego_demand_la_zensus AS t1 - SET inside_la = t2.inside_la - FROM ( - SELECT zensus.id AS id, - 'TRUE' ::boolean AS inside_la - FROM model_draft.ego_demand_la_zensus AS zensus, - model_draft.ego_demand_la_osm AS osm - WHERE osm.geom && zensus.geom_point AND - ST_CONTAINS(osm.geom,zensus.geom_point) - ) AS t2 - WHERE t1.id = t2.id; +UPDATE model_draft.ego_demand_la_zensus AS t1 + SET inside_la = t2.inside_la + FROM ( + SELECT zensus.id AS id, + 'TRUE' ::boolean AS inside_la + FROM model_draft.ego_demand_la_zensus AS zensus, + model_draft.ego_demand_la_osm AS osm + WHERE osm.geom && zensus.geom_point AND + ST_CONTAINS(osm.geom,zensus.geom_point) + ) AS t2 + WHERE t1.id = t2.id; -- remove identified population -DELETE FROM model_draft.ego_demand_la_zensus AS lp - WHERE lp.inside_la IS TRUE; - --- grant (oeuser) -ALTER TABLE model_draft.ego_demand_la_zensus OWNER TO oeuser; - --- metadata -COMMENT ON TABLE model_draft.ego_demand_la_zensus IS '{ - "Name": "ego zensus loads", - "Source": [{ - "Name": "open_eGo", - "URL": "https://github.com/openego/data_processing"}], - "Reference date": "2016", - "Date of collection": "02.09.2016", - "Original file": ["ego_grid_hvmv_substation"], - "Spatial": [{ - "Resolution": "", - "Extend": "Germany" }], - "Description": ["osm laods"], - "Column":[ - {"Name": "id", "Description": "Unique identifier", "Unit": " " }, - {"Name": "area_ha", "Description": "Area", "Unit": "ha" }, - {"Name": "geom", "Description": "Geometry", "Unit": " " } ], - "Changes": [ - {"Name": "Ludee", "Mail": "", - "Date": "02.09.2015", "Comment": "Created mview" }, - {"Name": "Ludee", "Mail": "", - "Date": "17.12.2016", "Comment": "Added metadata" } ], - "Notes": [""], - "Licence": [{ - "Name": "", - "URL": "" }], - "Instructions for proper use": [" "] - }' ; - --- select description -SELECT obj_description('model_draft.ego_demand_la_zensus' ::regclass) ::json; +DELETE FROM model_draft.ego_demand_la_zensus AS lp + WHERE lp.inside_la IS TRUE; -- ego scenario log (version,io,schema_name,table_name,script_name,comment) SELECT ego_scenario_log('v0.3.0','output','model_draft','ego_demand_la_zensus','ego_dp_loadarea_census.sql',' '); -- cluster from zensus load lattice -DROP TABLE IF EXISTS model_draft.ego_demand_la_zensus_cluster CASCADE; -CREATE TABLE model_draft.ego_demand_la_zensus_cluster ( - cid serial, - zensus_sum INT, - area_ha INT, - geom geometry(Polygon,3035), - geom_buffer geometry(Polygon,3035), - geom_centroid geometry(Point,3035), - geom_surfacepoint geometry(Point,3035), - CONSTRAINT ego_demand_la_zensus_cluster_pkey PRIMARY KEY (cid)); - --- insert cluster -INSERT INTO model_draft.ego_demand_la_zensus_cluster(geom) - SELECT (ST_DUMP(ST_MULTI(ST_UNION(grid.geom)))).geom ::geometry(Polygon,3035) AS geom - FROM model_draft.ego_demand_la_zensus AS grid; +DROP TABLE IF EXISTS model_draft.ego_demand_la_zensus_cluster CASCADE; +CREATE TABLE model_draft.ego_demand_la_zensus_cluster ( + cid serial, + zensus_sum INT, + area_ha INT, + geom geometry(Polygon,3035), + geom_buffer geometry(Polygon,3035), + geom_centroid geometry(Point,3035), + geom_surfacepoint geometry(Point,3035), + CONSTRAINT ego_demand_la_zensus_cluster_pkey PRIMARY KEY (cid)); -- index gist (geom) -CREATE INDEX ego_demand_la_zensus_cluster_geom_idx - ON model_draft.ego_demand_la_zensus_cluster USING GIST (geom); - --- cluster data -UPDATE model_draft.ego_demand_la_zensus_cluster AS t1 - SET zensus_sum = t2.zensus_sum, - area_ha = t2.area_ha, - geom_buffer = t2.geom_buffer, - geom_centroid = t2.geom_centroid, - geom_surfacepoint = t2.geom_surfacepoint - FROM ( - SELECT cl.cid AS cid, - SUM(lp.population) AS zensus_sum, - COUNT(lp.geom) AS area_ha, - ST_BUFFER(cl.geom, 100) AS geom_buffer, - ST_Centroid(cl.geom) AS geom_centroid, - ST_PointOnSurface(cl.geom) AS geom_surfacepoint - FROM model_draft.ego_demand_la_zensus AS lp, - model_draft.ego_demand_la_zensus_cluster AS cl - WHERE cl.geom && lp.geom AND - ST_CONTAINS(cl.geom,lp.geom) - GROUP BY cl.cid - ORDER BY cl.cid - ) AS t2 - WHERE t1.cid = t2.cid; +CREATE INDEX ego_demand_la_zensus_cluster_geom_idx + ON model_draft.ego_demand_la_zensus_cluster USING GIST (geom); -- index gist (geom_centroid) -CREATE INDEX ego_demand_la_zensus_cluster_geom_centroid_idx - ON model_draft.ego_demand_la_zensus_cluster USING GIST (geom_centroid); +CREATE INDEX ego_demand_la_zensus_cluster_geom_centroid_idx + ON model_draft.ego_demand_la_zensus_cluster USING GIST (geom_centroid); -- index gist (geom_surfacepoint) -CREATE INDEX ego_demand_la_zensus_cluster_geom_surfacepoint_idx - ON model_draft.ego_demand_la_zensus_cluster USING GIST (geom_surfacepoint); +CREATE INDEX ego_demand_la_zensus_cluster_geom_surfacepoint_idx + ON model_draft.ego_demand_la_zensus_cluster USING GIST (geom_surfacepoint); -- grant (oeuser) -ALTER TABLE model_draft.ego_demand_la_zensus_cluster OWNER TO oeuser; +ALTER TABLE model_draft.ego_demand_la_zensus_cluster OWNER TO oeuser; -- metadata COMMENT ON TABLE model_draft.ego_demand_la_zensus_cluster IS '{ - "Name": "ego zensus loads cluster", - "Source": [{ - "Name": "open_eGo", - "URL": "https://github.com/openego/data_processing"}], - "Reference date": "2016", - "Date of collection": "02.09.2016", - "Original file": ["ego_grid_hvmv_substation"], - "Spatial": [{ - "Resolution": "", - "Extend": "Germany" }], - "Description": ["osm laods"], - "Column":[ - {"Name": "id", "Description": "Unique identifier", "Unit": " " }, - {"Name": "area_ha", "Description": "Area", "Unit": "ha" }, - {"Name": "geom", "Description": "Geometry", "Unit": " " } ], - "Changes": [ - {"Name": "Ludee", "Mail": "", - "Date": "02.09.2015", "Comment": "Created mview" }, - {"Name": "Ludee", "Mail": "", - "Date": "17.12.2016", "Comment": "Added metadata" } ], - "Notes": [""], - "Licence": [{ - "Name": "", - "URL": "" }], - "Instructions for proper use": [" "] - }' ; - --- select description -SELECT obj_description('model_draft.ego_demand_la_zensus_cluster' ::regclass) ::json; + "comment": "eGoDP - Temporary table", + "version": "v0.3.0" }'; + + +-- insert cluster +INSERT INTO model_draft.ego_demand_la_zensus_cluster(geom) + SELECT (ST_DUMP(ST_MULTI(ST_UNION(grid.geom)))).geom ::geometry(Polygon,3035) AS geom + FROM model_draft.ego_demand_la_zensus AS grid; + +-- cluster data +UPDATE model_draft.ego_demand_la_zensus_cluster AS t1 + SET zensus_sum = t2.zensus_sum, + area_ha = t2.area_ha, + geom_buffer = t2.geom_buffer, + geom_centroid = t2.geom_centroid, + geom_surfacepoint = t2.geom_surfacepoint + FROM ( + SELECT cl.cid AS cid, + SUM(lp.population) AS zensus_sum, + COUNT(lp.geom) AS area_ha, + ST_BUFFER(cl.geom, 100) AS geom_buffer, + ST_Centroid(cl.geom) AS geom_centroid, + ST_PointOnSurface(cl.geom) AS geom_surfacepoint + FROM model_draft.ego_demand_la_zensus AS lp, + model_draft.ego_demand_la_zensus_cluster AS cl + WHERE cl.geom && lp.geom AND + ST_CONTAINS(cl.geom,lp.geom) + GROUP BY cl.cid + ORDER BY cl.cid + ) AS t2 + WHERE t1.cid = t2.cid; -- ego scenario log (version,io,schema_name,table_name,script_name,comment) SELECT ego_scenario_log('v0.3.0','output','model_draft','ego_demand_la_zensus_cluster','ego_dp_loadarea_census.sql',' '); -- zensus stats -DROP MATERIALIZED VIEW IF EXISTS model_draft.ego_society_zensus_per_la_mview CASCADE; -CREATE MATERIALIZED VIEW model_draft.ego_society_zensus_per_la_mview AS - SELECT 'destatis_zensus_population_per_ha_mview' AS name, - sum(population), - count(geom) AS census_count - FROM society.destatis_zensus_population_per_ha_mview - UNION ALL - SELECT 'ego_demand_la_zensus' AS name, - sum(population), - count(geom) AS census_count - FROM model_draft.ego_demand_la_zensus - UNION ALL - SELECT 'ego_demand_la_zensus_cluster' AS name, - sum(zensus_sum), - count(geom) AS census_count - FROM model_draft.ego_demand_la_zensus_cluster; +DROP MATERIALIZED VIEW IF EXISTS model_draft.ego_society_zensus_per_la_mview CASCADE; +CREATE MATERIALIZED VIEW model_draft.ego_society_zensus_per_la_mview AS + SELECT 'destatis_zensus_population_per_ha_mview' AS name, + sum(population), + count(geom) AS census_count + FROM society.destatis_zensus_population_per_ha_mview + UNION ALL + SELECT 'ego_demand_la_zensus' AS name, + sum(population), + count(geom) AS census_count + FROM model_draft.ego_demand_la_zensus + UNION ALL + SELECT 'ego_demand_la_zensus_cluster' AS name, + sum(zensus_sum), + count(geom) AS census_count + FROM model_draft.ego_demand_la_zensus_cluster; -- grant (oeuser) -ALTER TABLE model_draft.ego_society_zensus_per_la_mview OWNER TO oeuser; +ALTER TABLE model_draft.ego_society_zensus_per_la_mview OWNER TO oeuser; + +-- metadata +COMMENT ON MATERIALIZED VIEW model_draft.ego_society_zensus_per_la_mview IS '{ + "comment": "eGoDP - Temporary table", + "version": "v0.3.0" }'; -- ego scenario log (version,io,schema_name,table_name,script_name,comment) SELECT ego_scenario_log('v0.3.0','output','model_draft','ego_society_zensus_per_la_mview','ego_dp_loadarea_census.sql',' '); diff --git a/dataprocessing/sql_snippets/ego_dp_loadarea_loads.sql b/dataprocessing/sql_snippets/ego_dp_loadarea_loads.sql index 706725fb..96e7d79e 100644 --- a/dataprocessing/sql_snippets/ego_dp_loadarea_loads.sql +++ b/dataprocessing/sql_snippets/ego_dp_loadarea_loads.sql @@ -1,15 +1,16 @@ /* -osm loads -Excludes large scale consumer -Buffer osm urban sectors with 100m -Unbuffer buffer with -100m - -__copyright__ = "Reiner Lemoine Institut" -__license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" -__url__ = "https://github.com/openego/data_processing/blob/master/LICENSE" -__author__ = "Ludee" +OSM Loads from landuse +Excludes large scale consumer. +Buffer OSM urban sectors with 100m +Unbuffer buffer with -100m + +__copyright__ = "Reiner Lemoine Institut" +__license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" +__url__ = "https://github.com/openego/data_processing/blob/master/LICENSE" +__author__ = "Ludee" */ + -- ego scenario log (version,io,schema_name,table_name,script_name,comment) SELECT ego_scenario_log('v0.3.0','input','model_draft','ego_demand_hv_largescaleconsumer','ego_dp_loadarea_loads.sql',' '); diff --git a/dataprocessing/sql_snippets/ego_dp_mv_griddistrict.sql b/dataprocessing/sql_snippets/ego_dp_mv_griddistrict.sql index 8b9c91cb..30befb99 100644 --- a/dataprocessing/sql_snippets/ego_dp_mv_griddistrict.sql +++ b/dataprocessing/sql_snippets/ego_dp_mv_griddistrict.sql @@ -96,8 +96,8 @@ ALTER TABLE model_draft.ego_boundaries_hvmv_subst_per_gem_1_mview OWNER TO oeuse -- metadata COMMENT ON MATERIALIZED VIEW model_draft.ego_boundaries_hvmv_subst_per_gem_1_mview IS '{ - "comment": "eGoDP - Temporary table", - "version": "v0.3.0" }' ; + "comment": "eGoDP - Temporary table", + "version": "v0.3.0" }'; -- ego scenario log (version,io,schema_name,table_name,script_name,comment) SELECT ego_scenario_log('v0.3.0','temp','model_draft','ego_boundaries_hvmv_subst_per_gem_1_mview','ego_dp_mv_griddistrict.sql',' '); From 7884b39fb42c76c333d255b0e2f72fba0f5ada93 Mon Sep 17 00:00:00 2001 From: wolfbunke Date: Thu, 8 Feb 2018 11:50:55 +0100 Subject: [PATCH 038/104] add new script structure --- documentation/doc/index.rst | 7 +++++-- documentation/doc/preprocessing/modules.rst | 9 +++++++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/documentation/doc/index.rst b/documentation/doc/index.rst index 1815f46f..23fcbf9a 100644 --- a/documentation/doc/index.rst +++ b/documentation/doc/index.rst @@ -4,12 +4,15 @@ Welcome to Data processing documentation of open_eGo - .. image:: https://openegoproject.files.wordpress.com/2017/02/open_ego_logo_breit.png?w=400 :align: right :scale: 100% + + + + .. toctree:: :maxdepth: 7 :titlesonly: @@ -18,7 +21,7 @@ Welcome to Data processing documentation of open_eGo dataprocessing preprocessing scenario - + whatsnew diff --git a/documentation/doc/preprocessing/modules.rst b/documentation/doc/preprocessing/modules.rst index 54a894bf..8876b546 100644 --- a/documentation/doc/preprocessing/modules.rst +++ b/documentation/doc/preprocessing/modules.rst @@ -3,7 +3,12 @@ Preprocessing ============= -.. include:: ego_dp_res_rea_by_scenario.rst -.. include:: ego_dp_structure_boundaries_vg250.rst +. toctree:: + :maxdepth: 7 + :titlesonly: + + + ego_dp_res_rea_by_scenario + ego_dp_structure_boundaries_vg250 From 8f592a79c2c4b038edc3e2e1b804ba2ec94f9191 Mon Sep 17 00:00:00 2001 From: wolfbunke Date: Thu, 8 Feb 2018 12:00:46 +0100 Subject: [PATCH 039/104] add new structure --- documentation/doc/preprocessing/modules.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/documentation/doc/preprocessing/modules.rst b/documentation/doc/preprocessing/modules.rst index 8876b546..eebe6299 100644 --- a/documentation/doc/preprocessing/modules.rst +++ b/documentation/doc/preprocessing/modules.rst @@ -12,3 +12,4 @@ Preprocessing ego_dp_res_rea_by_scenario ego_dp_structure_boundaries_vg250 + ego_dp_structure_scenariolog From 3c374061e18237d96dbec2e3373f09658c2f9108 Mon Sep 17 00:00:00 2001 From: Ludee Date: Thu, 8 Feb 2018 12:01:52 +0100 Subject: [PATCH 040/104] update docu --- dataprocessing/eGo_data_processing.py | 2 +- .../sql_snippets/ego_dp_loadarea_census.sql | 1 - .../sql_snippets/ego_dp_loadarea_loadmelt.sql | 315 ++++++++++-------- 3 files changed, 175 insertions(+), 143 deletions(-) diff --git a/dataprocessing/eGo_data_processing.py b/dataprocessing/eGo_data_processing.py index cde593c6..c4e66332 100644 --- a/dataprocessing/eGo_data_processing.py +++ b/dataprocessing/eGo_data_processing.py @@ -59,7 +59,7 @@ def data_processing(): 'ego_dp_loadarea_industry_consumer.sql', # OSM Industry consumer 'ego_dp_loadarea_loads.sql', # OSM Loads from landuse 'ego_dp_loadarea_census.sql', # Loads from Census 2011 - 'ego_dp_loadarea_loadmelt.sql', # Melt OSM landuse and Zensus loads + 'ego_dp_loadarea_loadmelt.sql', # Melt loads from OSM landuse and Census 2011 'ego_dp_loadarea_loadcut_griddistrict.sql', # Cut Loadarea with MV Griddistrict 'ego_dp_loadarea_loadcut_voronoi.sql', # Cut Loadarea with MV Voronoi cells 'ego_dp_loadarea_consumption.sql', # Allocate consumption to Loadareas diff --git a/dataprocessing/sql_snippets/ego_dp_loadarea_census.sql b/dataprocessing/sql_snippets/ego_dp_loadarea_census.sql index 8b0ea87a..8fa908e0 100644 --- a/dataprocessing/sql_snippets/ego_dp_loadarea_census.sql +++ b/dataprocessing/sql_snippets/ego_dp_loadarea_census.sql @@ -106,7 +106,6 @@ COMMENT ON TABLE model_draft.ego_demand_la_zensus_cluster IS '{ "comment": "eGoDP - Temporary table", "version": "v0.3.0" }'; - -- insert cluster INSERT INTO model_draft.ego_demand_la_zensus_cluster(geom) SELECT (ST_DUMP(ST_MULTI(ST_UNION(grid.geom)))).geom ::geometry(Polygon,3035) AS geom diff --git a/dataprocessing/sql_snippets/ego_dp_loadarea_loadmelt.sql b/dataprocessing/sql_snippets/ego_dp_loadarea_loadmelt.sql index 95c1810d..299153a5 100644 --- a/dataprocessing/sql_snippets/ego_dp_loadarea_loadmelt.sql +++ b/dataprocessing/sql_snippets/ego_dp_loadarea_loadmelt.sql @@ -1,22 +1,18 @@ /* -combine osm and zensus load cluster -collect loads -buffer with 100m -validate geom -fix geoms with error - -__copyright__ = "Reiner Lemoine Institut" -__license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" -__url__ = "https://github.com/openego/data_processing/blob/master/LICENSE" -__author__ = "Ludee" +Melt loads from OSM landuse and Census 2011 +Collect loads from both sources. +Buffer collected loads with with 100m. +Unbuffer the collection with 100m. +Validate the melted geometries. +Fix geometries with error. +Check again for errors. + +__copyright__ = "Reiner Lemoine Institut" +__license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" +__url__ = "https://github.com/openego/data_processing/blob/master/LICENSE" +__author__ = "Ludee" */ --- collect loads -DROP TABLE IF EXISTS model_draft.ego_demand_load_collect CASCADE; -CREATE TABLE model_draft.ego_demand_load_collect ( - id SERIAL, - geom geometry(Polygon,3035), - CONSTRAINT ego_demand_load_collect_pkey PRIMARY KEY (id)); -- ego scenario log (version,io,schema_name,table_name,script_name,comment) SELECT ego_scenario_log('v0.3.0','input','model_draft','ego_demand_la_osm','ego_dp_loadarea_loadmelt.sql',' '); @@ -24,192 +20,229 @@ SELECT ego_scenario_log('v0.3.0','input','model_draft','ego_demand_la_osm','ego_ -- ego scenario log (version,io,schema_name,table_name,script_name,comment) SELECT ego_scenario_log('v0.3.0','input','model_draft','ego_demand_la_zensus_cluster','ego_dp_loadarea_loadmelt.sql',' '); --- insert loads OSM -INSERT INTO model_draft.ego_demand_load_collect (geom) - SELECT osm.geom - FROM model_draft.ego_demand_la_osm AS osm; - --- insert loads zensus cluster -INSERT INTO model_draft.ego_demand_load_collect (geom) - SELECT zensus.geom - FROM model_draft.ego_demand_la_zensus_cluster AS zensus; +-- collect loads +DROP TABLE IF EXISTS model_draft.ego_demand_load_collect CASCADE; +CREATE TABLE model_draft.ego_demand_load_collect ( + id SERIAL, + geom geometry(Polygon,3035), + CONSTRAINT ego_demand_load_collect_pkey PRIMARY KEY (id)); -- index GIST (geom) -CREATE INDEX ego_demand_load_collect_geom_idx - ON model_draft.ego_demand_load_collect USING GIST (geom); +CREATE INDEX ego_demand_load_collect_geom_idx + ON model_draft.ego_demand_load_collect USING GIST (geom); -- grant (oeuser) -ALTER TABLE model_draft.ego_demand_load_collect OWNER TO oeuser; +ALTER TABLE model_draft.ego_demand_load_collect OWNER TO oeuser; + +-- metadata +COMMENT ON TABLE model_draft.ego_demand_load_collect IS '{ + "comment": "eGoDP - Temporary table", + "version": "v0.3.0" }'; + +-- insert loads OSM +INSERT INTO model_draft.ego_demand_load_collect (geom) + SELECT osm.geom + FROM model_draft.ego_demand_la_osm AS osm; + +-- insert loads zensus cluster +INSERT INTO model_draft.ego_demand_load_collect (geom) + SELECT zensus.geom + FROM model_draft.ego_demand_la_zensus_cluster AS zensus; -- ego scenario log (version,io,schema_name,table_name,script_name,comment) SELECT ego_scenario_log('v0.3.0','temp','model_draft','ego_demand_load_collect','ego_dp_loadarea_loadmelt.sql',' '); --- buffer with 100m -DROP TABLE IF EXISTS model_draft.ego_demand_load_collect_buffer100 CASCADE; -CREATE TABLE model_draft.ego_demand_load_collect_buffer100 ( - id SERIAL, - geom geometry(Polygon,3035), - CONSTRAINT ego_demand_load_collect_buffer100_pkey PRIMARY KEY (id)); - --- insert buffer -INSERT INTO model_draft.ego_demand_load_collect_buffer100 (geom) - SELECT (ST_DUMP(ST_MULTI(ST_UNION( - ST_BUFFER(poly.geom, 100) - )))).geom ::geometry(Polygon,3035) AS geom - FROM model_draft.ego_demand_load_collect AS poly; +-- Buffer collected loads with with 100m +DROP TABLE IF EXISTS model_draft.ego_demand_load_collect_buffer100 CASCADE; +CREATE TABLE model_draft.ego_demand_load_collect_buffer100 ( + id SERIAL, + geom geometry(Polygon,3035), + CONSTRAINT ego_demand_load_collect_buffer100_pkey PRIMARY KEY (id)); -- index GIST (geom) -CREATE INDEX ego_demand_load_collect_buffer100_geom_idx - ON model_draft.ego_demand_load_collect_buffer100 USING GIST (geom); +CREATE INDEX ego_demand_load_collect_buffer100_geom_idx + ON model_draft.ego_demand_load_collect_buffer100 USING GIST (geom); -- grant (oeuser) -ALTER TABLE model_draft.ego_demand_load_collect_buffer100 OWNER TO oeuser; +ALTER TABLE model_draft.ego_demand_load_collect_buffer100 OWNER TO oeuser; + +-- metadata +COMMENT ON TABLE model_draft.ego_demand_load_collect_buffer100 IS '{ + "comment": "eGoDP - Temporary table", + "version": "v0.3.0" }'; + +-- insert buffer +INSERT INTO model_draft.ego_demand_load_collect_buffer100 (geom) + SELECT (ST_DUMP(ST_MULTI(ST_UNION( + ST_BUFFER(poly.geom, 100) + )))).geom ::geometry(Polygon,3035) AS geom + FROM model_draft.ego_demand_load_collect AS poly; -- ego scenario log (version,io,schema_name,table_name,script_name,comment) SELECT ego_scenario_log('v0.3.0','temp','model_draft','ego_demand_load_collect_buffer100','ego_dp_loadarea_loadmelt.sql',' '); --- unbuffer with 100m -DROP TABLE IF EXISTS model_draft.ego_demand_load_melt CASCADE; -CREATE TABLE model_draft.ego_demand_load_melt ( - id SERIAL, - geom geometry(Polygon,3035), - CONSTRAINT ego_demand_load_melt_pkey PRIMARY KEY (id)); - --- insert buffer -INSERT INTO model_draft.ego_demand_load_melt (geom) - SELECT (ST_DUMP(ST_MULTI(ST_UNION( - ST_BUFFER(buffer.geom, -100) - )))).geom ::geometry(Polygon,3035) AS geom - FROM model_draft.ego_demand_load_collect_buffer100 AS buffer - GROUP BY buffer.id - ORDER BY buffer.id; +-- Unbuffer the collection with 100m +DROP TABLE IF EXISTS model_draft.ego_demand_load_melt CASCADE; +CREATE TABLE model_draft.ego_demand_load_melt ( + id SERIAL, + geom geometry(Polygon,3035), + CONSTRAINT ego_demand_load_melt_pkey PRIMARY KEY (id)); -- index GIST (geom) -CREATE INDEX ego_demand_load_melt_geom_idx - ON model_draft.ego_demand_load_melt USING GIST (geom); +CREATE INDEX ego_demand_load_melt_geom_idx + ON model_draft.ego_demand_load_melt USING GIST (geom); -- grant (oeuser) -ALTER TABLE model_draft.ego_demand_load_melt OWNER TO oeuser; +ALTER TABLE model_draft.ego_demand_load_melt OWNER TO oeuser; + +-- metadata +COMMENT ON TABLE model_draft.ego_demand_load_melt IS '{ + "comment": "eGoDP - Temporary table", + "version": "v0.3.0" }'; + +-- insert buffer +INSERT INTO model_draft.ego_demand_load_melt (geom) + SELECT (ST_DUMP(ST_MULTI(ST_UNION( + ST_BUFFER(buffer.geom, -100) + )))).geom ::geometry(Polygon,3035) AS geom + FROM model_draft.ego_demand_load_collect_buffer100 AS buffer + GROUP BY buffer.id + ORDER BY buffer.id; -- ego scenario log (version,io,schema_name,table_name,script_name,comment) SELECT ego_scenario_log('v0.3.0','temp','model_draft','ego_demand_load_melt','ego_dp_loadarea_loadmelt.sql',' '); --- validate geom -DROP MATERIALIZED VIEW IF EXISTS model_draft.ego_demand_load_melt_error_geom_mview CASCADE; -CREATE MATERIALIZED VIEW model_draft.ego_demand_load_melt_error_geom_mview AS - SELECT test.id, - test.error, - reason(ST_IsValidDetail(test.geom)) AS error_reason, - ST_SetSRID(location(ST_IsValidDetail(test.geom)),3035) ::geometry(Point,3035) AS error_location, - test.geom ::geometry(Polygon,3035) AS geom - FROM ( - SELECT source.id AS id, -- PK - ST_IsValid(source.geom) AS error, - source.geom AS geom - FROM model_draft.ego_demand_load_melt AS source -- Table - ) AS test - WHERE test.error = FALSE; +-- Validate the melted geometries +DROP MATERIALIZED VIEW IF EXISTS model_draft.ego_demand_load_melt_error_geom_mview CASCADE; +CREATE MATERIALIZED VIEW model_draft.ego_demand_load_melt_error_geom_mview AS + SELECT test.id, + test.error, + reason(ST_IsValidDetail(test.geom)) AS error_reason, + ST_SetSRID(location(ST_IsValidDetail(test.geom)),3035) ::geometry(Point,3035) AS error_location, + test.geom ::geometry(Polygon,3035) AS geom + FROM ( + SELECT source.id AS id, -- PK + ST_IsValid(source.geom) AS error, + source.geom AS geom + FROM model_draft.ego_demand_load_melt AS source -- Table + ) AS test + WHERE test.error = FALSE; -- index (id) -CREATE UNIQUE INDEX ego_demand_load_melt_error_geom_mview_id_idx - ON model_draft.ego_demand_load_melt_error_geom_mview (id); +CREATE UNIQUE INDEX ego_demand_load_melt_error_geom_mview_id_idx + ON model_draft.ego_demand_load_melt_error_geom_mview (id); -- index GIST (geom) -CREATE INDEX ego_demand_load_melt_error_geom_mview_geom_idx - ON model_draft.ego_demand_load_melt_error_geom_mview USING GIST (geom); - +CREATE INDEX ego_demand_load_melt_error_geom_mview_geom_idx + ON model_draft.ego_demand_load_melt_error_geom_mview USING GIST (geom); + -- grant (oeuser) -ALTER TABLE model_draft.ego_demand_load_melt_error_geom_mview OWNER TO oeuser; +ALTER TABLE model_draft.ego_demand_load_melt_error_geom_mview OWNER TO oeuser; + +-- metadata +COMMENT ON MATERIALIZED VIEW model_draft.ego_demand_load_melt_error_geom_mview IS '{ + "comment": "eGoDP - Temporary table", + "version": "v0.3.0" }'; -- ego scenario log (version,io,schema_name,table_name,script_name,comment) SELECT ego_scenario_log('v0.3.0','temp','model_draft','ego_demand_load_melt_error_geom_mview','ego_dp_loadarea_loadmelt.sql',' '); --- fix geoms with error -DROP MATERIALIZED VIEW IF EXISTS model_draft.ego_demand_load_melt_error_geom_fix_mview CASCADE; -CREATE MATERIALIZED VIEW model_draft.ego_demand_load_melt_error_geom_fix_mview AS - SELECT fix.id AS id, - ST_IsValid(fix.geom) AS error, - GeometryType(fix.geom) AS geom_type, - ST_AREA(fix.geom) AS area, - fix.geom_buffer ::geometry(POLYGON,3035) AS geom_buffer, - fix.geom ::geometry(POLYGON,3035) AS geom - FROM ( - SELECT fehler.id AS id, - ST_BUFFER(fehler.geom, -1) AS geom_buffer, - (ST_DUMP(ST_BUFFER(ST_BUFFER(fehler.geom, -1), 1))).geom AS geom - FROM model_draft.ego_demand_load_melt_error_geom_mview AS fehler - ) AS fix - ORDER BY fix.id; +-- Fix geometries with error +DROP MATERIALIZED VIEW IF EXISTS model_draft.ego_demand_load_melt_error_geom_fix_mview CASCADE; +CREATE MATERIALIZED VIEW model_draft.ego_demand_load_melt_error_geom_fix_mview AS + SELECT fix.id AS id, + ST_IsValid(fix.geom) AS error, + GeometryType(fix.geom) AS geom_type, + ST_AREA(fix.geom) AS area, + fix.geom_buffer ::geometry(POLYGON,3035) AS geom_buffer, + fix.geom ::geometry(POLYGON,3035) AS geom + FROM ( + SELECT fehler.id AS id, + ST_BUFFER(fehler.geom, -1) AS geom_buffer, + (ST_DUMP(ST_BUFFER(ST_BUFFER(fehler.geom, -1), 1))).geom AS geom + FROM model_draft.ego_demand_load_melt_error_geom_mview AS fehler + ) AS fix + ORDER BY fix.id; -- index (id) -CREATE UNIQUE INDEX ego_demand_load_melt_error_geom_fix_mview_id_idx - ON model_draft.ego_demand_load_melt_error_geom_fix_mview (id); +CREATE UNIQUE INDEX ego_demand_load_melt_error_geom_fix_mview_id_idx + ON model_draft.ego_demand_load_melt_error_geom_fix_mview (id); -- index GIST (geom) -CREATE INDEX ego_demand_load_melt_error_geom_fix_mview_geom_idx - ON model_draft.ego_demand_load_melt_error_geom_fix_mview USING GIST (geom); - +CREATE INDEX ego_demand_load_melt_error_geom_fix_mview_geom_idx + ON model_draft.ego_demand_load_melt_error_geom_fix_mview USING GIST (geom); + -- grant (oeuser) -ALTER TABLE model_draft.ego_demand_load_melt_error_geom_fix_mview OWNER TO oeuser; +ALTER TABLE model_draft.ego_demand_load_melt_error_geom_fix_mview OWNER TO oeuser; + +-- metadata +COMMENT ON MATERIALIZED VIEW model_draft.ego_demand_load_melt_error_geom_fix_mview IS '{ + "comment": "eGoDP - Temporary table", + "version": "v0.3.0" }'; -- ego scenario log (version,io,schema_name,table_name,script_name,comment) SELECT ego_scenario_log('v0.3.0','temp','model_draft','ego_demand_load_melt_error_geom_fix_mview','ego_dp_loadarea_loadmelt.sql',' '); -- update fixed geoms -UPDATE model_draft.ego_demand_load_melt AS t1 - SET geom = t2.geom - FROM ( - SELECT fix.id AS id, - fix.geom AS geom - FROM model_draft.ego_demand_load_melt_error_geom_fix_mview AS fix - ) AS t2 - WHERE t1.id = t2.id; +UPDATE model_draft.ego_demand_load_melt AS t1 + SET geom = t2.geom + FROM ( + SELECT fix.id AS id, + fix.geom AS geom + FROM model_draft.ego_demand_load_melt_error_geom_fix_mview AS fix + ) AS t2 + WHERE t1.id = t2.id; -- ego scenario log (version,io,schema_name,table_name,script_name,comment) SELECT ego_scenario_log('v0.3.0','output','model_draft','ego_demand_load_melt','ego_dp_loadarea_loadmelt.sql',' '); --- check for errors again -DROP MATERIALIZED VIEW IF EXISTS model_draft.ego_demand_load_melt_error_2_geom_mview CASCADE; -CREATE MATERIALIZED VIEW model_draft.ego_demand_load_melt_error_2_geom_mview AS - SELECT test.id AS id, - test.error AS error, - reason(ST_IsValidDetail(test.geom)) AS error_reason, - ST_SetSRID(location(ST_IsValidDetail(test.geom)),3035) ::geometry(Point,3035) AS error_location, - ST_TRANSFORM(test.geom,3035) ::geometry(Polygon,3035) AS geom - FROM ( - SELECT source.id AS id, - ST_IsValid(source.geom) AS error, - source.geom ::geometry(Polygon,3035) AS geom - FROM model_draft.ego_demand_load_melt AS source - ) AS test - WHERE test.error = FALSE; +-- Check again for errors. +DROP MATERIALIZED VIEW IF EXISTS model_draft.ego_demand_load_melt_error_2_geom_mview CASCADE; +CREATE MATERIALIZED VIEW model_draft.ego_demand_load_melt_error_2_geom_mview AS + SELECT test.id AS id, + test.error AS error, + reason(ST_IsValidDetail(test.geom)) AS error_reason, + ST_SetSRID(location(ST_IsValidDetail(test.geom)),3035) ::geometry(Point,3035) AS error_location, + ST_TRANSFORM(test.geom,3035) ::geometry(Polygon,3035) AS geom + FROM ( + SELECT source.id AS id, + ST_IsValid(source.geom) AS error, + source.geom ::geometry(Polygon,3035) AS geom + FROM model_draft.ego_demand_load_melt AS source + ) AS test + WHERE test.error = FALSE; -- index (id) -CREATE UNIQUE INDEX ego_demand_load_melt_error_2_geom_mview_id_idx - ON model_draft.ego_demand_load_melt_error_2_geom_mview (id); +CREATE UNIQUE INDEX ego_demand_load_melt_error_2_geom_mview_id_idx + ON model_draft.ego_demand_load_melt_error_2_geom_mview (id); -- index GIST (geom) -CREATE INDEX ego_demand_load_melt_error_2_geom_mview_geom_idx - ON model_draft.ego_demand_load_melt_error_2_geom_mview USING GIST (geom); - +CREATE INDEX ego_demand_load_melt_error_2_geom_mview_geom_idx + ON model_draft.ego_demand_load_melt_error_2_geom_mview USING GIST (geom); + -- grant (oeuser) -ALTER TABLE model_draft.ego_demand_load_melt_error_2_geom_mview OWNER TO oeuser; +ALTER TABLE model_draft.ego_demand_load_melt_error_2_geom_mview OWNER TO oeuser; + +-- metadata +COMMENT ON MATERIALIZED VIEW model_draft.ego_demand_load_melt_error_2_geom_mview IS '{ + "comment": "eGoDP - Temporary table", + "version": "v0.3.0" }'; -- ego scenario log (version,io,schema_name,table_name,script_name,comment) SELECT ego_scenario_log('v0.3.0','temp','model_draft','ego_demand_load_melt_error_2_geom_mview','ego_dp_loadarea_loadmelt.sql',' '); /* -- drop temp -DROP TABLE IF EXISTS model_draft.ego_demand_load_collect CASCADE; -DROP TABLE IF EXISTS model_draft.ego_demand_load_collect_buffer100 CASCADE; -DROP TABLE IF EXISTS model_draft.ego_demand_load_melt CASCADE; -DROP MATERIALIZED VIEW IF EXISTS model_draft.ego_demand_load_melt_error_geom_mview CASCADE; -DROP MATERIALIZED VIEW IF EXISTS model_draft.ego_demand_load_melt_error_geom_fix_mview CASCADE; -DROP MATERIALIZED VIEW IF EXISTS model_draft.ego_demand_load_melt_error_2_geom_mview CASCADE; - */ \ No newline at end of file +DROP TABLE IF EXISTS model_draft.ego_demand_load_collect CASCADE; +DROP TABLE IF EXISTS model_draft.ego_demand_load_collect_buffer100 CASCADE; +DROP TABLE IF EXISTS model_draft.ego_demand_load_melt CASCADE; +DROP MATERIALIZED VIEW IF EXISTS model_draft.ego_demand_load_melt_error_geom_mview CASCADE; +DROP MATERIALIZED VIEW IF EXISTS model_draft.ego_demand_load_melt_error_geom_fix_mview CASCADE; +DROP MATERIALIZED VIEW IF EXISTS model_draft.ego_demand_load_melt_error_2_geom_mview CASCADE; +*/ From 13fa8a11cbf2be4b4139d8716a5b0dcbf40e3923 Mon Sep 17 00:00:00 2001 From: wolfbunke Date: Thu, 8 Feb 2018 13:00:26 +0100 Subject: [PATCH 041/104] fix toctree --- documentation/doc/preprocessing/modules.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/documentation/doc/preprocessing/modules.rst b/documentation/doc/preprocessing/modules.rst index eebe6299..5cf6722c 100644 --- a/documentation/doc/preprocessing/modules.rst +++ b/documentation/doc/preprocessing/modules.rst @@ -5,7 +5,7 @@ Preprocessing -. toctree:: +.. toctree:: :maxdepth: 7 :titlesonly: From 1e2219853b419cb584ec0501fd73b7a87c87b4ca Mon Sep 17 00:00:00 2001 From: wolfbunke Date: Thu, 8 Feb 2018 13:07:38 +0100 Subject: [PATCH 042/104] add new toc --- documentation/doc/preprocessing/modules.rst | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/documentation/doc/preprocessing/modules.rst b/documentation/doc/preprocessing/modules.rst index 5cf6722c..5229d12a 100644 --- a/documentation/doc/preprocessing/modules.rst +++ b/documentation/doc/preprocessing/modules.rst @@ -6,10 +6,7 @@ Preprocessing .. toctree:: - :maxdepth: 7 - :titlesonly: - - - ego_dp_res_rea_by_scenario - ego_dp_structure_boundaries_vg250 - ego_dp_structure_scenariolog + :glob: + boundaries/* + openstreetmap/* + ego* From 32b8958a4879f70df2766fb36e91368cdb287b6b Mon Sep 17 00:00:00 2001 From: wolfbunke Date: Thu, 8 Feb 2018 13:21:47 +0100 Subject: [PATCH 043/104] test toctree --- documentation/doc/preprocessing/modules.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/documentation/doc/preprocessing/modules.rst b/documentation/doc/preprocessing/modules.rst index 5229d12a..2c8c04a1 100644 --- a/documentation/doc/preprocessing/modules.rst +++ b/documentation/doc/preprocessing/modules.rst @@ -6,7 +6,8 @@ Preprocessing .. toctree:: - :glob: + :titlesonly: boundaries/* openstreetmap/* - ego* + + ego_dp_res_rea_by_scenario From ef7fe1ac9eb13a50ca1474b489dfeb03b867d132 Mon Sep 17 00:00:00 2001 From: Ludee Date: Thu, 8 Feb 2018 13:28:51 +0100 Subject: [PATCH 044/104] update doku --- dataprocessing/eGo_data_processing.py | 2 +- .../sql_snippets/ego_dp_loadarea_census.sql | 4 +- .../ego_dp_loadarea_loadcut_griddistrict.sql | 858 ++++++++++-------- .../sql_snippets/ego_dp_loadarea_loadmelt.sql | 2 +- 4 files changed, 462 insertions(+), 404 deletions(-) diff --git a/dataprocessing/eGo_data_processing.py b/dataprocessing/eGo_data_processing.py index c4e66332..22ae91ec 100644 --- a/dataprocessing/eGo_data_processing.py +++ b/dataprocessing/eGo_data_processing.py @@ -60,7 +60,7 @@ def data_processing(): 'ego_dp_loadarea_loads.sql', # OSM Loads from landuse 'ego_dp_loadarea_census.sql', # Loads from Census 2011 'ego_dp_loadarea_loadmelt.sql', # Melt loads from OSM landuse and Census 2011 - 'ego_dp_loadarea_loadcut_griddistrict.sql', # Cut Loadarea with MV Griddistrict + 'ego_dp_loadarea_loadcut_griddistrict.sql', # Cut Loadarea with MV Griddistrict 'ego_dp_loadarea_loadcut_voronoi.sql', # Cut Loadarea with MV Voronoi cells 'ego_dp_loadarea_consumption.sql', # Allocate consumption to Loadareas 'ego_dp_loadarea_peakload.sql', # Peak loads per Loadarea diff --git a/dataprocessing/sql_snippets/ego_dp_loadarea_census.sql b/dataprocessing/sql_snippets/ego_dp_loadarea_census.sql index 8fa908e0..c4f01667 100644 --- a/dataprocessing/sql_snippets/ego_dp_loadarea_census.sql +++ b/dataprocessing/sql_snippets/ego_dp_loadarea_census.sql @@ -1,7 +1,7 @@ /* Loads from Census 2011 -Include Census 2011 population per ha -Identify population in osm loads +Include Census 2011 population per ha. +Identify population in OSM loads. __copyright__ = "Reiner Lemoine Institut" __license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" diff --git a/dataprocessing/sql_snippets/ego_dp_loadarea_loadcut_griddistrict.sql b/dataprocessing/sql_snippets/ego_dp_loadarea_loadcut_griddistrict.sql index 254a0e4f..82ef235a 100644 --- a/dataprocessing/sql_snippets/ego_dp_loadarea_loadcut_griddistrict.sql +++ b/dataprocessing/sql_snippets/ego_dp_loadarea_loadcut_griddistrict.sql @@ -1,63 +1,73 @@ /* -loadareas per mv-griddistrict -insert cutted load melt -exclude smaller 100m² - -__copyright__ = "Reiner Lemoine Institut" -__license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" -__url__ = "https://github.com/openego/data_processing/blob/master/LICENSE" -__author__ = "Ludee" +Cut Loadarea with MV Griddistrict +Identify Loadarea smaller than 100m². +Exclude Loadarea smaller than 100m². +Generate Centre of Loadareas with Centroid and PointOnSurface. +Calculate population from Census 2011. +Cut all 4 OSM sectors with MV Griddistricts. +Calculate statistics like NUTS and AGS code. +Check for Loadareas without AGS code. + +__copyright__ = "Reiner Lemoine Institut" +__license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" +__url__ = "https://github.com/openego/data_processing/blob/master/LICENSE" +__author__ = "Ludee" */ -- loadareas per mv-griddistrict -DROP TABLE IF EXISTS model_draft.ego_demand_loadarea CASCADE; -CREATE TABLE model_draft.ego_demand_loadarea ( - id SERIAL NOT NULL, - subst_id integer, - area_ha numeric, - nuts varchar(5), - rs_0 varchar(12), - ags_0 varchar(12), - otg_id integer, - un_id integer, - zensus_sum integer, - zensus_count integer, - zensus_density numeric, - ioer_sum numeric, - ioer_count integer, - ioer_density numeric, - sector_area_residential numeric, - sector_area_retail numeric, - sector_area_industrial numeric, - sector_area_agricultural numeric, - sector_area_sum numeric, - sector_share_residential numeric, - sector_share_retail numeric, - sector_share_industrial numeric, - sector_share_agricultural numeric, - sector_share_sum numeric, - sector_count_residential integer, - sector_count_retail integer, - sector_count_industrial integer, - sector_count_agricultural integer, - sector_count_sum integer, - sector_consumption_residential double precision, - sector_consumption_retail double precision, - sector_consumption_industrial double precision, - sector_consumption_agricultural double precision, - sector_consumption_sum double precision, - sector_peakload_retail double precision, - sector_peakload_residential double precision, - sector_peakload_industrial double precision, - sector_peakload_agricultural double precision, - geom_centroid geometry(POINT,3035), - geom_surfacepoint geometry(POINT,3035), - geom_centre geometry(POINT,3035), - geom geometry(Polygon,3035), - CONSTRAINT ego_demand_loadarea_pkey PRIMARY KEY (id)); +DROP TABLE IF EXISTS model_draft.ego_demand_loadarea CASCADE; +CREATE TABLE model_draft.ego_demand_loadarea ( + id SERIAL NOT NULL, + subst_id integer, + area_ha numeric, + nuts varchar(5), + rs_0 varchar(12), + ags_0 varchar(12), + otg_id integer, + un_id integer, + zensus_sum integer, + zensus_count integer, + zensus_density numeric, + ioer_sum numeric, + ioer_count integer, + ioer_density numeric, + sector_area_residential numeric, + sector_area_retail numeric, + sector_area_industrial numeric, + sector_area_agricultural numeric, + sector_area_sum numeric, + sector_share_residential numeric, + sector_share_retail numeric, + sector_share_industrial numeric, + sector_share_agricultural numeric, + sector_share_sum numeric, + sector_count_residential integer, + sector_count_retail integer, + sector_count_industrial integer, + sector_count_agricultural integer, + sector_count_sum integer, + sector_consumption_residential double precision, + sector_consumption_retail double precision, + sector_consumption_industrial double precision, + sector_consumption_agricultural double precision, + sector_consumption_sum double precision, + sector_peakload_retail double precision, + sector_peakload_residential double precision, + sector_peakload_industrial double precision, + sector_peakload_agricultural double precision, + geom_centroid geometry(POINT,3035), + geom_surfacepoint geometry(POINT,3035), + geom_centre geometry(POINT,3035), + geom geometry(Polygon,3035), + CONSTRAINT ego_demand_loadarea_pkey PRIMARY KEY (id)); -- grant (oeuser) -ALTER TABLE model_draft.ego_demand_loadarea OWNER TO oeuser; +ALTER TABLE model_draft.ego_demand_loadarea OWNER TO oeuser; + +-- metadata +COMMENT ON TABLE model_draft.ego_demand_loadarea IS '{ + "comment": "eGoDP - Temporary table", + "version": "v0.3.0" }'; -- ego scenario log (version,io,schema_name,table_name,script_name,comment) SELECT ego_scenario_log('v0.3.0','input','model_draft','ego_demand_load_melt','ego_dp_loadarea_loadcut_griddistrict.sql',' '); @@ -67,498 +77,546 @@ SELECT ego_scenario_log('v0.3.0','input','model_draft','ego_grid_mv_griddistrict -- insert cutted load melt INSERT INTO model_draft.ego_demand_loadarea (geom) - SELECT c.geom ::geometry(Polygon,3035) - FROM (SELECT (ST_DUMP(ST_SAFE_INTERSECTION(a.geom,b.geom))).geom AS geom - FROM model_draft.ego_demand_load_melt AS a, - model_draft.ego_grid_mv_griddistrict AS b - WHERE a.geom && b.geom - ) AS c - WHERE ST_GeometryType(c.geom) = 'ST_Polygon'; + SELECT c.geom ::geometry(Polygon,3035) + FROM ( + SELECT (ST_DUMP(ST_SAFE_INTERSECTION(a.geom,b.geom))).geom AS geom + FROM model_draft.ego_demand_load_melt AS a, + model_draft.ego_grid_mv_griddistrict AS b + WHERE a.geom && b.geom + ) AS c + WHERE ST_GeometryType(c.geom) = 'ST_Polygon'; -- index GIST (geom_centroid) -CREATE INDEX ego_demand_loadarea_geom_centroid_idx - ON model_draft.ego_demand_loadarea USING GIST (geom_centroid); +CREATE INDEX ego_demand_loadarea_geom_centroid_idx + ON model_draft.ego_demand_loadarea USING GIST (geom_centroid); -- index GIST (geom_surfacepoint) -CREATE INDEX ego_demand_loadarea_geom_surfacepoint_idx - ON model_draft.ego_demand_loadarea USING GIST (geom_surfacepoint); +CREATE INDEX ego_demand_loadarea_geom_surfacepoint_idx + ON model_draft.ego_demand_loadarea USING GIST (geom_surfacepoint); -- index GIST (geom_centre) -CREATE INDEX ego_demand_loadarea_geom_centre_idx - ON model_draft.ego_demand_loadarea USING gist (geom_centre); +CREATE INDEX ego_demand_loadarea_geom_centre_idx + ON model_draft.ego_demand_loadarea USING gist (geom_centre); -- index GIST (geom) -CREATE INDEX ego_demand_loadarea_geom_idx - ON model_draft.ego_demand_loadarea USING gist (geom); +CREATE INDEX ego_demand_loadarea_geom_idx + ON model_draft.ego_demand_loadarea USING gist (geom); -- update area (area_ha) -UPDATE model_draft.ego_demand_loadarea AS t1 - SET area_ha = t2.area - FROM (SELECT loads.id, - ST_AREA(ST_TRANSFORM(loads.geom,3035))/10000 AS area - FROM model_draft.ego_demand_loadarea AS loads - ) AS t2 - WHERE t1.id = t2.id; - - --- validate area (area_ha) -> exclude smaller 100m² -DROP MATERIALIZED VIEW IF EXISTS model_draft.ego_demand_loadarea_smaller100m2_mview CASCADE; -CREATE MATERIALIZED VIEW model_draft.ego_demand_loadarea_smaller100m2_mview AS - SELECT loads.id AS id, - loads.area_ha AS area_ha, - loads.geom AS geom - FROM model_draft.ego_demand_loadarea AS loads - WHERE loads.area_ha < 0.001; +UPDATE model_draft.ego_demand_loadarea AS t1 + SET area_ha = t2.area + FROM ( + SELECT loads.id, + ST_AREA(ST_TRANSFORM(loads.geom,3035))/10000 AS area + FROM model_draft.ego_demand_loadarea AS loads + ) AS t2 + WHERE t1.id = t2.id; + + +-- Identify Loadarea smaller than 100m² +DROP MATERIALIZED VIEW IF EXISTS model_draft.ego_demand_loadarea_smaller100m2_mview CASCADE; +CREATE MATERIALIZED VIEW model_draft.ego_demand_loadarea_smaller100m2_mview AS + SELECT loads.id AS id, + loads.area_ha AS area_ha, + loads.geom AS geom + FROM model_draft.ego_demand_loadarea AS loads + WHERE loads.area_ha < 0.001; -- index (id) -CREATE UNIQUE INDEX ego_demand_loadarea_smaller100m2_mview_id_idx - ON model_draft.ego_demand_loadarea_smaller100m2_mview (id); +CREATE UNIQUE INDEX ego_demand_loadarea_smaller100m2_mview_id_idx + ON model_draft.ego_demand_loadarea_smaller100m2_mview (id); -- index GIST (geom) -CREATE INDEX ego_demand_loadarea_smaller100m2_mview_geom_idx - ON model_draft.ego_demand_loadarea_smaller100m2_mview USING GIST (geom); +CREATE INDEX ego_demand_loadarea_smaller100m2_mview_geom_idx + ON model_draft.ego_demand_loadarea_smaller100m2_mview USING GIST (geom); -- grant (oeuser) -ALTER TABLE model_draft.ego_demand_loadarea_smaller100m2_mview OWNER TO oeuser; +ALTER TABLE model_draft.ego_demand_loadarea_smaller100m2_mview OWNER TO oeuser; + +-- metadata +COMMENT ON TABLE ego_demand_loadarea_smaller100m2_mview.table IS '{ + "comment": "eGoDP - Temporary table", + "version": "v0.3.0" }'; -- ego scenario log (version,io,schema_name,table_name,script_name,comment) SELECT ego_scenario_log('v0.3.0','temp','model_draft','ego_demand_loadarea_smaller100m2_mview','ego_dp_loadarea_loadcut_griddistrict.sql',' '); --- remove errors (area_ha) -DELETE FROM model_draft.ego_demand_loadarea AS loads - WHERE loads.area_ha < 0.001; +-- Exclude Loadarea smaller than 100m² +DELETE FROM model_draft.ego_demand_loadarea AS loads + WHERE loads.area_ha < 0.001; -- ego scenario log (version,io,schema_name,table_name,script_name,comment) SELECT ego_scenario_log('v0.3.0','output','model_draft','ego_demand_loadarea','ego_dp_loadarea_loadcut_griddistrict.sql',' '); +-- Generate Centre of Loadareas with Centroid and PointOnSurface -- centroid -UPDATE model_draft.ego_demand_loadarea AS t1 - SET geom_centroid = t2.geom_centroid - FROM ( - SELECT loads.id AS id, - ST_Centroid(loads.geom) AS geom_centroid - FROM model_draft.ego_demand_loadarea AS loads - ) AS t2 - WHERE t1.id = t2.id; +UPDATE model_draft.ego_demand_loadarea AS t1 + SET geom_centroid = t2.geom_centroid + FROM ( + SELECT loads.id AS id, + ST_Centroid(loads.geom) AS geom_centroid + FROM model_draft.ego_demand_loadarea AS loads + ) AS t2 + WHERE t1.id = t2.id; -- surfacepoint -UPDATE model_draft.ego_demand_loadarea AS t1 - SET geom_surfacepoint = t2.geom_surfacepoint - FROM ( - SELECT loads.id AS id, - ST_PointOnSurface(loads.geom) AS geom_surfacepoint - FROM model_draft.ego_demand_loadarea AS loads - ) AS t2 - WHERE t1.id = t2.id; +UPDATE model_draft.ego_demand_loadarea AS t1 + SET geom_surfacepoint = t2.geom_surfacepoint + FROM ( + SELECT loads.id AS id, + ST_PointOnSurface(loads.geom) AS geom_surfacepoint + FROM model_draft.ego_demand_loadarea AS loads + ) AS t2 + WHERE t1.id = t2.id; -- centre with centroid if inside loadarea -UPDATE model_draft.ego_demand_loadarea AS t1 - SET geom_centre = t2.geom_centre - FROM ( - SELECT loads.id AS id, - loads.geom_centroid AS geom_centre - FROM model_draft.ego_demand_loadarea AS loads - WHERE loads.geom && loads.geom_centroid AND - ST_CONTAINS(loads.geom,loads.geom_centroid) - )AS t2 - WHERE t1.id = t2.id; +UPDATE model_draft.ego_demand_loadarea AS t1 + SET geom_centre = t2.geom_centre + FROM ( + SELECT loads.id AS id, + loads.geom_centroid AS geom_centre + FROM model_draft.ego_demand_loadarea AS loads + WHERE loads.geom && loads.geom_centroid AND + ST_CONTAINS(loads.geom,loads.geom_centroid) + )AS t2 + WHERE t1.id = t2.id; -- centre with surfacepoint if outside area -UPDATE model_draft.ego_demand_loadarea AS t1 - SET geom_centre = t2.geom_centre - FROM ( - SELECT loads.id AS id, - loads.geom_surfacepoint AS geom_centre - FROM model_draft.ego_demand_loadarea AS loads - WHERE loads.geom_centre IS NULL - )AS t2 - WHERE t1.id = t2.id; +UPDATE model_draft.ego_demand_loadarea AS t1 + SET geom_centre = t2.geom_centre + FROM ( + SELECT loads.id AS id, + loads.geom_surfacepoint AS geom_centre + FROM model_draft.ego_demand_loadarea AS loads + WHERE loads.geom_centre IS NULL + )AS t2 + WHERE t1.id = t2.id; /* -- validate geom_centre - SELECT loads.id AS id - FROM model_draft.ego_demand_loadarea AS loads - WHERE NOT ST_CONTAINS(loads.geom,loads.geom_centre); */ +SELECT loads.id AS id +FROM model_draft.ego_demand_loadarea AS loads +WHERE NOT ST_CONTAINS(loads.geom,loads.geom_centre); */ +-- Calculate population from Census 2011 -- ego scenario log (version,io,schema_name,table_name,script_name,comment) SELECT ego_scenario_log('v0.3.0','input','society','destatis_zensus_population_per_ha_mview','ego_dp_loadarea_loadcut_griddistrict.sql',' '); -- zensus 2011 population -UPDATE model_draft.ego_demand_loadarea AS t1 - SET zensus_sum = t2.zensus_sum, - zensus_count = t2.zensus_count, - zensus_density = t2.zensus_density - FROM (SELECT a.id AS id, - SUM(b.population)::integer AS zensus_sum, - COUNT(b.geom_point)::integer AS zensus_count, - (SUM(b.population)/COUNT(b.geom_point))::numeric AS zensus_density - FROM model_draft.ego_demand_loadarea AS a, - society.destatis_zensus_population_per_ha_mview AS b - WHERE a.geom && b.geom_point AND - ST_CONTAINS(a.geom,b.geom_point) - GROUP BY a.id - )AS t2 - WHERE t1.id = t2.id; +UPDATE model_draft.ego_demand_loadarea AS t1 + SET zensus_sum = t2.zensus_sum, + zensus_count = t2.zensus_count, + zensus_density = t2.zensus_density + FROM ( + SELECT a.id AS id, + SUM(b.population)::integer AS zensus_sum, + COUNT(b.geom_point)::integer AS zensus_count, + (SUM(b.population)/COUNT(b.geom_point))::numeric AS zensus_density + FROM model_draft.ego_demand_loadarea AS a, + society.destatis_zensus_population_per_ha_mview AS b + WHERE a.geom && b.geom_point AND + ST_CONTAINS(a.geom,b.geom_point) + GROUP BY a.id + )AS t2 + WHERE t1.id = t2.id; /* -- ego scenario log (version,io,schema_name,table_name,script_name,comment) SELECT ego_scenario_log('v0.3.0','input','economy','ioer_urban_share_industrial_centroid','ego_dp_loadarea_loadcut_griddistrict.sql',' '); -- ioer industry share -UPDATE model_draft.ego_demand_loadarea AS t1 - SET ioer_sum = t2.ioer_sum, - ioer_count = t2.ioer_count, - ioer_density = t2.ioer_density - FROM (SELECT loads.id AS id, - SUM(pts.ioer_share)/100::numeric AS ioer_sum, - COUNT(pts.geom)::integer AS ioer_count, - (SUM(pts.ioer_share)/COUNT(pts.geom))::numeric AS ioer_density - FROM model_draft.ego_demand_loadarea AS loads, - economy.ioer_urban_share_industrial_centroid AS pts - WHERE loads.geom && pts.geom AND - ST_CONTAINS(loads.geom,pts.geom) - GROUP BY loads.id - )AS t2 - WHERE t1.id = t2.id; */ - - --- 1. residential sector -DROP TABLE IF EXISTS model_draft.ego_osm_sector_per_griddistrict_1_residential CASCADE; -CREATE TABLE model_draft.ego_osm_sector_per_griddistrict_1_residential ( - id SERIAL NOT NULL, - geom geometry(Polygon,3035), - CONSTRAINT urban_sector_per_grid_district_1_residential_pkey PRIMARY KEY (id)); +UPDATE model_draft.ego_demand_loadarea AS t1 + SET ioer_sum = t2.ioer_sum, + ioer_count = t2.ioer_count, + ioer_density = t2.ioer_density + FROM ( + SELECT loads.id AS id, + SUM(pts.ioer_share)/100::numeric AS ioer_sum, + COUNT(pts.geom)::integer AS ioer_count, + (SUM(pts.ioer_share)/COUNT(pts.geom))::numeric AS ioer_density + FROM model_draft.ego_demand_loadarea AS loads, + economy.ioer_urban_share_industrial_centroid AS pts + WHERE loads.geom && pts.geom AND + ST_CONTAINS(loads.geom,pts.geom) + GROUP BY loads.id + )AS t2 + WHERE t1.id = t2.id; */ + + +-- Cut all 4 OSM sectors with MV Griddistricts +-- 1. Residential sector +DROP TABLE IF EXISTS model_draft.ego_osm_sector_per_griddistrict_1_residential CASCADE; +CREATE TABLE model_draft.ego_osm_sector_per_griddistrict_1_residential ( + id SERIAL NOT NULL, + geom geometry(Polygon,3035), + CONSTRAINT urban_sector_per_grid_district_1_residential_pkey PRIMARY KEY (id)); -- ego scenario log (version,io,schema_name,table_name,script_name,comment) SELECT ego_scenario_log('v0.3.0','input','openstreetmap','osm_deu_polygon_urban_sector_1_residential_mview','ego_dp_loadarea_loadcut_griddistrict.sql',' '); -- intersect sector with mv-griddistrict INSERT INTO model_draft.ego_osm_sector_per_griddistrict_1_residential (geom) - SELECT loads.geom ::geometry(Polygon,3035) - FROM (SELECT (ST_DUMP(ST_SAFE_INTERSECTION(loads.geom,dis.geom))).geom AS geom - FROM openstreetmap.osm_deu_polygon_urban_sector_1_residential_mview AS loads, - model_draft.ego_grid_mv_griddistrict AS dis - WHERE loads.geom && dis.geom - ) AS loads - WHERE ST_GeometryType(loads.geom) = 'ST_Polygon'; + SELECT loads.geom ::geometry(Polygon,3035) + FROM ( + SELECT (ST_DUMP(ST_SAFE_INTERSECTION(loads.geom,dis.geom))).geom AS geom + FROM openstreetmap.osm_deu_polygon_urban_sector_1_residential_mview AS loads, + model_draft.ego_grid_mv_griddistrict AS dis + WHERE loads.geom && dis.geom + ) AS loads + WHERE ST_GeometryType(loads.geom) = 'ST_Polygon'; -- index GIST (geom) -CREATE INDEX urban_sector_per_grid_district_1_residential_geom_idx - ON model_draft.ego_osm_sector_per_griddistrict_1_residential USING GIST (geom); +CREATE INDEX urban_sector_per_grid_district_1_residential_geom_idx + ON model_draft.ego_osm_sector_per_griddistrict_1_residential USING GIST (geom); -- grant (oeuser) -ALTER TABLE model_draft.ego_osm_sector_per_griddistrict_1_residential OWNER TO oeuser; +ALTER TABLE model_draft.ego_osm_sector_per_griddistrict_1_residential OWNER TO oeuser; -- sector stats -UPDATE model_draft.ego_demand_loadarea AS t1 - SET sector_area_residential = t2.sector_area, - sector_count_residential = t2.sector_count, - sector_share_residential = t2.sector_area / t2.area_ha - FROM ( - SELECT loads.id AS id, - SUM(ST_AREA(sector.geom)/10000) AS sector_area, - COUNT(sector.geom) AS sector_count, - loads.area_ha AS area_ha - FROM model_draft.ego_osm_sector_per_griddistrict_1_residential AS sector, - model_draft.ego_demand_loadarea AS loads - WHERE loads.geom && sector.geom AND - ST_INTERSECTS(loads.geom,ST_BUFFER(sector.geom,-1)) - GROUP BY loads.id - ) AS t2 - WHERE t1.id = t2.id; +UPDATE model_draft.ego_demand_loadarea AS t1 + SET sector_area_residential = t2.sector_area, + sector_count_residential = t2.sector_count, + sector_share_residential = t2.sector_area / t2.area_ha + FROM ( + SELECT loads.id AS id, + SUM(ST_AREA(sector.geom)/10000) AS sector_area, + COUNT(sector.geom) AS sector_count, + loads.area_ha AS area_ha + FROM model_draft.ego_osm_sector_per_griddistrict_1_residential AS sector, + model_draft.ego_demand_loadarea AS loads + WHERE loads.geom && sector.geom AND + ST_INTERSECTS(loads.geom,ST_BUFFER(sector.geom,-1)) + GROUP BY loads.id + ) AS t2 + WHERE t1.id = t2.id; + +-- metadata +COMMENT ON MATERIALIZED VIEW model_draft.ego_osm_sector_per_griddistrict_1_residential IS '{ + "comment": "eGoDP - Temporary table", + "version": "v0.3.0" }'; -- ego scenario log (version,io,schema_name,table_name,script_name,comment) SELECT ego_scenario_log('v0.3.0','output','model_draft','ego_osm_sector_per_griddistrict_1_residential','ego_dp_loadarea_loadcut_griddistrict.sql',' '); --- 2. retail sector -DROP TABLE IF EXISTS model_draft.ego_osm_sector_per_griddistrict_2_retail CASCADE; -CREATE TABLE model_draft.ego_osm_sector_per_griddistrict_2_retail ( - id SERIAL NOT NULL, - geom geometry(Polygon,3035), - CONSTRAINT urban_sector_per_grid_district_2_retail_pkey PRIMARY KEY (id)); +-- 2. Retail sector +DROP TABLE IF EXISTS model_draft.ego_osm_sector_per_griddistrict_2_retail CASCADE; +CREATE TABLE model_draft.ego_osm_sector_per_griddistrict_2_retail ( + id SERIAL NOT NULL, + geom geometry(Polygon,3035), + CONSTRAINT urban_sector_per_grid_district_2_retail_pkey PRIMARY KEY (id)); -- ego scenario log (version,io,schema_name,table_name,script_name,comment) SELECT ego_scenario_log('v0.3.0','input','openstreetmap','osm_deu_polygon_urban_sector_2_retail_mview','ego_dp_loadarea_loadcut_griddistrict.sql',' '); -- intersect sector with mv-griddistrict INSERT INTO model_draft.ego_osm_sector_per_griddistrict_2_retail (geom) - SELECT loads.geom ::geometry(Polygon,3035) - FROM (SELECT (ST_DUMP(ST_SAFE_INTERSECTION(loads.geom,dis.geom))).geom AS geom - FROM openstreetmap.osm_deu_polygon_urban_sector_2_retail_mview AS loads, - model_draft.ego_grid_mv_griddistrict AS dis - WHERE loads.geom && dis.geom - ) AS loads - WHERE ST_GeometryType(loads.geom) = 'ST_Polygon'; + SELECT loads.geom ::geometry(Polygon,3035) + FROM ( + SELECT (ST_DUMP(ST_SAFE_INTERSECTION(loads.geom,dis.geom))).geom AS geom + FROM openstreetmap.osm_deu_polygon_urban_sector_2_retail_mview AS loads, + model_draft.ego_grid_mv_griddistrict AS dis + WHERE loads.geom && dis.geom + ) AS loads + WHERE ST_GeometryType(loads.geom) = 'ST_Polygon'; -- index GIST (geom) -CREATE INDEX urban_sector_per_grid_district_2_retail_geom_idx - ON model_draft.ego_osm_sector_per_griddistrict_2_retail USING GIST (geom); +CREATE INDEX urban_sector_per_grid_district_2_retail_geom_idx + ON model_draft.ego_osm_sector_per_griddistrict_2_retail USING GIST (geom); -- grant (oeuser) -ALTER TABLE model_draft.ego_osm_sector_per_griddistrict_2_retail OWNER TO oeuser; +ALTER TABLE model_draft.ego_osm_sector_per_griddistrict_2_retail OWNER TO oeuser; -- sector stats -UPDATE model_draft.ego_demand_loadarea AS t1 - SET sector_area_retail = t2.sector_area, - sector_count_retail = t2.sector_count, - sector_share_retail = t2.sector_area / t2.area_ha - FROM ( - SELECT loads.id AS id, - SUM(ST_AREA(sector.geom)/10000) AS sector_area, - COUNT(sector.geom) AS sector_count, - loads.area_ha AS area_ha - FROM model_draft.ego_osm_sector_per_griddistrict_2_retail AS sector, - model_draft.ego_demand_loadarea AS loads - WHERE loads.geom && sector.geom AND - ST_INTERSECTS(loads.geom,ST_BUFFER(sector.geom,-1)) - GROUP BY loads.id - ) AS t2 - WHERE t1.id = t2.id; +UPDATE model_draft.ego_demand_loadarea AS t1 + SET sector_area_retail = t2.sector_area, + sector_count_retail = t2.sector_count, + sector_share_retail = t2.sector_area / t2.area_ha + FROM ( + SELECT loads.id AS id, + SUM(ST_AREA(sector.geom)/10000) AS sector_area, + COUNT(sector.geom) AS sector_count, + loads.area_ha AS area_ha + FROM model_draft.ego_osm_sector_per_griddistrict_2_retail AS sector, + model_draft.ego_demand_loadarea AS loads + WHERE loads.geom && sector.geom AND + ST_INTERSECTS(loads.geom,ST_BUFFER(sector.geom,-1)) + GROUP BY loads.id + ) AS t2 + WHERE t1.id = t2.id; + +-- metadata +COMMENT ON MATERIALIZED VIEW model_draft.ego_osm_sector_per_griddistrict_2_retail IS '{ + "comment": "eGoDP - Temporary table", + "version": "v0.3.0" }'; -- ego scenario log (version,io,schema_name,table_name,script_name,comment) SELECT ego_scenario_log('v0.3.0','output','model_draft','ego_osm_sector_per_griddistrict_2_retail','ego_dp_loadarea_loadcut_griddistrict.sql',' '); +-- filter Industrial without largescale +DROP MATERIALIZED VIEW IF EXISTS openstreetmap.osm_deu_polygon_urban_sector_3_industrial_nolargescale_mview CASCADE; +CREATE MATERIALIZED VIEW openstreetmap.osm_deu_polygon_urban_sector_3_industrial_nolargescale_mview AS + SELECT osm.* + FROM openstreetmap.osm_deu_polygon_urban AS osm + WHERE sector = '3' AND gid NOT IN (SELECT polygon_id FROM model_draft.ego_demand_hv_largescaleconsumer) + ORDER BY osm.gid; + -- ego scenario log (version,io,schema_name,table_name,script_name,comment) SELECT ego_scenario_log('v0.3.0','input','openstreetmap','osm_deu_polygon_urban','ego_dp_loadarea_loadcut_griddistrict.sql',' '); - --- filter Industrial without largescale -DROP MATERIALIZED VIEW IF EXISTS openstreetmap.osm_deu_polygon_urban_sector_3_industrial_nolargescale_mview CASCADE; -CREATE MATERIALIZED VIEW openstreetmap.osm_deu_polygon_urban_sector_3_industrial_nolargescale_mview AS - SELECT osm.* - FROM openstreetmap.osm_deu_polygon_urban AS osm - WHERE sector = '3' AND gid NOT IN (SELECT polygon_id FROM model_draft.ego_demand_hv_largescaleconsumer) -ORDER BY osm.gid; - -- index (id) -CREATE UNIQUE INDEX osm_deu_polygon_urban_sector_3_industrial_nolargescale_mview_gid_idx - ON openstreetmap.osm_deu_polygon_urban_sector_3_industrial_nolargescale_mview (gid); +CREATE UNIQUE INDEX osm_deu_polygon_urban_sector_3_industrial_nolargescale_mview_gid_idx + ON openstreetmap.osm_deu_polygon_urban_sector_3_industrial_nolargescale_mview (gid); -- index GIST (geom) -CREATE INDEX osm_deu_polygon_urban_sector_3_industrial_nolargescale_mview_geom_idx - ON openstreetmap.osm_deu_polygon_urban_sector_3_industrial_nolargescale_mview USING GIST (geom); - +CREATE INDEX osm_deu_polygon_urban_sector_3_industrial_nolargescale_mview_geom_idx + ON openstreetmap.osm_deu_polygon_urban_sector_3_industrial_nolargescale_mview USING GIST (geom); + -- grant (oeuser) -ALTER TABLE openstreetmap.osm_deu_polygon_urban_sector_3_industrial_nolargescale_mview OWNER TO oeuser; +ALTER TABLE openstreetmap.osm_deu_polygon_urban_sector_3_industrial_nolargescale_mview OWNER TO oeuser; + +-- metadata +COMMENT ON MATERIALIZED VIEW model_draft.osm_deu_polygon_urban_sector_3_industrial_nolargescale_mview IS '{ + "comment": "eGoDP - Temporary table", + "version": "v0.3.0" }'; -- ego scenario log (version,io,schema_name,table_name,script_name,comment) SELECT ego_scenario_log('v0.3.0','output','openstreetmap','osm_deu_polygon_urban_sector_3_industrial_nolargescale_mview','setup_osm_landuse.sql',' '); + /* -- check -SELECT 'industrial' AS name, - count(ind.*) AS cnt -FROM openstreetmap.osm_deu_polygon_urban_sector_3_industrial_mview ind +SELECT 'industrial' AS name, + count(ind.*) AS cnt +FROM openstreetmap.osm_deu_polygon_urban_sector_3_industrial_mview ind UNION ALL -SELECT 'largescale' AS name, - count(ls.*) AS cnt -FROM model_draft.ego_demand_hv_largescaleconsumer ls +SELECT 'largescale' AS name, + count(ls.*) AS cnt +FROM model_draft.ego_demand_hv_largescaleconsumer ls UNION ALL -SELECT 'nolargescale' AS name, - count(nols.*) AS cnt -FROM openstreetmap.osm_deu_polygon_urban_sector_3_industrial_nolargescale_mview nols; - */ +SELECT 'nolargescale' AS name, + count(nols.*) AS cnt +FROM openstreetmap.osm_deu_polygon_urban_sector_3_industrial_nolargescale_mview nols; +*/ + -- 3. industrial sector -DROP TABLE IF EXISTS model_draft.ego_osm_sector_per_griddistrict_3_industrial CASCADE; -CREATE TABLE model_draft.ego_osm_sector_per_griddistrict_3_industrial ( - id SERIAL NOT NULL, - geom geometry(Polygon,3035), - CONSTRAINT urban_sector_per_grid_district_3_industrial_pkey PRIMARY KEY (id)); +DROP TABLE IF EXISTS model_draft.ego_osm_sector_per_griddistrict_3_industrial CASCADE; +CREATE TABLE model_draft.ego_osm_sector_per_griddistrict_3_industrial ( + id SERIAL NOT NULL, + geom geometry(Polygon,3035), + CONSTRAINT urban_sector_per_grid_district_3_industrial_pkey PRIMARY KEY (id)); -- intersect sector with mv-griddistrict INSERT INTO model_draft.ego_osm_sector_per_griddistrict_3_industrial (geom) - SELECT loads.geom ::geometry(Polygon,3035) - FROM (SELECT (ST_DUMP(ST_SAFE_INTERSECTION(loads.geom,dis.geom))).geom AS geom - FROM openstreetmap.osm_deu_polygon_urban_sector_3_industrial_nolargescale_mview AS loads, - model_draft.ego_grid_mv_griddistrict AS dis - WHERE loads.geom && dis.geom - ) AS loads - WHERE ST_GeometryType(loads.geom) = 'ST_Polygon'; + SELECT loads.geom ::geometry(Polygon,3035) + FROM ( + SELECT (ST_DUMP(ST_SAFE_INTERSECTION(loads.geom,dis.geom))).geom AS geom + FROM openstreetmap.osm_deu_polygon_urban_sector_3_industrial_nolargescale_mview AS loads, + model_draft.ego_grid_mv_griddistrict AS dis + WHERE loads.geom && dis.geom + ) AS loads + WHERE ST_GeometryType(loads.geom) = 'ST_Polygon'; -- index GIST (geom) -CREATE INDEX urban_sector_per_grid_district_3_industrial_geom_idx - ON model_draft.ego_osm_sector_per_griddistrict_3_industrial USING GIST (geom); +CREATE INDEX urban_sector_per_grid_district_3_industrial_geom_idx + ON model_draft.ego_osm_sector_per_griddistrict_3_industrial USING GIST (geom); -- grant (oeuser) -ALTER TABLE model_draft.ego_osm_sector_per_griddistrict_3_industrial OWNER TO oeuser; +ALTER TABLE model_draft.ego_osm_sector_per_griddistrict_3_industrial OWNER TO oeuser; -- sector stats -UPDATE model_draft.ego_demand_loadarea AS t1 - SET sector_area_industrial = t2.sector_area, - sector_count_industrial = t2.sector_count, - sector_share_industrial = t2.sector_area / t2.area_ha - FROM ( - SELECT loads.id AS id, - SUM(ST_AREA(sector.geom)/10000) AS sector_area, - COUNT(sector.geom) AS sector_count, - loads.area_ha AS area_ha - FROM model_draft.ego_osm_sector_per_griddistrict_3_industrial AS sector, - model_draft.ego_demand_loadarea AS loads - WHERE loads.geom && sector.geom AND - ST_INTERSECTS(loads.geom,ST_BUFFER(sector.geom,-1)) - GROUP BY loads.id - ) AS t2 - WHERE t1.id = t2.id; +UPDATE model_draft.ego_demand_loadarea AS t1 + SET sector_area_industrial = t2.sector_area, + sector_count_industrial = t2.sector_count, + sector_share_industrial = t2.sector_area / t2.area_ha + FROM ( + SELECT loads.id AS id, + SUM(ST_AREA(sector.geom)/10000) AS sector_area, + COUNT(sector.geom) AS sector_count, + loads.area_ha AS area_ha + FROM model_draft.ego_osm_sector_per_griddistrict_3_industrial AS sector, + model_draft.ego_demand_loadarea AS loads + WHERE loads.geom && sector.geom AND + ST_INTERSECTS(loads.geom,ST_BUFFER(sector.geom,-1)) + GROUP BY loads.id + ) AS t2 + WHERE t1.id = t2.id; + +-- metadata +COMMENT ON MATERIALIZED VIEW model_draft.ego_osm_sector_per_griddistrict_3_industrial IS '{ + "comment": "eGoDP - Temporary table", + "version": "v0.3.0" }'; -- ego scenario log (version,io,schema_name,table_name,script_name,comment) SELECT ego_scenario_log('v0.3.0','output','model_draft','ego_osm_sector_per_griddistrict_3_industrial','ego_dp_loadarea_loadcut_griddistrict.sql',' '); -- 4. agricultural sector -DROP TABLE IF EXISTS model_draft.ego_osm_sector_per_griddistrict_4_agricultural CASCADE; -CREATE TABLE model_draft.ego_osm_sector_per_griddistrict_4_agricultural ( - id SERIAL NOT NULL, - geom geometry(Polygon,3035), -CONSTRAINT urban_sector_per_grid_district_4_agricultural_pkey PRIMARY KEY (id)); +DROP TABLE IF EXISTS model_draft.ego_osm_sector_per_griddistrict_4_agricultural CASCADE; +CREATE TABLE model_draft.ego_osm_sector_per_griddistrict_4_agricultural ( + id SERIAL NOT NULL, + geom geometry(Polygon,3035), + CONSTRAINT urban_sector_per_grid_district_4_agricultural_pkey PRIMARY KEY (id)); -- ego scenario log (version,io,schema_name,table_name,script_name,comment) SELECT ego_scenario_log('v0.3.0','input','openstreetmap','osm_deu_polygon_urban_sector_4_agricultural_mview','ego_dp_loadarea_loadcut_griddistrict.sql',' '); -- intersect sector with mv-griddistrict -INSERT INTO model_draft.ego_osm_sector_per_griddistrict_4_agricultural (geom) - SELECT loads.geom ::geometry(Polygon,3035) - FROM (SELECT (ST_DUMP(ST_SAFE_INTERSECTION(loads.geom,dis.geom))).geom AS geom - FROM openstreetmap.osm_deu_polygon_urban_sector_4_agricultural_mview AS loads, - model_draft.ego_grid_mv_griddistrict AS dis - WHERE loads.geom && dis.geom - ) AS loads - WHERE ST_GeometryType(loads.geom) = 'ST_Polygon'; +INSERT INTO model_draft.ego_osm_sector_per_griddistrict_4_agricultural (geom) + SELECT loads.geom ::geometry(Polygon,3035) + FROM ( + SELECT (ST_DUMP(ST_SAFE_INTERSECTION(loads.geom,dis.geom))).geom AS geom + FROM openstreetmap.osm_deu_polygon_urban_sector_4_agricultural_mview AS loads, + model_draft.ego_grid_mv_griddistrict AS dis + WHERE loads.geom && dis.geom + ) AS loads + WHERE ST_GeometryType(loads.geom) = 'ST_Polygon'; -- index GIST (geom) -CREATE INDEX urban_sector_per_grid_district_4_agricultural_geom_idx - ON model_draft.ego_osm_sector_per_griddistrict_4_agricultural USING GIST (geom); +CREATE INDEX urban_sector_per_grid_district_4_agricultural_geom_idx + ON model_draft.ego_osm_sector_per_griddistrict_4_agricultural USING GIST (geom); -- grant (oeuser) -ALTER TABLE model_draft.ego_osm_sector_per_griddistrict_4_agricultural OWNER TO oeuser; +ALTER TABLE model_draft.ego_osm_sector_per_griddistrict_4_agricultural OWNER TO oeuser; -- sector stats -UPDATE model_draft.ego_demand_loadarea AS t1 - SET sector_area_agricultural = t2.sector_area, - sector_count_agricultural = t2.sector_count, - sector_share_agricultural = t2.sector_area / t2.area_ha - FROM ( - SELECT loads.id AS id, - SUM(ST_AREA(sector.geom)/10000) AS sector_area, - COUNT(sector.geom) AS sector_count, - loads.area_ha AS area_ha - FROM model_draft.ego_osm_sector_per_griddistrict_4_agricultural AS sector, - model_draft.ego_demand_loadarea AS loads - WHERE loads.geom && sector.geom AND - ST_INTERSECTS(loads.geom,ST_BUFFER(sector.geom,-1)) - GROUP BY loads.id - ) AS t2 - WHERE t1.id = t2.id; +UPDATE model_draft.ego_demand_loadarea AS t1 + SET sector_area_agricultural = t2.sector_area, + sector_count_agricultural = t2.sector_count, + sector_share_agricultural = t2.sector_area / t2.area_ha + FROM ( + SELECT loads.id AS id, + SUM(ST_AREA(sector.geom)/10000) AS sector_area, + COUNT(sector.geom) AS sector_count, + loads.area_ha AS area_ha + FROM model_draft.ego_osm_sector_per_griddistrict_4_agricultural AS sector, + model_draft.ego_demand_loadarea AS loads + WHERE loads.geom && sector.geom AND + ST_INTERSECTS(loads.geom,ST_BUFFER(sector.geom,-1)) + GROUP BY loads.id + ) AS t2 + WHERE t1.id = t2.id; + +-- metadata +COMMENT ON MATERIALIZED VIEW model_draft.ego_osm_sector_per_griddistrict_4_agricultural IS '{ + "comment": "eGoDP - Temporary table", + "version": "v0.3.0" }'; -- ego scenario log (version,io,schema_name,table_name,script_name,comment) SELECT ego_scenario_log('v0.3.0','output','model_draft','ego_osm_sector_per_griddistrict_4_agricultural','ego_dp_loadarea_loadcut_griddistrict.sql',' '); -- sector stats -UPDATE model_draft.ego_demand_loadarea AS t1 - SET sector_area_sum = t2.sector_area_sum, - sector_share_sum = t2.sector_share_sum, - sector_count_sum = t2.sector_count_sum - FROM ( - SELECT id, - coalesce(load.sector_area_residential,0) + - coalesce(load.sector_area_retail,0) + - coalesce(load.sector_area_industrial,0) + - coalesce(load.sector_area_agricultural,0) AS sector_area_sum, - coalesce(load.sector_share_residential,0) + - coalesce(load.sector_share_retail,0) + - coalesce(load.sector_share_industrial,0) + - coalesce(load.sector_share_agricultural,0) AS sector_share_sum, - coalesce(load.sector_count_residential,0) + - coalesce(load.sector_count_retail,0) + - coalesce(load.sector_count_industrial,0) + - coalesce(load.sector_count_agricultural,0) AS sector_count_sum - FROM model_draft.ego_demand_loadarea AS load - ) AS t2 - WHERE t1.id = t2.id; +UPDATE model_draft.ego_demand_loadarea AS t1 + SET sector_area_sum = t2.sector_area_sum, + sector_share_sum = t2.sector_share_sum, + sector_count_sum = t2.sector_count_sum + FROM ( + SELECT id, + coalesce(load.sector_area_residential,0) + + coalesce(load.sector_area_retail,0) + + coalesce(load.sector_area_industrial,0) + + coalesce(load.sector_area_agricultural,0) AS sector_area_sum, + coalesce(load.sector_share_residential,0) + + coalesce(load.sector_share_retail,0) + + coalesce(load.sector_share_industrial,0) + + coalesce(load.sector_share_agricultural,0) AS sector_share_sum, + coalesce(load.sector_count_residential,0) + + coalesce(load.sector_count_retail,0) + + coalesce(load.sector_count_industrial,0) + + coalesce(load.sector_count_agricultural,0) AS sector_count_sum + FROM model_draft.ego_demand_loadarea AS load + ) AS t2 + WHERE t1.id = t2.id; -- ego scenario log (version,io,schema_name,table_name,script_name,comment) SELECT ego_scenario_log('v0.3.0','input','model_draft','ego_boundaries_bkg_vg250_6_gem_clean','ego_dp_loadarea_loadcut_griddistrict.sql',' '); +-- Calculate statistics like NUTS and AGS code -- nuts code (nuts) -UPDATE model_draft.ego_demand_loadarea AS t1 - SET nuts = t2.nuts - FROM ( - SELECT loads.id AS id, - vg.nuts AS nuts - FROM model_draft.ego_demand_loadarea AS loads, - model_draft.ego_boundaries_bkg_vg250_6_gem_clean AS vg - WHERE vg.geom && loads.geom_centre AND - ST_CONTAINS(vg.geom,loads.geom_centre) - ) AS t2 - WHERE t1.id = t2.id; +UPDATE model_draft.ego_demand_loadarea AS t1 + SET nuts = t2.nuts + FROM ( + SELECT loads.id AS id, + vg.nuts AS nuts + FROM model_draft.ego_demand_loadarea AS loads, + model_draft.ego_boundaries_bkg_vg250_6_gem_clean AS vg + WHERE vg.geom && loads.geom_centre AND + ST_CONTAINS(vg.geom,loads.geom_centre) + ) AS t2 + WHERE t1.id = t2.id; -- regionalschlüssel (rs_0) -UPDATE model_draft.ego_demand_loadarea AS t1 - SET rs_0 = t2.rs_0 - FROM ( - SELECT loads.id, - vg.rs_0 - FROM model_draft.ego_demand_loadarea AS loads, - model_draft.ego_boundaries_bkg_vg250_6_gem_clean AS vg - WHERE vg.geom && loads.geom_centre AND - ST_CONTAINS(vg.geom,loads.geom_centre) - ) AS t2 - WHERE t1.id = t2.id; +UPDATE model_draft.ego_demand_loadarea AS t1 + SET rs_0 = t2.rs_0 + FROM ( + SELECT loads.id, + vg.rs_0 + FROM model_draft.ego_demand_loadarea AS loads, + model_draft.ego_boundaries_bkg_vg250_6_gem_clean AS vg + WHERE vg.geom && loads.geom_centre AND + ST_CONTAINS(vg.geom,loads.geom_centre) + ) AS t2 + WHERE t1.id = t2.id; -- gemeindeschlüssel (ags_0) -UPDATE model_draft.ego_demand_loadarea AS t1 - SET ags_0 = t2.ags_0 - FROM ( - SELECT loads.id AS id, - vg.ags_0 AS ags_0 - FROM model_draft.ego_demand_loadarea AS loads, - model_draft.ego_boundaries_bkg_vg250_6_gem_clean AS vg - WHERE vg.geom && loads.geom_centre AND - ST_CONTAINS(vg.geom,loads.geom_centre) - ) AS t2 - WHERE t1.id = t2.id; +UPDATE model_draft.ego_demand_loadarea AS t1 + SET ags_0 = t2.ags_0 + FROM ( + SELECT loads.id AS id, + vg.ags_0 AS ags_0 + FROM model_draft.ego_demand_loadarea AS loads, + model_draft.ego_boundaries_bkg_vg250_6_gem_clean AS vg + WHERE vg.geom && loads.geom_centre AND + ST_CONTAINS(vg.geom,loads.geom_centre) + ) AS t2 + WHERE t1.id = t2.id; -- substation id -UPDATE model_draft.ego_demand_loadarea AS t1 - SET subst_id = t2.subst_id - FROM ( - SELECT a.id AS id, - b.subst_id AS subst_id - FROM model_draft.ego_demand_loadarea AS a, - model_draft.ego_grid_mv_griddistrict AS b - WHERE b.geom && a.geom_centre AND - ST_CONTAINS(b.geom,a.geom_centre) - ) AS t2 - WHERE t1.id = t2.id; +UPDATE model_draft.ego_demand_loadarea AS t1 + SET subst_id = t2.subst_id + FROM ( + SELECT a.id AS id, + b.subst_id AS subst_id + FROM model_draft.ego_demand_loadarea AS a, + model_draft.ego_grid_mv_griddistrict AS b + WHERE b.geom && a.geom_centre AND + ST_CONTAINS(b.geom,a.geom_centre) + ) AS t2 + WHERE t1.id = t2.id; -- ego scenario log (version,io,schema_name,table_name,script_name,comment) SELECT ego_scenario_log('v0.3.0','output','model_draft','ego_demand_loadarea','ego_dp_loadarea_loadcut_griddistrict.sql',' '); --- loads without ags_0 -DROP MATERIALIZED VIEW IF EXISTS model_draft.ego_demand_loadarea_error_noags_mview CASCADE; -CREATE MATERIALIZED VIEW model_draft.ego_demand_loadarea_error_noags_mview AS - SELECT loads.id, - loads.geom - FROM model_draft.ego_demand_loadarea AS loads - WHERE loads.ags_0 IS NULL; +-- Check for Loadareas without AGS code +DROP MATERIALIZED VIEW IF EXISTS model_draft.ego_demand_loadarea_error_noags_mview CASCADE; +CREATE MATERIALIZED VIEW model_draft.ego_demand_loadarea_error_noags_mview AS + SELECT loads.id, + loads.geom + FROM model_draft.ego_demand_loadarea AS loads + WHERE loads.ags_0 IS NULL; -- index (id) -CREATE UNIQUE INDEX ego_demand_loadarea_error_noags_mview_id_idx - ON model_draft.ego_demand_loadarea_error_noags_mview (id); +CREATE UNIQUE INDEX ego_demand_loadarea_error_noags_mview_id_idx + ON model_draft.ego_demand_loadarea_error_noags_mview (id); -- index GIST (geom) -CREATE INDEX ego_demand_loadarea_error_noags_mview_geom_idx - ON model_draft.ego_demand_loadarea_error_noags_mview USING GIST (geom); +CREATE INDEX ego_demand_loadarea_error_noags_mview_geom_idx + ON model_draft.ego_demand_loadarea_error_noags_mview USING GIST (geom); -- grant (oeuser) -ALTER TABLE model_draft.ego_demand_loadarea_error_noags_mview OWNER TO oeuser; +ALTER TABLE model_draft.ego_demand_loadarea_error_noags_mview OWNER TO oeuser; + +-- metadata +COMMENT ON MATERIALIZED VIEW model_draft.ego_demand_loadarea_error_noags_mview IS '{ + "comment": "eGoDP - Temporary table", + "version": "v0.3.0" }'; -- ego scenario log (version,io,schema_name,table_name,script_name,comment) SELECT ego_scenario_log('v0.3.0','temp','model_draft','ego_demand_loadarea_error_noags_mview','ego_dp_loadarea_loadcut_griddistrict.sql',' '); @@ -585,15 +643,15 @@ CREATE TABLE model_draft.ego_demand_loadarea_ta AS subst_id = '593'; -- PK -ALTER TABLE model_draft.ego_demand_loadarea_ta +ALTER TABLE model_draft.ego_demand_loadarea_ta ADD PRIMARY KEY (id); -- index GIST (geom) -CREATE INDEX ego_demand_loadarea_ta_geom_idx - ON model_draft.ego_demand_loadarea_ta USING GIST (geom); +CREATE INDEX ego_demand_loadarea_ta_geom_idx + ON model_draft.ego_demand_loadarea_ta USING GIST (geom); -- grant (oeuser) -ALTER TABLE model_draft.ego_demand_loadarea_ta OWNER TO oeuser; +ALTER TABLE model_draft.ego_demand_loadarea_ta OWNER TO oeuser; -- ego scenario log (version,io,schema_name,table_name,script_name,comment) SELECT ego_scenario_log('v0.3.0','temp','model_draft','ego_demand_loadarea_ta','ego_dp_loadarea_loadcut_griddistrict.sql',' '); @@ -611,19 +669,19 @@ CREATE TABLE model_draft.ego_demand_loadarea_spf AS ORDER BY loads.id; -- PK -ALTER TABLE model_draft.ego_demand_loadarea_spf +ALTER TABLE model_draft.ego_demand_loadarea_spf ADD PRIMARY KEY (id); -- index GIST (geom) CREATE INDEX ego_demand_loadarea_spf_geom_idx - ON model_draft.ego_demand_loadarea_spf USING GIST (geom); + ON model_draft.ego_demand_loadarea_spf USING GIST (geom); -- index GIST (geom_centre) CREATE INDEX ego_demand_loadarea_spf_geom_centre_idx ON model_draft.ego_demand_loadarea_spf USING GIST (geom_centre); -- grant (oeuser) -ALTER TABLE model_draft.ego_demand_loadarea_spf OWNER TO oeuser; +ALTER TABLE model_draft.ego_demand_loadarea_spf OWNER TO oeuser; -- ego scenario log (version,io,schema_name,table_name,script_name,comment) SELECT ego_scenario_log('v0.3.0','temp','model_draft','ego_demand_loadarea_spf','ego_dp_loadarea_loadcut_griddistrict.sql',' '); diff --git a/dataprocessing/sql_snippets/ego_dp_loadarea_loadmelt.sql b/dataprocessing/sql_snippets/ego_dp_loadarea_loadmelt.sql index 299153a5..557e2bb0 100644 --- a/dataprocessing/sql_snippets/ego_dp_loadarea_loadmelt.sql +++ b/dataprocessing/sql_snippets/ego_dp_loadarea_loadmelt.sql @@ -245,4 +245,4 @@ DROP TABLE IF EXISTS model_draft.ego_demand_load_melt CASCADE; DROP MATERIALIZED VIEW IF EXISTS model_draft.ego_demand_load_melt_error_geom_mview CASCADE; DROP MATERIALIZED VIEW IF EXISTS model_draft.ego_demand_load_melt_error_geom_fix_mview CASCADE; DROP MATERIALIZED VIEW IF EXISTS model_draft.ego_demand_load_melt_error_2_geom_mview CASCADE; -*/ + */ From 410c640f9d62a6de7c40382d46555587267c5be5 Mon Sep 17 00:00:00 2001 From: Ludee Date: Thu, 8 Feb 2018 13:41:23 +0100 Subject: [PATCH 045/104] update doku --- .../ego_dp_loadarea_loadcut_griddistrict.sql | 14 +- .../ego_dp_loadarea_loadcut_voronoi.sql | 418 +++++++++--------- 2 files changed, 227 insertions(+), 205 deletions(-) diff --git a/dataprocessing/sql_snippets/ego_dp_loadarea_loadcut_griddistrict.sql b/dataprocessing/sql_snippets/ego_dp_loadarea_loadcut_griddistrict.sql index 82ef235a..7312c2f1 100644 --- a/dataprocessing/sql_snippets/ego_dp_loadarea_loadcut_griddistrict.sql +++ b/dataprocessing/sql_snippets/ego_dp_loadarea_loadcut_griddistrict.sql @@ -1,7 +1,6 @@ /* Cut Loadarea with MV Griddistrict -Identify Loadarea smaller than 100m². -Exclude Loadarea smaller than 100m². +Identify and exclude Loadarea smaller than 100m². Generate Centre of Loadareas with Centroid and PointOnSurface. Calculate population from Census 2011. Cut all 4 OSM sectors with MV Griddistricts. @@ -134,14 +133,13 @@ CREATE INDEX ego_demand_loadarea_smaller100m2_mview_geom_idx ALTER TABLE model_draft.ego_demand_loadarea_smaller100m2_mview OWNER TO oeuser; -- metadata -COMMENT ON TABLE ego_demand_loadarea_smaller100m2_mview.table IS '{ +COMMENT ON MATERIALIZED VIEW ego_demand_loadarea_smaller100m2_mview.table IS '{ "comment": "eGoDP - Temporary table", "version": "v0.3.0" }'; -- ego scenario log (version,io,schema_name,table_name,script_name,comment) SELECT ego_scenario_log('v0.3.0','temp','model_draft','ego_demand_loadarea_smaller100m2_mview','ego_dp_loadarea_loadcut_griddistrict.sql',' '); - -- Exclude Loadarea smaller than 100m² DELETE FROM model_draft.ego_demand_loadarea AS loads WHERE loads.area_ha < 0.001; @@ -293,7 +291,7 @@ UPDATE model_draft.ego_demand_loadarea AS t1 WHERE t1.id = t2.id; -- metadata -COMMENT ON MATERIALIZED VIEW model_draft.ego_osm_sector_per_griddistrict_1_residential IS '{ +COMMENT ON TABLE model_draft.ego_osm_sector_per_griddistrict_1_residential IS '{ "comment": "eGoDP - Temporary table", "version": "v0.3.0" }'; @@ -348,7 +346,7 @@ UPDATE model_draft.ego_demand_loadarea AS t1 WHERE t1.id = t2.id; -- metadata -COMMENT ON MATERIALIZED VIEW model_draft.ego_osm_sector_per_griddistrict_2_retail IS '{ +COMMENT ON TABLE model_draft.ego_osm_sector_per_griddistrict_2_retail IS '{ "comment": "eGoDP - Temporary table", "version": "v0.3.0" }'; @@ -446,7 +444,7 @@ UPDATE model_draft.ego_demand_loadarea AS t1 WHERE t1.id = t2.id; -- metadata -COMMENT ON MATERIALIZED VIEW model_draft.ego_osm_sector_per_griddistrict_3_industrial IS '{ +COMMENT ON TABLE model_draft.ego_osm_sector_per_griddistrict_3_industrial IS '{ "comment": "eGoDP - Temporary table", "version": "v0.3.0" }'; @@ -501,7 +499,7 @@ UPDATE model_draft.ego_demand_loadarea AS t1 WHERE t1.id = t2.id; -- metadata -COMMENT ON MATERIALIZED VIEW model_draft.ego_osm_sector_per_griddistrict_4_agricultural IS '{ +COMMENT ON TABLE model_draft.ego_osm_sector_per_griddistrict_4_agricultural IS '{ "comment": "eGoDP - Temporary table", "version": "v0.3.0" }'; diff --git a/dataprocessing/sql_snippets/ego_dp_loadarea_loadcut_voronoi.sql b/dataprocessing/sql_snippets/ego_dp_loadarea_loadcut_voronoi.sql index 86fb5442..8be63db0 100644 --- a/dataprocessing/sql_snippets/ego_dp_loadarea_loadcut_voronoi.sql +++ b/dataprocessing/sql_snippets/ego_dp_loadarea_loadcut_voronoi.sql @@ -1,59 +1,70 @@ /* -loadareas per mv-voronoi -insert cutted load melt -exclude smaller 100m² - -__copyright__ = "Reiner Lemoine Institut" -__license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" -__url__ = "https://github.com/openego/data_processing/blob/master/LICENSE" -__author__ = "Ludee" +Cut Loadarea with MV Voronoi cells +Identify and exclude Loadarea smaller than 100m². +Generate Centre of Loadareas with Centroid and PointOnSurface. +Calculate population from Census 2011. +Cut all 4 OSM sectors with MV Griddistricts. +Calculate statistics like NUTS and AGS code. +Check for Loadareas without AGS code. + + +__copyright__ = "Reiner Lemoine Institut" +__license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" +__url__ = "https://github.com/openego/data_processing/blob/master/LICENSE" +__author__ = "Ludee" */ + -- loadareas per mv-griddistrict -DROP TABLE IF EXISTS model_draft.ego_demand_loadarea_voi CASCADE; -CREATE TABLE model_draft.ego_demand_loadarea_voi ( - id SERIAL NOT NULL, - subst_id integer, - area_ha numeric, - nuts varchar(5), - rs_0 varchar(12), - ags_0 varchar(12), - otg_id integer, - un_id integer, - zensus_sum integer, - zensus_count integer, - zensus_density numeric, - ioer_sum numeric, - ioer_count integer, - ioer_density numeric, - sector_area_residential numeric, - sector_area_retail numeric, - sector_area_industrial numeric, - sector_area_agricultural numeric, - sector_area_sum numeric, - sector_share_residential numeric, - sector_share_retail numeric, - sector_share_industrial numeric, - sector_share_agricultural numeric, - sector_share_sum numeric, - sector_count_residential integer, - sector_count_retail integer, - sector_count_industrial integer, - sector_count_agricultural integer, - sector_count_sum integer, - sector_consumption_residential numeric, - sector_consumption_retail numeric, - sector_consumption_industrial numeric, - sector_consumption_agricultural numeric, - sector_consumption_sum numeric, - geom_centroid geometry(POINT,3035), - geom_surfacepoint geometry(POINT,3035), - geom_centre geometry(POINT,3035), - geom geometry(Polygon,3035), - CONSTRAINT ego_demand_loadarea_voi_pkey PRIMARY KEY (id)); +DROP TABLE IF EXISTS model_draft.ego_demand_loadarea_voi CASCADE; +CREATE TABLE model_draft.ego_demand_loadarea_voi ( + id SERIAL NOT NULL, + subst_id integer, + area_ha numeric, + nuts varchar(5), + rs_0 varchar(12), + ags_0 varchar(12), + otg_id integer, + un_id integer, + zensus_sum integer, + zensus_count integer, + zensus_density numeric, + ioer_sum numeric, + ioer_count integer, + ioer_density numeric, + sector_area_residential numeric, + sector_area_retail numeric, + sector_area_industrial numeric, + sector_area_agricultural numeric, + sector_area_sum numeric, + sector_share_residential numeric, + sector_share_retail numeric, + sector_share_industrial numeric, + sector_share_agricultural numeric, + sector_share_sum numeric, + sector_count_residential integer, + sector_count_retail integer, + sector_count_industrial integer, + sector_count_agricultural integer, + sector_count_sum integer, + sector_consumption_residential numeric, + sector_consumption_retail numeric, + sector_consumption_industrial numeric, + sector_consumption_agricultural numeric, + sector_consumption_sum numeric, + geom_centroid geometry(POINT,3035), + geom_surfacepoint geometry(POINT,3035), + geom_centre geometry(POINT,3035), + geom geometry(Polygon,3035), + CONSTRAINT ego_demand_loadarea_voi_pkey PRIMARY KEY (id)); -- grant (oeuser) -ALTER TABLE model_draft.ego_demand_loadarea_voi OWNER TO oeuser; +ALTER TABLE model_draft.ego_demand_loadarea_voi OWNER TO oeuser; + +-- metadata +COMMENT ON TABLE ego_demand_loadarea_voi.table IS '{ + "comment": "eGoDP - Temporary table", + "version": "v0.3.0" }'; -- ego scenario log (version,io,schema_name,table_name,script_name,comment) SELECT ego_scenario_log('v0.3.0','input','model_draft','ego_demand_load_melt','ego_dp_loadarea_loadcut_voronoi.sql',' '); @@ -63,123 +74,130 @@ SELECT ego_scenario_log('v0.3.0','input','model_draft','ego_grid_hvmv_substation -- insert cutted load melt INSERT INTO model_draft.ego_demand_loadarea_voi (geom) - SELECT loads.geom ::geometry(Polygon,3035) - FROM (SELECT (ST_DUMP(ST_SAFE_INTERSECTION(load.geom,dis.geom))).geom AS geom - FROM model_draft.ego_demand_load_melt AS load, - model_draft.ego_grid_hvmv_substation_voronoi AS dis - WHERE load.geom && dis.geom - ) AS loads - WHERE ST_GeometryType(loads.geom) = 'ST_Polygon'; + SELECT loads.geom ::geometry(Polygon,3035) + FROM ( + SELECT (ST_DUMP(ST_SAFE_INTERSECTION(load.geom,dis.geom))).geom AS geom + FROM model_draft.ego_demand_load_melt AS load, + model_draft.ego_grid_hvmv_substation_voronoi AS dis + WHERE load.geom && dis.geom + ) AS loads + WHERE ST_GeometryType(loads.geom) = 'ST_Polygon'; -- index GIST (geom) -CREATE INDEX ego_demand_loadarea_voi_geom_idx - ON model_draft.ego_demand_loadarea_voi USING gist (geom); +CREATE INDEX ego_demand_loadarea_voi_geom_idx + ON model_draft.ego_demand_loadarea_voi USING gist (geom); -- update area (area_ha) -UPDATE model_draft.ego_demand_loadarea_voi AS t1 - SET area_ha = t2.area - FROM (SELECT loads.id, - ST_AREA(ST_TRANSFORM(loads.geom,3035))/10000 AS area - FROM model_draft.ego_demand_loadarea_voi AS loads - ) AS t2 - WHERE t1.id = t2.id; - - --- validate area (area_ha) -> exclude smaller 100m² -DROP MATERIALIZED VIEW IF EXISTS model_draft.ego_demand_loadarea_voi_smaller100m2_mview CASCADE; -CREATE MATERIALIZED VIEW model_draft.ego_demand_loadarea_voi_smaller100m2_mview AS - SELECT loads.id AS id, - loads.area_ha AS area_ha, - loads.geom AS geom - FROM model_draft.ego_demand_loadarea_voi AS loads - WHERE loads.area_ha < 0.001; +UPDATE model_draft.ego_demand_loadarea_voi AS t1 + SET area_ha = t2.area + FROM ( + SELECT loads.id, + ST_AREA(ST_TRANSFORM(loads.geom,3035))/10000 AS area + FROM model_draft.ego_demand_loadarea_voi AS loads + ) AS t2 + WHERE t1.id = t2.id; + + +-- Identify and exclude Loadarea smaller than 100m² +DROP MATERIALIZED VIEW IF EXISTS model_draft.ego_demand_loadarea_voi_smaller100m2_mview CASCADE; +CREATE MATERIALIZED VIEW model_draft.ego_demand_loadarea_voi_smaller100m2_mview AS + SELECT loads.id AS id, + loads.area_ha AS area_ha, + loads.geom AS geom + FROM model_draft.ego_demand_loadarea_voi AS loads + WHERE loads.area_ha < 0.001; -- index (id) -CREATE UNIQUE INDEX ego_demand_loadarea_voi_smaller100m2_mview_id_idx - ON model_draft.ego_demand_loadarea_voi_smaller100m2_mview (id); +CREATE UNIQUE INDEX ego_demand_loadarea_voi_smaller100m2_mview_id_idx + ON model_draft.ego_demand_loadarea_voi_smaller100m2_mview (id); -- index GIST (geom) -CREATE INDEX ego_demand_loadarea_voi_smaller100m2_mview_geom_idx - ON model_draft.ego_demand_loadarea_voi_smaller100m2_mview USING GIST (geom); +CREATE INDEX ego_demand_loadarea_voi_smaller100m2_mview_geom_idx + ON model_draft.ego_demand_loadarea_voi_smaller100m2_mview USING GIST (geom); -- grant (oeuser) -ALTER TABLE model_draft.ego_demand_loadarea_voi_smaller100m2_mview OWNER TO oeuser; +ALTER TABLE model_draft.ego_demand_loadarea_voi_smaller100m2_mview OWNER TO oeuser; + +-- metadata +COMMENT ON MATERIALIZED VIEW ego_demand_loadarea_voi_smaller100m2_mview.table IS '{ + "comment": "eGoDP - Temporary table", + "version": "v0.3.0" }'; -- ego scenario log (version,io,schema_name,table_name,script_name,comment) SELECT ego_scenario_log('v0.3.0','temp','model_draft','ego_demand_loadarea_voi_smaller100m2_mview','ego_dp_loadarea_loadcut_voronoi.sql',' '); - --- remove errors (area_ha) -DELETE FROM model_draft.ego_demand_loadarea_voi AS loads - WHERE loads.area_ha < 0.001; +-- Exclude Loadarea smaller than 100m² +DELETE FROM model_draft.ego_demand_loadarea_voi AS loads + WHERE loads.area_ha < 0.001; -- ego scenario log (version,io,schema_name,table_name,script_name,comment) SELECT ego_scenario_log('v0.3.0','output','model_draft','ego_demand_loadarea_voi','ego_dp_loadarea_loadcut_voronoi.sql',' '); +-- Generate Centre of Loadareas with Centroid and PointOnSurface -- centroid -UPDATE model_draft.ego_demand_loadarea_voi AS t1 - SET geom_centroid = t2.geom_centroid - FROM ( - SELECT loads.id AS id, - ST_Centroid(loads.geom) AS geom_centroid - FROM model_draft.ego_demand_loadarea_voi AS loads - ) AS t2 - WHERE t1.id = t2.id; +UPDATE model_draft.ego_demand_loadarea_voi AS t1 + SET geom_centroid = t2.geom_centroid + FROM ( + SELECT loads.id AS id, + ST_Centroid(loads.geom) AS geom_centroid + FROM model_draft.ego_demand_loadarea_voi AS loads + ) AS t2 + WHERE t1.id = t2.id; -- index GIST (geom_centroid) -CREATE INDEX ego_demand_loadarea_voi_geom_centroid_idx - ON model_draft.ego_demand_loadarea_voi USING GIST (geom_centroid); +CREATE INDEX ego_demand_loadarea_voi_geom_centroid_idx + ON model_draft.ego_demand_loadarea_voi USING GIST (geom_centroid); -- surfacepoint -UPDATE model_draft.ego_demand_loadarea_voi AS t1 - SET geom_surfacepoint = t2.geom_surfacepoint - FROM ( - SELECT loads.id AS id, - ST_PointOnSurface(loads.geom) AS geom_surfacepoint - FROM model_draft.ego_demand_loadarea_voi AS loads - ) AS t2 - WHERE t1.id = t2.id; +UPDATE model_draft.ego_demand_loadarea_voi AS t1 + SET geom_surfacepoint = t2.geom_surfacepoint + FROM ( + SELECT loads.id AS id, + ST_PointOnSurface(loads.geom) AS geom_surfacepoint + FROM model_draft.ego_demand_loadarea_voi AS loads + ) AS t2 + WHERE t1.id = t2.id; -- index GIST (geom_surfacepoint) -CREATE INDEX ego_demand_loadarea_voi_geom_surfacepoint_idx - ON model_draft.ego_demand_loadarea_voi USING GIST (geom_surfacepoint); +CREATE INDEX ego_demand_loadarea_voi_geom_surfacepoint_idx + ON model_draft.ego_demand_loadarea_voi USING GIST (geom_surfacepoint); -- centre with centroid if inside loadarea -UPDATE model_draft.ego_demand_loadarea_voi AS t1 - SET geom_centre = t2.geom_centre - FROM ( - SELECT loads.id AS id, - loads.geom_centroid AS geom_centre - FROM model_draft.ego_demand_loadarea_voi AS loads - WHERE loads.geom && loads.geom_centroid AND - ST_CONTAINS(loads.geom,loads.geom_centroid) - )AS t2 - WHERE t1.id = t2.id; +UPDATE model_draft.ego_demand_loadarea_voi AS t1 + SET geom_centre = t2.geom_centre + FROM ( + SELECT loads.id AS id, + loads.geom_centroid AS geom_centre + FROM model_draft.ego_demand_loadarea_voi AS loads + WHERE loads.geom && loads.geom_centroid AND + ST_CONTAINS(loads.geom,loads.geom_centroid) + )AS t2 + WHERE t1.id = t2.id; -- centre with surfacepoint if outside area -UPDATE model_draft.ego_demand_loadarea_voi AS t1 - SET geom_centre = t2.geom_centre - FROM ( - SELECT loads.id AS id, - loads.geom_surfacepoint AS geom_centre - FROM model_draft.ego_demand_loadarea_voi AS loads - WHERE loads.geom_centre IS NULL - )AS t2 - WHERE t1.id = t2.id; +UPDATE model_draft.ego_demand_loadarea_voi AS t1 + SET geom_centre = t2.geom_centre + FROM ( + SELECT loads.id AS id, + loads.geom_surfacepoint AS geom_centre + FROM model_draft.ego_demand_loadarea_voi AS loads + WHERE loads.geom_centre IS NULL + )AS t2 + WHERE t1.id = t2.id; -- create index GIST (geom_centre) -CREATE INDEX ego_demand_loadarea_voi_geom_centre_idx - ON model_draft.ego_demand_loadarea_voi USING GIST (geom_centre); +CREATE INDEX ego_demand_loadarea_voi_geom_centre_idx + ON model_draft.ego_demand_loadarea_voi USING GIST (geom_centre); /* -- validate geom_centre - SELECT loads.id AS id - FROM model_draft.ego_demand_loadarea_voi AS loads - WHERE NOT ST_CONTAINS(loads.geom,loads.geom_centre); */ - -/* +SELECT loads.id AS id +FROM model_draft.ego_demand_loadarea_voi AS loads +WHERE NOT ST_CONTAINS(loads.geom,loads.geom_centre); +*/ +/* -- ego scenario log (version,io,schema_name,table_name,script_name,comment) SELECT ego_scenario_log('v0.3.0','input','society','destatis_zensus_population_per_ha_mview','ego_dp_loadarea_loadcut_voronoi.sql',' '); @@ -247,7 +265,7 @@ CREATE INDEX urban_sector_per_grid_district_1_residential_geom_idx ON model_draft.ego_osm_sector_per_griddistrict_1_residential USING GIST (geom); -- grant (oeuser) -ALTER TABLE model_draft.ego_osm_sector_per_griddistrict_1_residential OWNER TO oeuser; +ALTER TABLE model_draft.ego_osm_sector_per_griddistrict_1_residential OWNER TO oeuser; -- sector stats UPDATE model_draft.ego_demand_loadarea_voi AS t1 @@ -296,7 +314,7 @@ CREATE INDEX urban_sector_per_grid_district_2_retail_geom_idx ON model_draft.ego_osm_sector_per_griddistrict_2_retail USING GIST (geom); -- grant (oeuser) -ALTER TABLE model_draft.ego_osm_sector_per_griddistrict_2_retail OWNER TO oeuser; +ALTER TABLE model_draft.ego_osm_sector_per_griddistrict_2_retail OWNER TO oeuser; -- sector stats UPDATE model_draft.ego_demand_loadarea_voi AS t1 @@ -345,7 +363,7 @@ CREATE INDEX urban_sector_per_grid_district_3_industrial_geom_idx ON model_draft.ego_osm_sector_per_griddistrict_3_industrial USING GIST (geom); -- grant (oeuser) -ALTER TABLE model_draft.ego_osm_sector_per_griddistrict_3_industrial OWNER TO oeuser; +ALTER TABLE model_draft.ego_osm_sector_per_griddistrict_3_industrial OWNER TO oeuser; -- sector stats UPDATE model_draft.ego_demand_loadarea_voi AS t1 @@ -394,7 +412,7 @@ CREATE INDEX urban_sector_per_grid_district_4_agricultural_geom_idx ON model_draft.ego_osm_sector_per_griddistrict_4_agricultural USING GIST (geom); -- grant (oeuser) -ALTER TABLE model_draft.ego_osm_sector_per_griddistrict_4_agricultural OWNER TO oeuser; +ALTER TABLE model_draft.ego_osm_sector_per_griddistrict_4_agricultural OWNER TO oeuser; -- sector stats UPDATE model_draft.ego_demand_loadarea_voi AS t1 @@ -442,84 +460,90 @@ UPDATE model_draft.ego_demand_loadarea_voi AS t1 WHERE t1.id = t2.id; */ + +-- Calculate statistics like NUTS and AGS code -- ego scenario log (version,io,schema_name,table_name,script_name,comment) SELECT ego_scenario_log('v0.3.0','input','model_draft','ego_boundaries_bkg_vg250_6_gem_clean','ego_dp_loadarea_loadcut_voronoi.sql',' '); - -- nuts code (nuts) -UPDATE model_draft.ego_demand_loadarea_voi AS t1 - SET nuts = t2.nuts - FROM ( - SELECT loads.id AS id, - vg.nuts AS nuts - FROM model_draft.ego_demand_loadarea_voi AS loads, - model_draft.ego_boundaries_bkg_vg250_6_gem_clean AS vg - WHERE vg.geom && loads.geom_centre AND - ST_CONTAINS(vg.geom,loads.geom_centre) - ) AS t2 - WHERE t1.id = t2.id; +UPDATE model_draft.ego_demand_loadarea_voi AS t1 + SET nuts = t2.nuts + FROM ( + SELECT loads.id AS id, + vg.nuts AS nuts + FROM model_draft.ego_demand_loadarea_voi AS loads, + model_draft.ego_boundaries_bkg_vg250_6_gem_clean AS vg + WHERE vg.geom && loads.geom_centre AND + ST_CONTAINS(vg.geom,loads.geom_centre) + ) AS t2 + WHERE t1.id = t2.id; -- regionalschlüssel (rs_0) -UPDATE model_draft.ego_demand_loadarea_voi AS t1 - SET rs_0 = t2.rs_0 - FROM ( - SELECT loads.id, - vg.rs_0 - FROM model_draft.ego_demand_loadarea_voi AS loads, - model_draft.ego_boundaries_bkg_vg250_6_gem_clean AS vg - WHERE vg.geom && loads.geom_centre AND - ST_CONTAINS(vg.geom,loads.geom_centre) - ) AS t2 - WHERE t1.id = t2.id; +UPDATE model_draft.ego_demand_loadarea_voi AS t1 + SET rs_0 = t2.rs_0 + FROM ( + SELECT loads.id, + vg.rs_0 + FROM model_draft.ego_demand_loadarea_voi AS loads, + model_draft.ego_boundaries_bkg_vg250_6_gem_clean AS vg + WHERE vg.geom && loads.geom_centre AND + ST_CONTAINS(vg.geom,loads.geom_centre) + ) AS t2 + WHERE t1.id = t2.id; -- gemeindeschlüssel (ags_0) -UPDATE model_draft.ego_demand_loadarea_voi AS t1 - SET ags_0 = t2.ags_0 - FROM ( - SELECT loads.id AS id, - vg.ags_0 AS ags_0 - FROM model_draft.ego_demand_loadarea_voi AS loads, - model_draft.ego_boundaries_bkg_vg250_6_gem_clean AS vg - WHERE vg.geom && loads.geom_centre AND - ST_CONTAINS(vg.geom,loads.geom_centre) - ) AS t2 - WHERE t1.id = t2.id; +UPDATE model_draft.ego_demand_loadarea_voi AS t1 + SET ags_0 = t2.ags_0 + FROM ( + SELECT loads.id AS id, + vg.ags_0 AS ags_0 + FROM model_draft.ego_demand_loadarea_voi AS loads, + model_draft.ego_boundaries_bkg_vg250_6_gem_clean AS vg + WHERE vg.geom && loads.geom_centre AND + ST_CONTAINS(vg.geom,loads.geom_centre) + ) AS t2 + WHERE t1.id = t2.id; -- substation id -UPDATE model_draft.ego_demand_loadarea_voi AS t1 - SET subst_id = t2.subst_id - FROM ( - SELECT loads.id AS id, - dis.subst_id AS subst_id - FROM model_draft.ego_demand_loadarea_voi AS loads, - model_draft.ego_grid_mv_griddistrict AS dis - WHERE dis.geom && loads.geom_centre AND - ST_CONTAINS(dis.geom,loads.geom_centre) - ) AS t2 - WHERE t1.id = t2.id; +UPDATE model_draft.ego_demand_loadarea_voi AS t1 + SET subst_id = t2.subst_id + FROM ( + SELECT loads.id AS id, + dis.subst_id AS subst_id + FROM model_draft.ego_demand_loadarea_voi AS loads, + model_draft.ego_grid_mv_griddistrict AS dis + WHERE dis.geom && loads.geom_centre AND + ST_CONTAINS(dis.geom,loads.geom_centre) + ) AS t2 + WHERE t1.id = t2.id; -- ego scenario log (version,io,schema_name,table_name,script_name,comment) SELECT ego_scenario_log('v0.3.0','output','model_draft','ego_demand_loadarea_voi','ego_dp_loadarea_loadcut_voronoi.sql',' '); -- loads without ags_0 -DROP MATERIALIZED VIEW IF EXISTS model_draft.ego_demand_loadarea_voi_error_noags_mview CASCADE; -CREATE MATERIALIZED VIEW model_draft.ego_demand_loadarea_voi_error_noags_mview AS - SELECT loads.id, - loads.geom - FROM model_draft.ego_demand_loadarea_voi AS loads - WHERE loads.ags_0 IS NULL; +DROP MATERIALIZED VIEW IF EXISTS model_draft.ego_demand_loadarea_voi_error_noags_mview CASCADE; +CREATE MATERIALIZED VIEW model_draft.ego_demand_loadarea_voi_error_noags_mview AS + SELECT loads.id, + loads.geom + FROM model_draft.ego_demand_loadarea_voi AS loads + WHERE loads.ags_0 IS NULL; -- index (id) -CREATE UNIQUE INDEX ego_demand_loadarea_voi_error_noags_mview_id_idx - ON model_draft.ego_demand_loadarea_voi_error_noags_mview (id); +CREATE UNIQUE INDEX ego_demand_loadarea_voi_error_noags_mview_id_idx + ON model_draft.ego_demand_loadarea_voi_error_noags_mview (id); -- index GIST (geom) -CREATE INDEX ego_demand_loadarea_voi_error_noags_mview_geom_idx - ON model_draft.ego_demand_loadarea_voi_error_noags_mview USING GIST (geom); +CREATE INDEX ego_demand_loadarea_voi_error_noags_mview_geom_idx + ON model_draft.ego_demand_loadarea_voi_error_noags_mview USING GIST (geom); -- grant (oeuser) -ALTER TABLE model_draft.ego_demand_loadarea_voi_error_noags_mview OWNER TO oeuser; +ALTER TABLE model_draft.ego_demand_loadarea_voi_error_noags_mview OWNER TO oeuser; + +-- metadata +COMMENT ON MATERIALIZED VIEW model_draft.ego_demand_loadarea_voi_error_noags_mview IS '{ + "comment": "eGoDP - Temporary table", + "version": "v0.3.0" }'; -- ego scenario log (version,io,schema_name,table_name,script_name,comment) SELECT ego_scenario_log('v0.3.0','temp','model_draft','ego_demand_loadarea_voi_error_noags_mview','ego_dp_loadarea_loadcut_voronoi.sql',' '); @@ -546,15 +570,15 @@ CREATE TABLE model_draft.ego_demand_loadarea_voi_ta AS subst_id = '593'; -- PK -ALTER TABLE model_draft.ego_demand_loadarea_voi_ta +ALTER TABLE model_draft.ego_demand_loadarea_voi_ta ADD PRIMARY KEY (id); -- index GIST (geom) CREATE INDEX ego_demand_loadarea_voi_ta_geom_idx - ON model_draft.ego_demand_loadarea_voi_ta USING GIST (geom); + ON model_draft.ego_demand_loadarea_voi_ta USING GIST (geom); -- grant (oeuser) -ALTER TABLE model_draft.ego_demand_loadarea_voi_ta OWNER TO oeuser; +ALTER TABLE model_draft.ego_demand_loadarea_voi_ta OWNER TO oeuser; -- ego scenario log (version,io,schema_name,table_name,script_name,comment) SELECT ego_scenario_log('v0.3.0','temp','model_draft','ego_demand_loadarea_voi_ta','ego_dp_loadarea_loadcut_voronoi.sql',' '); @@ -572,19 +596,19 @@ CREATE TABLE model_draft.ego_demand_loadarea_voi_spf AS ORDER BY loads.id; -- PK -ALTER TABLE model_draft.ego_demand_loadarea_voi_spf +ALTER TABLE model_draft.ego_demand_loadarea_voi_spf ADD PRIMARY KEY (id); -- index GIST (geom) CREATE INDEX ego_demand_loadarea_voi_spf_geom_idx - ON model_draft.ego_demand_loadarea_voi_spf USING GIST (geom); + ON model_draft.ego_demand_loadarea_voi_spf USING GIST (geom); -- index GIST (geom_centre) CREATE INDEX ego_demand_loadarea_voi_spf_geom_centre_idx ON model_draft.ego_demand_loadarea_voi_spf USING GIST (geom_centre); -- grant (oeuser) -ALTER TABLE model_draft.ego_demand_loadarea_voi_spf OWNER TO oeuser; +ALTER TABLE model_draft.ego_demand_loadarea_voi_spf OWNER TO oeuser; -- ego scenario log (version,io,schema_name,table_name,script_name,comment) SELECT ego_scenario_log('v0.3.0','temp','model_draft','ego_demand_loadarea_voi_spf','ego_dp_loadarea_loadcut_voronoi.sql',' '); From 292082fdedbf258d49f5765583ffaba510ee033c Mon Sep 17 00:00:00 2001 From: IlkaCu Date: Thu, 8 Feb 2018 13:41:24 +0100 Subject: [PATCH 046/104] update docu assignment_generator #92 --- .../ego_dp_powerflow_assignment_generator.sql | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/dataprocessing/sql_snippets/ego_dp_powerflow_assignment_generator.sql b/dataprocessing/sql_snippets/ego_dp_powerflow_assignment_generator.sql index a305b397..eb84f4bd 100644 --- a/dataprocessing/sql_snippets/ego_dp_powerflow_assignment_generator.sql +++ b/dataprocessing/sql_snippets/ego_dp_powerflow_assignment_generator.sql @@ -1,5 +1,16 @@ /* -Information on generators which are assigned to a specific substation are transformed to a data structure which is suitable for PyPSA. This script creates the scenarios +Generators which were assigned to a specific substation prior to this script need to be transformed to a data structure +suitable for powerflow calculation with tool developed and used in the open_eGo project. The following script transforms +data from the powerplant mviews and adds some parameters according to the characteristics of the generators. +To reduce the data volumn in the final table structure (see ego_dp_powerflow_hv_setup.sql) the generators are clustered +according to their source, installed capacity, weather point and substation they are assigned to. Here a new and unique +aggregate-ID (aggr_id) is assigned. +In an interims stage all generators are converted to a format suitable for powerflow flow calculation seperately. This data +can be accessed in table `model_draft.ego_supply_pf_generator_single `_. + + +Information on generators which are assigned to a specific substation are transformed to a data structure which is suitable +for PyPSA. This script creates the scenarios 'Status Quo', 'NEP 2035' and 'eGo 100' in the hv powerflow schema. __copyright__ = "Flensburg University of Applied Sciences, Centre for Sustainable Energy Systems" From e8e5579f21f7d1ec80f8decbd8a3706302cb0cb7 Mon Sep 17 00:00:00 2001 From: Ludee Date: Thu, 8 Feb 2018 13:48:08 +0100 Subject: [PATCH 047/104] update doku --- .../ego_dp_loadarea_consumption.sql | 200 +++++++++--------- 1 file changed, 97 insertions(+), 103 deletions(-) diff --git a/dataprocessing/sql_snippets/ego_dp_loadarea_consumption.sql b/dataprocessing/sql_snippets/ego_dp_loadarea_consumption.sql index 7a55abd4..c72372be 100644 --- a/dataprocessing/sql_snippets/ego_dp_loadarea_consumption.sql +++ b/dataprocessing/sql_snippets/ego_dp_loadarea_consumption.sql @@ -1,10 +1,10 @@ /* -consumption per loadarea +Allocate consumption to Loadareas -__copyright__ = "Flensburg University of Applied Sciences, Centre for Sustainable Energy Systems" -__license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" -__url__ = "https://github.com/openego/data_processing/blob/master/LICENSE" -__author__ = "IlkaCu, Ludee" +__copyright__ = "Flensburg University of Applied Sciences, Centre for Sustainable Energy Systems" +__license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" +__url__ = "https://github.com/openego/data_processing/blob/master/LICENSE" +__author__ = "IlkaCu, Ludee" */ @@ -16,137 +16,131 @@ SELECT ego_scenario_log('v0.3.0','input','model_draft','ego_demand_loadarea','eg -- landuse area per district ALTER TABLE model_draft.ego_demand_per_district - DROP COLUMN IF EXISTS area_retail CASCADE, - ADD COLUMN area_retail double precision, - DROP COLUMN IF EXISTS area_agriculture CASCADE, - ADD COLUMN area_agriculture double precision, - DROP COLUMN IF EXISTS area_tertiary_sector CASCADE, - ADD COLUMN area_tertiary_sector double precision; + DROP COLUMN IF EXISTS area_retail CASCADE, + ADD COLUMN area_retail double precision, + DROP COLUMN IF EXISTS area_agriculture CASCADE, + ADD COLUMN area_agriculture double precision, + DROP COLUMN IF EXISTS area_tertiary_sector CASCADE, + ADD COLUMN area_tertiary_sector double precision; -- retail area per district UPDATE model_draft.ego_demand_per_district a - SET area_retail = result.sum - FROM - ( - SELECT - sum(coalesce(sector_area_retail,0)), - substr(nuts,1,5) - FROM model_draft.ego_demand_loadarea - GROUP BY substr(nuts,1,5) - ) as result - WHERE result.substr = substr(a.eu_code,1,5); + SET area_retail = result.sum + FROM ( + SELECT + sum(coalesce(sector_area_retail,0)), + substr(nuts,1,5) + FROM model_draft.ego_demand_loadarea + GROUP BY substr(nuts,1,5) + ) as result + WHERE result.substr = substr(a.eu_code,1,5); -- agricultural area per district UPDATE model_draft.ego_demand_per_district a - SET area_agriculture = result.sum - FROM - ( - SELECT - sum(coalesce(sector_area_agricultural,0)), - substr(nuts,1,5) - FROM model_draft.ego_demand_loadarea - GROUP BY substr(nuts,1,5) - ) as result - WHERE result.substr = substr(a.eu_code,1,5); + SET area_agriculture = result.sum + FROM ( + SELECT + sum(coalesce(sector_area_agricultural,0)), + substr(nuts,1,5) + FROM model_draft.ego_demand_loadarea + GROUP BY substr(nuts,1,5) + ) as result + WHERE result.substr = substr(a.eu_code,1,5); -- area of tertiary sector by adding agricultural and retail area up UPDATE model_draft.ego_demand_per_district - SET area_tertiary_sector = coalesce(area_retail,0) + coalesce(area_agriculture,0); + SET area_tertiary_sector = coalesce(area_retail,0) + coalesce(area_agriculture,0); -- sector consumption of industry per loadarea UPDATE model_draft.ego_demand_loadarea a - SET sector_consumption_industrial = sub.result - FROM - ( - SELECT - c.id, - b.elec_consumption_industry/nullif(b.area_industry,0) * c.sector_area_industrial as result - FROM - model_draft.ego_demand_per_district b, - model_draft.ego_demand_loadarea c - WHERE - c.nuts = b.eu_code - ) AS sub - WHERE sub.id = a.id; + SET sector_consumption_industrial = sub.result + FROM ( + SELECT + c.id, + b.elec_consumption_industry/nullif(b.area_industry,0) * c.sector_area_industrial as result + FROM + model_draft.ego_demand_per_district b, + model_draft.ego_demand_loadarea c + WHERE + c.nuts = b.eu_code + ) AS sub + WHERE sub.id = a.id; -- sector consumption of retail per loadarea UPDATE model_draft.ego_demand_loadarea a - SET sector_consumption_retail = sub.result - FROM - ( - SELECT - c.id, - b.elec_consumption_tertiary_sector/nullif(b.area_tertiary_sector,0) * c.sector_area_retail as result - FROM - model_draft.ego_demand_per_district b, - model_draft.ego_demand_loadarea c - WHERE - c.nuts = b.eu_code - ) AS sub - WHERE sub.id = a.id; + SET sector_consumption_retail = sub.result + FROM ( + SELECT + c.id, + b.elec_consumption_tertiary_sector/nullif(b.area_tertiary_sector,0) * c.sector_area_retail as result + FROM + model_draft.ego_demand_per_district b, + model_draft.ego_demand_loadarea c + WHERE + c.nuts = b.eu_code + ) AS sub + WHERE sub.id = a.id; -- sector consumption of agriculture per loadarea UPDATE model_draft.ego_demand_loadarea a - SET sector_consumption_agricultural = sub.result - FROM - ( - SELECT - c.id, - b.elec_consumption_tertiary_sector/nullif(b.area_tertiary_sector,0) * c.sector_area_agricultural as result - FROM - model_draft.ego_demand_per_district b, - model_draft.ego_demand_loadarea c - WHERE - c.nuts = b.eu_code - ) AS sub - WHERE sub.id = a.id; + SET sector_consumption_agricultural = sub.result + FROM ( + SELECT + c.id, + b.elec_consumption_tertiary_sector/nullif(b.area_tertiary_sector,0) * c.sector_area_agricultural as result + FROM + model_draft.ego_demand_per_district b, + model_draft.ego_demand_loadarea c + WHERE + c.nuts = b.eu_code + ) AS sub + WHERE sub.id = a.id; -- ego scenario log (version,io,schema_name,table_name,script_name,comment) SELECT ego_scenario_log('v0.3.0','input','demand','ego_demand_federalstate','ego_dp_loadarea_consumption.sql',' '); - + -- sector consumption of residential per loadarea UPDATE model_draft.ego_demand_loadarea a - SET sector_consumption_residential = sub.result - FROM - ( - SELECT - c.id, - b.elec_consumption_households_per_person * c.zensus_sum as result - FROM - demand.ego_demand_federalstate b, - model_draft.ego_demand_loadarea c - WHERE - substring(c.nuts,1,3) = substring(b.eu_code, 1,3) - - ) AS sub - WHERE sub.id = a.id; + SET sector_consumption_residential = sub.result + FROM ( + SELECT + c.id, + b.elec_consumption_households_per_person * c.zensus_sum as result + FROM + demand.ego_demand_federalstate b, + model_draft.ego_demand_loadarea c + WHERE + substring(c.nuts,1,3) = substring(b.eu_code, 1,3) + ) AS sub + WHERE sub.id = a.id; /* -- geometry in consumption table -> SELF UPDATE? UPDATE model_draft.ego_demand_loadarea a - SET geom = b.geom - FROM model_draft.ego_demand_loadarea b - WHERE a.id = b.id; */ + SET geom = b.geom + FROM model_draft.ego_demand_loadarea b + WHERE a.id = b.id; +*/ -- sector sum -UPDATE model_draft.ego_demand_loadarea AS t1 - SET sector_consumption_sum = t2.sector_consumption_sum - FROM ( - SELECT id, - coalesce(load.sector_consumption_residential,0) + - coalesce(load.sector_consumption_retail,0) + - coalesce(load.sector_consumption_industrial,0) + - coalesce(load.sector_consumption_agricultural,0) AS sector_consumption_sum - FROM model_draft.ego_demand_loadarea AS load - ) AS t2 - WHERE t1.id = t2.id; +UPDATE model_draft.ego_demand_loadarea AS t1 + SET sector_consumption_sum = t2.sector_consumption_sum + FROM ( + SELECT id, + coalesce(load.sector_consumption_residential,0) + + coalesce(load.sector_consumption_retail,0) + + coalesce(load.sector_consumption_industrial,0) + + coalesce(load.sector_consumption_agricultural,0) AS sector_consumption_sum + FROM model_draft.ego_demand_loadarea AS load + ) AS t2 + WHERE t1.id = t2.id; -- corresponding otg_id UPDATE model_draft.ego_demand_loadarea a - SET otg_id = b.otg_id - FROM model_draft.ego_grid_hvmv_substation b - WHERE a.subst_id = b.subst_id; + SET otg_id = b.otg_id + FROM model_draft.ego_grid_hvmv_substation b + WHERE a.subst_id = b.subst_id; -- metadata COMMENT ON TABLE model_draft.ego_demand_loadarea IS From a6aa4e50dfdeac964ccb1d38128d48ea02b66e69 Mon Sep 17 00:00:00 2001 From: Ludee Date: Thu, 8 Feb 2018 13:56:33 +0100 Subject: [PATCH 048/104] update doku --- dataprocessing/eGo_data_processing.py | 6 +- .../sql_snippets/ego_dp_loadarea_peakload.sql | 86 ++++++++++--------- .../ego_dp_structure_input_verification.sql | 2 + .../bpmn/ego_dp_bpmn_section_loadarea.graphml | 14 +-- 4 files changed, 59 insertions(+), 49 deletions(-) diff --git a/dataprocessing/eGo_data_processing.py b/dataprocessing/eGo_data_processing.py index 22ae91ec..036bf87b 100644 --- a/dataprocessing/eGo_data_processing.py +++ b/dataprocessing/eGo_data_processing.py @@ -61,9 +61,9 @@ def data_processing(): 'ego_dp_loadarea_census.sql', # Loads from Census 2011 'ego_dp_loadarea_loadmelt.sql', # Melt loads from OSM landuse and Census 2011 'ego_dp_loadarea_loadcut_griddistrict.sql', # Cut Loadarea with MV Griddistrict - 'ego_dp_loadarea_loadcut_voronoi.sql', # Cut Loadarea with MV Voronoi cells - 'ego_dp_loadarea_consumption.sql', # Allocate consumption to Loadareas - 'ego_dp_loadarea_peakload.sql', # Peak loads per Loadarea + 'ego_dp_loadarea_loadcut_voronoi.sql', # Cut Loadarea with MV Voronoi cells + 'ego_dp_loadarea_consumption.sql', # Allocate consumption to Loadareas + 'ego_dp_loadarea_peakload.sql', # Peak loads per Loadarea 'ego_dp_loadarea_griddistrict_results.sql', # Results for MV Griddistrict 'ego_dp_loadarea_statistic.sql', # Results and statistics for eGoDP diff --git a/dataprocessing/sql_snippets/ego_dp_loadarea_peakload.sql b/dataprocessing/sql_snippets/ego_dp_loadarea_peakload.sql index a0fd2658..75ee8a17 100644 --- a/dataprocessing/sql_snippets/ego_dp_loadarea_peakload.sql +++ b/dataprocessing/sql_snippets/ego_dp_loadarea_peakload.sql @@ -1,56 +1,64 @@ /* -calculate pekloads for loadareas -uses SLP parameters per sectors +Peak loads per Loadarea +Uses SLP parameters per sectors. -__copyright__ = "Reiner Lemoine Institut" -__license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" -__url__ = "https://github.com/openego/data_processing/blob/master/LICENSE" -__author__ = "gplssm, Ludee" +__copyright__ = "Reiner Lemoine Institut" +__license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" +__url__ = "https://github.com/openego/data_processing/blob/master/LICENSE" +__author__ = "gplssm, Ludee" */ +-- ego scenario log (version,io,schema_name,table_name,script_name,comment) +SELECT ego_scenario_log('v0.3.0','input','model_draft','ego_demand_loadarea','ego_dp_loadarea_peakload.sql',' '); +SELECT ego_scenario_log('v0.3.0','input','scenario','ego_slp_parameters','ego_dp_loadarea_peakload.sql',' '); -- residential UPDATE model_draft.ego_demand_loadarea as t1 - SET sector_peakload_residential = t2.peak_load - FROM ( SELECT la.id, - coalesce(slp.value * la.sector_consumption_residential,0) AS peak_load - FROM model_draft.ego_demand_loadarea AS la, - scenario.ego_slp_parameters AS slp - WHERE slp.parameter = 'consumption_peak_h0') AS t2 - WHERE t1.id = t2.id; - + SET sector_peakload_residential = t2.peak_load + FROM ( + SELECT la.id, + coalesce(slp.value * la.sector_consumption_residential,0) AS peak_load + FROM model_draft.ego_demand_loadarea AS la, + scenario.ego_slp_parameters AS slp + WHERE slp.parameter = 'consumption_peak_h0' + ) AS t2 + WHERE t1.id = t2.id; -- retail UPDATE model_draft.ego_demand_loadarea as t1 - SET sector_peakload_retail = t2.peak_load - FROM ( SELECT la.id, - coalesce(slp.value * la.sector_consumption_retail,0) AS peak_load - FROM model_draft.ego_demand_loadarea AS la, - scenario.ego_slp_parameters AS slp - WHERE slp.parameter = 'consumption_peak_g0') AS t2 - WHERE t1.id = t2.id; - - + SET sector_peakload_retail = t2.peak_load + FROM ( + SELECT la.id, + coalesce(slp.value * la.sector_consumption_retail,0) AS peak_load + FROM model_draft.ego_demand_loadarea AS la, + scenario.ego_slp_parameters AS slp + WHERE slp.parameter = 'consumption_peak_g0' + ) AS t2 + WHERE t1.id = t2.id; + -- industrial UPDATE model_draft.ego_demand_loadarea as t1 - SET sector_peakload_industrial = t2.peak_load - FROM ( SELECT la.id, - coalesce(slp.value * la.sector_consumption_industrial,0) AS peak_load - FROM model_draft.ego_demand_loadarea AS la, - scenario.ego_slp_parameters AS slp - WHERE slp.parameter = 'consumption_peak_i0') AS t2 - WHERE t1.id = t2.id; - - + SET sector_peakload_industrial = t2.peak_load + FROM ( + SELECT la.id, + coalesce(slp.value * la.sector_consumption_industrial,0) AS peak_load + FROM model_draft.ego_demand_loadarea AS la, + scenario.ego_slp_parameters AS slp + WHERE slp.parameter = 'consumption_peak_i0' + ) AS t2 + WHERE t1.id = t2.id; + -- agricultural UPDATE model_draft.ego_demand_loadarea as t1 - SET sector_peakload_agricultural = t2.peak_load - FROM ( SELECT la.id, - coalesce(slp.value * la.sector_consumption_agricultural,0) AS peak_load - FROM model_draft.ego_demand_loadarea AS la, - scenario.ego_slp_parameters AS slp - WHERE slp.parameter = 'consumption_peak_l0') AS t2 - WHERE t1.id = t2.id; + SET sector_peakload_agricultural = t2.peak_load + FROM ( + SELECT la.id, + coalesce(slp.value * la.sector_consumption_agricultural,0) AS peak_load + FROM model_draft.ego_demand_loadarea AS la, + scenario.ego_slp_parameters AS slp + WHERE slp.parameter = 'consumption_peak_l0' + ) AS t2 + WHERE t1.id = t2.id; -- ego scenario log (version,io,schema_name,table_name,script_name,comment) SELECT ego_scenario_log('v0.3.0','output','model_draft','ego_demand_loadarea','ego_dp_loadarea_peakload.sql',' '); diff --git a/dataprocessing/sql_snippets/ego_dp_structure_input_verification.sql b/dataprocessing/sql_snippets/ego_dp_structure_input_verification.sql index c0eadbe4..3723b535 100644 --- a/dataprocessing/sql_snippets/ego_dp_structure_input_verification.sql +++ b/dataprocessing/sql_snippets/ego_dp_structure_input_verification.sql @@ -19,6 +19,7 @@ SELECT ego_scenario_log('v0.3.0','check','openstreetmap','osm_deu_polygon','ego_ SELECT ego_scenario_log('v0.3.0','check','openstreetmap','osm_deu_ways','ego_dp_structure_input_verification.sql','preprocessing verification'); SELECT ego_scenario_log('v0.3.0','check','openstreetmap','osm_deu_nodes','ego_dp_structure_input_verification.sql','preprocessing verification'); SELECT ego_scenario_log('v0.3.0','check','openstreetmap','osm_deu_line','ego_dp_structure_input_verification.sql','preprocessing verification'); +SELECT ego_scenario_log('v0.3.0','check','scenario','ego_slp_parameters','ego_dp_structure_input_verification.sql','preprocessing verification'); SELECT ego_scenario_log('v0.3.0','check','grid','otg_ehvhv_bus_data','ego_dp_structure_input_verification.sql','preprocessing verification'); SELECT ego_scenario_log('v0.3.0','check','society','destatis_zensus_population_per_ha','ego_dp_structure_input_verification.sql','preprocessing verification'); SELECT ego_scenario_log('v0.3.0','check','economy','destatis_gva_per_district','ego_dp_structure_input_verification.sql','preprocessing verification'); @@ -123,6 +124,7 @@ INSERT INTO model_draft.ego_scenario_input(version,oid,database,table_schema (table_schema='openstreetmap' AND table_name='osm_deu_ways') OR (table_schema='openstreetmap' AND table_name='osm_deu_nodes') OR (table_schema='openstreetmap' AND table_name='osm_deu_line') OR + (table_schema='scenario' AND table_name='ego_slp_parameters') OR (table_schema='grid' AND table_name='otg_ehvhv_bus_data') OR (table_schema='society' AND table_name='destatis_zensus_population_per_ha') OR (table_schema='economy' AND table_name='destatis_gva_per_district') OR diff --git a/documentation/bpmn/ego_dp_bpmn_section_loadarea.graphml b/documentation/bpmn/ego_dp_bpmn_section_loadarea.graphml index bc09a2bb..d84a71d1 100644 --- a/documentation/bpmn/ego_dp_bpmn_section_loadarea.graphml +++ b/documentation/bpmn/ego_dp_bpmn_section_loadarea.graphml @@ -123,8 +123,7 @@ osm_deu_polygon_urban_sector_4_agricultural_mview - social.destatis_zensus_population_per_ha_mview -model_draft.ego_demand_la_zensus + model_draft.ego_demand_la_zensus model_draft.ego_demand_la_zensus_cluster model_draft.zensus_population_per_load_area_stats_mview @@ -352,7 +351,7 @@ political_bkg_vg250_1_sta_union_mview - social.destatis_zensus_population_per_ha + social.destatis_zensus_population_per_ha_mview model_draft.ego_demand_la_osm @@ -1268,7 +1267,7 @@ political_boundary.bkg_vg250_statistics_mview - + ego_dp_loadarea_peakload.py @@ -1288,7 +1287,8 @@ political_boundary.bkg_vg250_statistics_mview - model_draft.ego_demand_loadarea + model_draft.ego_demand_loadarea +scenario.ego_slp_parameters @@ -1311,7 +1311,7 @@ political_boundary.bkg_vg250_statistics_mview - model_draft.ego_demand_loadarea_peak_load + model_draft.ego_demand_loadarea @@ -1334,7 +1334,7 @@ political_boundary.bkg_vg250_statistics_mview - 10 h + 1 h From fdfe91ee493ec04bd8695ea7067e6d7a80b4b6d6 Mon Sep 17 00:00:00 2001 From: wolfbunke Date: Thu, 8 Feb 2018 13:57:46 +0100 Subject: [PATCH 049/104] change auto-file structure --- .../doc/preprocessing/boundaries/ego_pp_gn250_metadata.rst | 4 +++- .../doc/preprocessing/boundaries/ego_pp_vg250_metadata.rst | 4 +++- .../doc/preprocessing/ego_dp_res_rea_by_scenario.rst | 4 +++- .../doc/preprocessing/ego_dp_structure_boundaries_vg250.rst | 4 +++- documentation/doc/preprocessing/ego_dp_structure_census.rst | 4 +++- .../doc/preprocessing/ego_dp_structure_osm_landuse.rst | 4 +++- .../doc/preprocessing/ego_dp_structure_scenariolog.rst | 4 +++- .../doc/preprocessing/ego_dp_structure_versioning.rst | 4 +++- .../doc/preprocessing/ego_nep_2015_scenario_capacities.rst | 4 +++- documentation/doc/preprocessing/ego_pre_slp_parameters.rst | 4 +++- documentation/doc/preprocessing/ego_pre_voltage_level.rst | 4 +++- .../doc/preprocessing/oedb_setup_schema_structure.rst | 4 +++- .../openstreetmap/ego_pp_osm_line_street_mview.rst | 4 +++- .../preprocessing/society/ego_pp_destatis_zensus_import.rst | 4 +++- .../preprocessing/society/ego_pp_destatis_zensus_metadata.rst | 4 +++- 15 files changed, 45 insertions(+), 15 deletions(-) diff --git a/documentation/doc/preprocessing/boundaries/ego_pp_gn250_metadata.rst b/documentation/doc/preprocessing/boundaries/ego_pp_gn250_metadata.rst index b8021fc7..48d6efb4 100644 --- a/documentation/doc/preprocessing/boundaries/ego_pp_gn250_metadata.rst +++ b/documentation/doc/preprocessing/boundaries/ego_pp_gn250_metadata.rst @@ -1,6 +1,8 @@ .. AUTOGENERATED - DO NOT TOUCH! -description +ego_pp_gn250_metadata.sql +######################### + Metadata for gn250 tables Geographische Namen 1:250 000 - GN250 diff --git a/documentation/doc/preprocessing/boundaries/ego_pp_vg250_metadata.rst b/documentation/doc/preprocessing/boundaries/ego_pp_vg250_metadata.rst index 4fd80932..33060a92 100644 --- a/documentation/doc/preprocessing/boundaries/ego_pp_vg250_metadata.rst +++ b/documentation/doc/preprocessing/boundaries/ego_pp_vg250_metadata.rst @@ -1,6 +1,8 @@ .. AUTOGENERATED - DO NOT TOUCH! -description +ego_pp_vg250_metadata.sql +######################### + Metadata for vg250 tables diff --git a/documentation/doc/preprocessing/ego_dp_res_rea_by_scenario.rst b/documentation/doc/preprocessing/ego_dp_res_rea_by_scenario.rst index 1c836f36..c2f9e643 100644 --- a/documentation/doc/preprocessing/ego_dp_res_rea_by_scenario.rst +++ b/documentation/doc/preprocessing/ego_dp_res_rea_by_scenario.rst @@ -1,6 +1,8 @@ .. AUTOGENERATED - DO NOT TOUCH! -description +ego_dp_res_rea_by_scenario.sql +############################## + SQL Script that prepare and insert single renewable power plant data by a given scenario in order to create a high resulution allocation renewable energy expansion. diff --git a/documentation/doc/preprocessing/ego_dp_structure_boundaries_vg250.rst b/documentation/doc/preprocessing/ego_dp_structure_boundaries_vg250.rst index 26a1e07b..cadbcfa3 100644 --- a/documentation/doc/preprocessing/ego_dp_structure_boundaries_vg250.rst +++ b/documentation/doc/preprocessing/ego_dp_structure_boundaries_vg250.rst @@ -1,6 +1,8 @@ .. AUTOGENERATED - DO NOT TOUCH! -description +ego_dp_structure_boundaries_vg250.sql +##################################### + Setup borders Inputs are german administrative borders (boundaries.bkg_vg250) Create mviews with transformed CRS (EPSG:3035) and corrected geometries diff --git a/documentation/doc/preprocessing/ego_dp_structure_census.rst b/documentation/doc/preprocessing/ego_dp_structure_census.rst index bfa3d72c..a0f7fa59 100644 --- a/documentation/doc/preprocessing/ego_dp_structure_census.rst +++ b/documentation/doc/preprocessing/ego_dp_structure_census.rst @@ -1,6 +1,8 @@ .. AUTOGENERATED - DO NOT TOUCH! -description +ego_dp_structure_census.sql +########################### + Result tables for eGoDP WARNING: It drops the table and deletes old entries when executed! diff --git a/documentation/doc/preprocessing/ego_dp_structure_osm_landuse.rst b/documentation/doc/preprocessing/ego_dp_structure_osm_landuse.rst index 9501b7b2..bdac2200 100644 --- a/documentation/doc/preprocessing/ego_dp_structure_osm_landuse.rst +++ b/documentation/doc/preprocessing/ego_dp_structure_osm_landuse.rst @@ -1,6 +1,8 @@ .. AUTOGENERATED - DO NOT TOUCH! -description +ego_dp_structure_osm_landuse.sql +################################ + analyse OSM landuse data diff --git a/documentation/doc/preprocessing/ego_dp_structure_scenariolog.rst b/documentation/doc/preprocessing/ego_dp_structure_scenariolog.rst index 1032bb76..8c2612d6 100644 --- a/documentation/doc/preprocessing/ego_dp_structure_scenariolog.rst +++ b/documentation/doc/preprocessing/ego_dp_structure_scenariolog.rst @@ -1,6 +1,8 @@ .. AUTOGENERATED - DO NOT TOUCH! -description +ego_dp_structure_scenariolog.sql +################################ + Setup scenario log table Creates a table to get inserts from other processed tables diff --git a/documentation/doc/preprocessing/ego_dp_structure_versioning.rst b/documentation/doc/preprocessing/ego_dp_structure_versioning.rst index bfa3d72c..1d955efd 100644 --- a/documentation/doc/preprocessing/ego_dp_structure_versioning.rst +++ b/documentation/doc/preprocessing/ego_dp_structure_versioning.rst @@ -1,6 +1,8 @@ .. AUTOGENERATED - DO NOT TOUCH! -description +ego_dp_structure_versioning.sql +############################### + Result tables for eGoDP WARNING: It drops the table and deletes old entries when executed! diff --git a/documentation/doc/preprocessing/ego_nep_2015_scenario_capacities.rst b/documentation/doc/preprocessing/ego_nep_2015_scenario_capacities.rst index 0f382526..72d51e77 100644 --- a/documentation/doc/preprocessing/ego_nep_2015_scenario_capacities.rst +++ b/documentation/doc/preprocessing/ego_nep_2015_scenario_capacities.rst @@ -1,6 +1,8 @@ .. AUTOGENERATED - DO NOT TOUCH! -description +ego_nep_2015_scenario_capacities.sql +#################################### + Setup for scenario capacities NEP 2015 diff --git a/documentation/doc/preprocessing/ego_pre_slp_parameters.rst b/documentation/doc/preprocessing/ego_pre_slp_parameters.rst index c1c085c7..e26c4b68 100644 --- a/documentation/doc/preprocessing/ego_pre_slp_parameters.rst +++ b/documentation/doc/preprocessing/ego_pre_slp_parameters.rst @@ -1,6 +1,8 @@ .. AUTOGENERATED - DO NOT TOUCH! -description +ego_pre_slp_parameters.sql +########################## + Create table with assumptions and parameters on standard load profiles (SLP) WARNING: It drops the table and deletes old entries when executed! diff --git a/documentation/doc/preprocessing/ego_pre_voltage_level.rst b/documentation/doc/preprocessing/ego_pre_voltage_level.rst index 5e939b3c..e23ee410 100644 --- a/documentation/doc/preprocessing/ego_pre_voltage_level.rst +++ b/documentation/doc/preprocessing/ego_pre_voltage_level.rst @@ -1,6 +1,8 @@ .. AUTOGENERATED - DO NOT TOUCH! -description +ego_pre_voltage_level.sql +######################### + Set or adjust voltage_level according to installed capacity and technology of power plants. diff --git a/documentation/doc/preprocessing/oedb_setup_schema_structure.rst b/documentation/doc/preprocessing/oedb_setup_schema_structure.rst index a286046c..b264d5f3 100644 --- a/documentation/doc/preprocessing/oedb_setup_schema_structure.rst +++ b/documentation/doc/preprocessing/oedb_setup_schema_structure.rst @@ -1,6 +1,8 @@ .. AUTOGENERATED - DO NOT TOUCH! -description +oedb_setup_schema_structure.sql +############################### + Setup the OpenEnergy Database (oedb) schema structure diff --git a/documentation/doc/preprocessing/openstreetmap/ego_pp_osm_line_street_mview.rst b/documentation/doc/preprocessing/openstreetmap/ego_pp_osm_line_street_mview.rst index 152c8d2f..0baba1fa 100644 --- a/documentation/doc/preprocessing/openstreetmap/ego_pp_osm_line_street_mview.rst +++ b/documentation/doc/preprocessing/openstreetmap/ego_pp_osm_line_street_mview.rst @@ -1,6 +1,8 @@ .. AUTOGENERATED - DO NOT TOUCH! -description +ego_pp_osm_line_street_mview.sql +################################ + Extracted OSM streets from line diff --git a/documentation/doc/preprocessing/society/ego_pp_destatis_zensus_import.rst b/documentation/doc/preprocessing/society/ego_pp_destatis_zensus_import.rst index 512f9b80..d0f01143 100644 --- a/documentation/doc/preprocessing/society/ego_pp_destatis_zensus_import.rst +++ b/documentation/doc/preprocessing/society/ego_pp_destatis_zensus_import.rst @@ -1,6 +1,8 @@ .. AUTOGENERATED - DO NOT TOUCH! -description +ego_pp_destatis_zensus_import.sql +################################# + Import DESTATIS zensus 2011 table diff --git a/documentation/doc/preprocessing/society/ego_pp_destatis_zensus_metadata.rst b/documentation/doc/preprocessing/society/ego_pp_destatis_zensus_metadata.rst index 512f9b80..b1c4954a 100644 --- a/documentation/doc/preprocessing/society/ego_pp_destatis_zensus_metadata.rst +++ b/documentation/doc/preprocessing/society/ego_pp_destatis_zensus_metadata.rst @@ -1,6 +1,8 @@ .. AUTOGENERATED - DO NOT TOUCH! -description +ego_pp_destatis_zensus_metadata.sql +################################### + Import DESTATIS zensus 2011 table From 464405cf13567439a858cfaaea2d1a5e690bd399 Mon Sep 17 00:00:00 2001 From: wolfbunke Date: Thu, 8 Feb 2018 14:03:46 +0100 Subject: [PATCH 050/104] update preprocessing modules --- documentation/doc/preprocessing/modules.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/documentation/doc/preprocessing/modules.rst b/documentation/doc/preprocessing/modules.rst index 2c8c04a1..5f506d6c 100644 --- a/documentation/doc/preprocessing/modules.rst +++ b/documentation/doc/preprocessing/modules.rst @@ -7,6 +7,8 @@ Preprocessing .. toctree:: :titlesonly: + :maxdepth: 2 + boundaries/* openstreetmap/* From 39f10cc6d7a736cc8865e6c6ab0063563b3f1d65 Mon Sep 17 00:00:00 2001 From: IlkaCu Date: Thu, 8 Feb 2018 14:06:18 +0100 Subject: [PATCH 051/104] update assignment_load #92 --- .../sql_snippets/ego_dp_powerflow_assignment_load.sql | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dataprocessing/sql_snippets/ego_dp_powerflow_assignment_load.sql b/dataprocessing/sql_snippets/ego_dp_powerflow_assignment_load.sql index ce85fdad..a013f680 100644 --- a/dataprocessing/sql_snippets/ego_dp_powerflow_assignment_load.sql +++ b/dataprocessing/sql_snippets/ego_dp_powerflow_assignment_load.sql @@ -1,5 +1,7 @@ /* -Assignment of loads to the relevant bus in the grid model based on grid districts or voronoi cells according to the grid level of the loads considered. +Similar to generators in the previous script the data on loads are converted and clustered to fit the data structure +needed for powerflow calculations. The electricity demand of small scale consumer and industrial large scale consumer is +considered. __copyright__ = "Flensburg University of Applied Sciences, Centre for Sustainable Energy Systems" __license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" From 83cc0e23873a1b787cdad7612e2e514987741c38 Mon Sep 17 00:00:00 2001 From: IlkaCu Date: Thu, 8 Feb 2018 14:08:48 +0100 Subject: [PATCH 052/104] update docu assignment_storage #92 --- .../sql_snippets/ego_dp_powerflow_assignment_storage.sql | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dataprocessing/sql_snippets/ego_dp_powerflow_assignment_storage.sql b/dataprocessing/sql_snippets/ego_dp_powerflow_assignment_storage.sql index 90aee5fc..10bf45b5 100644 --- a/dataprocessing/sql_snippets/ego_dp_powerflow_assignment_storage.sql +++ b/dataprocessing/sql_snippets/ego_dp_powerflow_assignment_storage.sql @@ -1,5 +1,6 @@ /* -Assignment of storage units to the relevant substation in the grid model. +Equivalent to the assignment of generators in this script storages are converted and clustered for all three scenarios +considered in open_eGo. __copyright__ = "Flensburg University of Applied Sciences, Centre for Sustainable Energy Systems" __license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" From 7611b5659ed150152d6342ec5165352e56fb8a17 Mon Sep 17 00:00:00 2001 From: wolfbunke Date: Thu, 8 Feb 2018 14:15:27 +0100 Subject: [PATCH 053/104] add files and structure --- documentation/doc/dataprocessing/modules.rst | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/documentation/doc/dataprocessing/modules.rst b/documentation/doc/dataprocessing/modules.rst index 42ed7a9d..65f2d4e8 100644 --- a/documentation/doc/dataprocessing/modules.rst +++ b/documentation/doc/dataprocessing/modules.rst @@ -3,4 +3,9 @@ Data Processing =============== -.. include:: +Overview of scripts +=================== + +.. toctree:: + :titlesonly: + :maxdepth: 2 From 80286e8fd812a9253a6015665c1f39bfc3971499 Mon Sep 17 00:00:00 2001 From: IlkaCu Date: Thu, 8 Feb 2018 14:32:41 +0100 Subject: [PATCH 054/104] update docu generator_timeseries #92 --- .../sql_snippets/ego_dp_powerflow_timeseries_generator.sql | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dataprocessing/sql_snippets/ego_dp_powerflow_timeseries_generator.sql b/dataprocessing/sql_snippets/ego_dp_powerflow_timeseries_generator.sql index bf7d8b5d..77a2a942 100644 --- a/dataprocessing/sql_snippets/ego_dp_powerflow_timeseries_generator.sql +++ b/dataprocessing/sql_snippets/ego_dp_powerflow_timeseries_generator.sql @@ -1,5 +1,7 @@ /* -Quick workaround to transfer renpassG!S results into the corresponding powerflow table. +This is a quick workaround to transfer `renpassG!S results `_ on generator time series +into the corresponding powerflow table. It adds time series (p_set) for generators in Germany and the neighbouring countries to the +`respective table `_ __copyright__ = "Europa Universitaet Flensburg, Centre for Sustainable Energy Systems" __license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" From ecc800215df1dcf1f57ab2d9c28f58a93df51ffa Mon Sep 17 00:00:00 2001 From: Ludee Date: Thu, 8 Feb 2018 14:36:04 +0100 Subject: [PATCH 055/104] update doku --- dataprocessing/eGo_data_processing.py | 4 +- .../ego_dp_loadarea_griddistrict_results.sql | 436 +++++----- .../ego_dp_loadarea_statistic.sql | 792 +++++++++--------- .../bpmn/ego_dp_bpmn_section_loadarea.graphml | 2 +- 4 files changed, 633 insertions(+), 601 deletions(-) diff --git a/dataprocessing/eGo_data_processing.py b/dataprocessing/eGo_data_processing.py index 036bf87b..3e079a56 100644 --- a/dataprocessing/eGo_data_processing.py +++ b/dataprocessing/eGo_data_processing.py @@ -64,8 +64,8 @@ def data_processing(): 'ego_dp_loadarea_loadcut_voronoi.sql', # Cut Loadarea with MV Voronoi cells 'ego_dp_loadarea_consumption.sql', # Allocate consumption to Loadareas 'ego_dp_loadarea_peakload.sql', # Peak loads per Loadarea - 'ego_dp_loadarea_griddistrict_results.sql', # Results for MV Griddistrict - 'ego_dp_loadarea_statistic.sql', # Results and statistics for eGoDP + 'ego_dp_loadarea_griddistrict_results.sql', # Results for MV Griddistrict + 'ego_dp_loadarea_statistic.sql', # Results and statistics for eGoDP data ## LOWVOLTAGE 'ego_dp_lv_substation.sql', # MVLV Substation inside Loadarea diff --git a/dataprocessing/sql_snippets/ego_dp_loadarea_griddistrict_results.sql b/dataprocessing/sql_snippets/ego_dp_loadarea_griddistrict_results.sql index 98c43de9..6971346c 100644 --- a/dataprocessing/sql_snippets/ego_dp_loadarea_griddistrict_results.sql +++ b/dataprocessing/sql_snippets/ego_dp_loadarea_griddistrict_results.sql @@ -1,268 +1,285 @@ /* -results per mv-griddistrict -area -municipality types and grouping -population results -consumption results - -__copyright__ = "Reiner Lemoine Institut" -__license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" -__url__ = "https://github.com/openego/data_processing/blob/master/LICENSE" -__author__ = "Ludee" +Results for MV Griddistrict +After finishing the Loadareas we can aggregate the results for the MV Griddistricts: +Area of MV Griddistrict. +Municipality (Gemeinden). +Municipality parts (Gemeinde-Einzelteile). +Municipality types. +Population results. +Loadarea results (Area, Free area, Share). +Consumption results. + +__copyright__ = "Reiner Lemoine Institut" +__license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" +__url__ = "https://github.com/openego/data_processing/blob/master/LICENSE" +__author__ = "Ludee" */ -- ego scenario log (version,io,schema_name,table_name,script_name,comment) SELECT ego_scenario_log('v0.3.0','input','model_draft','ego_grid_mv_griddistrict','ego_dp_loadarea_griddistrict_results.sql',' '); --- area -UPDATE model_draft.ego_grid_mv_griddistrict AS t1 -SET area_ha = t2.area_ha -FROM (SELECT gd.subst_id, - ST_AREA(gd.geom)/10000 AS area_ha - FROM model_draft.ego_grid_mv_griddistrict AS gd - )AS t2 -WHERE t1.subst_id = t2.subst_id; +-- Area of MV Griddistrict +UPDATE model_draft.ego_grid_mv_griddistrict AS t1 + SET area_ha = t2.area_ha + FROM ( + SELECT gd.subst_id, + ST_AREA(gd.geom)/10000 AS area_ha + FROM model_draft.ego_grid_mv_griddistrict AS gd + )AS t2 + WHERE t1.subst_id = t2.subst_id; --- municipality and method types - -- ego scenario log (version,io,schema_name,table_name,script_name,comment) SELECT ego_scenario_log('v0.3.0','input', 'boundaries','bkg_vg250_6_gem','ego_dp_loadarea_griddistrict_results.sql',' '); - - --- Gemeinden -UPDATE model_draft.ego_grid_mv_griddistrict AS t1 -SET gem = t2.gem -FROM (SELECT gd.subst_id, - COUNT(ST_PointOnSurface(gem.geom))::integer AS gem - FROM boundaries.bkg_vg250_6_gem AS gem, - model_draft.ego_grid_mv_griddistrict AS gd - WHERE gd.geom && ST_TRANSFORM(gem.geom,3035) AND - ST_CONTAINS(gd.geom,ST_PointOnSurface(ST_TRANSFORM(gem.geom,3035))) - GROUP BY gd.subst_id - )AS t2 -WHERE t1.subst_id = t2.subst_id; - +-- Municipality (Gemeinden) +UPDATE model_draft.ego_grid_mv_griddistrict AS t1 + SET gem = t2.gem + FROM ( + SELECT gd.subst_id, + COUNT(ST_PointOnSurface(gem.geom))::integer AS gem + FROM boundaries.bkg_vg250_6_gem AS gem, + model_draft.ego_grid_mv_griddistrict AS gd + WHERE gd.geom && ST_TRANSFORM(gem.geom,3035) AND + ST_CONTAINS(gd.geom,ST_PointOnSurface(ST_TRANSFORM(gem.geom,3035))) + GROUP BY gd.subst_id + )AS t2 + WHERE t1.subst_id = t2.subst_id; + + -- ego scenario log (version,io,schema_name,table_name,script_name,comment) SELECT ego_scenario_log('v0.3.0','input','model_draft','ego_boundaries_bkg_vg250_6_gem_clean','ego_dp_loadarea_griddistrict_results.sql',' '); +-- Municipality parts (Gemeinde-Einzelteile) +UPDATE model_draft.ego_grid_mv_griddistrict AS t1 + SET gem_clean = t2.gem_clean + FROM ( + SELECT gd.subst_id, + COUNT(ST_PointOnSurface(gem.geom))::integer AS gem_clean + FROM model_draft.ego_boundaries_bkg_vg250_6_gem_clean AS gem, + model_draft.ego_grid_mv_griddistrict AS gd + WHERE gd.geom && gem.geom AND + ST_CONTAINS(gd.geom,ST_PointOnSurface(gem.geom)) + GROUP BY gd.subst_id + )AS t2 + WHERE t1.subst_id = t2.subst_id; --- Gemeinde Parts -UPDATE model_draft.ego_grid_mv_griddistrict AS t1 -SET gem_clean = t2.gem_clean -FROM (SELECT gd.subst_id, - COUNT(ST_PointOnSurface(gem.geom))::integer AS gem_clean - FROM model_draft.ego_boundaries_bkg_vg250_6_gem_clean AS gem, - - model_draft.ego_grid_mv_griddistrict AS gd - WHERE gd.geom && gem.geom AND - ST_CONTAINS(gd.geom,ST_PointOnSurface(gem.geom)) - GROUP BY gd.subst_id - )AS t2 -WHERE t1.subst_id = t2.subst_id; -- ego scenario log (version,io,schema_name,table_name,script_name,comment) SELECT ego_scenario_log('v0.3.0','input','model_draft','ego_grid_mv_griddistrict_type1','ego_dp_loadarea_griddistrict_results.sql',' '); --- Type1 -UPDATE model_draft.ego_grid_mv_griddistrict AS t1 -SET type1 = t2.type1 -FROM (SELECT gd.subst_id, - COUNT(ST_PointOnSurface(typ.geom))::integer AS type1 - FROM model_draft.ego_grid_mv_griddistrict_type1 AS typ, - model_draft.ego_grid_mv_griddistrict AS gd - WHERE gd.geom && typ.geom AND - ST_CONTAINS(gd.geom,ST_PointOnSurface(typ.geom)) - GROUP BY gd.subst_id - )AS t2 -WHERE t1.subst_id = t2.subst_id; +-- Municipality types - Type1 +UPDATE model_draft.ego_grid_mv_griddistrict AS t1 + SET type1 = t2.type1 + FROM ( + SELECT gd.subst_id, + COUNT(ST_PointOnSurface(typ.geom))::integer AS type1 + FROM model_draft.ego_grid_mv_griddistrict_type1 AS typ, + model_draft.ego_grid_mv_griddistrict AS gd + WHERE gd.geom && typ.geom AND + ST_CONTAINS(gd.geom,ST_PointOnSurface(typ.geom)) + GROUP BY gd.subst_id + )AS t2 + WHERE t1.subst_id = t2.subst_id; + -- ego scenario log (version,io,schema_name,table_name,script_name,comment) SELECT ego_scenario_log('v0.3.0','input','model_draft','ego_boundaries_hvmv_subst_per_gem_1_mview','ego_dp_loadarea_griddistrict_results.sql',' '); - -UPDATE model_draft.ego_grid_mv_griddistrict AS t1 -SET type1_cnt = t2.type_cnt -FROM (SELECT gd.subst_id, - COUNT(ST_PointOnSurface(typ.geom))::integer AS type_cnt - FROM model_draft.ego_boundaries_hvmv_subst_per_gem_1_mview AS typ, - model_draft.ego_grid_mv_griddistrict AS gd - WHERE gd.geom && typ.geom AND - ST_CONTAINS(gd.geom,ST_PointOnSurface(typ.geom)) - GROUP BY gd.subst_id - )AS t2 -WHERE t1.subst_id = t2.subst_id; +UPDATE model_draft.ego_grid_mv_griddistrict AS t1 + SET type1_cnt = t2.type_cnt + FROM ( + SELECT gd.subst_id, + COUNT(ST_PointOnSurface(typ.geom))::integer AS type_cnt + FROM model_draft.ego_boundaries_hvmv_subst_per_gem_1_mview AS typ, + model_draft.ego_grid_mv_griddistrict AS gd + WHERE gd.geom && typ.geom AND + ST_CONTAINS(gd.geom,ST_PointOnSurface(typ.geom)) + GROUP BY gd.subst_id + )AS t2 + WHERE t1.subst_id = t2.subst_id; -- ego scenario log (version,io,schema_name,table_name,script_name,comment) SELECT ego_scenario_log('v0.3.0','input','model_draft','ego_grid_mv_griddistrict_type2','ego_dp_loadarea_griddistrict_results.sql',' '); --- Type2 -UPDATE model_draft.ego_grid_mv_griddistrict AS t1 -SET type2 = t2.type2 -FROM (SELECT gd.subst_id, - COUNT(ST_PointOnSurface(typ.geom))::integer AS type2 - FROM model_draft.ego_grid_mv_griddistrict_type2 AS typ, - model_draft.ego_grid_mv_griddistrict AS gd - WHERE gd.geom && typ.geom AND - ST_CONTAINS(gd.geom,ST_PointOnSurface(typ.geom)) - GROUP BY gd.subst_id - )AS t2 -WHERE t1.subst_id = t2.subst_id; +-- Municipality types - Type2 +UPDATE model_draft.ego_grid_mv_griddistrict AS t1 + SET type2 = t2.type2 + FROM ( + SELECT gd.subst_id, + COUNT(ST_PointOnSurface(typ.geom))::integer AS type2 + FROM model_draft.ego_grid_mv_griddistrict_type2 AS typ, + model_draft.ego_grid_mv_griddistrict AS gd + WHERE gd.geom && typ.geom AND + ST_CONTAINS(gd.geom,ST_PointOnSurface(typ.geom)) + GROUP BY gd.subst_id + )AS t2 + WHERE t1.subst_id = t2.subst_id; -- ego scenario log (version,io,schema_name,table_name,script_name,comment) SELECT ego_scenario_log('v0.3.0','input','model_draft','ego_grid_hvmv_substation_voronoi_cut','ego_dp_loadarea_griddistrict_results.sql',' '); -UPDATE model_draft.ego_grid_mv_griddistrict AS t1 -SET type2_cnt = t2.type_cnt -FROM (SELECT gd.subst_id, - COUNT(ST_PointOnSurface(typ.geom))::integer AS type_cnt - FROM model_draft.ego_grid_hvmv_substation_voronoi_cut AS typ, - model_draft.ego_grid_mv_griddistrict AS gd - WHERE gd.geom && typ.geom AND - ST_CONTAINS(gd.geom,ST_PointOnSurface(typ.geom)) - GROUP BY gd.subst_id - )AS t2 -WHERE t1.subst_id = t2.subst_id; +UPDATE model_draft.ego_grid_mv_griddistrict AS t1 + SET type2_cnt = t2.type_cnt + FROM ( + SELECT gd.subst_id, + COUNT(ST_PointOnSurface(typ.geom))::integer AS type_cnt + FROM model_draft.ego_grid_hvmv_substation_voronoi_cut AS typ, + model_draft.ego_grid_mv_griddistrict AS gd + WHERE gd.geom && typ.geom AND + ST_CONTAINS(gd.geom,ST_PointOnSurface(typ.geom)) + GROUP BY gd.subst_id + )AS t2 + WHERE t1.subst_id = t2.subst_id; -- ego scenario log (version,io,schema_name,table_name,script_name,comment) SELECT ego_scenario_log('v0.3.0','input','model_draft','ego_grid_mv_griddistrict_type3','ego_dp_loadarea_griddistrict_results.sql',' '); --- Type3 -UPDATE model_draft.ego_grid_mv_griddistrict AS t1 -SET type3 = t2.type3 -FROM (SELECT gd.subst_id, - COUNT(ST_PointOnSurface(typ.geom))::integer AS type3 - FROM model_draft.ego_grid_mv_griddistrict_type3 AS typ, - model_draft.ego_grid_mv_griddistrict AS gd - WHERE gd.geom && typ.geom AND - ST_CONTAINS(gd.geom,ST_PointOnSurface(typ.geom)) - GROUP BY gd.subst_id - )AS t2 -WHERE t1.subst_id = t2.subst_id; +-- Municipality types - Type3 +UPDATE model_draft.ego_grid_mv_griddistrict AS t1 + SET type3 = t2.type3 + FROM ( + SELECT gd.subst_id, + COUNT(ST_PointOnSurface(typ.geom))::integer AS type3 + FROM model_draft.ego_grid_mv_griddistrict_type3 AS typ, + model_draft.ego_grid_mv_griddistrict AS gd + WHERE gd.geom && typ.geom AND + ST_CONTAINS(gd.geom,ST_PointOnSurface(typ.geom)) + GROUP BY gd.subst_id + )AS t2 + WHERE t1.subst_id = t2.subst_id; -- ego scenario log (version,io,schema_name,table_name,script_name,comment) SELECT ego_scenario_log('v0.3.0','input','model_draft','ego_boundaries_hvmv_subst_per_gem_3_mview','ego_dp_loadarea_griddistrict_results.sql',' '); -UPDATE model_draft.ego_grid_mv_griddistrict AS t1 -SET type3_cnt = t2.type_cnt -FROM (SELECT gd.subst_id, - COUNT(ST_PointOnSurface(typ.geom))::integer AS type_cnt - FROM model_draft.ego_boundaries_hvmv_subst_per_gem_3_mview AS typ, - model_draft.ego_grid_mv_griddistrict AS gd - WHERE gd.geom && typ.geom AND - ST_CONTAINS(gd.geom,ST_PointOnSurface(typ.geom)) - GROUP BY gd.subst_id - )AS t2 -WHERE t1.subst_id = t2.subst_id; +UPDATE model_draft.ego_grid_mv_griddistrict AS t1 + SET type3_cnt = t2.type_cnt + FROM ( + SELECT gd.subst_id, + COUNT(ST_PointOnSurface(typ.geom))::integer AS type_cnt + FROM model_draft.ego_boundaries_hvmv_subst_per_gem_3_mview AS typ, + model_draft.ego_grid_mv_griddistrict AS gd + WHERE gd.geom && typ.geom AND + ST_CONTAINS(gd.geom,ST_PointOnSurface(typ.geom)) + GROUP BY gd.subst_id + )AS t2 + WHERE t1.subst_id = t2.subst_id; -- Group -UPDATE model_draft.ego_grid_mv_griddistrict -SET "group" = (SELECT - CASE - WHEN type1 = '1' AND type2 = '0' AND type3 = '1' THEN 'A' -- ländlich - WHEN type1 = '0' AND type2 = '1' AND type3 = '1' THEN 'B' - WHEN type1 = '1' AND type2 = '0' AND type3 = '0' THEN 'C' - WHEN type1 = '0' AND type2 = '1' AND type3 = '0' THEN 'D' -- städtisch - END); - +UPDATE model_draft.ego_grid_mv_griddistrict + SET "group" = (SELECT + CASE + WHEN type1 = '1' AND type2 = '0' AND type3 = '1' THEN 'A' -- ländlich + WHEN type1 = '0' AND type2 = '1' AND type3 = '1' THEN 'B' + WHEN type1 = '1' AND type2 = '0' AND type3 = '0' THEN 'C' + WHEN type1 = '0' AND type2 = '1' AND type3 = '0' THEN 'D' -- städtisch + END); -- ego scenario log (version,io,schema_name,table_name,script_name,comment) SELECT ego_scenario_log('v0.3.0','input','society','destatis_zensus_population_per_ha_mview','ego_dp_loadarea_griddistrict_results.sql',' '); --- population results -UPDATE model_draft.ego_grid_mv_griddistrict AS t1 -SET zensus_sum = t2.zensus_sum, - zensus_count = t2.zensus_count, - zensus_density = t2.zensus_density, - population_density = t2.population_density -FROM (SELECT gd.subst_id AS subst_id, - SUM(pts.population)::integer AS zensus_sum, - COUNT(pts.geom_point)::integer AS zensus_count, - (SUM(pts.population)/COUNT(pts.geom_point))::numeric AS zensus_density, - (SUM(pts.population)/gd.area_ha)::numeric AS population_density - FROM model_draft.ego_grid_mv_griddistrict AS gd, - society.destatis_zensus_population_per_ha_mview AS pts - WHERE gd.geom && pts.geom_point AND - ST_CONTAINS(gd.geom,pts.geom_point) - GROUP BY gd.subst_id - )AS t2 -WHERE t1.subst_id = t2.subst_id; - +-- Population results +UPDATE model_draft.ego_grid_mv_griddistrict AS t1 + SET zensus_sum = t2.zensus_sum, + zensus_count = t2.zensus_count, + zensus_density = t2.zensus_density, + population_density = t2.population_density + FROM ( + SELECT gd.subst_id AS subst_id, + SUM(pts.population)::integer AS zensus_sum, + COUNT(pts.geom_point)::integer AS zensus_count, + (SUM(pts.population)/COUNT(pts.geom_point))::numeric AS zensus_density, + (SUM(pts.population)/gd.area_ha)::numeric AS population_density + FROM model_draft.ego_grid_mv_griddistrict AS gd, + society.destatis_zensus_population_per_ha_mview AS pts + WHERE gd.geom && pts.geom_point AND + ST_CONTAINS(gd.geom,pts.geom_point) + GROUP BY gd.subst_id + )AS t2 + WHERE t1.subst_id = t2.subst_id; --- loadarea results -- ego scenario log (version,io,schema_name,table_name,script_name,comment) SELECT ego_scenario_log('v0.3.0','input','model_draft','ego_demand_loadarea','ego_dp_loadarea_griddistrict_results.sql',' '); --- LA Count -UPDATE model_draft.ego_grid_mv_griddistrict AS t1 -SET la_count = t2.la_count -FROM (SELECT gd.subst_id, - COUNT(ST_PointOnSurface(la.geom))::integer AS la_count - FROM model_draft.ego_demand_loadarea AS la, - model_draft.ego_grid_mv_griddistrict AS gd - WHERE gd.geom && la.geom AND - ST_CONTAINS(gd.geom,ST_PointOnSurface(la.geom)) - GROUP BY gd.subst_id - )AS t2 -WHERE t1.subst_id = t2.subst_id; +-- Loadarea results - count +UPDATE model_draft.ego_grid_mv_griddistrict AS t1 + SET la_count = t2.la_count + FROM ( + SELECT gd.subst_id, + COUNT(ST_PointOnSurface(la.geom))::integer AS la_count + FROM model_draft.ego_demand_loadarea AS la, + model_draft.ego_grid_mv_griddistrict AS gd + WHERE gd.geom && la.geom AND + ST_CONTAINS(gd.geom,ST_PointOnSurface(la.geom)) + GROUP BY gd.subst_id + )AS t2 + WHERE t1.subst_id = t2.subst_id; + +-- Loadarea results - area +UPDATE model_draft.ego_grid_mv_griddistrict AS t1 + SET la_area = t2.la_area + FROM ( + SELECT gd.subst_id, + SUM(ST_AREA(la.geom)/10000) ::decimal(10,3) AS la_area + FROM model_draft.ego_demand_loadarea AS la, + model_draft.ego_grid_mv_griddistrict AS gd + WHERE gd.geom && la.geom AND + ST_CONTAINS(gd.geom,ST_PointOnSurface(la.geom)) + GROUP BY gd.subst_id + )AS t2 + WHERE t1.subst_id = t2.subst_id; + +-- Loadarea results - free_area (not LA Area) +UPDATE model_draft.ego_grid_mv_griddistrict AS t1 + SET free_area = t2.free_area + FROM ( + SELECT gd.subst_id, + SUM(gd.area_ha)-SUM(gd.la_area) AS free_area + FROM model_draft.ego_grid_mv_griddistrict as gd + GROUP BY gd.subst_id + )AS t2 + WHERE t1.subst_id = t2.subst_id; + +-- Loadarea results - free_area share +UPDATE model_draft.ego_grid_mv_griddistrict AS t1 + SET area_share = t2.area_share + FROM ( + SELECT gd.subst_id, + SUM(gd.la_area)/SUM(gd.area_ha)*100 AS area_share + FROM model_draft.ego_grid_mv_griddistrict as gd + GROUP BY gd.subst_id + )AS t2 + WHERE t1.subst_id = t2.subst_id; --- LA Area 3606 -UPDATE model_draft.ego_grid_mv_griddistrict AS t1 -SET la_area = t2.la_area -FROM (SELECT gd.subst_id, - SUM(ST_AREA(la.geom)/10000) ::decimal(10,3) AS la_area - FROM model_draft.ego_demand_loadarea AS la, - model_draft.ego_grid_mv_griddistrict AS gd - WHERE gd.geom && la.geom AND - ST_CONTAINS(gd.geom,ST_PointOnSurface(la.geom)) - GROUP BY gd.subst_id - )AS t2 -WHERE t1.subst_id = t2.subst_id; - --- not LA Area (free_area) -UPDATE model_draft.ego_grid_mv_griddistrict AS t1 -SET free_area = t2.free_area -FROM (SELECT gd.subst_id, - SUM(gd.area_ha)-SUM(gd.la_area) AS free_area - FROM model_draft.ego_grid_mv_griddistrict as gd - GROUP BY gd.subst_id - )AS t2 -WHERE t1.subst_id = t2.subst_id; +/* +SELECT MAX(area_share) AS max, + MIN(area_share) AS min +FROM model_draft.ego_grid_mv_griddistrict ; +*/ --- not LA Area (free_area) -UPDATE model_draft.ego_grid_mv_griddistrict AS t1 -SET area_share = t2.area_share -FROM (SELECT gd.subst_id, - SUM(gd.la_area)/SUM(gd.area_ha)*100 AS area_share - FROM model_draft.ego_grid_mv_griddistrict as gd - GROUP BY gd.subst_id - )AS t2 -WHERE t1.subst_id = t2.subst_id; -/* SELECT MAX(area_share) AS max, - MIN(area_share) AS min -FROM model_draft.ego_grid_mv_griddistrict ; */ +-- Consumption results +UPDATE model_draft.ego_grid_mv_griddistrict AS t1 + SET consumption = t2.consumption + FROM ( + SELECT gd.subst_id, + SUM(la.sector_consumption_sum)::numeric AS consumption + FROM model_draft.ego_demand_loadarea AS la, + model_draft.ego_grid_mv_griddistrict AS gd + WHERE gd.subst_id = la.subst_id + GROUP BY gd.subst_id + )AS t2 + WHERE t1.subst_id = t2.subst_id; +UPDATE model_draft.ego_grid_mv_griddistrict AS t1 + SET consumption_per_area = consumption *1000000 / area_ha; +-- ego scenario log (version,io,schema_name,table_name,script_name,comment) +SELECT ego_scenario_log('v0.3.0','output','model_draft','ego_grid_mv_griddistrict','ego_dp_loadarea_griddistrict_results.sql',' '); --- consumption results -UPDATE model_draft.ego_grid_mv_griddistrict AS t1 - SET consumption = t2.consumption - FROM (SELECT gd.subst_id, - SUM(la.sector_consumption_sum)::numeric AS consumption - FROM model_draft.ego_demand_loadarea AS la, - model_draft.ego_grid_mv_griddistrict AS gd - WHERE gd.subst_id = la.subst_id - GROUP BY gd.subst_id - )AS t2 - WHERE t1.subst_id = t2.subst_id; - -UPDATE model_draft.ego_grid_mv_griddistrict AS t1 - SET consumption_per_area = consumption *1000000 / area_ha; /* -- test SELECT SUM(mvgd.consumption) @@ -281,11 +298,6 @@ UPDATE model_draft.ego_grid_mv_griddistrict AS t1 )AS t2 WHERE t1.subst_id = t2.subst_id; */ --- ego scenario log (version,io,schema_name,table_name,script_name,comment) -SELECT ego_scenario_log('v0.3.0','output','model_draft','ego_grid_mv_griddistrict','ego_dp_loadarea_griddistrict_results.sql',' '); - - - /* ---------- ---------- ---------- ---------- ---------- ---------- diff --git a/dataprocessing/sql_snippets/ego_dp_loadarea_statistic.sql b/dataprocessing/sql_snippets/ego_dp_loadarea_statistic.sql index a1f40186..c94b2d3c 100644 --- a/dataprocessing/sql_snippets/ego_dp_loadarea_statistic.sql +++ b/dataprocessing/sql_snippets/ego_dp_loadarea_statistic.sql @@ -1,12 +1,14 @@ /* -loadareas per mv-griddistrict -insert cutted load melt -exclude smaller 100m2 - -__copyright__ = "Reiner Lemoine Institut" -__license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" -__url__ = "https://github.com/openego/data_processing/blob/master/LICENSE" -__author__ = "Ludee" +Results and statistics for eGoDP data +Substation, Loadarea, MV Griddistricts and Consumption. +MV Griddistrict types. +Municipality (Gemeinden). +Calculate statistics for BKG vg250. + +__copyright__ = "Reiner Lemoine Institut" +__license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" +__url__ = "https://github.com/openego/data_processing/blob/master/LICENSE" +__author__ = "Ludee" */ -- ego scenario log (version,io,schema_name,table_name,script_name,comment) @@ -18,429 +20,450 @@ SELECT ego_scenario_log('v0.3.0','input','model_draft','ego_grid_mv_griddistrict -- ego scenario log (version,io,schema_name,table_name,script_name,comment) SELECT ego_scenario_log('v0.3.0','input','model_draft','ego_demand_loadarea','ego_dp_loadarea_statistic.sql',' '); +/* +-- Results and statistics for substation, Loadarea, MV Griddistricts and Consumption +DROP TABLE IF EXISTS model_draft.ego_data_processing_results CASCADE; +CREATE TABLE model_draft.ego_data_processing_results ( + id SERIAL, + version text, + schema_name text, + table_name text, + description text, + result integer, + unit text, + timestamp timestamp, + CONSTRAINT ego_data_processing_results_pkey PRIMARY KEY (id)); +*/ --- results and statistics for substation, load area, MV grid districts and consumption -DROP TABLE IF EXISTS model_draft.ego_data_processing_results CASCADE; -CREATE TABLE model_draft.ego_data_processing_results ( - id SERIAL, - schema_name text, - table_name text, - description text, - result integer, - unit text, - timestamp timestamp, - CONSTRAINT ego_data_processing_results_pkey PRIMARY KEY (id)); - -INSERT INTO model_draft.ego_data_processing_results (schema_name,table_name,description,result,unit,timestamp) - -- Count SUB - SELECT 'model_draft', - 'ego_grid_hvmv_substation', - 'Number of substations', - COUNT(subst_id) ::integer AS result, - ' ' ::text AS unit, - NOW() AT TIME ZONE 'Europe/Berlin' - FROM model_draft.ego_grid_hvmv_substation - UNION ALL - -- Count MVGD - SELECT 'model_draft', - 'ego_grid_mv_griddistrict', - 'Number of grid districts', - COUNT(subst_id) ::integer AS result, - ' ' ::text AS unit, - NOW() AT TIME ZONE 'Europe/Berlin' - FROM model_draft.ego_grid_mv_griddistrict - - UNION ALL - -- Area vg250.gem - SELECT 'boundaries', - 'bkg_vg250_6_gem', - 'Gemeinde area', - SUM(ST_AREA(ST_TRANSFORM(geom,3025))/10000) ::integer AS result, - 'ha' ::text AS unit, - NOW() AT TIME ZONE 'Europe/Berlin' - FROM boundaries.bkg_vg250_6_gem - UNION ALL - -- Area vg250.gem_clean - SELECT 'model_draft', - 'ego_boundaries_bkg_vg250_6_gem_clean', - 'Processed gemeinde area', - SUM(ST_AREA(ST_TRANSFORM(geom,3025))/10000) ::integer AS result, - 'ha' ::text AS unit, - NOW() AT TIME ZONE 'Europe/Berlin' - FROM model_draft.ego_boundaries_bkg_vg250_6_gem_clean - UNION ALL - -- Area GD - SELECT 'model_draft', - 'ego_grid_mv_griddistrict', - 'Grid District area', - SUM(ST_AREA(geom)/10000) ::integer AS result, - 'ha' ::text AS unit, - NOW() AT TIME ZONE 'Europe/Berlin' - FROM model_draft.ego_grid_mv_griddistrict - UNION ALL - -- Min area GD calc - SELECT 'model_draft', - 'ego_grid_mv_griddistrict', - 'Minmal GD area', - MIN(ST_AREA(geom)/10000) ::decimal(10,1) AS result, - 'ha' ::text AS unit, - NOW() AT TIME ZONE 'Europe/Berlin' - FROM model_draft.ego_grid_mv_griddistrict - UNION ALL - -- Min area GD area - SELECT 'model_draft', - 'ego_grid_mv_griddistrict', - 'Minmal GD area', - MIN(area_ha) ::decimal(10,1) AS result, - 'ha' ::text AS unit, - NOW() AT TIME ZONE 'Europe/Berlin' - FROM model_draft.ego_grid_mv_griddistrict - UNION ALL - -- Max area GD - SELECT 'model_draft', - 'ego_grid_mv_griddistrict', - 'Maximal GD area', - MAX(ST_AREA(geom)/10000) ::decimal(10,1) AS result, - 'ha' ::text AS unit, - NOW() AT TIME ZONE 'Europe/Berlin' - FROM model_draft.ego_grid_mv_griddistrict - UNION ALL - -- Count LA - SELECT 'model_draft', - 'ego_demand_loadarea', - 'Number of Load Areas', - COUNT(id) ::integer AS result, - ' ' ::text AS unit, - NOW() AT TIME ZONE 'Europe/Berlin' - FROM model_draft.ego_demand_loadarea - UNION ALL - -- Area LA - SELECT 'model_draft', - 'ego_demand_loadarea', - 'Load Areas area', - SUM(ST_AREA(geom)/10000) ::decimal(10,1) AS result, - 'ha' ::text AS unit, - NOW() AT TIME ZONE 'Europe/Berlin' - FROM model_draft.ego_demand_loadarea - - UNION ALL - -- Min area LA - SELECT 'model_draft', - 'ego_demand_loadarea', - 'Minmal LA area', - MIN(ST_AREA(geom)/10000) ::decimal(10,3) AS result, - 'ha' ::text AS unit, - NOW() AT TIME ZONE 'Europe/Berlin' - FROM model_draft.ego_demand_loadarea - UNION ALL - -- Max area LA - SELECT 'model_draft', - 'ego_demand_loadarea', - 'Maximal LA area', - MAX(ST_AREA(geom)/10000) ::decimal(10,3) AS result, - 'ha' ::text AS unit, - NOW() AT TIME ZONE 'Europe/Berlin' - FROM model_draft.ego_demand_loadarea; +INSERT INTO model_draft.ego_data_processing_results (version,schema_name,table_name,description,result,unit,timestamp) + -- Count SUB + SELECT 'v0.3.0', + 'model_draft', + 'ego_grid_hvmv_substation', + 'Number of substations', + COUNT(subst_id) ::integer AS result, + ' ' ::text AS unit, + NOW() AT TIME ZONE 'Europe/Berlin' + FROM model_draft.ego_grid_hvmv_substation + UNION ALL + + -- Count MVGD + SELECT 'v0.3.0', + 'model_draft', + 'ego_grid_mv_griddistrict', + 'Number of grid districts', + COUNT(subst_id) ::integer AS result, + ' ' ::text AS unit, + NOW() AT TIME ZONE 'Europe/Berlin' + FROM model_draft.ego_grid_mv_griddistrict + UNION ALL + + -- Area vg250.gem + SELECT 'v0.3.0', + 'boundaries', + 'bkg_vg250_6_gem', + 'Gemeinde area', + SUM(ST_AREA(ST_TRANSFORM(geom,3025))/10000) ::integer AS result, + 'ha' ::text AS unit, + NOW() AT TIME ZONE 'Europe/Berlin' + FROM boundaries.bkg_vg250_6_gem + UNION ALL + + -- Area vg250.gem_clean + SELECT 'v0.3.0', + 'model_draft', + 'ego_boundaries_bkg_vg250_6_gem_clean', + 'Processed gemeinde area', + SUM(ST_AREA(ST_TRANSFORM(geom,3025))/10000) ::integer AS result, + 'ha' ::text AS unit, + NOW() AT TIME ZONE 'Europe/Berlin' + FROM model_draft.ego_boundaries_bkg_vg250_6_gem_clean + UNION ALL + + -- Area GD + SELECT 'v0.3.0', + 'model_draft', + 'ego_grid_mv_griddistrict', + 'Grid District area', + SUM(ST_AREA(geom)/10000) ::integer AS result, + 'ha' ::text AS unit, + NOW() AT TIME ZONE 'Europe/Berlin' + FROM model_draft.ego_grid_mv_griddistrict + UNION ALL + + -- Min area GD calc + SELECT 'v0.3.0', + 'model_draft', + 'ego_grid_mv_griddistrict', + 'Minmal GD area calculated', + MIN(ST_AREA(geom)/10000) ::decimal(10,1) AS result, + 'ha' ::text AS unit, + NOW() AT TIME ZONE 'Europe/Berlin' + FROM model_draft.ego_grid_mv_griddistrict + UNION ALL + + -- Min area GD area + SELECT 'v0.3.0', + 'model_draft', + 'ego_grid_mv_griddistrict', + 'Minmal GD area from table', + MIN(area_ha) ::decimal(10,1) AS result, + 'ha' ::text AS unit, + NOW() AT TIME ZONE 'Europe/Berlin' + FROM model_draft.ego_grid_mv_griddistrict + UNION ALL + + -- Max area GD + SELECT 'v0.3.0', + 'model_draft', + 'ego_grid_mv_griddistrict', + 'Maximal GD area', + MAX(ST_AREA(geom)/10000) ::decimal(10,1) AS result, + 'ha' ::text AS unit, + NOW() AT TIME ZONE 'Europe/Berlin' + FROM model_draft.ego_grid_mv_griddistrict + UNION ALL + + -- Count LA + SELECT 'v0.3.0', + 'model_draft', + 'ego_demand_loadarea', + 'Number of Load Areas', + COUNT(id) ::integer AS result, + ' ' ::text AS unit, + NOW() AT TIME ZONE 'Europe/Berlin' + FROM model_draft.ego_demand_loadarea + UNION ALL + + -- Area LA + SELECT 'v0.3.0', + 'model_draft', + 'ego_demand_loadarea', + 'Load Areas area', + SUM(ST_AREA(geom)/10000) ::decimal(10,1) AS result, + 'ha' ::text AS unit, + NOW() AT TIME ZONE 'Europe/Berlin' + FROM model_draft.ego_demand_loadarea + UNION ALL + + -- Min area LA + SELECT 'v0.3.0', + 'model_draft', + 'ego_demand_loadarea', + 'Minmal LA area', + MIN(ST_AREA(geom)/10000) ::decimal(10,3) AS result, + 'ha' ::text AS unit, + NOW() AT TIME ZONE 'Europe/Berlin' + FROM model_draft.ego_demand_loadarea + UNION ALL + + -- Max area LA + SELECT 'v0.3.0', + 'model_draft', + 'ego_demand_loadarea', + 'Maximal LA area', + MAX(ST_AREA(geom)/10000) ::decimal(10,3) AS result, + 'ha' ::text AS unit, + NOW() AT TIME ZONE 'Europe/Berlin' + FROM model_draft.ego_demand_loadarea; -- Set grants and owner ALTER TABLE model_draft.ego_data_processing_results OWNER TO oeuser; +-- metadata +COMMENT ON TABLE model_draft.ego_data_processing_results IS '{ + "comment": "eGoDP - Temporary table", + "version": "v0.3.0" }'; + -- ego scenario log (version,io,schema_name,table_name,script_name,comment) SELECT ego_scenario_log('v0.3.0','output','model_draft','ego_data_processing_results','ego_dp_loadarea_statistic.sql',' '); -/* -- mv-griddistrict types -DROP TABLE IF EXISTS model_draft.ego_data_processing_results_mvgd CASCADE; -CREATE TABLE model_draft.ego_data_processing_results_mvgd AS - SELECT subst_id, - '0' ::integer AS type1, - '0' ::integer AS type1_cnt, - '0' ::integer AS type2, - '0' ::integer AS type2_cnt, - '0' ::integer AS type3, - '0' ::integer AS type3_cnt, - '0' ::char(1) AS "group", - '0' ::integer AS gem, - '0' ::integer AS gem_clean, - '0' ::integer AS la_count, - '0' ::decimal(10,1) AS area_ha, - '0' ::decimal(10,1) AS la_area, - '0' ::decimal(10,1) AS free_area, - '0' ::decimal(4,1) AS area_share, - '0' ::numeric AS consumption, - '0' ::numeric AS consumption_per_area, - geom, - NOW() AT TIME ZONE 'Europe/Berlin' AS timestamp - FROM model_draft.ego_grid_mv_griddistrict AS gd; - */ +-- MV Griddistrict types + -- Type1 -UPDATE model_draft.ego_grid_mv_griddistrict AS t1 -SET type1 = t2.type1 -FROM (SELECT gd.subst_id, - COUNT(ST_PointOnSurface(typ.geom))::integer AS type1 - FROM model_draft.ego_grid_mv_griddistrict_type1 AS typ, - model_draft.ego_grid_mv_griddistrict AS gd - WHERE gd.geom && typ.geom AND - ST_CONTAINS(gd.geom,ST_PointOnSurface(typ.geom)) - GROUP BY gd.subst_id - )AS t2 -WHERE t1.subst_id = t2.subst_id; - -UPDATE model_draft.ego_grid_mv_griddistrict AS t1 -SET type1_cnt = t2.type_cnt -FROM (SELECT gd.subst_id, - COUNT(ST_PointOnSurface(typ.geom))::integer AS type_cnt - FROM model_draft.ego_boundaries_hvmv_subst_per_gem_1_mview AS typ, - model_draft.ego_grid_mv_griddistrict AS gd - WHERE gd.geom && typ.geom AND - ST_CONTAINS(gd.geom,ST_PointOnSurface(typ.geom)) - GROUP BY gd.subst_id - )AS t2 -WHERE t1.subst_id = t2.subst_id; +UPDATE model_draft.ego_grid_mv_griddistrict AS t1 + SET type1 = t2.type1 + FROM ( + SELECT gd.subst_id, + COUNT(ST_PointOnSurface(typ.geom))::integer AS type1 + FROM model_draft.ego_grid_mv_griddistrict_type1 AS typ, + model_draft.ego_grid_mv_griddistrict AS gd + WHERE gd.geom && typ.geom AND + ST_CONTAINS(gd.geom,ST_PointOnSurface(typ.geom)) + GROUP BY gd.subst_id + )AS t2 + WHERE t1.subst_id = t2.subst_id; + +UPDATE model_draft.ego_grid_mv_griddistrict AS t1 + SET type1_cnt = t2.type_cnt + FROM ( + SELECT gd.subst_id, + COUNT(ST_PointOnSurface(typ.geom))::integer AS type_cnt + FROM model_draft.ego_boundaries_hvmv_subst_per_gem_1_mview AS typ, + model_draft.ego_grid_mv_griddistrict AS gd + WHERE gd.geom && typ.geom AND + ST_CONTAINS(gd.geom,ST_PointOnSurface(typ.geom)) + GROUP BY gd.subst_id + )AS t2 + WHERE t1.subst_id = t2.subst_id; -- Type2 -UPDATE model_draft.ego_grid_mv_griddistrict AS t1 -SET type2 = t2.type2 -FROM (SELECT gd.subst_id, - COUNT(ST_PointOnSurface(typ.geom))::integer AS type2 - FROM model_draft.ego_grid_mv_griddistrict_type2 AS typ, - model_draft.ego_grid_mv_griddistrict AS gd - WHERE gd.geom && typ.geom AND - ST_CONTAINS(gd.geom,ST_PointOnSurface(typ.geom)) - GROUP BY gd.subst_id - )AS t2 -WHERE t1.subst_id = t2.subst_id; - -UPDATE model_draft.ego_grid_mv_griddistrict AS t1 -SET type2_cnt = t2.type_cnt -FROM (SELECT gd.subst_id, - COUNT(ST_PointOnSurface(typ.geom))::integer AS type_cnt - FROM model_draft.ego_grid_hvmv_substation_voronoi_cut AS typ, - model_draft.ego_grid_mv_griddistrict AS gd - WHERE gd.geom && typ.geom AND - ST_CONTAINS(gd.geom,ST_PointOnSurface(typ.geom)) - GROUP BY gd.subst_id - )AS t2 -WHERE t1.subst_id = t2.subst_id; +UPDATE model_draft.ego_grid_mv_griddistrict AS t1 + SET type2 = t2.type2 + FROM ( + SELECT gd.subst_id, + COUNT(ST_PointOnSurface(typ.geom))::integer AS type2 + FROM model_draft.ego_grid_mv_griddistrict_type2 AS typ, + model_draft.ego_grid_mv_griddistrict AS gd + WHERE gd.geom && typ.geom AND + ST_CONTAINS(gd.geom,ST_PointOnSurface(typ.geom)) + GROUP BY gd.subst_id + )AS t2 + WHERE t1.subst_id = t2.subst_id; + +UPDATE model_draft.ego_grid_mv_griddistrict AS t1 + SET type2_cnt = t2.type_cnt + FROM ( + SELECT gd.subst_id, + COUNT(ST_PointOnSurface(typ.geom))::integer AS type_cnt + FROM model_draft.ego_grid_hvmv_substation_voronoi_cut AS typ, + model_draft.ego_grid_mv_griddistrict AS gd + WHERE gd.geom && typ.geom AND + ST_CONTAINS(gd.geom,ST_PointOnSurface(typ.geom)) + GROUP BY gd.subst_id + )AS t2 + WHERE t1.subst_id = t2.subst_id; -- Type3 -UPDATE model_draft.ego_grid_mv_griddistrict AS t1 -SET type3 = t2.type3 -FROM (SELECT gd.subst_id, - COUNT(ST_PointOnSurface(typ.geom))::integer AS type3 - FROM model_draft.ego_grid_mv_griddistrict_type3 AS typ, - model_draft.ego_grid_mv_griddistrict AS gd - WHERE gd.geom && typ.geom AND - ST_CONTAINS(gd.geom,ST_PointOnSurface(typ.geom)) - GROUP BY gd.subst_id - )AS t2 -WHERE t1.subst_id = t2.subst_id; - -UPDATE model_draft.ego_grid_mv_griddistrict AS t1 -SET type3_cnt = t2.type_cnt -FROM (SELECT gd.subst_id, - COUNT(ST_PointOnSurface(typ.geom))::integer AS type_cnt - FROM model_draft.ego_boundaries_hvmv_subst_per_gem_3_mview AS typ, - model_draft.ego_grid_mv_griddistrict AS gd - WHERE gd.geom && typ.geom AND - ST_CONTAINS(gd.geom,ST_PointOnSurface(typ.geom)) - GROUP BY gd.subst_id - )AS t2 -WHERE t1.subst_id = t2.subst_id; +UPDATE model_draft.ego_grid_mv_griddistrict AS t1 + SET type3 = t2.type3 + FROM ( + SELECT gd.subst_id, + COUNT(ST_PointOnSurface(typ.geom))::integer AS type3 + FROM model_draft.ego_grid_mv_griddistrict_type3 AS typ, + model_draft.ego_grid_mv_griddistrict AS gd + WHERE gd.geom && typ.geom AND + ST_CONTAINS(gd.geom,ST_PointOnSurface(typ.geom)) + GROUP BY gd.subst_id + )AS t2 + WHERE t1.subst_id = t2.subst_id; + +UPDATE model_draft.ego_grid_mv_griddistrict AS t1 + SET type3_cnt = t2.type_cnt + FROM ( + SELECT gd.subst_id, + COUNT(ST_PointOnSurface(typ.geom))::integer AS type_cnt + FROM model_draft.ego_boundaries_hvmv_subst_per_gem_3_mview AS typ, + model_draft.ego_grid_mv_griddistrict AS gd + WHERE gd.geom && typ.geom AND + ST_CONTAINS(gd.geom,ST_PointOnSurface(typ.geom)) + GROUP BY gd.subst_id + )AS t2 + WHERE t1.subst_id = t2.subst_id; -- Group -UPDATE model_draft.ego_grid_mv_griddistrict -SET "group" = (SELECT - CASE - WHEN type1 = '1' AND type2 = '0' AND type3 = '1' THEN 'A' -- ländlich - WHEN type1 = '0' AND type2 = '1' AND type3 = '1' THEN 'B' - WHEN type1 = '1' AND type2 = '0' AND type3 = '0' THEN 'C' - WHEN type1 = '0' AND type2 = '1' AND type3 = '0' THEN 'D' -- städtisch - END); +UPDATE model_draft.ego_grid_mv_griddistrict + SET "group" = (SELECT + CASE + WHEN type1 = '1' AND type2 = '0' AND type3 = '1' THEN 'A' -- ländlich + WHEN type1 = '0' AND type2 = '1' AND type3 = '1' THEN 'B' + WHEN type1 = '1' AND type2 = '0' AND type3 = '0' THEN 'C' + WHEN type1 = '0' AND type2 = '1' AND type3 = '0' THEN 'D' -- städtisch + END); DROP MATERIALIZED VIEW IF EXISTS boundaries.bkg_vg250_6_gem_pts; CREATE MATERIALIZED VIEW boundaries.bkg_vg250_6_gem_pts AS -SELECT id, - ags_0, - ST_PointOnSurface(geom) AS geom -FROM boundaries.bkg_vg250_6_gem; - --- Gemeinden -UPDATE model_draft.ego_grid_mv_griddistrict AS t1 -SET gem = t2.gem -FROM (SELECT gd.subst_id, - COUNT(ST_PointOnSurface(gem.geom))::integer AS gem - FROM boundaries.bkg_vg250_6_gem AS gem, - model_draft.ego_grid_mv_griddistrict AS gd - WHERE gd.geom && ST_TRANSFORM(gem.geom,3035) AND - ST_CONTAINS(gd.geom,ST_PointOnSurface(ST_TRANSFORM(gem.geom,3035))) - GROUP BY gd.subst_id - )AS t2 -WHERE t1.subst_id = t2.subst_id; - -/* -- bkg_vg250_6_gem_clean_pts + SELECT id, + ags_0, + ST_PointOnSurface(geom) AS geom + FROM boundaries.bkg_vg250_6_gem; + + +-- Municipality (Gemeinden) +UPDATE model_draft.ego_grid_mv_griddistrict AS t1 + SET gem = t2.gem + FROM ( + SELECT gd.subst_id, + COUNT(ST_PointOnSurface(gem.geom))::integer AS gem + FROM boundaries.bkg_vg250_6_gem AS gem, + model_draft.ego_grid_mv_griddistrict AS gd + WHERE gd.geom && ST_TRANSFORM(gem.geom,3035) AND + ST_CONTAINS(gd.geom,ST_PointOnSurface(ST_TRANSFORM(gem.geom,3035))) + GROUP BY gd.subst_id + )AS t2 + WHERE t1.subst_id = t2.subst_id; + + +/* +-- bkg_vg250_6_gem_clean_pts DROP MATERIALIZED VIEW IF EXISTS model_draft.ego_boundaries_bkg_vg250_6_gem_clean_pts; CREATE MATERIALIZED VIEW model_draft.ego_boundaries_bkg_vg250_6_gem_clean_pts AS -SELECT id, - ags_0, - ST_PointOnSurface(geom) AS geom -FROM model_draft.ego_boundaries_bkg_vg250_6_gem_clean; */ + SELECT id, + ags_0, + ST_PointOnSurface(geom) AS geom + FROM model_draft.ego_boundaries_bkg_vg250_6_gem_clean; +*/ + -- Gemeinde Parts -UPDATE model_draft.ego_grid_mv_griddistrict AS t1 -SET gem_clean = t2.gem_clean -FROM (SELECT gd.subst_id, - COUNT(ST_PointOnSurface(gem.geom))::integer AS gem_clean - FROM model_draft.ego_boundaries_bkg_vg250_6_gem_clean AS gem, - model_draft.ego_grid_mv_griddistrict AS gd - WHERE gd.geom && gem.geom AND - ST_CONTAINS(gd.geom,ST_PointOnSurface(gem.geom)) - GROUP BY gd.subst_id - )AS t2 -WHERE t1.subst_id = t2.subst_id; +UPDATE model_draft.ego_grid_mv_griddistrict AS t1 + SET gem_clean = t2.gem_clean + FROM ( + SELECT gd.subst_id, + COUNT(ST_PointOnSurface(gem.geom))::integer AS gem_clean + FROM model_draft.ego_boundaries_bkg_vg250_6_gem_clean AS gem, + model_draft.ego_grid_mv_griddistrict AS gd + WHERE gd.geom && gem.geom AND + ST_CONTAINS(gd.geom,ST_PointOnSurface(gem.geom)) + GROUP BY gd.subst_id + )AS t2 + WHERE t1.subst_id = t2.subst_id; -- GD Area 3610 -UPDATE model_draft.ego_grid_mv_griddistrict AS t1 -SET area_ha = t2.area_ha -FROM (SELECT gd.subst_id, - ST_AREA(gd.geom)/10000 AS area_ha - FROM model_draft.ego_grid_mv_griddistrict AS gd - )AS t2 -WHERE t1.subst_id = t2.subst_id; +UPDATE model_draft.ego_grid_mv_griddistrict AS t1 + SET area_ha = t2.area_ha + FROM ( + SELECT gd.subst_id, + ST_AREA(gd.geom)/10000 AS area_ha + FROM model_draft.ego_grid_mv_griddistrict AS gd + )AS t2 + WHERE t1.subst_id = t2.subst_id; -- LA Count -UPDATE model_draft.ego_grid_mv_griddistrict AS t1 -SET la_count = t2.la_count -FROM (SELECT gd.subst_id, - COUNT(ST_PointOnSurface(la.geom))::integer AS la_count - FROM model_draft.ego_demand_loadarea AS la, - model_draft.ego_grid_mv_griddistrict AS gd - WHERE gd.geom && la.geom AND - ST_CONTAINS(gd.geom,ST_PointOnSurface(la.geom)) - GROUP BY gd.subst_id - )AS t2 -WHERE t1.subst_id = t2.subst_id; +UPDATE model_draft.ego_grid_mv_griddistrict AS t1 + SET la_count = t2.la_count + FROM ( + SELECT gd.subst_id, + COUNT(ST_PointOnSurface(la.geom))::integer AS la_count + FROM model_draft.ego_demand_loadarea AS la, + model_draft.ego_grid_mv_griddistrict AS gd + WHERE gd.geom && la.geom AND + ST_CONTAINS(gd.geom,ST_PointOnSurface(la.geom)) + GROUP BY gd.subst_id + )AS t2 + WHERE t1.subst_id = t2.subst_id; -- LA Area 3606 -UPDATE model_draft.ego_grid_mv_griddistrict AS t1 -SET la_area = t2.la_area -FROM (SELECT gd.subst_id, - SUM(ST_AREA(la.geom)/10000) ::decimal(10,3) AS la_area - FROM model_draft.ego_demand_loadarea AS la, - model_draft.ego_grid_mv_griddistrict AS gd - WHERE gd.geom && la.geom AND - ST_CONTAINS(gd.geom,ST_PointOnSurface(la.geom)) - GROUP BY gd.subst_id - )AS t2 -WHERE t1.subst_id = t2.subst_id; +UPDATE model_draft.ego_grid_mv_griddistrict AS t1 + SET la_area = t2.la_area + FROM ( + SELECT gd.subst_id, + SUM(ST_AREA(la.geom)/10000) ::decimal(10,3) AS la_area + FROM model_draft.ego_demand_loadarea AS la, + model_draft.ego_grid_mv_griddistrict AS gd + WHERE gd.geom && la.geom AND + ST_CONTAINS(gd.geom,ST_PointOnSurface(la.geom)) + GROUP BY gd.subst_id + )AS t2 + WHERE t1.subst_id = t2.subst_id; -- not LA Area (free_area) -UPDATE model_draft.ego_grid_mv_griddistrict AS t1 -SET free_area = t2.free_area -FROM (SELECT gd.subst_id, - SUM(gd.area_ha)-SUM(gd.la_area) AS free_area - FROM model_draft.ego_grid_mv_griddistrict as gd - GROUP BY gd.subst_id - )AS t2 -WHERE t1.subst_id = t2.subst_id; +UPDATE model_draft.ego_grid_mv_griddistrict AS t1 + SET free_area = t2.free_area + FROM ( + SELECT gd.subst_id, + SUM(gd.area_ha)-SUM(gd.la_area) AS free_area + FROM model_draft.ego_grid_mv_griddistrict as gd + GROUP BY gd.subst_id + )AS t2 + WHERE t1.subst_id = t2.subst_id; -- not LA Area (free_area) -UPDATE model_draft.ego_grid_mv_griddistrict AS t1 -SET area_share = t2.area_share -FROM (SELECT gd.subst_id, - SUM(gd.la_area)/SUM(gd.area_ha)*100 AS area_share - FROM model_draft.ego_grid_mv_griddistrict as gd - GROUP BY gd.subst_id - )AS t2 -WHERE t1.subst_id = t2.subst_id; - -SELECT MAX(area_share) AS max, - MIN(area_share) AS min -FROM model_draft.ego_grid_mv_griddistrict ; +UPDATE model_draft.ego_grid_mv_griddistrict AS t1 + SET area_share = t2.area_share + FROM ( + SELECT gd.subst_id, + SUM(gd.la_area)/SUM(gd.area_ha)*100 AS area_share + FROM model_draft.ego_grid_mv_griddistrict as gd + GROUP BY gd.subst_id + )AS t2 + WHERE t1.subst_id = t2.subst_id; +/* +SELECT MAX(area_share) AS max, + MIN(area_share) AS min +FROM model_draft.ego_grid_mv_griddistrict ; +*/ -- Consumption -UPDATE model_draft.ego_grid_mv_griddistrict AS t1 - SET consumption = t2.consumption - FROM (SELECT gd.subst_id, - SUM(la.sector_consumption_sum)::numeric AS consumption - FROM model_draft.ego_demand_loadarea AS la, - model_draft.ego_grid_mv_griddistrict AS gd - WHERE gd.subst_id = la.subst_id - GROUP BY gd.subst_id - )AS t2 - WHERE t1.subst_id = t2.subst_id; - -UPDATE model_draft.ego_grid_mv_griddistrict AS t1 - SET consumption_per_area = consumption *1000000 / area_ha; +UPDATE model_draft.ego_grid_mv_griddistrict AS t1 + SET consumption = t2.consumption + FROM ( + SELECT gd.subst_id, + SUM(la.sector_consumption_sum)::numeric AS consumption + FROM model_draft.ego_demand_loadarea AS la, + model_draft.ego_grid_mv_griddistrict AS gd + WHERE gd.subst_id = la.subst_id + GROUP BY gd.subst_id + )AS t2 + WHERE t1.subst_id = t2.subst_id; + +UPDATE model_draft.ego_grid_mv_griddistrict AS t1 + SET consumption_per_area = consumption *1000000 / area_ha; + +-- ego scenario log (version,io,schema_name,table_name,script_name,comment) +SELECT ego_scenario_log('v0.3.0','output','model_draft','ego_grid_mv_griddistrict','ego_dp_loadarea_statistic.sql',' '); +/* -- test -SELECT SUM(mvgd.consumption) - FROM model_draft.ego_grid_mv_griddistrict AS mvgd +SELECT SUM(mvgd.consumption) +FROM model_draft.ego_grid_mv_griddistrict AS mvgd UNION ALL -SELECT SUM(la.sector_consumption_sum) - FROM model_draft.ego_demand_loadarea AS la; - -/* UPDATE model_draft.ego_grid_mv_griddistrict AS t1 - SET consumption_per_area = t2.consumption_per_area - FROM (SELECT gd.subst_id, - SUM(la.sector_consumption_sum)::integer AS consumption - FROM model_draft.ego_grid_mv_griddistrict AS mvgd - WHERE gd.subst_id = la.subst_id - GROUP BY gd.subst_id - )AS t2 - WHERE t1.subst_id = t2.subst_id; */ +SELECT SUM(la.sector_consumption_sum) +FROM model_draft.ego_demand_loadarea AS la; +*/ --- ego scenario log (version,io,schema_name,table_name,script_name,comment) -SELECT ego_scenario_log('v0.2.5','output','model_draft','ego_grid_mv_griddistrict','ego_paper_result.sql',' '); - - - --- Calculate statistics for BKG-vg250 -DROP MATERIALIZED VIEW IF EXISTS boundaries.bkg_vg250_statistics_mview CASCADE; -CREATE MATERIALIZED VIEW boundaries.bkg_vg250_statistics_mview AS --- Calculate areas -SELECT '1' ::integer AS id, - '1_sta' ::text AS table, - 'vg' ::text AS descript_nameion, - SUM(vg.area_ha) ::integer AS area_sum_ha -FROM boundaries.bkg_vg250_1_sta_mview AS vg -UNION ALL -SELECT '3' ::integer AS id, - '1_sta' ::text AS table, - 'deu' ::text AS descript_nameion, - SUM(vg.area_ha) ::integer AS area_sum_ha -FROM boundaries.bkg_vg250_1_sta_mview AS vg -WHERE bez='Bundesrepublik' -UNION ALL -SELECT '4' ::integer AS id, - '1_sta' ::text AS table, - 'NOT deu' ::text AS descript_nameion, - SUM(vg.area_ha) ::integer AS area_sum_ha -FROM boundaries.bkg_vg250_1_sta_mview AS vg -WHERE bez='--' -UNION ALL -SELECT '5' ::integer AS id, - '1_sta' ::text AS table, - 'land' ::text AS descript_nameion, - SUM(vg.area_ha) ::integer AS area_sum_ha -FROM boundaries.bkg_vg250_1_sta_mview AS vg -WHERE gf='3' OR gf='4' -UNION ALL -SELECT '6' ::integer AS id, - '1_sta' ::text AS table, - 'water' ::text AS descript_nameion, - SUM(vg.area_ha) ::integer AS area_sum_ha -FROM boundaries.bkg_vg250_1_sta_mview AS vg -WHERE gf='1' OR gf='2'; + +-- Calculate statistics for BKG vg250 +DROP MATERIALIZED VIEW IF EXISTS boundaries.bkg_vg250_statistics_mview CASCADE; +CREATE MATERIALIZED VIEW boundaries.bkg_vg250_statistics_mview AS + SELECT '1' ::integer AS id, + '1_sta' ::text AS table, + 'vg' ::text AS descript_nameion, + SUM(vg.area_ha) ::integer AS area_sum_ha + FROM boundaries.bkg_vg250_1_sta_mview AS vg + UNION ALL + SELECT '3' ::integer AS id, + '1_sta' ::text AS table, + 'deu' ::text AS descript_nameion, + SUM(vg.area_ha) ::integer AS area_sum_ha + FROM boundaries.bkg_vg250_1_sta_mview AS vg + WHERE bez='Bundesrepublik' + UNION ALL + SELECT '4' ::integer AS id, + '1_sta' ::text AS table, + 'NOT deu' ::text AS descript_nameion, + SUM(vg.area_ha) ::integer AS area_sum_ha + FROM boundaries.bkg_vg250_1_sta_mview AS vg + WHERE bez='--' + UNION ALL + SELECT '5' ::integer AS id, + '1_sta' ::text AS table, + 'land' ::text AS descript_nameion, + SUM(vg.area_ha) ::integer AS area_sum_ha + FROM boundaries.bkg_vg250_1_sta_mview AS vg + WHERE gf='3' OR gf='4' + UNION ALL + SELECT '6' ::integer AS id, + '1_sta' ::text AS table, + 'water' ::text AS descript_nameion, + SUM(vg.area_ha) ::integer AS area_sum_ha + FROM boundaries.bkg_vg250_1_sta_mview AS vg + WHERE gf='1' OR gf='2'; -- grant (oeuser) ALTER TABLE boundaries.bkg_vg250_statistics_mview OWNER TO oeuser; +-- metadata +COMMENT ON MATERIALIZED VIEW model_draft.bkg_vg250_statistics_mview IS '{ + "comment": "eGoDP - Temporary table", + "version": "v0.3.0" }'; + -- ego scenario log (version,io,schema_name,table_name,script_name,comment) SELECT ego_scenario_log('v0.3.0','output','boundaries','bkg_vg250_statistics_mview','ego_dp_loadarea_statistic.sql',' '); @@ -584,7 +607,6 @@ delta_L_>500 = 0,5578099543666 tkm delta_L_<500 = 1,9783239737815 tkm */ - /* -- simplytry DROP TABLE IF EXISTS model_draft.ego_grid_mv_griddistrict_simple; @@ -663,5 +685,3 @@ INSERT INTO scenario.eGo_data_processing_clean_run (version,schema_name,table_na 'OK' AS status, NOW() AT TIME ZONE 'Europe/Berlin' AS timestamp FROM model_draft.ego_grid_hvmv_substation_ewe_mview; */ - - diff --git a/documentation/bpmn/ego_dp_bpmn_section_loadarea.graphml b/documentation/bpmn/ego_dp_bpmn_section_loadarea.graphml index d84a71d1..e31e6455 100644 --- a/documentation/bpmn/ego_dp_bpmn_section_loadarea.graphml +++ b/documentation/bpmn/ego_dp_bpmn_section_loadarea.graphml @@ -1210,7 +1210,7 @@ model_draft.ego_demand_loadarea model_draft.ego_data_processing_results model_draft.ego_data_processing_results_mvgd -political_boundary.bkg_vg250_statistics_mview +boundaries.bkg_vg250_statistics_mview From c36b21e4d5b7f5be986d700a682d775d7abd898c Mon Sep 17 00:00:00 2001 From: wolfbunke Date: Thu, 8 Feb 2018 14:45:19 +0100 Subject: [PATCH 056/104] add more files --- documentation/doc/preprocessing/modules.rst | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/documentation/doc/preprocessing/modules.rst b/documentation/doc/preprocessing/modules.rst index 5f506d6c..4156ad35 100644 --- a/documentation/doc/preprocessing/modules.rst +++ b/documentation/doc/preprocessing/modules.rst @@ -5,11 +5,23 @@ Preprocessing +Overview of scripts +=================== + .. toctree:: :titlesonly: :maxdepth: 2 - - boundaries/* - openstreetmap/* + + society/ego_pp_destatis_zensus_import + society/ego_pp_destatis_zensus_metadata ego_dp_res_rea_by_scenario + ego_dp_structure_boundaries_vg250 + ego_dp_structure_census + ego_dp_structure_osm_landuse + ego_dp_structure_scenariolog + ego_dp_structure_versioning + ego_nep_2015_scenario_capacities + ego_pre_slp_parameters + ego_pre_voltage_level + oedb_setup_schema_structure From 42115d46323b909017364aa754308de3133d25d0 Mon Sep 17 00:00:00 2001 From: wolfbunke Date: Thu, 8 Feb 2018 14:50:35 +0100 Subject: [PATCH 057/104] wip --- documentation/doc/preprocessing/modules.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/documentation/doc/preprocessing/modules.rst b/documentation/doc/preprocessing/modules.rst index 4156ad35..9db9dad9 100644 --- a/documentation/doc/preprocessing/modules.rst +++ b/documentation/doc/preprocessing/modules.rst @@ -12,6 +12,7 @@ Overview of scripts :titlesonly: :maxdepth: 2 + (society/) society/ego_pp_destatis_zensus_import society/ego_pp_destatis_zensus_metadata From ac77475a5e41619f4067ab0cb58308c9dc721cd4 Mon Sep 17 00:00:00 2001 From: wolfbunke Date: Thu, 8 Feb 2018 14:53:54 +0100 Subject: [PATCH 058/104] wip --- documentation/doc/preprocessing/modules.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/documentation/doc/preprocessing/modules.rst b/documentation/doc/preprocessing/modules.rst index 9db9dad9..00326407 100644 --- a/documentation/doc/preprocessing/modules.rst +++ b/documentation/doc/preprocessing/modules.rst @@ -10,7 +10,7 @@ Overview of scripts .. toctree:: :titlesonly: - :maxdepth: 2 + :maxdepth: 7 (society/) society/ego_pp_destatis_zensus_import From 5fdf09aa2a39b94792be9391887cdd704b504559 Mon Sep 17 00:00:00 2001 From: IlkaCu Date: Thu, 8 Feb 2018 14:58:16 +0100 Subject: [PATCH 059/104] update docu timeseries_demand #92 --- .../sql_snippets/ego_dp_powerflow_timeseries_demand.sql | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dataprocessing/sql_snippets/ego_dp_powerflow_timeseries_demand.sql b/dataprocessing/sql_snippets/ego_dp_powerflow_timeseries_demand.sql index 61a7ae5f..b6980e15 100644 --- a/dataprocessing/sql_snippets/ego_dp_powerflow_timeseries_demand.sql +++ b/dataprocessing/sql_snippets/ego_dp_powerflow_timeseries_demand.sql @@ -1,5 +1,7 @@ /* -Insert demand series into pf-schema +Aggregated load time series for neighbouring countries are based on rennpassG!S results and are added to the corresponding +`powerflow table `_. The load is equivalent +in all three scenarios. __copyright__ = "Flensburg University of Applied Sciences, Centre for Sustainable Energy Systems" __license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" From 3378d2fcae5291482260c5fca2af2e2707421af6 Mon Sep 17 00:00:00 2001 From: wolfbunke Date: Thu, 8 Feb 2018 15:17:35 +0100 Subject: [PATCH 060/104] add build_script_doc.py script --- documentation/build_script_doc.py | 48 +++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 documentation/build_script_doc.py diff --git a/documentation/build_script_doc.py b/documentation/build_script_doc.py new file mode 100644 index 00000000..60659197 --- /dev/null +++ b/documentation/build_script_doc.py @@ -0,0 +1,48 @@ +import re +import os + +__PATH = 'dataprocessing/sql_snippets' +__KEYS = ['description', 'copyright', 'license', 'url', 'author'] + +SPACER = ' ' + +expr = r"""\/\*\s* +(?P[\s\S]*) +__copyright__\s*=\s*"(?P.*)"\s* +__license__\s*=\s*"(?P.*)"\s* +__url__\s*=\s*"(?P.*)"\s* +__author__\s*=\s*"(?P.*)"\s* +\*\/""" + +for subdir, dirs, files in os.walk('.'): + for fi in files: + if fi.endswith('.sql'): + path = os.path.join(subdir, fi) + + # print('Processing %s ...'%path) + with open(path,'r') as f: + try: + lines='\n'.join(f.readlines()) + except Exception as e: + print('Fehler in %s - abort!'%path) + match = re.match(expr, lines) + if match: + outpath = path = os.path.join('docs', subdir, fi.replace('.sql','.rst')) + directory = os.path.dirname(outpath) + if not os.path.exists(directory): + os.makedirs(directory) + + result = {key:match.group(key) for key in __KEYS} + with open(outpath, 'w') as out: + out.write('.. AUTOGENERATED - DO NOT TOUCH!\n\n') + for key in __KEYS: + + if key == 'description': + out.write('File: '+fi+'\n'+'#'.join(['#'*len(fi)+6]) ) + out.write(result[key].replace('\n\n','\n')) + else: + out.write(key+'\n') + out.write(SPACER+result[key].replace('\n','\n'+SPACER)+'\n') + out.write('\n') + else: + print('No proper docstring in %s'%path) From af873cf9a1405c325f34ea657583a390ec770489 Mon Sep 17 00:00:00 2001 From: wolfbunke Date: Thu, 8 Feb 2018 15:18:38 +0100 Subject: [PATCH 061/104] add build_script_doc.py script --- documentation/build_script_doc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/documentation/build_script_doc.py b/documentation/build_script_doc.py index 60659197..92b96fec 100644 --- a/documentation/build_script_doc.py +++ b/documentation/build_script_doc.py @@ -38,7 +38,7 @@ for key in __KEYS: if key == 'description': - out.write('File: '+fi+'\n'+'#'.join(['#'*len(fi)+6]) ) + out.write(fi+'\n'+'#'.join(['#'*len(fi)]) ) out.write(result[key].replace('\n\n','\n')) else: out.write(key+'\n') From 16013c10ad5bc36b334766bd17ce1598d0f64d35 Mon Sep 17 00:00:00 2001 From: wolfbunke Date: Thu, 8 Feb 2018 15:47:45 +0100 Subject: [PATCH 062/104] wip index --- documentation/doc/index.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/documentation/doc/index.rst b/documentation/doc/index.rst index 23fcbf9a..3a6f19df 100644 --- a/documentation/doc/index.rst +++ b/documentation/doc/index.rst @@ -16,6 +16,7 @@ Welcome to Data processing documentation of open_eGo .. toctree:: :maxdepth: 7 :titlesonly: + :hidden: getting_started dataprocessing From 932e2b897b15996c4aad720631289486ad48113e Mon Sep 17 00:00:00 2001 From: Ludee Date: Thu, 8 Feb 2018 15:49:03 +0100 Subject: [PATCH 063/104] update doku --- dataprocessing/eGo_data_processing.py | 12 +- .../sql_snippets/ego_dp_lv_griddistrict.sql | 414 +++++++-------- .../sql_snippets/ego_dp_lv_peakload.sql | 8 +- .../sql_snippets/ego_dp_lv_substation.sql | 289 +++++------ .../ego_dp_lv_substation_voronoi.sql | 478 +++--------------- 5 files changed, 441 insertions(+), 760 deletions(-) diff --git a/dataprocessing/eGo_data_processing.py b/dataprocessing/eGo_data_processing.py index 3e079a56..7f6af190 100644 --- a/dataprocessing/eGo_data_processing.py +++ b/dataprocessing/eGo_data_processing.py @@ -67,12 +67,12 @@ def data_processing(): 'ego_dp_loadarea_griddistrict_results.sql', # Results for MV Griddistrict 'ego_dp_loadarea_statistic.sql', # Results and statistics for eGoDP data - ## LOWVOLTAGE - 'ego_dp_lv_substation.sql', # MVLV Substation inside Loadarea - 'ego_dp_lv_substation_voronoi.sql', # MVLV Substation Voronoi - 'ego_dp_lv_griddistrict.sql', # LV Griddistrict - 'ego_dp_lv_peakload.sql', # LV OSM areas - 'ego_dp_lv_consumption_peakload.sql', # LV Consumption and Peakload + ## LOWVOLTAGE + 'ego_dp_lv_substation.sql', # MVLV Substation (ONT) + 'ego_dp_lv_substation_voronoi.sql', # MVLV Substation Voronoi + 'ego_dp_lv_griddistrict.sql', # LV Griddistrict + 'ego_dp_lv_peakload.sql', # LV OSM areas + 'ego_dp_lv_consumption_peakload.sql', # LV Consumption and Peakload ## REA 'rea/ego_dp_lattice_500m.sql', # lattice (point grid) 500m diff --git a/dataprocessing/sql_snippets/ego_dp_lv_griddistrict.sql b/dataprocessing/sql_snippets/ego_dp_lv_griddistrict.sql index 8a234b20..2f810895 100644 --- a/dataprocessing/sql_snippets/ego_dp_lv_griddistrict.sql +++ b/dataprocessing/sql_snippets/ego_dp_lv_griddistrict.sql @@ -1,301 +1,309 @@ /* -Generate ONT - -__copyright__ = "Reiner Lemoine Institut" -__license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" -__url__ = "https://github.com/openego/data_processing/blob/master/LICENSE" -__author__ = "jong42, Ludee" +LV Griddistrict +Cut Loadarea with MVLV Substation Voronoi. +Select parts with one LV Substation. +Select parts with no LV Substation. +Select parts with more than one substation. +Combine parts with Next Neighbor. +Collect and union all parts. + +__copyright__ = "Reiner Lemoine Institut" +__license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" +__url__ = "https://github.com/openego/data_processing/blob/master/LICENSE" +__author__ = "jong42, Ludee" */ --- Cutting -DROP TABLE IF EXISTS model_draft.ego_grid_lv_griddistrict_cut CASCADE; -CREATE TABLE model_draft.ego_grid_lv_griddistrict_cut ( - id serial NOT NULL, - la_id integer, - subst_id integer, - subst_cnt integer, - geom geometry(Polygon,3035), - CONSTRAINT ego_grid_lv_griddistrict_cut_pkey PRIMARY KEY (id) ); +-- ego scenario log (version,io,schema_name,table_name,script_name,comment) +SELECT ego_scenario_log('v0.3.0','input','model_draft','ego_demand_loadarea','ego_dp_lv_griddistrict.sql',' '); +SELECT ego_scenario_log('v0.3.0','input','model_draft','ego_grid_mvlv_substation_voronoi','ego_dp_lv_griddistrict.sql',' '); + +-- Cut Loadarea with MVLV Substation Voronoi +DROP TABLE IF EXISTS model_draft.ego_grid_lv_griddistrict_cut CASCADE; +CREATE TABLE model_draft.ego_grid_lv_griddistrict_cut ( + id serial NOT NULL, + la_id integer, + subst_id integer, + subst_cnt integer, + geom geometry(Polygon,3035), + CONSTRAINT ego_grid_lv_griddistrict_cut_pkey PRIMARY KEY (id) ); -- grant (oeuser) -ALTER TABLE model_draft.ego_grid_lv_griddistrict_cut OWNER TO oeuser; - +ALTER TABLE model_draft.ego_grid_lv_griddistrict_cut OWNER TO oeuser; + -- index GIST (geom) CREATE INDEX ego_grid_lv_griddistrict_cut_geom_idx - ON model_draft.ego_grid_lv_griddistrict_cut USING GIST (geom); - -INSERT INTO model_draft.ego_grid_lv_griddistrict_cut (geom,la_id,subst_id) - SELECT (ST_DUMP(ST_SAFE_INTERSECTION(a.geom,b.geom))).geom ::geometry(Polygon,3035) AS geom, - a.id AS la_id, - a.subst_id AS subst_id - FROM model_draft.ego_demand_loadarea AS a, - model_draft.ego_grid_mvlv_substation_voronoi AS b - WHERE a.geom && b.geom - AND a.subst_id = b.subst_id - -- make sure the boundaries really intersect and not just touch each other - AND (ST_GEOMETRYTYPE(ST_SAFE_INTERSECTION(a.geom,b.geom)) = 'ST_Polygon' - OR ST_GEOMETRYTYPE(ST_SAFE_INTERSECTION(a.geom,b.geom)) = 'ST_MultiPolygon' ) - AND ST_isvalid(b.geom) AND ST_isvalid(a.geom); - --AND a.subst_id = '1886'; -- test one mvgd + ON model_draft.ego_grid_lv_griddistrict_cut USING GIST (geom); + +INSERT INTO model_draft.ego_grid_lv_griddistrict_cut (geom,la_id,subst_id) + SELECT (ST_DUMP(ST_SAFE_INTERSECTION(a.geom,b.geom))).geom ::geometry(Polygon,3035) AS geom, + a.id AS la_id, + a.subst_id AS subst_id + FROM model_draft.ego_demand_loadarea AS a, + model_draft.ego_grid_mvlv_substation_voronoi AS b + WHERE a.geom && b.geom + AND a.subst_id = b.subst_id + -- make sure the boundaries really intersect and not just touch each other + AND (ST_GEOMETRYTYPE(ST_SAFE_INTERSECTION(a.geom,b.geom)) = 'ST_Polygon' + OR ST_GEOMETRYTYPE(ST_SAFE_INTERSECTION(a.geom,b.geom)) = 'ST_MultiPolygon' ) + AND ST_isvalid(b.geom) AND ST_isvalid(a.geom); + --AND a.subst_id = '1886'; -- test one mvgd -- mvlv substation count -UPDATE model_draft.ego_grid_lv_griddistrict_cut AS t1 - SET subst_cnt = t2.subst_cnt - FROM (SELECT a.id AS id, - COUNT(b.geom)::integer AS subst_cnt - FROM model_draft.ego_grid_lv_griddistrict_cut AS a, - model_draft.ego_grid_mvlv_substation AS b - WHERE a.geom && b.geom AND - ST_CONTAINS(a.geom,b.geom) - GROUP BY a.id - )AS t2 - WHERE t1.id = t2.id; +UPDATE model_draft.ego_grid_lv_griddistrict_cut AS t1 + SET subst_cnt = t2.subst_cnt + FROM ( + SELECT a.id AS id, + COUNT(b.geom)::integer AS subst_cnt + FROM model_draft.ego_grid_lv_griddistrict_cut AS a, + model_draft.ego_grid_mvlv_substation AS b + WHERE a.geom && b.geom AND + ST_CONTAINS(a.geom,b.geom) + GROUP BY a.id + )AS t2 + WHERE t1.id = t2.id; -- ego scenario log (version,io,schema_name,table_name,script_name,comment) SELECT ego_scenario_log('v0.3.0','temp','model_draft','ego_grid_lv_griddistrict_cut','ego_dp_lv_griddistrict.sql',' '); /* -- Validate (geom) -DROP VIEW IF EXISTS model_draft.ego_grid_lv_griddistrict_cut_error_geom_view CASCADE; -CREATE VIEW model_draft.ego_grid_lv_griddistrict_cut_error_geom_view AS - SELECT test.id, - test.error, - reason(ST_IsValidDetail(test.geom)) AS error_reason, - ST_SetSRID(location(ST_IsValidDetail(test.geom)),3035) ::geometry(Point,3035) AS error_location - FROM ( - SELECT source.id AS id, -- PK - ST_IsValid(source.geom) AS error, - source.geom AS geom - FROM model_draft.ego_grid_lv_griddistrict_cut AS source -- Table - ) AS test - WHERE test.error = FALSE; +DROP VIEW IF EXISTS model_draft.ego_grid_lv_griddistrict_cut_error_geom_view CASCADE; +CREATE VIEW model_draft.ego_grid_lv_griddistrict_cut_error_geom_view AS + SELECT test.id, + test.error, + reason(ST_IsValidDetail(test.geom)) AS error_reason, + ST_SetSRID(location(ST_IsValidDetail(test.geom)),3035) ::geometry(Point,3035) AS error_location + FROM ( + SELECT source.id AS id, -- PK + ST_IsValid(source.geom) AS error, + source.geom AS geom + FROM model_draft.ego_grid_lv_griddistrict_cut AS source -- Table + ) AS test + WHERE test.error = FALSE; -- grant (oeuser) -GRANT ALL ON TABLE model_draft.ego_grid_lv_griddistrict_cut_error_geom_view TO oeuser WITH GRANT OPTION; -ALTER TABLE model_draft.ego_grid_lv_griddistrict_cut_error_geom_view OWNER TO oeuser; +GRANT ALL ON TABLE model_draft.ego_grid_lv_griddistrict_cut_error_geom_view TO oeuser WITH GRANT OPTION; +ALTER TABLE model_draft.ego_grid_lv_griddistrict_cut_error_geom_view OWNER TO oeuser; --- Drop empty view (OK!) -> 100ms =1 +-- Drop empty view SELECT f_drop_view('{ego_grid_lv_griddistrict_cut_error_geom_view}', 'model_draft'); */ --- with substation -DROP TABLE IF EXISTS model_draft.ego_grid_lv_griddistrict_cut_1subst CASCADE; -CREATE TABLE model_draft.ego_grid_lv_griddistrict_cut_1subst ( - id integer, - la_id integer, - subst_id integer, - subst_cnt integer, - geom geometry(Polygon,3035), - CONSTRAINT ego_grid_lv_griddistrict_cut_1subst_pkey PRIMARY KEY (id) ); +-- Select parts with one LV Substation +DROP TABLE IF EXISTS model_draft.ego_grid_lv_griddistrict_cut_1subst CASCADE; +CREATE TABLE model_draft.ego_grid_lv_griddistrict_cut_1subst ( + id integer, + la_id integer, + subst_id integer, + subst_cnt integer, + geom geometry(Polygon,3035), + CONSTRAINT ego_grid_lv_griddistrict_cut_1subst_pkey PRIMARY KEY (id) ); -- grant (oeuser) -ALTER TABLE model_draft.ego_grid_lv_griddistrict_cut_1subst OWNER TO oeuser; +ALTER TABLE model_draft.ego_grid_lv_griddistrict_cut_1subst OWNER TO oeuser; -- insert dump -INSERT INTO model_draft.ego_grid_lv_griddistrict_cut_1subst - SELECT * - FROM model_draft.ego_grid_lv_griddistrict_cut - WHERE subst_cnt = 1; +INSERT INTO model_draft.ego_grid_lv_griddistrict_cut_1subst + SELECT * + FROM model_draft.ego_grid_lv_griddistrict_cut + WHERE subst_cnt = 1; -- index GIST (geom) -CREATE INDEX ego_grid_lv_griddistrict_cut_1subst_geom_idx - ON model_draft.ego_grid_lv_griddistrict_cut_1subst USING GIST (geom); +CREATE INDEX ego_grid_lv_griddistrict_cut_1subst_geom_idx + ON model_draft.ego_grid_lv_griddistrict_cut_1subst USING GIST (geom); -- metadata COMMENT ON TABLE model_draft.ego_grid_lv_griddistrict_cut_1subst IS '{ - "comment": "eGoDP - Temporary table", - "version": "v0.3.0" }' ; + "comment": "eGoDP - Temporary table", + "version": "v0.3.0" }' ; -- ego scenario log (version,io,schema_name,table_name,script_name,comment) SELECT ego_scenario_log('v0.3.0','temp','model_draft','ego_grid_lv_griddistrict_cut_1subst','ego_dp_lv_griddistrict.sql',' '); - --- fragments -DROP TABLE IF EXISTS model_draft.ego_grid_lv_griddistrict_cut_0subst CASCADE; -CREATE TABLE model_draft.ego_grid_lv_griddistrict_cut_0subst ( - id integer, - la_id integer, - subst_id integer, - subst_cnt integer, - geom geometry(Polygon,3035), - CONSTRAINT ego_grid_lv_griddistrict_cut_0subst_pkey PRIMARY KEY (id) ); +-- Select parts with no LV Substation +DROP TABLE IF EXISTS model_draft.ego_grid_lv_griddistrict_cut_0subst CASCADE; +CREATE TABLE model_draft.ego_grid_lv_griddistrict_cut_0subst ( + id integer, + la_id integer, + subst_id integer, + subst_cnt integer, + geom geometry(Polygon,3035), + CONSTRAINT ego_grid_lv_griddistrict_cut_0subst_pkey PRIMARY KEY (id) ); -- grant (oeuser) -ALTER TABLE model_draft.ego_grid_lv_griddistrict_cut_0subst OWNER TO oeuser; +ALTER TABLE model_draft.ego_grid_lv_griddistrict_cut_0subst OWNER TO oeuser; -- insert dump -INSERT INTO model_draft.ego_grid_lv_griddistrict_cut_0subst - SELECT * - FROM model_draft.ego_grid_lv_griddistrict_cut - WHERE subst_cnt IS NULL; +INSERT INTO model_draft.ego_grid_lv_griddistrict_cut_0subst + SELECT * + FROM model_draft.ego_grid_lv_griddistrict_cut + WHERE subst_cnt IS NULL; -- index GIST (geom) -CREATE INDEX ego_grid_lv_griddistrict_cut_0subst_geom_idx - ON model_draft.ego_grid_lv_griddistrict_cut_0subst USING GIST (geom); +CREATE INDEX ego_grid_lv_griddistrict_cut_0subst_geom_idx + ON model_draft.ego_grid_lv_griddistrict_cut_0subst USING GIST (geom); -- metadata COMMENT ON TABLE model_draft.ego_grid_lv_griddistrict_cut_0subst IS '{ - "comment": "eGoDP - Temporary table", - "version": "v0.3.0" }' ; + "comment": "eGoDP - Temporary table", + "version": "v0.3.0" }' ; -- ego scenario log (version,io,schema_name,table_name,script_name,comment) SELECT ego_scenario_log('v0.3.0','temp','model_draft','ego_grid_lv_griddistrict_cut_0subst','ego_dp_lv_griddistrict.sql',' '); - --- with too many substation! -DROP TABLE IF EXISTS model_draft.ego_grid_lv_griddistrict_cut_xsubst CASCADE; -CREATE TABLE model_draft.ego_grid_lv_griddistrict_cut_xsubst ( - id integer, - la_id integer, - subst_id integer, - subst_cnt integer, - geom geometry(Polygon,3035), - CONSTRAINT ego_grid_lv_griddistrict_cut_xsubst_pkey PRIMARY KEY (id) ); +-- Select parts with more than one substation +DROP TABLE IF EXISTS model_draft.ego_grid_lv_griddistrict_cut_xsubst CASCADE; +CREATE TABLE model_draft.ego_grid_lv_griddistrict_cut_xsubst ( + id integer, + la_id integer, + subst_id integer, + subst_cnt integer, + geom geometry(Polygon,3035), + CONSTRAINT ego_grid_lv_griddistrict_cut_xsubst_pkey PRIMARY KEY (id) ); -- grant (oeuser) -ALTER TABLE model_draft.ego_grid_lv_griddistrict_cut_xsubst OWNER TO oeuser; +ALTER TABLE model_draft.ego_grid_lv_griddistrict_cut_xsubst OWNER TO oeuser; -- insert dump -INSERT INTO model_draft.ego_grid_lv_griddistrict_cut_xsubst - SELECT * - FROM model_draft.ego_grid_lv_griddistrict_cut - WHERE subst_cnt > 1; +INSERT INTO model_draft.ego_grid_lv_griddistrict_cut_xsubst + SELECT * + FROM model_draft.ego_grid_lv_griddistrict_cut + WHERE subst_cnt > 1; -- index GIST (geom) -CREATE INDEX ego_grid_lv_griddistrict_cut_xsubst_geom_idx - ON model_draft.ego_grid_lv_griddistrict_cut_xsubst USING GIST (geom); +CREATE INDEX ego_grid_lv_griddistrict_cut_xsubst_geom_idx + ON model_draft.ego_grid_lv_griddistrict_cut_xsubst USING GIST (geom); -- metadata COMMENT ON TABLE model_draft.ego_grid_lv_griddistrict_cut_xsubst IS '{ - "comment": "eGoDP - Temporary table", - "version": "v0.3.0" }' ; + "comment": "eGoDP - Temporary table", + "version": "v0.3.0" }' ; -- ego scenario log (version,io,schema_name,table_name,script_name,comment) SELECT ego_scenario_log('v0.3.0','temp','model_draft','ego_grid_lv_griddistrict_cut_xsubst','ego_dp_lv_griddistrict.sql',' '); - --- Next Neighbor -DROP TABLE IF EXISTS model_draft.ego_grid_lv_griddistrict_cut_nn CASCADE; -CREATE TABLE model_draft.ego_grid_lv_griddistrict_cut_nn ( - id serial, - a_id integer, - b_id integer, - subst_id integer, - la_id integer, - geom geometry(Polygon,3035), - geom_line geometry(LineString,3035), - distance double precision, - CONSTRAINT ego_grid_lv_griddistrict_cut_nn_pkey PRIMARY KEY (id) ); +-- Combine parts with Next Neighbor +DROP TABLE IF EXISTS model_draft.ego_grid_lv_griddistrict_cut_nn CASCADE; +CREATE TABLE model_draft.ego_grid_lv_griddistrict_cut_nn ( + id serial, + a_id integer, + b_id integer, + subst_id integer, + la_id integer, + geom geometry(Polygon,3035), + geom_line geometry(LineString,3035), + distance double precision, + CONSTRAINT ego_grid_lv_griddistrict_cut_nn_pkey PRIMARY KEY (id) ); INSERT INTO model_draft.ego_grid_lv_griddistrict_cut_nn (a_id,b_id,subst_id,la_id,geom,geom_line,distance) - SELECT DISTINCT ON (a.id) - a.id, - b.id, - a.subst_id, - a.la_id, - a.geom, - ST_ShortestLine( - ST_CENTROID(a.geom) ::geometry(Point,3035), - ST_ExteriorRing(b.geom) ::geometry(LineString,3035) - ) ::geometry(LineString,3035) AS geom_line, - ST_Distance(ST_CENTROID(a.geom),ST_ExteriorRing(b.geom)) - FROM model_draft.ego_grid_lv_griddistrict_cut_0subst AS a, -- fragments - model_draft.ego_grid_lv_griddistrict_cut_1subst AS b -- target - WHERE ST_DWithin(ST_CENTROID(a.geom),ST_ExteriorRing(b.geom), 1000) -- In a 1 km radius - AND a.subst_id = b.subst_id - ORDER BY a.id, ST_Distance(ST_CENTROID(a.geom),ST_ExteriorRing(b.geom)); + SELECT DISTINCT ON (a.id) + a.id, + b.id, + a.subst_id, + a.la_id, + a.geom, + ST_ShortestLine( + ST_CENTROID(a.geom) ::geometry(Point,3035), + ST_ExteriorRing(b.geom) ::geometry(LineString,3035) + ) ::geometry(LineString,3035) AS geom_line, + ST_Distance(ST_CENTROID(a.geom),ST_ExteriorRing(b.geom)) + FROM model_draft.ego_grid_lv_griddistrict_cut_0subst AS a, -- fragments + model_draft.ego_grid_lv_griddistrict_cut_1subst AS b -- target + WHERE ST_DWithin(ST_CENTROID(a.geom),ST_ExteriorRing(b.geom), 1000) -- In a 1 km radius + AND a.subst_id = b.subst_id + ORDER BY a.id, ST_Distance(ST_CENTROID(a.geom),ST_ExteriorRing(b.geom)); -- index GIST (geom) -CREATE INDEX ego_grid_lv_griddistrict_cut_nn_ageom_idx - ON model_draft.ego_grid_lv_griddistrict_cut_nn USING GIST (geom); +CREATE INDEX ego_grid_lv_griddistrict_cut_nn_ageom_idx + ON model_draft.ego_grid_lv_griddistrict_cut_nn USING GIST (geom); -- index GIST (geom) -CREATE INDEX ego_grid_lv_griddistrict_cut_nn_geom_line_idx - ON model_draft.ego_grid_lv_griddistrict_cut_nn USING GIST (geom_line); +CREATE INDEX ego_grid_lv_griddistrict_cut_nn_geom_line_idx + ON model_draft.ego_grid_lv_griddistrict_cut_nn USING GIST (geom_line); -- grant (oeuser) -ALTER TABLE model_draft.ego_grid_lv_griddistrict_cut_nn OWNER TO oeuser; +ALTER TABLE model_draft.ego_grid_lv_griddistrict_cut_nn OWNER TO oeuser; -- metadata COMMENT ON TABLE model_draft.ego_grid_lv_griddistrict_cut_nn IS '{ - "comment": "eGoDP - Temporary table", - "version": "v0.3.0" }' ; + "comment": "eGoDP - Temporary table", + "version": "v0.3.0" }' ; -- ego scenario log (version,io,schema_name,table_name,script_name,comment) SELECT ego_scenario_log('v0.3.0','temp','model_draft','ego_grid_lv_griddistrict_cut_nn','ego_dp_lv_griddistrict.sql',' '); - --- collect and union -DROP TABLE IF EXISTS model_draft.ego_grid_lv_griddistrict_cut_nn_collect CASCADE; -CREATE TABLE model_draft.ego_grid_lv_griddistrict_cut_nn_collect ( - id integer, - mvlv_subst_id integer, - subst_id integer, - la_id integer, - nn boolean, - geom geometry(MultiPolygon,3035), - CONSTRAINT ego_grid_lv_griddistrict_cut_nn_collect_pkey PRIMARY KEY (id) ); +-- Collect and union all parts +DROP TABLE IF EXISTS model_draft.ego_grid_lv_griddistrict_cut_nn_collect CASCADE; +CREATE TABLE model_draft.ego_grid_lv_griddistrict_cut_nn_collect ( + id integer, + mvlv_subst_id integer, + subst_id integer, + la_id integer, + nn boolean, + geom geometry(MultiPolygon,3035), + CONSTRAINT ego_grid_lv_griddistrict_cut_nn_collect_pkey PRIMARY KEY (id) ); -- grant (oeuser) -ALTER TABLE model_draft.ego_grid_lv_griddistrict_cut_nn_collect OWNER TO oeuser; +ALTER TABLE model_draft.ego_grid_lv_griddistrict_cut_nn_collect OWNER TO oeuser; -- index GIST (geom) -CREATE INDEX ego_grid_lv_griddistrict_cut_nn_collect_geom_idx - ON model_draft.ego_grid_lv_griddistrict_cut_nn_collect USING GIST (geom); +CREATE INDEX ego_grid_lv_griddistrict_cut_nn_collect_geom_idx + ON model_draft.ego_grid_lv_griddistrict_cut_nn_collect USING GIST (geom); -- insert -INSERT INTO model_draft.ego_grid_lv_griddistrict_cut_nn_collect (id,subst_id,la_id,nn,geom) - SELECT id, - subst_id, - la_id, - FALSE, - ST_MULTI(geom) - FROM model_draft.ego_grid_lv_griddistrict_cut_1subst - ORDER BY id; +INSERT INTO model_draft.ego_grid_lv_griddistrict_cut_nn_collect (id,subst_id,la_id,nn,geom) + SELECT id, + subst_id, + la_id, + FALSE, + ST_MULTI(geom) + FROM model_draft.ego_grid_lv_griddistrict_cut_1subst + ORDER BY id; -- insert union WITH collect AS ( - SELECT a.id,a.geom - FROM ( - SELECT b_id AS id,geom - FROM model_draft.ego_grid_lv_griddistrict_cut_nn - UNION ALL - SELECT id,geom - FROM model_draft.ego_grid_lv_griddistrict_cut_1subst) AS a - ORDER BY id ) -UPDATE model_draft.ego_grid_lv_griddistrict_cut_nn_collect AS t1 - SET geom = t2.geom, - nn = TRUE - FROM (SELECT id, - ST_MULTI(ST_UNION(geom)) AS geom - FROM collect - GROUP BY id - ) AS t2 - WHERE t1.id = t2.id; + SELECT a.id,a.geom + FROM ( + SELECT b_id AS id,geom + FROM model_draft.ego_grid_lv_griddistrict_cut_nn + UNION ALL + SELECT id,geom + FROM model_draft.ego_grid_lv_griddistrict_cut_1subst) AS a + ORDER BY id ) +UPDATE model_draft.ego_grid_lv_griddistrict_cut_nn_collect AS t1 + SET geom = t2.geom, + nn = TRUE + FROM ( + SELECT id, + ST_MULTI(ST_UNION(geom)) AS geom + FROM collect + GROUP BY id + ) AS t2 + WHERE t1.id = t2.id; -- mvlv substation id -UPDATE model_draft.ego_grid_lv_griddistrict_cut_nn_collect AS t1 - SET mvlv_subst_id = t2.mvlv_subst_id - FROM ( - SELECT a.id AS id, - b.mvlv_subst_id AS mvlv_subst_id - FROM model_draft.ego_grid_lv_griddistrict_cut_nn_collect AS a, - model_draft.ego_grid_mvlv_substation AS b - WHERE a.geom && b.geom AND - ST_CONTAINS(a.geom,b.geom) - ) AS t2 - WHERE t1.id = t2.id; +UPDATE model_draft.ego_grid_lv_griddistrict_cut_nn_collect AS t1 + SET mvlv_subst_id = t2.mvlv_subst_id + FROM ( + SELECT a.id AS id, + b.mvlv_subst_id AS mvlv_subst_id + FROM model_draft.ego_grid_lv_griddistrict_cut_nn_collect AS a, + model_draft.ego_grid_mvlv_substation AS b + WHERE a.geom && b.geom AND + ST_CONTAINS(a.geom,b.geom) + ) AS t2 + WHERE t1.id = t2.id; -- metadata COMMENT ON TABLE model_draft.ego_grid_lv_griddistrict_cut_nn_collect IS '{ - "comment": "eGoDP - Temporary table", - "version": "v0.3.0" }' ; + "comment": "eGoDP - Temporary table", + "version": "v0.3.0" }' ; -- ego scenario log (version,io,schema_name,table_name,script_name,comment) SELECT ego_scenario_log('v0.3.0','temp','model_draft','ego_grid_lv_griddistrict_cut_nn_collect','ego_dp_lv_griddistrict.sql',' '); diff --git a/dataprocessing/sql_snippets/ego_dp_lv_peakload.sql b/dataprocessing/sql_snippets/ego_dp_lv_peakload.sql index 592f8503..e0ff4852 100644 --- a/dataprocessing/sql_snippets/ego_dp_lv_peakload.sql +++ b/dataprocessing/sql_snippets/ego_dp_lv_peakload.sql @@ -1,10 +1,10 @@ /* In progess -__copyright__ = "Reiner Lemoine Institut" -__license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" -__url__ = "https://github.com/openego/data_processing/blob/master/LICENSE" -__author__ = "Ludee, jong42" +__copyright__ = "Reiner Lemoine Institut" +__license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" +__url__ = "https://github.com/openego/data_processing/blob/master/LICENSE" +__author__ = "Ludee, jong42" */ diff --git a/dataprocessing/sql_snippets/ego_dp_lv_substation.sql b/dataprocessing/sql_snippets/ego_dp_lv_substation.sql index 91e5120d..6fc1648f 100644 --- a/dataprocessing/sql_snippets/ego_dp_lv_substation.sql +++ b/dataprocessing/sql_snippets/ego_dp_lv_substation.sql @@ -1,214 +1,201 @@ /* -create mvlv substations (ONT) from lattice -Runtime 08:30 min - -__copyright__ = "Reiner Lemoine Institut" -__license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" -__url__ = "https://github.com/openego/data_processing/blob/master/LICENSE" -__author__ = "jong42, Ludee" +MVLV Substation (ONT) +Create a lattice (regular fishnet grid) with 360m. +Create MVLV Substation from lattice centroid. + +__copyright__ = "Reiner Lemoine Institut" +__license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" +__url__ = "https://github.com/openego/data_processing/blob/master/LICENSE" +__author__ = "jong42, Ludee" */ --- lv lattice -DROP TABLE IF EXISTS model_draft.ego_lattice_360m_lv; -CREATE TABLE model_draft.ego_lattice_360m_lv ( - id serial NOT NULL, - la_id integer, - geom geometry(Polygon,3035), - CONSTRAINT ego_lattice_360m_lv_pkey PRIMARY KEY (id) ); + +-- Create a lattice (regular fishnet grid) with 360m +DROP TABLE IF EXISTS model_draft.ego_lattice_360m_lv; +CREATE TABLE model_draft.ego_lattice_360m_lv ( + id serial NOT NULL, + la_id integer, + geom geometry(Polygon,3035), + CONSTRAINT ego_lattice_360m_lv_pkey PRIMARY KEY (id) ); -- ego scenario log (version,io,schema_name,table_name,script_name,comment) SELECT ego_scenario_log('v0.3.0','input','model_draft','ego_demand_loadarea','ego_dp_lv_substation.sql',' '); -- lattice on the bbox of loadareas INSERT INTO model_draft.ego_lattice_360m_lv (geom, la_id) - SELECT - -- Normalfall: mehrere Zellen pro Grid - CASE WHEN ST_AREA (geom) > (3.1415926535 * 1152) - THEN ST_SETSRID(ST_CREATEFISHNET( - ROUND((ST_ymax(box2d(geom)) - ST_ymin(box2d(geom))) /360)::integer, - ROUND((ST_xmax(box2d(geom)) - ST_xmin(box2d(geom))) /360)::integer, - 360, - 360, - ST_xmin (box2d(geom)), - ST_ymin (box2d(geom)) - ),3035)::geometry(POLYGON,3035) - -- Spezialfall: bei kleinene Lastgebieten erstelle nur eine Zelle - ELSE ST_SETSRID(ST_CREATEFISHNET( - 1, - 1, - (ST_ymax(box2d(geom)) - ST_ymin(box2d(geom))), - (ST_xmax(box2d(geom)) - ST_xmin(box2d(geom))), - ST_xmin (box2d(geom)), - ST_ymin (box2d(geom)) - ),3035)::geometry(POLYGON,3035) - END AS geom, - id AS la_id - FROM model_draft.ego_demand_loadarea; + SELECT + -- Normalfall: mehrere Zellen pro Grid + CASE WHEN ST_AREA (geom) > (3.1415926535 * 1152) + THEN ST_SETSRID(ST_CREATEFISHNET( + ROUND((ST_ymax(box2d(geom)) - ST_ymin(box2d(geom))) /360)::integer, + ROUND((ST_xmax(box2d(geom)) - ST_xmin(box2d(geom))) /360)::integer, + 360, + 360, + ST_xmin (box2d(geom)), + ST_ymin (box2d(geom)) + ),3035)::geometry(POLYGON,3035) + -- Spezialfall: bei kleinene Lastgebieten erstelle nur eine Zelle + ELSE ST_SETSRID(ST_CREATEFISHNET( + 1, + 1, + (ST_ymax(box2d(geom)) - ST_ymin(box2d(geom))), + (ST_xmax(box2d(geom)) - ST_xmin(box2d(geom))), + ST_xmin (box2d(geom)), + ST_ymin (box2d(geom)) + ),3035)::geometry(POLYGON,3035) + END AS geom, + id AS la_id + FROM model_draft.ego_demand_loadarea; -- index GIST (geom) CREATE INDEX ego_lattice_360m_lv_geom_idx - ON model_draft.ego_lattice_360m_lv USING GIST (geom); + ON model_draft.ego_lattice_360m_lv USING GIST (geom); -- grant (oeuser) -ALTER TABLE model_draft.ego_lattice_360m_lv OWNER TO oeuser; +ALTER TABLE model_draft.ego_lattice_360m_lv OWNER TO oeuser; + +-- metadata +COMMENT ON TABLE model_draft.ego_lattice_360m_lv IS '{ + "comment": "eGoDP - Temporary table", + "version": "v0.3.0" }'; -- ego scenario log (version,io,schema_name,table_name,script_name,comment) SELECT ego_scenario_log('v0.3.0','temp','model_draft','ego_lattice_360m_lv','ego_dp_lv_substation.sql',' '); --- MVLV Substation -DROP TABLE IF EXISTS model_draft.ego_grid_mvlv_substation; -CREATE TABLE model_draft.ego_grid_mvlv_substation ( - mvlv_subst_id serial NOT NULL, - la_id integer, - subst_id integer, - geom geometry(Point,3035), - CONSTRAINT ego_grid_mvlv_substation_pkey PRIMARY KEY (mvlv_subst_id) ); +-- Create MVLV Substation from lattice centroid +DROP TABLE IF EXISTS model_draft.ego_grid_mvlv_substation; +CREATE TABLE model_draft.ego_grid_mvlv_substation ( + mvlv_subst_id serial NOT NULL, + la_id integer, + subst_id integer, + geom geometry(Point,3035), + CONSTRAINT ego_grid_mvlv_substation_pkey PRIMARY KEY (mvlv_subst_id) ); -- index GIST (geom) CREATE INDEX ego_grid_mvlv_substation_geom_idx - ON model_draft.ego_grid_mvlv_substation USING GIST (geom); + ON model_draft.ego_grid_mvlv_substation USING GIST (geom); -- Bestimme diejenigen Mittelpunkte der Grid-Polygone, die innerhalb der Lastgebiete liegen --- centroids from lattice, when inside loadarea +-- Centroids from lattice, when inside loadarea INSERT INTO model_draft.ego_grid_mvlv_substation (la_id, geom) - SELECT DISTINCT b.id AS la_id, - ST_CENTROID (a.geom)::geometry(POINT,3035) AS geom - FROM model_draft.ego_lattice_360m_lv AS a, - model_draft.ego_demand_loadarea AS b - WHERE ST_WITHIN(ST_CENTROID(a.geom),b.geom) AND - b.id = a.la_id; - --- Füge den Lastgebieten, die aufgrund ihrer geringen Fläche keine ONTs zugeordnet bekommen haben, ihren Mittelpunkt als ONT-STandort hinzu: (01:54 min) --- + SELECT DISTINCT b.id AS la_id, + ST_CENTROID (a.geom)::geometry(POINT,3035) AS geom + FROM model_draft.ego_lattice_360m_lv AS a, + model_draft.ego_demand_loadarea AS b + WHERE ST_WITHIN(ST_CENTROID(a.geom),b.geom) + AND b.id = a.la_id; + +-- Füge den Lastgebieten, die aufgrund ihrer geringen Fläche keine ONT zugeordnet bekommen haben, ihren Mittelpunkt als ONT-Standort hinzu +-- Centroid for very small Loadarea INSERT INTO model_draft.ego_grid_mvlv_substation (geom, la_id) - SELECT - CASE WHEN ST_CONTAINS (geom,ST_CENTROID(area_without_ont.geom)) - THEN ST_CENTROID(area_without_ont.geom) - ELSE ST_POINTONSURFACE(area_without_ont.geom) - END , area_without_ont.id - FROM (SELECT geom, id - FROM model_draft.ego_demand_loadarea - EXCEPT - SELECT a.geom AS geom, a.id - FROM model_draft.ego_demand_loadarea AS a, - model_draft.ego_grid_mvlv_substation AS b - WHERE ST_CONTAINS (a.geom, b.geom) - GROUP BY (a.id) - ) AS area_without_ont ; + SELECT + CASE + WHEN ST_CONTAINS (geom,ST_CENTROID(area_without_ont.geom)) + THEN ST_CENTROID(area_without_ont.geom) + ELSE ST_POINTONSURFACE(area_without_ont.geom) + END, + area_without_ont.id + FROM ( + SELECT geom, id + FROM model_draft.ego_demand_loadarea + EXCEPT + SELECT a.geom AS geom, a.id + FROM model_draft.ego_demand_loadarea AS a, + model_draft.ego_grid_mvlv_substation AS b + WHERE ST_CONTAINS (a.geom, b.geom) + GROUP BY (a.id) + ) AS area_without_ont ; -- grant (oeuser) -ALTER TABLE model_draft.ego_grid_mvlv_substation OWNER TO oeuser; +ALTER TABLE model_draft.ego_grid_mvlv_substation OWNER TO oeuser; + +-- metadata +COMMENT ON TABLE model_draft.ego_grid_mvlv_substation IS '{ + "comment": "eGoDP - Temporary table", + "version": "v0.3.0" }'; -- ego scenario log (version,io,schema_name,table_name,script_name,comment) SELECT ego_scenario_log('v0.3.0','temp','model_draft','ego_grid_mvlv_substation','ego_dp_lv_substation.sql',' '); -- Lege Buffer um ONT-Standorte und ermittle die Teile der Lastgebiete, die sich nicht innerhalb dieser Buffer befinden --- -DROP TABLE IF EXISTS model_draft.ego_grid_lv_loadarea_rest; -CREATE TABLE model_draft.ego_grid_lv_loadarea_rest ( - id serial NOT NULL, - la_id integer, - geom_point geometry(Point,3035), - geom geometry(Polygon,3035), - CONSTRAINT ego_grid_lv_loadarea_rest_pkey PRIMARY KEY (id) ); +-- LV Griddistrict rest +DROP TABLE IF EXISTS model_draft.ego_grid_lv_loadarea_rest; +CREATE TABLE model_draft.ego_grid_lv_loadarea_rest ( + id serial NOT NULL, + la_id integer, + geom_point geometry(Point,3035), + geom geometry(Polygon,3035), + CONSTRAINT ego_grid_lv_loadarea_rest_pkey PRIMARY KEY (id) ); -- grant (oeuser) -ALTER TABLE model_draft.ego_grid_lv_loadarea_rest OWNER TO oeuser; +ALTER TABLE model_draft.ego_grid_lv_loadarea_rest OWNER TO oeuser; --- insert rest +-- Insert rest INSERT INTO model_draft.ego_grid_lv_loadarea_rest (la_id, geom) - SELECT c.id AS la_id, - (ST_DUMP(ST_DIFFERENCE(c.geom, area_with_onts.geom))).geom::geometry(Polygon,3035) AS geom - FROM (SELECT ST_BUFFER(ST_UNION(a.geom),540) AS geom,b.id AS id - FROM model_draft.ego_grid_mvlv_substation AS a, - model_draft.ego_demand_loadarea AS b - WHERE b.geom && a.geom AND - ST_CONTAINS(b.geom,a.geom) - GROUP BY b.id - ) AS area_with_onts - INNER JOIN model_draft.ego_demand_loadarea AS c - ON (c.id = area_with_onts.id) - WHERE ST_AREA(ST_DIFFERENCE(c.geom, area_with_onts.geom)) > 0 ; + SELECT c.id AS la_id, + (ST_DUMP(ST_DIFFERENCE(c.geom, area_with_onts.geom))).geom::geometry(Polygon,3035) AS geom + FROM ( + SELECT ST_BUFFER(ST_UNION(a.geom),540) AS geom,b.id AS id + FROM model_draft.ego_grid_mvlv_substation AS a, + model_draft.ego_demand_loadarea AS b + WHERE b.geom && a.geom AND + ST_CONTAINS(b.geom,a.geom) + GROUP BY b.id + ) AS area_with_onts + INNER JOIN model_draft.ego_demand_loadarea AS c + ON (c.id = area_with_onts.id) + WHERE ST_AREA(ST_DIFFERENCE(c.geom, area_with_onts.geom)) > 0 ; -- index GIST (geom) CREATE INDEX ego_grid_lv_loadarea_rest_geom_idx - ON model_draft.ego_grid_lv_loadarea_rest USING GIST (geom); - + ON model_draft.ego_grid_lv_loadarea_rest USING GIST (geom); + -- index GIST (geom_point) CREATE INDEX ego_grid_lv_loadarea_rest_geom_point_idx - ON model_draft.ego_grid_lv_loadarea_rest USING GIST (geom_point); + ON model_draft.ego_grid_lv_loadarea_rest USING GIST (geom_point); -- PointOnSurface for rest -UPDATE model_draft.ego_grid_lv_loadarea_rest - SET geom_point = ST_PointOnSurface(geom) ::geometry(POINT,3035) ; +UPDATE model_draft.ego_grid_lv_loadarea_rest + SET geom_point = ST_PointOnSurface(geom) ::geometry(POINT,3035) ; + +-- metadata +COMMENT ON TABLE model_draft.ego_grid_lv_loadarea_rest IS '{ + "comment": "eGoDP - Temporary table", + "version": "v0.3.0" }'; -- ego scenario log (version,io,schema_name,table_name,script_name,comment) SELECT ego_scenario_log('v0.3.0','temp','model_draft','ego_grid_lv_loadarea_rest','ego_dp_lv_substation.sql',' '); -- Bestimme die Mittelpunkte der Gebiete, die noch nicht durch ONT abgedeckt sind, und lege diese Mittelpunkte als ONT-Standorte fest --- +-- Add LV INSERT INTO model_draft.ego_grid_mvlv_substation (la_id, geom) - SELECT la_id, - geom_point ::geometry(POINT,3035) - FROM model_draft.ego_grid_lv_loadarea_rest; + SELECT la_id, + geom_point ::geometry(POINT,3035) + FROM model_draft.ego_grid_lv_loadarea_rest; -- ego scenario log (version,io,schema_name,table_name,script_name,comment) SELECT ego_scenario_log('v0.3.0','input','model_draft','ego_grid_mv_griddistrict','ego_dp_lv_substation.sql',' '); -- subst_id from MV-griddistrict -UPDATE model_draft.ego_grid_mvlv_substation AS t1 - SET subst_id = t2.subst_id - FROM ( - SELECT a.mvlv_subst_id AS mvlv_subst_id, - b.subst_id AS subst_id - FROM model_draft.ego_grid_mvlv_substation AS a, - model_draft.ego_grid_mv_griddistrict AS b - WHERE b.geom && a.geom AND - ST_CONTAINS(b.geom,a.geom) - ) AS t2 - WHERE t1.mvlv_subst_id = t2.mvlv_subst_id; +UPDATE model_draft.ego_grid_mvlv_substation AS t1 + SET subst_id = t2.subst_id + FROM ( + SELECT a.mvlv_subst_id AS mvlv_subst_id, + b.subst_id AS subst_id + FROM model_draft.ego_grid_mvlv_substation AS a, + model_draft.ego_grid_mv_griddistrict AS b + WHERE b.geom && a.geom AND + ST_CONTAINS(b.geom,a.geom) + ) AS t2 + WHERE t1.mvlv_subst_id = t2.mvlv_subst_id; -- metadata COMMENT ON TABLE model_draft.ego_grid_mvlv_substation IS '{ - "title": "eGoDP - MVLV Substation (ONT)", - "description": "Low voltage substations / Distribution substations (Ortsnetztrafos)", - "language": [ "eng", "ger" ], - "reference_date": "2017", - "sources": [ - {"name": "open_eGo", "description": "eGo dataprocessing", - "url": "https://github.com/openego/data_processing", "license": "ODbL-1.0"} ], - "spatial": [ - {"extend": "Germany", - "resolution": " "} ], - "license": [ - {"id": "ODbL-1.0", - "name": "Open Data Commons Open Database License 1.0", - "version": "1.0", - "url": "https://opendatacommons.org/licenses/odbl/1.0/", - "instruction": "You are free: To Share, To Create, To Adapt; As long as you: Attribute, Share-Alike, Keep open!"} ], - "contributors": [ - {"name": "jong42", "email": "", - "date": "20.10.2016", "comment": "create table"}, - {"name": "jong42", "email": "", - "date": "27.10.2016", "comment": "change table names"}, - {"name": "Ludee", "email": "", - "date": "21.03.2017", "comment": "validate and restructure tables"}, - {"name": "Ludee", "email": "", - "date": "22.03.2017", "comment": "update metadata (1.1) and add license"} ], - "resources": [{ - "schema": { - "fields": [ - {"name": "mvlv_subst_id", "description": "MVLV substation ID", "unit": "" }, - {"name": "la_id", "description": "loadarea ID", "unit": "" }, - {"name": "subst_id", "description": "HVMV substation ID", "unit": "" }, - {"name": "geom", "description": "geometry", "unit": "" } ]}, - "meta_version": "1.1" }] }'; - --- select description -SELECT obj_description('model_draft.ego_grid_mvlv_substation' ::regclass) ::json; + "comment": "eGoDP - Temporary table", + "version": "v0.3.0" }'; -- ego scenario log (version,io,schema_name,table_name,script_name,comment) SELECT ego_scenario_log('v0.3.0','output','model_draft','ego_grid_mvlv_substation','ego_dp_lv_substation.sql',' '); diff --git a/dataprocessing/sql_snippets/ego_dp_lv_substation_voronoi.sql b/dataprocessing/sql_snippets/ego_dp_lv_substation_voronoi.sql index a1212ee1..a2bebc4e 100644 --- a/dataprocessing/sql_snippets/ego_dp_lv_substation_voronoi.sql +++ b/dataprocessing/sql_snippets/ego_dp_lv_substation_voronoi.sql @@ -1,11 +1,11 @@ /* -mvlv substation voronoi -voronoi polygons with eucldean distance / manhattan distance would be better but not available in sql +MVLV Substation Voronoi +Voronoi polygons with Eucldean distance (manhattan distance would be better but not available in sql). -__copyright__ = "Reiner Lemoine Institut" -__license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" -__url__ = "https://github.com/openego/data_processing/blob/master/LICENSE" -__author__ = "jong42, Ludee" +__copyright__ = "Reiner Lemoine Institut" +__license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" +__url__ = "https://github.com/openego/data_processing/blob/master/LICENSE" +__author__ = "jong42, Ludee" */ @@ -17,420 +17,106 @@ ALTER TABLE model_draft.ego_grid_mvlv_substation ADD COLUMN is_dummy boolean; INSERT INTO model_draft.ego_grid_mvlv_substation (mvlv_subst_id, geom, is_dummy) -SELECT subst_id+800000, - ST_TRANSFORM(geom,3035), - TRUE -FROM model_draft.ego_grid_hvmv_substation_dummy; - + SELECT subst_id + 800000, + ST_TRANSFORM(geom,3035), + TRUE + FROM model_draft.ego_grid_hvmv_substation_dummy; -- execute voronoi with loop -DROP TABLE IF EXISTS model_draft.ego_grid_mvlv_substation_voronoi CASCADE; -CREATE TABLE model_draft.ego_grid_mvlv_substation_voronoi ( - id serial NOT NULL, - subst_id integer, - geom geometry(Polygon,3035), - CONSTRAINT ego_grid_mvlv_substation_voronoi_pkey PRIMARY KEY (id) ); - --- grant (oeuser) -ALTER TABLE model_draft.ego_grid_mvlv_substation_voronoi OWNER TO oeuser; +DROP TABLE IF EXISTS model_draft.ego_grid_mvlv_substation_voronoi CASCADE; +CREATE TABLE model_draft.ego_grid_mvlv_substation_voronoi ( + id serial NOT NULL, + subst_id integer, + geom geometry(Polygon,3035), + CONSTRAINT ego_grid_mvlv_substation_voronoi_pkey PRIMARY KEY (id) ); -- index GIST (geom) CREATE INDEX ego_grid_mvlv_substation_voronoi_geom_idx - ON model_draft.ego_grid_mvlv_substation_voronoi USING GIST (geom); + ON model_draft.ego_grid_mvlv_substation_voronoi USING GIST (geom); + +-- grant (oeuser) +ALTER TABLE model_draft.ego_grid_mvlv_substation_voronoi OWNER TO oeuser; + +-- metadata +COMMENT ON TABLE model_draft.ego_grid_mvlv_substation_voronoi IS '{ + "comment": "eGoDP - Temporary table", + "version": "v0.3.0" }'; -- loop over MV Griddistrict DO $$ DECLARE gd integer; BEGIN - FOR gd_id IN 1..3608 - LOOP - EXECUTE - + FOR gd_id IN 1..3608 + LOOP + EXECUTE 'WITH -- Sample set of points to work with - Sample AS (SELECT ST_SetSRID(ST_Union(pts.geom), 0) AS geom - FROM model_draft.ego_grid_mvlv_substation AS pts - WHERE pts.subst_id = ' || gd_id || ' OR is_dummy = TRUE - ), -- INPUT 1/2 + Sample AS ( + SELECT ST_SetSRID(ST_Union(pts.geom), 0) AS geom + FROM model_draft.ego_grid_mvlv_substation AS pts + WHERE pts.subst_id = ' || gd_id || ' + OR is_dummy = TRUE + ), -- INPUT 1/2 -- Build edges and circumscribe points to generate a centroid Edges AS ( - SELECT id, - UNNEST(ARRAY[''e1'',''e2'',''e3'']) EdgeName, - UNNEST(ARRAY[ - ST_MakeLine(p1,p2) , - ST_MakeLine(p2,p3) , - ST_MakeLine(p3,p1)]) Edge, - ST_Centroid(ST_ConvexHull(ST_Union(-- Done this way due to issues I had with LineToCurve - ST_CurveToLine(REPLACE(ST_AsText(ST_LineMerge(ST_Union(ST_MakeLine(p1,p2),ST_MakeLine(p2,p3)))),''LINE'',''CIRCULAR''),15), - ST_CurveToLine(REPLACE(ST_AsText(ST_LineMerge(ST_Union(ST_MakeLine(p2,p3),ST_MakeLine(p3,p1)))),''LINE'',''CIRCULAR''),15) - ))) ct - FROM ( - -- Decompose to points - SELECT id, - ST_PointN(g,1) p1, - ST_PointN(g,2) p2, - ST_PointN(g,3) p3 - FROM ( - SELECT (gd).Path id, ST_ExteriorRing((gd).geom) g -- ID andmake triangle a linestring - FROM (SELECT (ST_Dump(ST_DelaunayTriangles(geom))) gd FROM Sample) a -- Get Delaunay Triangles - )b - ) c - ) -INSERT INTO model_draft.ego_grid_mvlv_substation_voronoi (geom, subst_id) -- INPUT 2/2 -SELECT ST_SetSRID((ST_Dump(ST_Polygonize(ST_Node(ST_LineMerge(ST_Union(v, (SELECT ST_ExteriorRing(ST_ConvexHull(ST_Union(ST_Union(ST_Buffer(edge,20),ct)))) FROM Edges))))))).geom, 3035) geom, ' || gd_id || ' AS subst_id -FROM ( - SELECT -- Create voronoi edges and reduce to a multilinestring - ST_LineMerge(ST_Union(ST_MakeLine( - x.ct, - CASE - WHEN y.id IS NULL THEN - CASE WHEN ST_Within( - x.ct, - (SELECT ST_ConvexHull(geom) FROM sample)) THEN -- Dont draw lines back towards the original set - -- Project line out twice the distance from convex hull - ST_MakePoint(ST_X(x.ct) + ((ST_X(ST_Centroid(x.edge)) - ST_X(x.ct)) * 200),ST_Y(x.ct) + ((ST_Y(ST_Centroid(x.edge)) - ST_Y(x.ct)) * 200)) + SELECT id, + UNNEST(ARRAY[''e1'',''e2'',''e3'']) EdgeName, + UNNEST(ARRAY[ + ST_MakeLine(p1,p2) , + ST_MakeLine(p2,p3) , + ST_MakeLine(p3,p1)]) Edge, + ST_Centroid(ST_ConvexHull(ST_Union(-- Done this way due to issues I had with LineToCurve + ST_CurveToLine(REPLACE(ST_AsText(ST_LineMerge(ST_Union(ST_MakeLine(p1,p2),ST_MakeLine(p2,p3)))),''LINE'',''CIRCULAR''),15), + ST_CurveToLine(REPLACE(ST_AsText(ST_LineMerge(ST_Union(ST_MakeLine(p2,p3),ST_MakeLine(p3,p1)))),''LINE'',''CIRCULAR''),15) + ))) ct + FROM ( + -- Decompose to points + SELECT id, + ST_PointN(g,1) p1, + ST_PointN(g,2) p2, + ST_PointN(g,3) p3 + FROM ( + SELECT (gd).Path id, + ST_ExteriorRing((gd).geom) g -- ID and make triangle a linestring + FROM ( + SELECT (ST_Dump(ST_DelaunayTriangles(geom))) gd + FROM Sample) a -- Get Delaunay Triangles + ) b + ) c + ) +INSERT INTO model_draft.ego_grid_mvlv_substation_voronoi (geom, subst_id) -- INPUT 2/2 + SELECT ST_SetSRID((ST_Dump(ST_Polygonize(ST_Node(ST_LineMerge(ST_Union(v, + (SELECT ST_ExteriorRing(ST_ConvexHull(ST_Union(ST_Union(ST_Buffer(edge,20),ct)))) + FROM Edges))))))).geom, 3035) geom, ' || gd_id || ' AS subst_id + FROM ( + SELECT -- Create voronoi edges and reduce to a multilinestring + ST_LineMerge(ST_Union(ST_MakeLine( + x.ct, + CASE + WHEN y.id IS NULL THEN + CASE WHEN ST_Within( + x.ct, + (SELECT ST_ConvexHull(geom) FROM sample)) THEN -- Dont draw lines back towards the original set + -- Project line out twice the distance from convex hull + ST_MakePoint(ST_X(x.ct) + ((ST_X(ST_Centroid(x.edge)) - ST_X(x.ct)) * 200),ST_Y(x.ct) + ((ST_Y(ST_Centroid(x.edge)) - ST_Y(x.ct)) * 200)) + END + ELSE + y.ct END - ELSE - y.ct - END - ))) v - FROM Edges x - LEFT OUTER JOIN -- Self Join based on edges - Edges y ON x.id <> y.id AND ST_Equals(x.edge,y.edge) - ) z'; + ))) v + FROM Edges x + LEFT OUTER JOIN -- Self Join based on edges + Edges y ON x.id <> y.id AND ST_Equals(x.edge,y.edge) + ) z'; END LOOP; - END; $$; -- Delete Dummy points from substations DELETE FROM model_draft.ego_grid_mvlv_substation WHERE is_dummy = TRUE; - -- ego scenario log (version,io,schema_name,table_name,script_name,comment) SELECT ego_scenario_log('v0.3.0','temp','model_draft','ego_grid_mvlv_substation_voronoi','ego_dp_lv_substation_voronoi.sql',' '); - - - -/* --- execute voronoi (experimental) -DROP TABLE IF EXISTS model_draft.ego_grid_mvlv_substation_voronoi_exp CASCADE; -CREATE TABLE model_draft.ego_grid_mvlv_substation_voronoi_exp ( - id serial NOT NULL, - subst_id integer, - subst_cnt integer, - geom geometry(Polygon,3035), - CONSTRAINT ego_grid_mvlv_substation_voronoi_exp_pkey PRIMARY KEY (id) ); - --- grant (oeuser) -ALTER TABLE model_draft.ego_grid_mvlv_substation_voronoi_exp OWNER TO oeuser; - --- index GIST (geom) -CREATE INDEX ego_grid_mvlv_substation_voronoi_exp_geom_idx - ON model_draft.ego_grid_mvlv_substation_voronoi_exp USING GIST (geom); - --- Voronoi -WITH -- sample set of points to work with - Sample AS (SELECT ST_SetSRID(ST_Union(ST_Collect(a.geom,b.geom)), 0) AS geom - FROM model_draft.ego_grid_mvlv_substation AS a, -- input points - model_draft.ego_grid_hvmv_substation_dummy AS b), -- dummy points - -- Build edges and circumscribe points to generate centroids - Edges AS ( - SELECT id, - UNNEST(ARRAY['e1','e2','e3']) EdgeName, - UNNEST(ARRAY[ - ST_MakeLine(p1,p2) , - ST_MakeLine(p2,p3) , - ST_MakeLine(p3,p1)]) Edge, - ST_Centroid(ST_ConvexHull(ST_Union(-- Done this way due to issues I had with LineToCurve - ST_CurveToLine(REPLACE(ST_AsText(ST_LineMerge(ST_Union(ST_MakeLine(p1,p2),ST_MakeLine(p2,p3)))),'LINE','CIRCULAR'),15), - ST_CurveToLine(REPLACE(ST_AsText(ST_LineMerge(ST_Union(ST_MakeLine(p2,p3),ST_MakeLine(p3,p1)))),'LINE','CIRCULAR'),15) ))) ct - FROM ( - -- Decompose to points - SELECT id, - ST_PointN(g,1) p1, - ST_PointN(g,2) p2, - ST_PointN(g,3) p3 - FROM ( - SELECT (gd).Path id, ST_ExteriorRing((gd).geom) g -- ID andmake triangle a linestring - FROM (SELECT (ST_Dump(ST_DelaunayTriangles(geom))) gd FROM Sample) a -- Get Delaunay Triangles - )b - ) c ) -SELECT ST_SetSRID((ST_Dump(ST_Polygonize(ST_Node(ST_LineMerge(ST_Union(v, (SELECT ST_ExteriorRing(ST_ConvexHull(ST_Union(ST_Union(ST_Buffer(edge,20),ct)))) FROM Edges))))))).geom, 2180) geom -INTO model_draft.ego_grid_mvlv_substation_voronoi_exp -- name 2/2 - FROM (SELECT -- Create voronoi edges and reduce to a multilinestring - ST_LineMerge(ST_Union(ST_MakeLine( - x.ct, - CASE - WHEN y.id IS NULL THEN - CASE WHEN ST_Within(x.ct, - (SELECT ST_ConvexHull(geom) FROM sample)) THEN -- Don't draw lines back towards the original set - -- Project line out twice the distance from convex hull - ST_MakePoint(ST_X(x.ct) + ((ST_X(ST_Centroid(x.edge)) - ST_X(x.ct)) * 200),ST_Y(x.ct) + ((ST_Y(ST_Centroid(x.edge)) - ST_Y(x.ct)) * 200)) - END - ELSE y.ct - END ))) v - FROM Edges x - LEFT OUTER JOIN -- Self Join based on edges - Edges y ON x.id <> y.id AND ST_Equals(x.edge,y.edge) - ) z; - */ -/* -- set table -ALTER TABLE model_draft.ego_grid_mvlv_substation_voronoi_exp - ADD COLUMN id serial, - ADD COLUMN subst_id integer, - ADD COLUMN subst_sum integer, - ADD PRIMARY KEY (id), - ALTER COLUMN geom TYPE geometry(POLYGON,3035) USING ST_SETSRID(geom,3035); */ - - - - - - - - -/* --- voronoi algorithm -DROP TABLE IF EXISTS model_draft.ego_grid_mvlv_substation_voronoi CASCADE; -CREATE TABLE model_draft.ego_grid_mvlv_substation_voronoi ( - id serial NOT NULL, - subst_id integer, - geom geometry(Polygon,3035), - CONSTRAINT ego_grid_mvlv_substation_voronoi_pkey PRIMARY KEY (id) ); - --- index GIST (geom) -CREATE INDEX ego_grid_mvlv_substation_voronoi_geom_idx - ON model_draft.ego_grid_mvlv_substation_voronoi USING GIST (geom); - --- grant (oeuser) -ALTER TABLE model_draft.ego_grid_mvlv_substation_voronoi OWNER TO oeuser; - --- ego scenario log (version,io,schema_name,table_name,script_name,comment) -SELECT ego_scenario_log('v0.3.0','input','model_draft','ego_grid_mvlv_substation','ego_dp_lv_griddistrict.sql',' '); - --- ego scenario log (version,io,schema_name,table_name,script_name,comment) -SELECT ego_scenario_log('v0.3.0','input','model_draft','ego_grid_hvmv_substation_dummy','ego_dp_lv_griddistrict.sql',' '); - --- loop over mv-griddistricts -DO -$$ -DECLARE gd integer; -BEGIN - FOR gd_id IN 1..1327 - LOOP - EXECUTE - 'WITH - -- Sample set of points to work with - Sample AS (SELECT ST_SetSRID(ST_Union(ST_Collect(a.geom,b.geom)), 0) AS geom - FROM model_draft.ego_grid_mvlv_substation AS a, - model_draft.ego_grid_hvmv_substation_dummy AS b - WHERE a.subst_id = ' || gd_id || ' - ), -- INPUT 1/2 - -- Build edges and circumscribe points to generate centroids - Edges AS ( - SELECT id, - UNNEST(ARRAY[''e1'',''e2'',''e3'']) EdgeName, - UNNEST(ARRAY[ - ST_MakeLine(p1,p2) , - ST_MakeLine(p2,p3) , - ST_MakeLine(p3,p1)]) Edge, - ST_Centroid(ST_ConvexHull(ST_Union(-- Done this way due to issues I had with LineToCurve - ST_CurveToLine(REPLACE(ST_AsText(ST_LineMerge(ST_Union(ST_MakeLine(p1,p2),ST_MakeLine(p2,p3)))),''LINE'',''CIRCULAR''),15), - ST_CurveToLine(REPLACE(ST_AsText(ST_LineMerge(ST_Union(ST_MakeLine(p2,p3),ST_MakeLine(p3,p1)))),''LINE'',''CIRCULAR''),15) - ))) ct - FROM ( - -- Decompose to points - SELECT id, - ST_PointN(g,1) p1, - ST_PointN(g,2) p2, - ST_PointN(g,3) p3 - FROM ( - SELECT (gd).Path id, ST_ExteriorRing((gd).geom) g -- ID andmake triangle a linestring - FROM (SELECT (ST_Dump(ST_DelaunayTriangles(geom))) gd FROM Sample) a -- Get Delaunay Triangles - )b - ) c - ) - INSERT INTO model_draft.ego_grid_mvlv_substation_voronoi (geom, subst_id) -- INPUT 2/2 - SELECT ST_SetSRID((ST_Dump(ST_Polygonize(ST_Node(ST_LineMerge(ST_Union(v, (SELECT ST_ExteriorRing(ST_ConvexHull(ST_Union(ST_Union(ST_Buffer(edge,20),ct)))) FROM Edges))))))).geom, 3035) geom, ' || gd_id || ' AS subst_id - FROM ( - SELECT -- Create voronoi edges and reduce to a multilinestring - ST_LineMerge(ST_Union(ST_MakeLine( - x.ct, - CASE - WHEN y.id IS NULL THEN - CASE WHEN ST_Within( - x.ct, - (SELECT ST_ConvexHull(geom) FROM sample)) THEN -- Dont draw lines back towards the original set - -- Project line out twice the distance from convex hull - ST_MakePoint(ST_X(x.ct) + ((ST_X(ST_Centroid(x.edge)) - ST_X(x.ct)) * 200),ST_Y(x.ct) + ((ST_Y(ST_Centroid(x.edge)) - ST_Y(x.ct)) * 200)) - END - ELSE - y.ct - END - ))) v - FROM Edges x - LEFT OUTER JOIN -- Self Join based on edges - Edges y ON x.id <> y.id AND ST_Equals(x.edge,y.edge) - ) z'; -END LOOP; -END; -$$; - - --- loop over mv-griddistricts -DO -$$ -DECLARE gd integer; -BEGIN - FOR gd_id IN 1329..3608 - LOOP - EXECUTE - 'WITH - -- Sample set of points to work with - Sample AS (SELECT ST_SetSRID(ST_Union(ST_Collect(a.geom,b.geom)), 0) AS geom - FROM model_draft.ego_grid_mvlv_substation AS a, - model_draft.ego_grid_hvmv_substation_dummy AS b - WHERE a.subst_id = ' || gd_id || ' - ), -- INPUT 1/2 - -- Build edges and circumscribe points to generate centroids - Edges AS ( - SELECT id, - UNNEST(ARRAY[''e1'',''e2'',''e3'']) EdgeName, - UNNEST(ARRAY[ - ST_MakeLine(p1,p2) , - ST_MakeLine(p2,p3) , - ST_MakeLine(p3,p1)]) Edge, - ST_Centroid(ST_ConvexHull(ST_Union(-- Done this way due to issues I had with LineToCurve - ST_CurveToLine(REPLACE(ST_AsText(ST_LineMerge(ST_Union(ST_MakeLine(p1,p2),ST_MakeLine(p2,p3)))),''LINE'',''CIRCULAR''),15), - ST_CurveToLine(REPLACE(ST_AsText(ST_LineMerge(ST_Union(ST_MakeLine(p2,p3),ST_MakeLine(p3,p1)))),''LINE'',''CIRCULAR''),15) - ))) ct - FROM ( - -- Decompose to points - SELECT id, - ST_PointN(g,1) p1, - ST_PointN(g,2) p2, - ST_PointN(g,3) p3 - FROM ( - SELECT (gd).Path id, ST_ExteriorRing((gd).geom) g -- ID andmake triangle a linestring - FROM (SELECT (ST_Dump(ST_DelaunayTriangles(geom))) gd FROM Sample) a -- Get Delaunay Triangles - )b - ) c - ) - INSERT INTO model_draft.ego_grid_mvlv_substation_voronoi (geom, subst_id) -- INPUT 2/2 - SELECT ST_SetSRID((ST_Dump(ST_Polygonize(ST_Node(ST_LineMerge(ST_Union(v, (SELECT ST_ExteriorRing(ST_ConvexHull(ST_Union(ST_Union(ST_Buffer(edge,20),ct)))) FROM Edges))))))).geom, 3035) geom, ' || gd_id || ' AS subst_id - FROM ( - SELECT -- Create voronoi edges and reduce to a multilinestring - ST_LineMerge(ST_Union(ST_MakeLine( - x.ct, - CASE - WHEN y.id IS NULL THEN - CASE WHEN ST_Within( - x.ct, - (SELECT ST_ConvexHull(geom) FROM sample)) THEN -- Dont draw lines back towards the original set - -- Project line out twice the distance from convex hull - ST_MakePoint(ST_X(x.ct) + ((ST_X(ST_Centroid(x.edge)) - ST_X(x.ct)) * 200),ST_Y(x.ct) + ((ST_Y(ST_Centroid(x.edge)) - ST_Y(x.ct)) * 200)) - END - ELSE - y.ct - END - ))) v - FROM Edges x - LEFT OUTER JOIN -- Self Join based on edges - Edges y ON x.id <> y.id AND ST_Equals(x.edge,y.edge) - ) z'; -END LOOP; -END; -$$; - --- metadata -COMMENT ON TABLE model_draft.ego_grid_mvlv_substation_voronoi IS '{ - "title": "eGoDP - MVLV Substation Voronoi", - "description": "Voronoi for MVLV substation", - "language": [ "eng", "ger" ], - "reference_date": "2017", - "sources": [ - {"name": "open_eGo", "description": "eGo dataprocessing", - "url": "https://github.com/openego/data_processing", "license": "ODbL-1.0"} ], - "spatial": [ - {"extend": "Germany", - "resolution": " "} ], - "license": [ - {"id": "tba", - "name": "tba", - "version": "tba", - "url": "tba", - "instruction": "tba"} ], - "contributors": [ - {"name": "jong42", "email": " ", - "date": "20.10.2016", "comment": "create table"}, - {"name": "jong42", "email": " ", - "date": "27.10.2016", "comment": "change table names"}, - {"name": "Ludee", "email": " ", - "date": "21.03.2017", "comment": "validate and restructure tables"}, - {"name": "Ludee", "email": " ", - "date": "22.03.2017", "comment": "update metadata (1.1) and add license"} ], - "resources": [{ - "schema": { - "fields": [ - {"name": "id", "description": "unique identifier", "unit": "" }, - {"name": "subst_id", "description": "HVMV substation ID", "unit": "" }, - {"name": "geom", "description": "geometry", "unit": "" } ]}, - "meta_version": "1.1" }] }'; - --- select description -SELECT obj_description('model_draft.ego_grid_mvlv_substation_voronoi' ::regclass) ::json; - --- ego scenario log (version,io,schema_name,table_name,script_name,comment) -SELECT ego_scenario_log('v0.3.0','output','model_draft','ego_grid_mvlv_substation_voronoi','ego_dp_lv_griddistrict.sql',' '); - - */ - - -/* --- remove dummy Voronoi -ALTER TABLE model_draft.ego_grid_mvlv_substation_voronoi - ADD COLUMN cnt integer; - --- count mvlv_substation -UPDATE model_draft.ego_grid_mvlv_substation_voronoi AS t1 - SET cnt = t2.cnt - FROM (SELECT a.id AS id, - COUNT(b.geom)::integer AS cnt - FROM model_draft.ego_grid_mvlv_substation_voronoi AS a, - model_draft.ego_grid_mvlv_substation AS b - WHERE a.geom && b.geom AND - ST_CONTAINS(a.geom,b.geom) AND - a.subst_id = b.subst_id - GROUP BY a.id - )AS t2 - WHERE t1.id = t2.id; - - - - - -DROP TABLE IF EXISTS model_draft.ego_grid_mvlv_substation_voronoi_clean CASCADE; -CREATE TABLE model_draft.ego_grid_mvlv_substation_voronoi_clean ( - id serial NOT NULL, - subst_id integer, - geom geometry(Polygon,3035), - CONSTRAINT ego_grid_mvlv_substation_voronoi_pkey PRIMARY KEY (id) ); - --- index GIST (geom) -CREATE INDEX ego_grid_mvlv_substation_voronoi_clean_geom_idx - ON model_draft.ego_grid_mvlv_substation_voronoi_clean USING GIST (geom); - --- grant (oeuser) -ALTER TABLE model_draft.ego_grid_mvlv_substation_voronoi_clean OWNER TO oeuser; - -INSERT INTO model_draft.ego_grid_mvlv_substation_voronoi_clean - SELECT * - FROM model_draft.ego_grid_mvlv_substation_voronoi - WHERE cnt = 1; - - - */ From fea8666acbee07bcf68298753332d8a111966fc9 Mon Sep 17 00:00:00 2001 From: Ludee Date: Thu, 8 Feb 2018 15:54:26 +0100 Subject: [PATCH 064/104] rename scripts to fix old messup --- dataprocessing/eGo_data_processing.py | 4 +- .../sql_snippets/ego_dp_lv_griddistrict.sql | 561 ++++++++++-------- .../sql_snippets/ego_dp_lv_loadcut.sql | 309 ++++++++++ .../sql_snippets/ego_dp_lv_peakload.sql | 352 ----------- 4 files changed, 611 insertions(+), 615 deletions(-) create mode 100644 dataprocessing/sql_snippets/ego_dp_lv_loadcut.sql delete mode 100644 dataprocessing/sql_snippets/ego_dp_lv_peakload.sql diff --git a/dataprocessing/eGo_data_processing.py b/dataprocessing/eGo_data_processing.py index 7f6af190..36623867 100644 --- a/dataprocessing/eGo_data_processing.py +++ b/dataprocessing/eGo_data_processing.py @@ -70,9 +70,9 @@ def data_processing(): ## LOWVOLTAGE 'ego_dp_lv_substation.sql', # MVLV Substation (ONT) 'ego_dp_lv_substation_voronoi.sql', # MVLV Substation Voronoi + 'ego_dp_lv_loadcut.sql' # LV Loadcut 'ego_dp_lv_griddistrict.sql', # LV Griddistrict - 'ego_dp_lv_peakload.sql', # LV OSM areas - 'ego_dp_lv_consumption_peakload.sql', # LV Consumption and Peakload + 'ego_dp_lv_consumption_peakload.sql', # LV Consumption and Peakload ## REA 'rea/ego_dp_lattice_500m.sql', # lattice (point grid) 500m diff --git a/dataprocessing/sql_snippets/ego_dp_lv_griddistrict.sql b/dataprocessing/sql_snippets/ego_dp_lv_griddistrict.sql index 2f810895..2f45cdcc 100644 --- a/dataprocessing/sql_snippets/ego_dp_lv_griddistrict.sql +++ b/dataprocessing/sql_snippets/ego_dp_lv_griddistrict.sql @@ -1,309 +1,348 @@ /* -LV Griddistrict -Cut Loadarea with MVLV Substation Voronoi. -Select parts with one LV Substation. -Select parts with no LV Substation. -Select parts with more than one substation. -Combine parts with Next Neighbor. -Collect and union all parts. +In progess __copyright__ = "Reiner Lemoine Institut" __license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" __url__ = "https://github.com/openego/data_processing/blob/master/LICENSE" -__author__ = "jong42, Ludee" +__author__ = "Ludee, jong42" */ --- ego scenario log (version,io,schema_name,table_name,script_name,comment) -SELECT ego_scenario_log('v0.3.0','input','model_draft','ego_demand_loadarea','ego_dp_lv_griddistrict.sql',' '); -SELECT ego_scenario_log('v0.3.0','input','model_draft','ego_grid_mvlv_substation_voronoi','ego_dp_lv_griddistrict.sql',' '); - --- Cut Loadarea with MVLV Substation Voronoi -DROP TABLE IF EXISTS model_draft.ego_grid_lv_griddistrict_cut CASCADE; -CREATE TABLE model_draft.ego_grid_lv_griddistrict_cut ( - id serial NOT NULL, - la_id integer, - subst_id integer, - subst_cnt integer, - geom geometry(Polygon,3035), - CONSTRAINT ego_grid_lv_griddistrict_cut_pkey PRIMARY KEY (id) ); +-- collect and union +DROP TABLE IF EXISTS model_draft.ego_grid_lv_griddistrict CASCADE; +CREATE TABLE model_draft.ego_grid_lv_griddistrict ( + id integer, + mvlv_subst_id integer, + subst_id integer, + la_id integer, + nn boolean, + subst_cnt integer, + zensus_sum integer, + zensus_count integer, + zensus_density double precision, + population_density double precision, + area_ha double precision, + sector_area_residential double precision, + sector_area_retail double precision, + sector_area_industrial double precision, + sector_area_agricultural double precision, + sector_area_sum double precision, + sector_share_residential double precision, + sector_share_retail double precision, + sector_share_industrial double precision, + sector_share_agricultural double precision, + sector_share_sum double precision, + sector_count_residential integer, + sector_count_retail integer, + sector_count_industrial integer, + sector_count_agricultural integer, + sector_count_sum integer, + sector_consumption_residential double precision, + sector_consumption_retail double precision, + sector_consumption_industrial double precision, + sector_consumption_agricultural double precision, + sector_consumption_sum double precision, + sector_peakload_residential double precision, + sector_peakload_retail double precision, + sector_peakload_industrial double precision, + sector_peakload_agricultural double precision, + geom geometry(MultiPolygon,3035), + CONSTRAINT ego_grid_lv_griddistrict_pkey PRIMARY KEY (id) ); -- grant (oeuser) -ALTER TABLE model_draft.ego_grid_lv_griddistrict_cut OWNER TO oeuser; +ALTER TABLE model_draft.ego_grid_lv_griddistrict OWNER TO oeuser; -- index GIST (geom) -CREATE INDEX ego_grid_lv_griddistrict_cut_geom_idx - ON model_draft.ego_grid_lv_griddistrict_cut USING GIST (geom); - -INSERT INTO model_draft.ego_grid_lv_griddistrict_cut (geom,la_id,subst_id) - SELECT (ST_DUMP(ST_SAFE_INTERSECTION(a.geom,b.geom))).geom ::geometry(Polygon,3035) AS geom, - a.id AS la_id, - a.subst_id AS subst_id - FROM model_draft.ego_demand_loadarea AS a, - model_draft.ego_grid_mvlv_substation_voronoi AS b - WHERE a.geom && b.geom - AND a.subst_id = b.subst_id - -- make sure the boundaries really intersect and not just touch each other - AND (ST_GEOMETRYTYPE(ST_SAFE_INTERSECTION(a.geom,b.geom)) = 'ST_Polygon' - OR ST_GEOMETRYTYPE(ST_SAFE_INTERSECTION(a.geom,b.geom)) = 'ST_MultiPolygon' ) - AND ST_isvalid(b.geom) AND ST_isvalid(a.geom); - --AND a.subst_id = '1886'; -- test one mvgd - --- mvlv substation count -UPDATE model_draft.ego_grid_lv_griddistrict_cut AS t1 - SET subst_cnt = t2.subst_cnt - FROM ( - SELECT a.id AS id, - COUNT(b.geom)::integer AS subst_cnt - FROM model_draft.ego_grid_lv_griddistrict_cut AS a, - model_draft.ego_grid_mvlv_substation AS b - WHERE a.geom && b.geom AND - ST_CONTAINS(a.geom,b.geom) - GROUP BY a.id - )AS t2 - WHERE t1.id = t2.id; - --- ego scenario log (version,io,schema_name,table_name,script_name,comment) -SELECT ego_scenario_log('v0.3.0','temp','model_draft','ego_grid_lv_griddistrict_cut','ego_dp_lv_griddistrict.sql',' '); - - -/* -- Validate (geom) -DROP VIEW IF EXISTS model_draft.ego_grid_lv_griddistrict_cut_error_geom_view CASCADE; -CREATE VIEW model_draft.ego_grid_lv_griddistrict_cut_error_geom_view AS - SELECT test.id, - test.error, - reason(ST_IsValidDetail(test.geom)) AS error_reason, - ST_SetSRID(location(ST_IsValidDetail(test.geom)),3035) ::geometry(Point,3035) AS error_location - FROM ( - SELECT source.id AS id, -- PK - ST_IsValid(source.geom) AS error, - source.geom AS geom - FROM model_draft.ego_grid_lv_griddistrict_cut AS source -- Table - ) AS test - WHERE test.error = FALSE; - --- grant (oeuser) -GRANT ALL ON TABLE model_draft.ego_grid_lv_griddistrict_cut_error_geom_view TO oeuser WITH GRANT OPTION; -ALTER TABLE model_draft.ego_grid_lv_griddistrict_cut_error_geom_view OWNER TO oeuser; - --- Drop empty view -SELECT f_drop_view('{ego_grid_lv_griddistrict_cut_error_geom_view}', 'model_draft'); - */ +CREATE INDEX ego_grid_lv_griddistrict_gidx + ON model_draft.ego_grid_lv_griddistrict USING GIST (geom); +-- insert +INSERT INTO model_draft.ego_grid_lv_griddistrict (id,mvlv_subst_id,subst_id,la_id,nn,geom) + SELECT * + FROM model_draft.ego_grid_lv_griddistrict_cut_nn_collect + ORDER BY mvlv_subst_id; --- Select parts with one LV Substation -DROP TABLE IF EXISTS model_draft.ego_grid_lv_griddistrict_cut_1subst CASCADE; -CREATE TABLE model_draft.ego_grid_lv_griddistrict_cut_1subst ( - id integer, - la_id integer, - subst_id integer, - subst_cnt integer, - geom geometry(Polygon,3035), - CONSTRAINT ego_grid_lv_griddistrict_cut_1subst_pkey PRIMARY KEY (id) ); --- grant (oeuser) -ALTER TABLE model_draft.ego_grid_lv_griddistrict_cut_1subst OWNER TO oeuser; +-- ego scenario log (version,io,schema_name,table_name,script_name,comment) +SELECT ego_scenario_log('v0.3.0','input','model_draft','ego_grid_mvlv_substation','ego_dp_lv_peakload.sql',' '); --- insert dump -INSERT INTO model_draft.ego_grid_lv_griddistrict_cut_1subst - SELECT * - FROM model_draft.ego_grid_lv_griddistrict_cut - WHERE subst_cnt = 1; +-- mvlv substation count +UPDATE model_draft.ego_grid_lv_griddistrict AS t1 + SET subst_cnt = t2.subst_cnt + FROM (SELECT a.id AS id, + COUNT(b.geom)::integer AS subst_cnt + FROM model_draft.ego_grid_lv_griddistrict AS a, + model_draft.ego_grid_mvlv_substation AS b + WHERE a.geom && b.geom AND + ST_CONTAINS(a.geom,b.geom) + GROUP BY a.id + )AS t2 + WHERE t1.id = t2.id; + +-- update area (area_ha) +UPDATE model_draft.ego_grid_lv_griddistrict AS t1 + SET area_ha = t2.area + FROM (SELECT id, + ST_AREA(ST_TRANSFORM(geom,3035))/10000 AS area + FROM model_draft.ego_grid_lv_griddistrict + ) AS t2 + WHERE t1.id = t2.id; + + +-- ego scenario log (version,io,schema_name,table_name,script_name,comment) +SELECT ego_scenario_log('v0.3.0','input','society','destatis_zensus_population_per_ha_mview','ego_dp_lv_peakload.sql',' '); + +-- zensus 2011 population +UPDATE model_draft.ego_grid_lv_griddistrict AS t1 + SET zensus_sum = t2.zensus_sum, + zensus_count = t2.zensus_count, + zensus_density = t2.zensus_density + FROM (SELECT a.id AS id, + SUM(b.population)::integer AS zensus_sum, + COUNT(b.geom_point)::integer AS zensus_count, + (SUM(b.population)/COUNT(b.geom_point))::numeric AS zensus_density + FROM model_draft.ego_grid_lv_griddistrict AS a, + society.destatis_zensus_population_per_ha_mview AS b + WHERE a.geom && b.geom_point AND + ST_CONTAINS(a.geom,b.geom_point) + GROUP BY a.id + )AS t2 + WHERE t1.id = t2.id; + + + +-- 1. residential sector +DROP TABLE IF EXISTS model_draft.ego_osm_sector_per_lvgd_1_residential CASCADE; +CREATE TABLE model_draft.ego_osm_sector_per_lvgd_1_residential ( + id SERIAL NOT NULL, + geom geometry(Polygon,3035), + CONSTRAINT ego_osm_sector_per_lvgd_1_residential_pkey PRIMARY KEY (id)); -- index GIST (geom) -CREATE INDEX ego_grid_lv_griddistrict_cut_1subst_geom_idx - ON model_draft.ego_grid_lv_griddistrict_cut_1subst USING GIST (geom); +CREATE INDEX ego_osm_sector_per_lvgd_1_residential_gidx + ON model_draft.ego_osm_sector_per_lvgd_1_residential USING GIST (geom); --- metadata -COMMENT ON TABLE model_draft.ego_grid_lv_griddistrict_cut_1subst IS '{ - "comment": "eGoDP - Temporary table", - "version": "v0.3.0" }' ; +-- grant (oeuser) +ALTER TABLE model_draft.ego_osm_sector_per_lvgd_1_residential OWNER TO oeuser; -- ego scenario log (version,io,schema_name,table_name,script_name,comment) -SELECT ego_scenario_log('v0.3.0','temp','model_draft','ego_grid_lv_griddistrict_cut_1subst','ego_dp_lv_griddistrict.sql',' '); +SELECT ego_scenario_log('v0.3.0','input','model_draft','ego_osm_sector_per_griddistrict_1_residential','ego_dp_lv_peakload.sql',' '); + +-- intersect sector with mv-griddistrict +INSERT INTO model_draft.ego_osm_sector_per_lvgd_1_residential (geom) + SELECT c.geom ::geometry(Polygon,3035) + FROM (SELECT (ST_DUMP(ST_SAFE_INTERSECTION(a.geom,b.geom))).geom AS geom + FROM model_draft.ego_osm_sector_per_griddistrict_1_residential AS a, + model_draft.ego_grid_lv_griddistrict AS b + WHERE a.geom && b.geom + ) AS c + WHERE ST_GeometryType(c.geom) = 'ST_Polygon'; + +-- sector stats +UPDATE model_draft.ego_grid_lv_griddistrict AS t1 + SET sector_area_residential = t2.sector_area, + sector_count_residential = t2.sector_count, + sector_share_residential = t2.sector_area / t2.area_ha + FROM (SELECT b.id AS id, + SUM(ST_AREA(a.geom)/10000) AS sector_area, + COUNT(a.geom) AS sector_count, + b.area_ha AS area_ha + FROM model_draft.ego_osm_sector_per_lvgd_1_residential AS a, + model_draft.ego_grid_lv_griddistrict AS b + WHERE b.geom && a.geom AND + ST_INTERSECTS(b.geom,ST_BUFFER(a.geom,-1)) + GROUP BY b.id + ) AS t2 + WHERE t1.id = t2.id; +-- ego scenario log (version,io,schema_name,table_name,script_name,comment) +SELECT ego_scenario_log('v0.3.0','output','model_draft','ego_osm_sector_per_lvgd_1_residential','ego_dp_lv_peakload.sql',' '); --- Select parts with no LV Substation -DROP TABLE IF EXISTS model_draft.ego_grid_lv_griddistrict_cut_0subst CASCADE; -CREATE TABLE model_draft.ego_grid_lv_griddistrict_cut_0subst ( - id integer, - la_id integer, - subst_id integer, - subst_cnt integer, - geom geometry(Polygon,3035), - CONSTRAINT ego_grid_lv_griddistrict_cut_0subst_pkey PRIMARY KEY (id) ); --- grant (oeuser) -ALTER TABLE model_draft.ego_grid_lv_griddistrict_cut_0subst OWNER TO oeuser; --- insert dump -INSERT INTO model_draft.ego_grid_lv_griddistrict_cut_0subst - SELECT * - FROM model_draft.ego_grid_lv_griddistrict_cut - WHERE subst_cnt IS NULL; +-- 2. retail sector +DROP TABLE IF EXISTS model_draft.ego_osm_sector_per_lvgd_2_retail CASCADE; +CREATE TABLE model_draft.ego_osm_sector_per_lvgd_2_retail ( + id SERIAL NOT NULL, + geom geometry(Polygon,3035), + CONSTRAINT ego_osm_sector_per_lvgd_2_retail_pkey PRIMARY KEY (id)); -- index GIST (geom) -CREATE INDEX ego_grid_lv_griddistrict_cut_0subst_geom_idx - ON model_draft.ego_grid_lv_griddistrict_cut_0subst USING GIST (geom); - --- metadata -COMMENT ON TABLE model_draft.ego_grid_lv_griddistrict_cut_0subst IS '{ - "comment": "eGoDP - Temporary table", - "version": "v0.3.0" }' ; - --- ego scenario log (version,io,schema_name,table_name,script_name,comment) -SELECT ego_scenario_log('v0.3.0','temp','model_draft','ego_grid_lv_griddistrict_cut_0subst','ego_dp_lv_griddistrict.sql',' '); - - --- Select parts with more than one substation -DROP TABLE IF EXISTS model_draft.ego_grid_lv_griddistrict_cut_xsubst CASCADE; -CREATE TABLE model_draft.ego_grid_lv_griddistrict_cut_xsubst ( - id integer, - la_id integer, - subst_id integer, - subst_cnt integer, - geom geometry(Polygon,3035), - CONSTRAINT ego_grid_lv_griddistrict_cut_xsubst_pkey PRIMARY KEY (id) ); +CREATE INDEX ego_osm_sector_per_lvgd_2_retail_gidx + ON model_draft.ego_osm_sector_per_lvgd_2_retail USING GIST (geom); -- grant (oeuser) -ALTER TABLE model_draft.ego_grid_lv_griddistrict_cut_xsubst OWNER TO oeuser; +ALTER TABLE model_draft.ego_osm_sector_per_lvgd_2_retail OWNER TO oeuser; --- insert dump -INSERT INTO model_draft.ego_grid_lv_griddistrict_cut_xsubst - SELECT * - FROM model_draft.ego_grid_lv_griddistrict_cut - WHERE subst_cnt > 1; - --- index GIST (geom) -CREATE INDEX ego_grid_lv_griddistrict_cut_xsubst_geom_idx - ON model_draft.ego_grid_lv_griddistrict_cut_xsubst USING GIST (geom); - --- metadata -COMMENT ON TABLE model_draft.ego_grid_lv_griddistrict_cut_xsubst IS '{ - "comment": "eGoDP - Temporary table", - "version": "v0.3.0" }' ; +-- ego scenario log (version,io,schema_name,table_name,script_name,comment) +SELECT ego_scenario_log('v0.3.0','input','model_draft','ego_osm_sector_per_griddistrict_2_retail','ego_dp_lv_peakload.sql',' '); + +-- intersect sector with mv-griddistrict +INSERT INTO model_draft.ego_osm_sector_per_lvgd_2_retail (geom) + SELECT c.geom ::geometry(Polygon,3035) + FROM (SELECT (ST_DUMP(ST_SAFE_INTERSECTION(a.geom,b.geom))).geom AS geom + FROM model_draft.ego_osm_sector_per_griddistrict_2_retail AS a, + model_draft.ego_grid_lv_griddistrict AS b + WHERE a.geom && b.geom + ) AS c + WHERE ST_GeometryType(c.geom) = 'ST_Polygon'; + +-- sector stats +UPDATE model_draft.ego_grid_lv_griddistrict AS t1 + SET sector_area_retail = t2.sector_area, + sector_count_retail = t2.sector_count, + sector_share_retail = t2.sector_area / t2.area_ha + FROM (SELECT b.id AS id, + SUM(ST_AREA(a.geom)/10000) AS sector_area, + COUNT(a.geom) AS sector_count, + b.area_ha AS area_ha + FROM model_draft.ego_osm_sector_per_lvgd_2_retail AS a, + model_draft.ego_grid_lv_griddistrict AS b + WHERE b.geom && a.geom AND + ST_INTERSECTS(b.geom,ST_BUFFER(a.geom,-1)) + GROUP BY b.id + ) AS t2 + WHERE t1.id = t2.id; -- ego scenario log (version,io,schema_name,table_name,script_name,comment) -SELECT ego_scenario_log('v0.3.0','temp','model_draft','ego_grid_lv_griddistrict_cut_xsubst','ego_dp_lv_griddistrict.sql',' '); - - --- Combine parts with Next Neighbor -DROP TABLE IF EXISTS model_draft.ego_grid_lv_griddistrict_cut_nn CASCADE; -CREATE TABLE model_draft.ego_grid_lv_griddistrict_cut_nn ( - id serial, - a_id integer, - b_id integer, - subst_id integer, - la_id integer, - geom geometry(Polygon,3035), - geom_line geometry(LineString,3035), - distance double precision, - CONSTRAINT ego_grid_lv_griddistrict_cut_nn_pkey PRIMARY KEY (id) ); - -INSERT INTO model_draft.ego_grid_lv_griddistrict_cut_nn (a_id,b_id,subst_id,la_id,geom,geom_line,distance) - SELECT DISTINCT ON (a.id) - a.id, - b.id, - a.subst_id, - a.la_id, - a.geom, - ST_ShortestLine( - ST_CENTROID(a.geom) ::geometry(Point,3035), - ST_ExteriorRing(b.geom) ::geometry(LineString,3035) - ) ::geometry(LineString,3035) AS geom_line, - ST_Distance(ST_CENTROID(a.geom),ST_ExteriorRing(b.geom)) - FROM model_draft.ego_grid_lv_griddistrict_cut_0subst AS a, -- fragments - model_draft.ego_grid_lv_griddistrict_cut_1subst AS b -- target - WHERE ST_DWithin(ST_CENTROID(a.geom),ST_ExteriorRing(b.geom), 1000) -- In a 1 km radius - AND a.subst_id = b.subst_id - ORDER BY a.id, ST_Distance(ST_CENTROID(a.geom),ST_ExteriorRing(b.geom)); +SELECT ego_scenario_log('v0.3.0','output','model_draft','ego_osm_sector_per_lvgd_2_retail','ego_dp_lv_peakload.sql',' '); --- index GIST (geom) -CREATE INDEX ego_grid_lv_griddistrict_cut_nn_ageom_idx - ON model_draft.ego_grid_lv_griddistrict_cut_nn USING GIST (geom); + +-- 3. industrial sector +DROP TABLE IF EXISTS model_draft.ego_osm_sector_per_lvgd_3_industrial CASCADE; +CREATE TABLE model_draft.ego_osm_sector_per_lvgd_3_industrial ( + id SERIAL NOT NULL, + geom geometry(Polygon,3035), + CONSTRAINT ego_osm_sector_per_lvgd_3_industrial_pkey PRIMARY KEY (id)); -- index GIST (geom) -CREATE INDEX ego_grid_lv_griddistrict_cut_nn_geom_line_idx - ON model_draft.ego_grid_lv_griddistrict_cut_nn USING GIST (geom_line); +CREATE INDEX ego_osm_sector_per_lvgd_3_industrial_gidx + ON model_draft.ego_osm_sector_per_lvgd_3_industrial USING GIST (geom); -- grant (oeuser) -ALTER TABLE model_draft.ego_grid_lv_griddistrict_cut_nn OWNER TO oeuser; +ALTER TABLE model_draft.ego_osm_sector_per_lvgd_3_industrial OWNER TO oeuser; --- metadata -COMMENT ON TABLE model_draft.ego_grid_lv_griddistrict_cut_nn IS '{ - "comment": "eGoDP - Temporary table", - "version": "v0.3.0" }' ; +-- ego scenario log (version,io,schema_name,table_name,script_name,comment) +SELECT ego_scenario_log('v0.3.0','input','model_draft','ego_osm_sector_per_griddistrict_3_industrial','ego_dp_lv_peakload.sql',' '); + +-- intersect sector with mv-griddistrict +INSERT INTO model_draft.ego_osm_sector_per_lvgd_3_industrial (geom) + SELECT c.geom ::geometry(Polygon,3035) + FROM (SELECT (ST_DUMP(ST_SAFE_INTERSECTION(a.geom,b.geom))).geom AS geom + FROM model_draft.ego_osm_sector_per_griddistrict_3_industrial AS a, + model_draft.ego_grid_lv_griddistrict AS b + WHERE a.geom && b.geom + ) AS c + WHERE ST_GeometryType(c.geom) = 'ST_Polygon'; + +-- sector stats +UPDATE model_draft.ego_grid_lv_griddistrict AS t1 + SET sector_area_industrial = t2.sector_area, + sector_count_industrial = t2.sector_count, + sector_share_industrial = t2.sector_area / t2.area_ha + FROM (SELECT b.id AS id, + SUM(ST_AREA(a.geom)/10000) AS sector_area, + COUNT(a.geom) AS sector_count, + b.area_ha AS area_ha + FROM model_draft.ego_osm_sector_per_lvgd_3_industrial AS a, + model_draft.ego_grid_lv_griddistrict AS b + WHERE b.geom && a.geom AND + ST_INTERSECTS(b.geom,ST_BUFFER(a.geom,-1)) + GROUP BY b.id + ) AS t2 + WHERE t1.id = t2.id; -- ego scenario log (version,io,schema_name,table_name,script_name,comment) -SELECT ego_scenario_log('v0.3.0','temp','model_draft','ego_grid_lv_griddistrict_cut_nn','ego_dp_lv_griddistrict.sql',' '); +SELECT ego_scenario_log('v0.3.0','output','model_draft','ego_osm_sector_per_lvgd_3_industrial','ego_dp_lv_peakload.sql',' '); --- Collect and union all parts -DROP TABLE IF EXISTS model_draft.ego_grid_lv_griddistrict_cut_nn_collect CASCADE; -CREATE TABLE model_draft.ego_grid_lv_griddistrict_cut_nn_collect ( - id integer, - mvlv_subst_id integer, - subst_id integer, - la_id integer, - nn boolean, - geom geometry(MultiPolygon,3035), - CONSTRAINT ego_grid_lv_griddistrict_cut_nn_collect_pkey PRIMARY KEY (id) ); --- grant (oeuser) -ALTER TABLE model_draft.ego_grid_lv_griddistrict_cut_nn_collect OWNER TO oeuser; +-- 4. agricultural sector +DROP TABLE IF EXISTS model_draft.ego_osm_sector_per_lvgd_4_agricultural CASCADE; +CREATE TABLE model_draft.ego_osm_sector_per_lvgd_4_agricultural ( + id SERIAL NOT NULL, + geom geometry(Polygon,3035), + CONSTRAINT ego_osm_sector_per_lvgd_4_agricultural_pkey PRIMARY KEY (id)); -- index GIST (geom) -CREATE INDEX ego_grid_lv_griddistrict_cut_nn_collect_geom_idx - ON model_draft.ego_grid_lv_griddistrict_cut_nn_collect USING GIST (geom); +CREATE INDEX ego_osm_sector_per_lvgd_4_agricultural_gidx + ON model_draft.ego_osm_sector_per_lvgd_4_agricultural USING GIST (geom); --- insert -INSERT INTO model_draft.ego_grid_lv_griddistrict_cut_nn_collect (id,subst_id,la_id,nn,geom) - SELECT id, - subst_id, - la_id, - FALSE, - ST_MULTI(geom) - FROM model_draft.ego_grid_lv_griddistrict_cut_1subst - ORDER BY id; - --- insert union -WITH collect AS ( - SELECT a.id,a.geom - FROM ( - SELECT b_id AS id,geom - FROM model_draft.ego_grid_lv_griddistrict_cut_nn - UNION ALL - SELECT id,geom - FROM model_draft.ego_grid_lv_griddistrict_cut_1subst) AS a - ORDER BY id ) -UPDATE model_draft.ego_grid_lv_griddistrict_cut_nn_collect AS t1 - SET geom = t2.geom, - nn = TRUE - FROM ( - SELECT id, - ST_MULTI(ST_UNION(geom)) AS geom - FROM collect - GROUP BY id - ) AS t2 - WHERE t1.id = t2.id; - --- mvlv substation id -UPDATE model_draft.ego_grid_lv_griddistrict_cut_nn_collect AS t1 - SET mvlv_subst_id = t2.mvlv_subst_id - FROM ( - SELECT a.id AS id, - b.mvlv_subst_id AS mvlv_subst_id - FROM model_draft.ego_grid_lv_griddistrict_cut_nn_collect AS a, - model_draft.ego_grid_mvlv_substation AS b - WHERE a.geom && b.geom AND - ST_CONTAINS(a.geom,b.geom) - ) AS t2 - WHERE t1.id = t2.id; - --- metadata -COMMENT ON TABLE model_draft.ego_grid_lv_griddistrict_cut_nn_collect IS '{ - "comment": "eGoDP - Temporary table", - "version": "v0.3.0" }' ; +-- grant (oeuser) +ALTER TABLE model_draft.ego_osm_sector_per_lvgd_4_agricultural OWNER TO oeuser; -- ego scenario log (version,io,schema_name,table_name,script_name,comment) -SELECT ego_scenario_log('v0.3.0','temp','model_draft','ego_grid_lv_griddistrict_cut_nn_collect','ego_dp_lv_griddistrict.sql',' '); +SELECT ego_scenario_log('v0.3.0','input','model_draft','ego_osm_sector_per_griddistrict_4_agricultural','ego_dp_lv_peakload.sql',' '); + +-- intersect sector with mv-griddistrict +INSERT INTO model_draft.ego_osm_sector_per_lvgd_4_agricultural (geom) + SELECT c.geom ::geometry(Polygon,3035) + FROM (SELECT (ST_DUMP(ST_SAFE_INTERSECTION(a.geom,b.geom))).geom AS geom + FROM model_draft.ego_osm_sector_per_griddistrict_4_agricultural AS a, + model_draft.ego_grid_lv_griddistrict AS b + WHERE a.geom && b.geom + ) AS c + WHERE ST_GeometryType(c.geom) = 'ST_Polygon'; + +-- sector stats +UPDATE model_draft.ego_grid_lv_griddistrict AS t1 + SET sector_area_agricultural = t2.sector_area, + sector_count_agricultural = t2.sector_count, + sector_share_agricultural = t2.sector_area / t2.area_ha + FROM (SELECT b.id AS id, + SUM(ST_AREA(a.geom)/10000) AS sector_area, + COUNT(a.geom) AS sector_count, + b.area_ha AS area_ha + FROM model_draft.ego_osm_sector_per_lvgd_4_agricultural AS a, + model_draft.ego_grid_lv_griddistrict AS b + WHERE b.geom && a.geom AND + ST_INTERSECTS(b.geom,ST_BUFFER(a.geom,-1)) + GROUP BY b.id + ) AS t2 + WHERE t1.id = t2.id; + +-- ego scenario log (version,io,schema_name,table_name,script_name,comment) +SELECT ego_scenario_log('v0.3.0','output','model_draft','ego_osm_sector_per_lvgd_4_agricultural','ego_dp_lv_peakload.sql',' '); + + +-- sector stats +UPDATE model_draft.ego_grid_lv_griddistrict AS t1 + SET sector_area_sum = t2.sector_area_sum, + sector_share_sum = t2.sector_share_sum, + sector_count_sum = t2.sector_count_sum + FROM ( + SELECT id, + coalesce(sector_area_residential,0) + + coalesce(sector_area_retail,0) + + coalesce(sector_area_industrial,0) + + coalesce(sector_area_agricultural,0) AS sector_area_sum, + coalesce(sector_share_residential,0) + + coalesce(sector_share_retail,0) + + coalesce(sector_share_industrial,0) + + coalesce(sector_share_agricultural,0) AS sector_share_sum, + coalesce(sector_count_residential,0) + + coalesce(sector_count_retail,0) + + coalesce(sector_count_industrial,0) + + coalesce(sector_count_agricultural,0) AS sector_count_sum + FROM model_draft.ego_grid_lv_griddistrict + ) AS t2 + WHERE t1.id = t2.id; + + +/* -- add count +ALTER TABLE grid.ego_dp_mvlv_substation + DROP COLUMN IF EXISTS subst_cnt, + ADD COLUMN subst_cnt integer; + +-- mvlv substation count +UPDATE grid.ego_dp_mvlv_substation AS t1 + SET subst_cnt = t2.subst_cnt + FROM (SELECT a.mvlv_subst_id AS id, + COUNT(b.geom)::integer AS subst_cnt + FROM grid.ego_dp_mvlv_substation AS a, + grid.ego_dp_lv_griddistrict AS b + WHERE a.geom && b.geom AND + ST_CONTAINS(b.geom,a.geom) + GROUP BY a.mvlv_subst_id + )AS t2 + WHERE t1.mvlv_subst_id = t2.id; */ diff --git a/dataprocessing/sql_snippets/ego_dp_lv_loadcut.sql b/dataprocessing/sql_snippets/ego_dp_lv_loadcut.sql new file mode 100644 index 00000000..f84309dd --- /dev/null +++ b/dataprocessing/sql_snippets/ego_dp_lv_loadcut.sql @@ -0,0 +1,309 @@ +/* +LV Loadcut +Cut Loadarea with MVLV Substation Voronoi. +Select parts with one LV Substation. +Select parts with no LV Substation. +Select parts with more than one substation. +Combine parts with Next Neighbor. +Collect and union all parts. + +__copyright__ = "Reiner Lemoine Institut" +__license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" +__url__ = "https://github.com/openego/data_processing/blob/master/LICENSE" +__author__ = "jong42, Ludee" +*/ + + +-- ego scenario log (version,io,schema_name,table_name,script_name,comment) +SELECT ego_scenario_log('v0.3.0','input','model_draft','ego_demand_loadarea','ego_dp_lv_griddistrict.sql',' '); +SELECT ego_scenario_log('v0.3.0','input','model_draft','ego_grid_mvlv_substation_voronoi','ego_dp_lv_griddistrict.sql',' '); + +-- Cut Loadarea with MVLV Substation Voronoi +DROP TABLE IF EXISTS model_draft.ego_grid_lv_griddistrict_cut CASCADE; +CREATE TABLE model_draft.ego_grid_lv_griddistrict_cut ( + id serial NOT NULL, + la_id integer, + subst_id integer, + subst_cnt integer, + geom geometry(Polygon,3035), + CONSTRAINT ego_grid_lv_griddistrict_cut_pkey PRIMARY KEY (id) ); + +-- grant (oeuser) +ALTER TABLE model_draft.ego_grid_lv_griddistrict_cut OWNER TO oeuser; + +-- index GIST (geom) +CREATE INDEX ego_grid_lv_griddistrict_cut_geom_idx + ON model_draft.ego_grid_lv_griddistrict_cut USING GIST (geom); + +INSERT INTO model_draft.ego_grid_lv_griddistrict_cut (geom,la_id,subst_id) + SELECT (ST_DUMP(ST_SAFE_INTERSECTION(a.geom,b.geom))).geom ::geometry(Polygon,3035) AS geom, + a.id AS la_id, + a.subst_id AS subst_id + FROM model_draft.ego_demand_loadarea AS a, + model_draft.ego_grid_mvlv_substation_voronoi AS b + WHERE a.geom && b.geom + AND a.subst_id = b.subst_id + -- make sure the boundaries really intersect and not just touch each other + AND (ST_GEOMETRYTYPE(ST_SAFE_INTERSECTION(a.geom,b.geom)) = 'ST_Polygon' + OR ST_GEOMETRYTYPE(ST_SAFE_INTERSECTION(a.geom,b.geom)) = 'ST_MultiPolygon' ) + AND ST_isvalid(b.geom) AND ST_isvalid(a.geom); + --AND a.subst_id = '1886'; -- test one mvgd + +-- mvlv substation count +UPDATE model_draft.ego_grid_lv_griddistrict_cut AS t1 + SET subst_cnt = t2.subst_cnt + FROM ( + SELECT a.id AS id, + COUNT(b.geom)::integer AS subst_cnt + FROM model_draft.ego_grid_lv_griddistrict_cut AS a, + model_draft.ego_grid_mvlv_substation AS b + WHERE a.geom && b.geom AND + ST_CONTAINS(a.geom,b.geom) + GROUP BY a.id + )AS t2 + WHERE t1.id = t2.id; + +-- ego scenario log (version,io,schema_name,table_name,script_name,comment) +SELECT ego_scenario_log('v0.3.0','temp','model_draft','ego_grid_lv_griddistrict_cut','ego_dp_lv_griddistrict.sql',' '); + + +/* -- Validate (geom) +DROP VIEW IF EXISTS model_draft.ego_grid_lv_griddistrict_cut_error_geom_view CASCADE; +CREATE VIEW model_draft.ego_grid_lv_griddistrict_cut_error_geom_view AS + SELECT test.id, + test.error, + reason(ST_IsValidDetail(test.geom)) AS error_reason, + ST_SetSRID(location(ST_IsValidDetail(test.geom)),3035) ::geometry(Point,3035) AS error_location + FROM ( + SELECT source.id AS id, -- PK + ST_IsValid(source.geom) AS error, + source.geom AS geom + FROM model_draft.ego_grid_lv_griddistrict_cut AS source -- Table + ) AS test + WHERE test.error = FALSE; + +-- grant (oeuser) +GRANT ALL ON TABLE model_draft.ego_grid_lv_griddistrict_cut_error_geom_view TO oeuser WITH GRANT OPTION; +ALTER TABLE model_draft.ego_grid_lv_griddistrict_cut_error_geom_view OWNER TO oeuser; + +-- Drop empty view +SELECT f_drop_view('{ego_grid_lv_griddistrict_cut_error_geom_view}', 'model_draft'); + */ + + +-- Select parts with one LV Substation +DROP TABLE IF EXISTS model_draft.ego_grid_lv_griddistrict_cut_1subst CASCADE; +CREATE TABLE model_draft.ego_grid_lv_griddistrict_cut_1subst ( + id integer, + la_id integer, + subst_id integer, + subst_cnt integer, + geom geometry(Polygon,3035), + CONSTRAINT ego_grid_lv_griddistrict_cut_1subst_pkey PRIMARY KEY (id) ); + +-- grant (oeuser) +ALTER TABLE model_draft.ego_grid_lv_griddistrict_cut_1subst OWNER TO oeuser; + +-- insert dump +INSERT INTO model_draft.ego_grid_lv_griddistrict_cut_1subst + SELECT * + FROM model_draft.ego_grid_lv_griddistrict_cut + WHERE subst_cnt = 1; + +-- index GIST (geom) +CREATE INDEX ego_grid_lv_griddistrict_cut_1subst_geom_idx + ON model_draft.ego_grid_lv_griddistrict_cut_1subst USING GIST (geom); + +-- metadata +COMMENT ON TABLE model_draft.ego_grid_lv_griddistrict_cut_1subst IS '{ + "comment": "eGoDP - Temporary table", + "version": "v0.3.0" }' ; + +-- ego scenario log (version,io,schema_name,table_name,script_name,comment) +SELECT ego_scenario_log('v0.3.0','temp','model_draft','ego_grid_lv_griddistrict_cut_1subst','ego_dp_lv_griddistrict.sql',' '); + + +-- Select parts with no LV Substation +DROP TABLE IF EXISTS model_draft.ego_grid_lv_griddistrict_cut_0subst CASCADE; +CREATE TABLE model_draft.ego_grid_lv_griddistrict_cut_0subst ( + id integer, + la_id integer, + subst_id integer, + subst_cnt integer, + geom geometry(Polygon,3035), + CONSTRAINT ego_grid_lv_griddistrict_cut_0subst_pkey PRIMARY KEY (id) ); + +-- grant (oeuser) +ALTER TABLE model_draft.ego_grid_lv_griddistrict_cut_0subst OWNER TO oeuser; + +-- insert dump +INSERT INTO model_draft.ego_grid_lv_griddistrict_cut_0subst + SELECT * + FROM model_draft.ego_grid_lv_griddistrict_cut + WHERE subst_cnt IS NULL; + +-- index GIST (geom) +CREATE INDEX ego_grid_lv_griddistrict_cut_0subst_geom_idx + ON model_draft.ego_grid_lv_griddistrict_cut_0subst USING GIST (geom); + +-- metadata +COMMENT ON TABLE model_draft.ego_grid_lv_griddistrict_cut_0subst IS '{ + "comment": "eGoDP - Temporary table", + "version": "v0.3.0" }' ; + +-- ego scenario log (version,io,schema_name,table_name,script_name,comment) +SELECT ego_scenario_log('v0.3.0','temp','model_draft','ego_grid_lv_griddistrict_cut_0subst','ego_dp_lv_griddistrict.sql',' '); + + +-- Select parts with more than one substation +DROP TABLE IF EXISTS model_draft.ego_grid_lv_griddistrict_cut_xsubst CASCADE; +CREATE TABLE model_draft.ego_grid_lv_griddistrict_cut_xsubst ( + id integer, + la_id integer, + subst_id integer, + subst_cnt integer, + geom geometry(Polygon,3035), + CONSTRAINT ego_grid_lv_griddistrict_cut_xsubst_pkey PRIMARY KEY (id) ); + +-- grant (oeuser) +ALTER TABLE model_draft.ego_grid_lv_griddistrict_cut_xsubst OWNER TO oeuser; + +-- insert dump +INSERT INTO model_draft.ego_grid_lv_griddistrict_cut_xsubst + SELECT * + FROM model_draft.ego_grid_lv_griddistrict_cut + WHERE subst_cnt > 1; + +-- index GIST (geom) +CREATE INDEX ego_grid_lv_griddistrict_cut_xsubst_geom_idx + ON model_draft.ego_grid_lv_griddistrict_cut_xsubst USING GIST (geom); + +-- metadata +COMMENT ON TABLE model_draft.ego_grid_lv_griddistrict_cut_xsubst IS '{ + "comment": "eGoDP - Temporary table", + "version": "v0.3.0" }' ; + +-- ego scenario log (version,io,schema_name,table_name,script_name,comment) +SELECT ego_scenario_log('v0.3.0','temp','model_draft','ego_grid_lv_griddistrict_cut_xsubst','ego_dp_lv_griddistrict.sql',' '); + + +-- Combine parts with Next Neighbor +DROP TABLE IF EXISTS model_draft.ego_grid_lv_griddistrict_cut_nn CASCADE; +CREATE TABLE model_draft.ego_grid_lv_griddistrict_cut_nn ( + id serial, + a_id integer, + b_id integer, + subst_id integer, + la_id integer, + geom geometry(Polygon,3035), + geom_line geometry(LineString,3035), + distance double precision, + CONSTRAINT ego_grid_lv_griddistrict_cut_nn_pkey PRIMARY KEY (id) ); + +INSERT INTO model_draft.ego_grid_lv_griddistrict_cut_nn (a_id,b_id,subst_id,la_id,geom,geom_line,distance) + SELECT DISTINCT ON (a.id) + a.id, + b.id, + a.subst_id, + a.la_id, + a.geom, + ST_ShortestLine( + ST_CENTROID(a.geom) ::geometry(Point,3035), + ST_ExteriorRing(b.geom) ::geometry(LineString,3035) + ) ::geometry(LineString,3035) AS geom_line, + ST_Distance(ST_CENTROID(a.geom),ST_ExteriorRing(b.geom)) + FROM model_draft.ego_grid_lv_griddistrict_cut_0subst AS a, -- fragments + model_draft.ego_grid_lv_griddistrict_cut_1subst AS b -- target + WHERE ST_DWithin(ST_CENTROID(a.geom),ST_ExteriorRing(b.geom), 1000) -- In a 1 km radius + AND a.subst_id = b.subst_id + ORDER BY a.id, ST_Distance(ST_CENTROID(a.geom),ST_ExteriorRing(b.geom)); + +-- index GIST (geom) +CREATE INDEX ego_grid_lv_griddistrict_cut_nn_ageom_idx + ON model_draft.ego_grid_lv_griddistrict_cut_nn USING GIST (geom); + +-- index GIST (geom) +CREATE INDEX ego_grid_lv_griddistrict_cut_nn_geom_line_idx + ON model_draft.ego_grid_lv_griddistrict_cut_nn USING GIST (geom_line); + +-- grant (oeuser) +ALTER TABLE model_draft.ego_grid_lv_griddistrict_cut_nn OWNER TO oeuser; + +-- metadata +COMMENT ON TABLE model_draft.ego_grid_lv_griddistrict_cut_nn IS '{ + "comment": "eGoDP - Temporary table", + "version": "v0.3.0" }' ; + +-- ego scenario log (version,io,schema_name,table_name,script_name,comment) +SELECT ego_scenario_log('v0.3.0','temp','model_draft','ego_grid_lv_griddistrict_cut_nn','ego_dp_lv_griddistrict.sql',' '); + + +-- Collect and union all parts +DROP TABLE IF EXISTS model_draft.ego_grid_lv_griddistrict_cut_nn_collect CASCADE; +CREATE TABLE model_draft.ego_grid_lv_griddistrict_cut_nn_collect ( + id integer, + mvlv_subst_id integer, + subst_id integer, + la_id integer, + nn boolean, + geom geometry(MultiPolygon,3035), + CONSTRAINT ego_grid_lv_griddistrict_cut_nn_collect_pkey PRIMARY KEY (id) ); + +-- grant (oeuser) +ALTER TABLE model_draft.ego_grid_lv_griddistrict_cut_nn_collect OWNER TO oeuser; + +-- index GIST (geom) +CREATE INDEX ego_grid_lv_griddistrict_cut_nn_collect_geom_idx + ON model_draft.ego_grid_lv_griddistrict_cut_nn_collect USING GIST (geom); + +-- insert +INSERT INTO model_draft.ego_grid_lv_griddistrict_cut_nn_collect (id,subst_id,la_id,nn,geom) + SELECT id, + subst_id, + la_id, + FALSE, + ST_MULTI(geom) + FROM model_draft.ego_grid_lv_griddistrict_cut_1subst + ORDER BY id; + +-- insert union +WITH collect AS ( + SELECT a.id,a.geom + FROM ( + SELECT b_id AS id,geom + FROM model_draft.ego_grid_lv_griddistrict_cut_nn + UNION ALL + SELECT id,geom + FROM model_draft.ego_grid_lv_griddistrict_cut_1subst) AS a + ORDER BY id ) +UPDATE model_draft.ego_grid_lv_griddistrict_cut_nn_collect AS t1 + SET geom = t2.geom, + nn = TRUE + FROM ( + SELECT id, + ST_MULTI(ST_UNION(geom)) AS geom + FROM collect + GROUP BY id + ) AS t2 + WHERE t1.id = t2.id; + +-- mvlv substation id +UPDATE model_draft.ego_grid_lv_griddistrict_cut_nn_collect AS t1 + SET mvlv_subst_id = t2.mvlv_subst_id + FROM ( + SELECT a.id AS id, + b.mvlv_subst_id AS mvlv_subst_id + FROM model_draft.ego_grid_lv_griddistrict_cut_nn_collect AS a, + model_draft.ego_grid_mvlv_substation AS b + WHERE a.geom && b.geom AND + ST_CONTAINS(a.geom,b.geom) + ) AS t2 + WHERE t1.id = t2.id; + +-- metadata +COMMENT ON TABLE model_draft.ego_grid_lv_griddistrict_cut_nn_collect IS '{ + "comment": "eGoDP - Temporary table", + "version": "v0.3.0" }' ; + +-- ego scenario log (version,io,schema_name,table_name,script_name,comment) +SELECT ego_scenario_log('v0.3.0','temp','model_draft','ego_grid_lv_griddistrict_cut_nn_collect','ego_dp_lv_griddistrict.sql',' '); diff --git a/dataprocessing/sql_snippets/ego_dp_lv_peakload.sql b/dataprocessing/sql_snippets/ego_dp_lv_peakload.sql deleted file mode 100644 index e0ff4852..00000000 --- a/dataprocessing/sql_snippets/ego_dp_lv_peakload.sql +++ /dev/null @@ -1,352 +0,0 @@ -/* -In progess - -__copyright__ = "Reiner Lemoine Institut" -__license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" -__url__ = "https://github.com/openego/data_processing/blob/master/LICENSE" -__author__ = "Ludee, jong42" -*/ - - --- collect and union -DROP TABLE IF EXISTS model_draft.ego_grid_lv_griddistrict CASCADE; -CREATE TABLE model_draft.ego_grid_lv_griddistrict ( - id integer, - mvlv_subst_id integer, - subst_id integer, - la_id integer, - nn boolean, - subst_cnt integer, - zensus_sum integer, - zensus_count integer, - zensus_density double precision, - population_density double precision, - area_ha double precision, - sector_area_residential double precision, - sector_area_retail double precision, - sector_area_industrial double precision, - sector_area_agricultural double precision, - sector_area_sum double precision, - sector_share_residential double precision, - sector_share_retail double precision, - sector_share_industrial double precision, - sector_share_agricultural double precision, - sector_share_sum double precision, - sector_count_residential integer, - sector_count_retail integer, - sector_count_industrial integer, - sector_count_agricultural integer, - sector_count_sum integer, - sector_consumption_residential double precision, - sector_consumption_retail double precision, - sector_consumption_industrial double precision, - sector_consumption_agricultural double precision, - sector_consumption_sum double precision, - sector_peakload_residential double precision, - sector_peakload_retail double precision, - sector_peakload_industrial double precision, - sector_peakload_agricultural double precision, - geom geometry(MultiPolygon,3035), - CONSTRAINT ego_grid_lv_griddistrict_pkey PRIMARY KEY (id) ); - --- grant (oeuser) -ALTER TABLE model_draft.ego_grid_lv_griddistrict OWNER TO oeuser; - --- index GIST (geom) -CREATE INDEX ego_grid_lv_griddistrict_gidx - ON model_draft.ego_grid_lv_griddistrict USING GIST (geom); - --- insert -INSERT INTO model_draft.ego_grid_lv_griddistrict (id,mvlv_subst_id,subst_id,la_id,nn,geom) - SELECT * - FROM model_draft.ego_grid_lv_griddistrict_cut_nn_collect - ORDER BY mvlv_subst_id; - - --- ego scenario log (version,io,schema_name,table_name,script_name,comment) -SELECT ego_scenario_log('v0.3.0','input','model_draft','ego_grid_mvlv_substation','ego_dp_lv_peakload.sql',' '); - --- mvlv substation count -UPDATE model_draft.ego_grid_lv_griddistrict AS t1 - SET subst_cnt = t2.subst_cnt - FROM (SELECT a.id AS id, - COUNT(b.geom)::integer AS subst_cnt - FROM model_draft.ego_grid_lv_griddistrict AS a, - model_draft.ego_grid_mvlv_substation AS b - WHERE a.geom && b.geom AND - ST_CONTAINS(a.geom,b.geom) - GROUP BY a.id - )AS t2 - WHERE t1.id = t2.id; - --- update area (area_ha) -UPDATE model_draft.ego_grid_lv_griddistrict AS t1 - SET area_ha = t2.area - FROM (SELECT id, - ST_AREA(ST_TRANSFORM(geom,3035))/10000 AS area - FROM model_draft.ego_grid_lv_griddistrict - ) AS t2 - WHERE t1.id = t2.id; - - --- ego scenario log (version,io,schema_name,table_name,script_name,comment) -SELECT ego_scenario_log('v0.3.0','input','society','destatis_zensus_population_per_ha_mview','ego_dp_lv_peakload.sql',' '); - --- zensus 2011 population -UPDATE model_draft.ego_grid_lv_griddistrict AS t1 - SET zensus_sum = t2.zensus_sum, - zensus_count = t2.zensus_count, - zensus_density = t2.zensus_density - FROM (SELECT a.id AS id, - SUM(b.population)::integer AS zensus_sum, - COUNT(b.geom_point)::integer AS zensus_count, - (SUM(b.population)/COUNT(b.geom_point))::numeric AS zensus_density - FROM model_draft.ego_grid_lv_griddistrict AS a, - society.destatis_zensus_population_per_ha_mview AS b - WHERE a.geom && b.geom_point AND - ST_CONTAINS(a.geom,b.geom_point) - GROUP BY a.id - )AS t2 - WHERE t1.id = t2.id; - - - --- 1. residential sector -DROP TABLE IF EXISTS model_draft.ego_osm_sector_per_lvgd_1_residential CASCADE; -CREATE TABLE model_draft.ego_osm_sector_per_lvgd_1_residential ( - id SERIAL NOT NULL, - geom geometry(Polygon,3035), - CONSTRAINT ego_osm_sector_per_lvgd_1_residential_pkey PRIMARY KEY (id)); - --- index GIST (geom) -CREATE INDEX ego_osm_sector_per_lvgd_1_residential_gidx - ON model_draft.ego_osm_sector_per_lvgd_1_residential USING GIST (geom); - --- grant (oeuser) -ALTER TABLE model_draft.ego_osm_sector_per_lvgd_1_residential OWNER TO oeuser; - --- ego scenario log (version,io,schema_name,table_name,script_name,comment) -SELECT ego_scenario_log('v0.3.0','input','model_draft','ego_osm_sector_per_griddistrict_1_residential','ego_dp_lv_peakload.sql',' '); - --- intersect sector with mv-griddistrict -INSERT INTO model_draft.ego_osm_sector_per_lvgd_1_residential (geom) - SELECT c.geom ::geometry(Polygon,3035) - FROM (SELECT (ST_DUMP(ST_SAFE_INTERSECTION(a.geom,b.geom))).geom AS geom - FROM model_draft.ego_osm_sector_per_griddistrict_1_residential AS a, - model_draft.ego_grid_lv_griddistrict AS b - WHERE a.geom && b.geom - ) AS c - WHERE ST_GeometryType(c.geom) = 'ST_Polygon'; - --- sector stats -UPDATE model_draft.ego_grid_lv_griddistrict AS t1 - SET sector_area_residential = t2.sector_area, - sector_count_residential = t2.sector_count, - sector_share_residential = t2.sector_area / t2.area_ha - FROM (SELECT b.id AS id, - SUM(ST_AREA(a.geom)/10000) AS sector_area, - COUNT(a.geom) AS sector_count, - b.area_ha AS area_ha - FROM model_draft.ego_osm_sector_per_lvgd_1_residential AS a, - model_draft.ego_grid_lv_griddistrict AS b - WHERE b.geom && a.geom AND - ST_INTERSECTS(b.geom,ST_BUFFER(a.geom,-1)) - GROUP BY b.id - ) AS t2 - WHERE t1.id = t2.id; - --- ego scenario log (version,io,schema_name,table_name,script_name,comment) -SELECT ego_scenario_log('v0.3.0','output','model_draft','ego_osm_sector_per_lvgd_1_residential','ego_dp_lv_peakload.sql',' '); - - - --- 2. retail sector -DROP TABLE IF EXISTS model_draft.ego_osm_sector_per_lvgd_2_retail CASCADE; -CREATE TABLE model_draft.ego_osm_sector_per_lvgd_2_retail ( - id SERIAL NOT NULL, - geom geometry(Polygon,3035), - CONSTRAINT ego_osm_sector_per_lvgd_2_retail_pkey PRIMARY KEY (id)); - --- index GIST (geom) -CREATE INDEX ego_osm_sector_per_lvgd_2_retail_gidx - ON model_draft.ego_osm_sector_per_lvgd_2_retail USING GIST (geom); - --- grant (oeuser) -ALTER TABLE model_draft.ego_osm_sector_per_lvgd_2_retail OWNER TO oeuser; - --- ego scenario log (version,io,schema_name,table_name,script_name,comment) -SELECT ego_scenario_log('v0.3.0','input','model_draft','ego_osm_sector_per_griddistrict_2_retail','ego_dp_lv_peakload.sql',' '); - --- intersect sector with mv-griddistrict -INSERT INTO model_draft.ego_osm_sector_per_lvgd_2_retail (geom) - SELECT c.geom ::geometry(Polygon,3035) - FROM (SELECT (ST_DUMP(ST_SAFE_INTERSECTION(a.geom,b.geom))).geom AS geom - FROM model_draft.ego_osm_sector_per_griddistrict_2_retail AS a, - model_draft.ego_grid_lv_griddistrict AS b - WHERE a.geom && b.geom - ) AS c - WHERE ST_GeometryType(c.geom) = 'ST_Polygon'; - --- sector stats -UPDATE model_draft.ego_grid_lv_griddistrict AS t1 - SET sector_area_retail = t2.sector_area, - sector_count_retail = t2.sector_count, - sector_share_retail = t2.sector_area / t2.area_ha - FROM (SELECT b.id AS id, - SUM(ST_AREA(a.geom)/10000) AS sector_area, - COUNT(a.geom) AS sector_count, - b.area_ha AS area_ha - FROM model_draft.ego_osm_sector_per_lvgd_2_retail AS a, - model_draft.ego_grid_lv_griddistrict AS b - WHERE b.geom && a.geom AND - ST_INTERSECTS(b.geom,ST_BUFFER(a.geom,-1)) - GROUP BY b.id - ) AS t2 - WHERE t1.id = t2.id; - --- ego scenario log (version,io,schema_name,table_name,script_name,comment) -SELECT ego_scenario_log('v0.3.0','output','model_draft','ego_osm_sector_per_lvgd_2_retail','ego_dp_lv_peakload.sql',' '); - - --- 3. industrial sector -DROP TABLE IF EXISTS model_draft.ego_osm_sector_per_lvgd_3_industrial CASCADE; -CREATE TABLE model_draft.ego_osm_sector_per_lvgd_3_industrial ( - id SERIAL NOT NULL, - geom geometry(Polygon,3035), - CONSTRAINT ego_osm_sector_per_lvgd_3_industrial_pkey PRIMARY KEY (id)); - --- index GIST (geom) -CREATE INDEX ego_osm_sector_per_lvgd_3_industrial_gidx - ON model_draft.ego_osm_sector_per_lvgd_3_industrial USING GIST (geom); - --- grant (oeuser) -ALTER TABLE model_draft.ego_osm_sector_per_lvgd_3_industrial OWNER TO oeuser; - --- ego scenario log (version,io,schema_name,table_name,script_name,comment) -SELECT ego_scenario_log('v0.3.0','input','model_draft','ego_osm_sector_per_griddistrict_3_industrial','ego_dp_lv_peakload.sql',' '); - --- intersect sector with mv-griddistrict -INSERT INTO model_draft.ego_osm_sector_per_lvgd_3_industrial (geom) - SELECT c.geom ::geometry(Polygon,3035) - FROM (SELECT (ST_DUMP(ST_SAFE_INTERSECTION(a.geom,b.geom))).geom AS geom - FROM model_draft.ego_osm_sector_per_griddistrict_3_industrial AS a, - model_draft.ego_grid_lv_griddistrict AS b - WHERE a.geom && b.geom - ) AS c - WHERE ST_GeometryType(c.geom) = 'ST_Polygon'; - --- sector stats -UPDATE model_draft.ego_grid_lv_griddistrict AS t1 - SET sector_area_industrial = t2.sector_area, - sector_count_industrial = t2.sector_count, - sector_share_industrial = t2.sector_area / t2.area_ha - FROM (SELECT b.id AS id, - SUM(ST_AREA(a.geom)/10000) AS sector_area, - COUNT(a.geom) AS sector_count, - b.area_ha AS area_ha - FROM model_draft.ego_osm_sector_per_lvgd_3_industrial AS a, - model_draft.ego_grid_lv_griddistrict AS b - WHERE b.geom && a.geom AND - ST_INTERSECTS(b.geom,ST_BUFFER(a.geom,-1)) - GROUP BY b.id - ) AS t2 - WHERE t1.id = t2.id; - --- ego scenario log (version,io,schema_name,table_name,script_name,comment) -SELECT ego_scenario_log('v0.3.0','output','model_draft','ego_osm_sector_per_lvgd_3_industrial','ego_dp_lv_peakload.sql',' '); - - - --- 4. agricultural sector -DROP TABLE IF EXISTS model_draft.ego_osm_sector_per_lvgd_4_agricultural CASCADE; -CREATE TABLE model_draft.ego_osm_sector_per_lvgd_4_agricultural ( - id SERIAL NOT NULL, - geom geometry(Polygon,3035), - CONSTRAINT ego_osm_sector_per_lvgd_4_agricultural_pkey PRIMARY KEY (id)); - --- index GIST (geom) -CREATE INDEX ego_osm_sector_per_lvgd_4_agricultural_gidx - ON model_draft.ego_osm_sector_per_lvgd_4_agricultural USING GIST (geom); - --- grant (oeuser) -ALTER TABLE model_draft.ego_osm_sector_per_lvgd_4_agricultural OWNER TO oeuser; - --- ego scenario log (version,io,schema_name,table_name,script_name,comment) -SELECT ego_scenario_log('v0.3.0','input','model_draft','ego_osm_sector_per_griddistrict_4_agricultural','ego_dp_lv_peakload.sql',' '); - --- intersect sector with mv-griddistrict -INSERT INTO model_draft.ego_osm_sector_per_lvgd_4_agricultural (geom) - SELECT c.geom ::geometry(Polygon,3035) - FROM (SELECT (ST_DUMP(ST_SAFE_INTERSECTION(a.geom,b.geom))).geom AS geom - FROM model_draft.ego_osm_sector_per_griddistrict_4_agricultural AS a, - model_draft.ego_grid_lv_griddistrict AS b - WHERE a.geom && b.geom - ) AS c - WHERE ST_GeometryType(c.geom) = 'ST_Polygon'; - --- sector stats -UPDATE model_draft.ego_grid_lv_griddistrict AS t1 - SET sector_area_agricultural = t2.sector_area, - sector_count_agricultural = t2.sector_count, - sector_share_agricultural = t2.sector_area / t2.area_ha - FROM (SELECT b.id AS id, - SUM(ST_AREA(a.geom)/10000) AS sector_area, - COUNT(a.geom) AS sector_count, - b.area_ha AS area_ha - FROM model_draft.ego_osm_sector_per_lvgd_4_agricultural AS a, - model_draft.ego_grid_lv_griddistrict AS b - WHERE b.geom && a.geom AND - ST_INTERSECTS(b.geom,ST_BUFFER(a.geom,-1)) - GROUP BY b.id - ) AS t2 - WHERE t1.id = t2.id; - --- ego scenario log (version,io,schema_name,table_name,script_name,comment) -SELECT ego_scenario_log('v0.3.0','output','model_draft','ego_osm_sector_per_lvgd_4_agricultural','ego_dp_lv_peakload.sql',' '); - - --- sector stats -UPDATE model_draft.ego_grid_lv_griddistrict AS t1 - SET sector_area_sum = t2.sector_area_sum, - sector_share_sum = t2.sector_share_sum, - sector_count_sum = t2.sector_count_sum - FROM ( - SELECT id, - coalesce(sector_area_residential,0) + - coalesce(sector_area_retail,0) + - coalesce(sector_area_industrial,0) + - coalesce(sector_area_agricultural,0) AS sector_area_sum, - coalesce(sector_share_residential,0) + - coalesce(sector_share_retail,0) + - coalesce(sector_share_industrial,0) + - coalesce(sector_share_agricultural,0) AS sector_share_sum, - coalesce(sector_count_residential,0) + - coalesce(sector_count_retail,0) + - coalesce(sector_count_industrial,0) + - coalesce(sector_count_agricultural,0) AS sector_count_sum - FROM model_draft.ego_grid_lv_griddistrict - ) AS t2 - WHERE t1.id = t2.id; - - -/* -- add count -ALTER TABLE grid.ego_dp_mvlv_substation - DROP COLUMN IF EXISTS subst_cnt, - ADD COLUMN subst_cnt integer; - --- mvlv substation count -UPDATE grid.ego_dp_mvlv_substation AS t1 - SET subst_cnt = t2.subst_cnt - FROM (SELECT a.mvlv_subst_id AS id, - COUNT(b.geom)::integer AS subst_cnt - FROM grid.ego_dp_mvlv_substation AS a, - grid.ego_dp_lv_griddistrict AS b - WHERE a.geom && b.geom AND - ST_CONTAINS(b.geom,a.geom) - GROUP BY a.mvlv_subst_id - )AS t2 - WHERE t1.mvlv_subst_id = t2.id; */ - - - - \ No newline at end of file From 351665f9d25bca0a0a6f9e9e44334f355869e150 Mon Sep 17 00:00:00 2001 From: IlkaCu Date: Thu, 8 Feb 2018 16:09:57 +0100 Subject: [PATCH 065/104] update docu create_mviews #92 --- .../sql_snippets/ego_dp_powerflow_create_pp_mview.sql | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dataprocessing/sql_snippets/ego_dp_powerflow_create_pp_mview.sql b/dataprocessing/sql_snippets/ego_dp_powerflow_create_pp_mview.sql index d5f6a59a..9598c347 100644 --- a/dataprocessing/sql_snippets/ego_dp_powerflow_create_pp_mview.sql +++ b/dataprocessing/sql_snippets/ego_dp_powerflow_create_pp_mview.sql @@ -1,5 +1,6 @@ /* -SQL Script to create mviews diyplaying power plants by scenario. +This script creates discrete materialized views (mview) for conventional and renewable power plants per scenario, +resulting in six different mviews for the three main scenarios considered in open_eGo. __copyright__ = "Europa-Universität Flensburg - ZNES" __license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" From a92e99ab47a6ac10c4cbc4fd6d021afe1d9efc48 Mon Sep 17 00:00:00 2001 From: wolfbunke Date: Thu, 8 Feb 2018 16:24:36 +0100 Subject: [PATCH 066/104] add pd files --- .../dataprocessing/ego_dp_loadarea_census.rst | 20 ++++ .../ego_dp_loadarea_consumption.rst | 18 ++++ .../ego_dp_loadarea_griddistrict_results.rst | 26 +++++ .../ego_dp_loadarea_industry_consumer.rst | 21 ++++ .../ego_dp_loadarea_landuse.rst | 25 +++++ .../ego_dp_loadarea_loadcut_griddistrict.rst | 24 +++++ .../ego_dp_loadarea_loadcut_voronoi.rst | 25 +++++ .../ego_dp_loadarea_loadmelt.rst | 24 +++++ .../dataprocessing/ego_dp_loadarea_loads.rst | 21 ++++ .../ego_dp_loadarea_peakload.rst | 19 ++++ .../ego_dp_loadarea_statistic.rst | 22 +++++ .../ego_dp_lv_consumption_peakload.rst | 20 ++++ .../dataprocessing/ego_dp_lv_griddistrict.rst | 18 ++++ .../doc/dataprocessing/ego_dp_lv_loadcut.rst | 24 +++++ .../dataprocessing/ego_dp_lv_substation.rst | 20 ++++ .../ego_dp_lv_substation_voronoi.rst | 19 ++++ .../dataprocessing/ego_dp_mv_griddistrict.rst | 21 ++++ .../ego_dp_powerflow_assignment_generator.rst | 30 ++++++ .../ego_dp_powerflow_assignment_load.rst | 20 ++++ .../ego_dp_powerflow_assignment_otgid.rst | 21 ++++ .../ego_dp_powerflow_assignment_storage.rst | 19 ++++ .../ego_dp_powerflow_assignment_unid.rst | 19 ++++ .../ego_dp_powerflow_create_pp_mview.rst | 18 ++++ .../ego_dp_powerflow_electrical_neighbour.rst | 20 ++++ ...ego_dp_powerflow_grid_future_scenarios.rst | 21 ++++ .../ego_dp_powerflow_hv_setup.rst | 35 +++++++ .../ego_dp_powerflow_lopf_data.rst | 20 ++++ .../ego_dp_powerflow_osmtgmod_to_pypsa.rst | 21 ++++ .../ego_dp_powerflow_timeseries_demand.rst | 20 ++++ .../ego_dp_powerflow_voronoi_weatherpoint.rst | 18 ++++ .../ego_dp_structure_input_verification.rst | 20 ++++ .../dataprocessing/ego_dp_substation_ehv.rst | 20 ++++ .../ego_dp_substation_ehv_voronoi.rst | 20 ++++ .../dataprocessing/ego_dp_substation_hvmv.rst | 21 ++++ .../ego_dp_substation_hvmv_voronoi.rst | 20 ++++ .../ego_dp_substation_id_to_generator.rst | 21 ++++ .../dataprocessing/ego_dp_substation_otg.rst | 19 ++++ .../doc/dataprocessing/ego_dp_versioning.rst | 19 ++++ .../ego_dp_versioning_mviews.rst | 19 ++++ .../ego_dp_versioning_overview.rst | 19 ++++ .../functions/function_query_metadata.rst | 20 ++++ documentation/doc/dataprocessing/modules.rst | 99 ++++++++++++++++++- .../doc/dataprocessing/rea/ego_dp_conv.rst | 18 ++++ .../rea/ego_dp_lattice_500m.rst | 19 ++++ .../dataprocessing/rea/ego_dp_lattice_50m.rst | 19 ++++ .../rea/ego_dp_rea_lattice_per_area_500m.rst | 22 +++++ .../rea/ego_dp_rea_lattice_per_area_50m.rst | 19 ++++ .../doc/dataprocessing/rea/ego_dp_rea_m1.rst | 20 ++++ .../doc/dataprocessing/rea/ego_dp_rea_m2.rst | 20 ++++ .../doc/dataprocessing/rea/ego_dp_rea_m3.rst | 20 ++++ .../doc/dataprocessing/rea/ego_dp_rea_m4.rst | 20 ++++ .../doc/dataprocessing/rea/ego_dp_rea_m5.rst | 20 ++++ .../dataprocessing/rea/ego_dp_rea_results.rst | 20 ++++ .../dataprocessing/rea/ego_dp_rea_setup.rst | 20 ++++ .../rea/ego_dp_rea_wpa_per_mvgd.rst | 20 ++++ .../doc/dataprocessing/rea/ego_dp_wpa.rst | 20 ++++ 56 files changed, 1242 insertions(+), 1 deletion(-) create mode 100644 documentation/doc/dataprocessing/ego_dp_loadarea_census.rst create mode 100644 documentation/doc/dataprocessing/ego_dp_loadarea_consumption.rst create mode 100644 documentation/doc/dataprocessing/ego_dp_loadarea_griddistrict_results.rst create mode 100644 documentation/doc/dataprocessing/ego_dp_loadarea_industry_consumer.rst create mode 100644 documentation/doc/dataprocessing/ego_dp_loadarea_landuse.rst create mode 100644 documentation/doc/dataprocessing/ego_dp_loadarea_loadcut_griddistrict.rst create mode 100644 documentation/doc/dataprocessing/ego_dp_loadarea_loadcut_voronoi.rst create mode 100644 documentation/doc/dataprocessing/ego_dp_loadarea_loadmelt.rst create mode 100644 documentation/doc/dataprocessing/ego_dp_loadarea_loads.rst create mode 100644 documentation/doc/dataprocessing/ego_dp_loadarea_peakload.rst create mode 100644 documentation/doc/dataprocessing/ego_dp_loadarea_statistic.rst create mode 100644 documentation/doc/dataprocessing/ego_dp_lv_consumption_peakload.rst create mode 100644 documentation/doc/dataprocessing/ego_dp_lv_griddistrict.rst create mode 100644 documentation/doc/dataprocessing/ego_dp_lv_loadcut.rst create mode 100644 documentation/doc/dataprocessing/ego_dp_lv_substation.rst create mode 100644 documentation/doc/dataprocessing/ego_dp_lv_substation_voronoi.rst create mode 100644 documentation/doc/dataprocessing/ego_dp_mv_griddistrict.rst create mode 100644 documentation/doc/dataprocessing/ego_dp_powerflow_assignment_generator.rst create mode 100644 documentation/doc/dataprocessing/ego_dp_powerflow_assignment_load.rst create mode 100644 documentation/doc/dataprocessing/ego_dp_powerflow_assignment_otgid.rst create mode 100644 documentation/doc/dataprocessing/ego_dp_powerflow_assignment_storage.rst create mode 100644 documentation/doc/dataprocessing/ego_dp_powerflow_assignment_unid.rst create mode 100644 documentation/doc/dataprocessing/ego_dp_powerflow_create_pp_mview.rst create mode 100644 documentation/doc/dataprocessing/ego_dp_powerflow_electrical_neighbour.rst create mode 100644 documentation/doc/dataprocessing/ego_dp_powerflow_grid_future_scenarios.rst create mode 100644 documentation/doc/dataprocessing/ego_dp_powerflow_hv_setup.rst create mode 100644 documentation/doc/dataprocessing/ego_dp_powerflow_lopf_data.rst create mode 100644 documentation/doc/dataprocessing/ego_dp_powerflow_osmtgmod_to_pypsa.rst create mode 100644 documentation/doc/dataprocessing/ego_dp_powerflow_timeseries_demand.rst create mode 100644 documentation/doc/dataprocessing/ego_dp_powerflow_voronoi_weatherpoint.rst create mode 100644 documentation/doc/dataprocessing/ego_dp_structure_input_verification.rst create mode 100644 documentation/doc/dataprocessing/ego_dp_substation_ehv.rst create mode 100644 documentation/doc/dataprocessing/ego_dp_substation_ehv_voronoi.rst create mode 100644 documentation/doc/dataprocessing/ego_dp_substation_hvmv.rst create mode 100644 documentation/doc/dataprocessing/ego_dp_substation_hvmv_voronoi.rst create mode 100644 documentation/doc/dataprocessing/ego_dp_substation_id_to_generator.rst create mode 100644 documentation/doc/dataprocessing/ego_dp_substation_otg.rst create mode 100644 documentation/doc/dataprocessing/ego_dp_versioning.rst create mode 100644 documentation/doc/dataprocessing/ego_dp_versioning_mviews.rst create mode 100644 documentation/doc/dataprocessing/ego_dp_versioning_overview.rst create mode 100644 documentation/doc/dataprocessing/functions/function_query_metadata.rst create mode 100644 documentation/doc/dataprocessing/rea/ego_dp_conv.rst create mode 100644 documentation/doc/dataprocessing/rea/ego_dp_lattice_500m.rst create mode 100644 documentation/doc/dataprocessing/rea/ego_dp_lattice_50m.rst create mode 100644 documentation/doc/dataprocessing/rea/ego_dp_rea_lattice_per_area_500m.rst create mode 100644 documentation/doc/dataprocessing/rea/ego_dp_rea_lattice_per_area_50m.rst create mode 100644 documentation/doc/dataprocessing/rea/ego_dp_rea_m1.rst create mode 100644 documentation/doc/dataprocessing/rea/ego_dp_rea_m2.rst create mode 100644 documentation/doc/dataprocessing/rea/ego_dp_rea_m3.rst create mode 100644 documentation/doc/dataprocessing/rea/ego_dp_rea_m4.rst create mode 100644 documentation/doc/dataprocessing/rea/ego_dp_rea_m5.rst create mode 100644 documentation/doc/dataprocessing/rea/ego_dp_rea_results.rst create mode 100644 documentation/doc/dataprocessing/rea/ego_dp_rea_setup.rst create mode 100644 documentation/doc/dataprocessing/rea/ego_dp_rea_wpa_per_mvgd.rst create mode 100644 documentation/doc/dataprocessing/rea/ego_dp_wpa.rst diff --git a/documentation/doc/dataprocessing/ego_dp_loadarea_census.rst b/documentation/doc/dataprocessing/ego_dp_loadarea_census.rst new file mode 100644 index 00000000..5ffc179b --- /dev/null +++ b/documentation/doc/dataprocessing/ego_dp_loadarea_census.rst @@ -0,0 +1,20 @@ +.. AUTOGENERATED - DO NOT TOUCH! + +ego_dp_loadarea_census.sql +##########################Loads from Census 2011 +Include Census 2011 population per ha. +Identify population in OSM loads. + + +copyright + Reiner Lemoine Institut + +license + GNU Affero General Public License Version 3 (AGPL-3.0) + +url + https://github.com/openego/data_processing/blob/master/LICENSE + +author + Ludee + diff --git a/documentation/doc/dataprocessing/ego_dp_loadarea_consumption.rst b/documentation/doc/dataprocessing/ego_dp_loadarea_consumption.rst new file mode 100644 index 00000000..e7d81c89 --- /dev/null +++ b/documentation/doc/dataprocessing/ego_dp_loadarea_consumption.rst @@ -0,0 +1,18 @@ +.. AUTOGENERATED - DO NOT TOUCH! + +ego_dp_loadarea_consumption.sql +###############################Allocate consumption to Loadareas + + +copyright + Flensburg University of Applied Sciences, Centre for Sustainable Energy Systems + +license + GNU Affero General Public License Version 3 (AGPL-3.0) + +url + https://github.com/openego/data_processing/blob/master/LICENSE + +author + IlkaCu, Ludee + diff --git a/documentation/doc/dataprocessing/ego_dp_loadarea_griddistrict_results.rst b/documentation/doc/dataprocessing/ego_dp_loadarea_griddistrict_results.rst new file mode 100644 index 00000000..0d16face --- /dev/null +++ b/documentation/doc/dataprocessing/ego_dp_loadarea_griddistrict_results.rst @@ -0,0 +1,26 @@ +.. AUTOGENERATED - DO NOT TOUCH! + +ego_dp_loadarea_griddistrict_results.sql +########################################Results for MV Griddistrict +After finishing the Loadareas we can aggregate the results for the MV Griddistricts: +Area of MV Griddistrict. +Municipality (Gemeinden). +Municipality parts (Gemeinde-Einzelteile). +Municipality types. +Population results. +Loadarea results (Area, Free area, Share). +Consumption results. + + +copyright + Reiner Lemoine Institut + +license + GNU Affero General Public License Version 3 (AGPL-3.0) + +url + https://github.com/openego/data_processing/blob/master/LICENSE + +author + Ludee + diff --git a/documentation/doc/dataprocessing/ego_dp_loadarea_industry_consumer.rst b/documentation/doc/dataprocessing/ego_dp_loadarea_industry_consumer.rst new file mode 100644 index 00000000..aa0c7c9b --- /dev/null +++ b/documentation/doc/dataprocessing/ego_dp_loadarea_industry_consumer.rst @@ -0,0 +1,21 @@ +.. AUTOGENERATED - DO NOT TOUCH! + +ego_dp_loadarea_industry_consumer.sql +#####################################OSM Industry consumer +Calculate specific electricity consumption per million Euro GVA for each federal state. +Calculate the electricity consumption for each industry polygon. +Identify corresponding bus for large scale consumer (lsc) with the help of ehv-voronoi. + + +copyright + Reiner Lemoine Institut + +license + GNU Affero General Public License Version 3 (AGPL-3.0) + +url + https://github.com/openego/data_processing/blob/master/LICENSE + +author + IlkaCu, Ludee + diff --git a/documentation/doc/dataprocessing/ego_dp_loadarea_landuse.rst b/documentation/doc/dataprocessing/ego_dp_loadarea_landuse.rst new file mode 100644 index 00000000..035f67c4 --- /dev/null +++ b/documentation/doc/dataprocessing/ego_dp_loadarea_landuse.rst @@ -0,0 +1,25 @@ +.. AUTOGENERATED - DO NOT TOUCH! + +ego_dp_loadarea_landuse.sql +###########################OSM landuse sectors +Extract landuse areas from OpenStreetMap. +Cut the landuse with German boders (vg250) and make valid geometries. +Divide into 4 landuse sectors: +1. Residential +2. Retail +3. Industrial +4. Agricultural + + +copyright + Reiner Lemoine Institut + +license + GNU Affero General Public License Version 3 (AGPL-3.0) + +url + https://github.com/openego/data_processing/blob/master/LICENSE + +author + Ludee + diff --git a/documentation/doc/dataprocessing/ego_dp_loadarea_loadcut_griddistrict.rst b/documentation/doc/dataprocessing/ego_dp_loadarea_loadcut_griddistrict.rst new file mode 100644 index 00000000..35f5f8d9 --- /dev/null +++ b/documentation/doc/dataprocessing/ego_dp_loadarea_loadcut_griddistrict.rst @@ -0,0 +1,24 @@ +.. AUTOGENERATED - DO NOT TOUCH! + +ego_dp_loadarea_loadcut_griddistrict.sql +########################################Cut Loadarea with MV Griddistrict +Identify and exclude Loadarea smaller than 100m². +Generate Centre of Loadareas with Centroid and PointOnSurface. +Calculate population from Census 2011. +Cut all 4 OSM sectors with MV Griddistricts. +Calculate statistics like NUTS and AGS code. +Check for Loadareas without AGS code. + + +copyright + Reiner Lemoine Institut + +license + GNU Affero General Public License Version 3 (AGPL-3.0) + +url + https://github.com/openego/data_processing/blob/master/LICENSE + +author + Ludee + diff --git a/documentation/doc/dataprocessing/ego_dp_loadarea_loadcut_voronoi.rst b/documentation/doc/dataprocessing/ego_dp_loadarea_loadcut_voronoi.rst new file mode 100644 index 00000000..62de18af --- /dev/null +++ b/documentation/doc/dataprocessing/ego_dp_loadarea_loadcut_voronoi.rst @@ -0,0 +1,25 @@ +.. AUTOGENERATED - DO NOT TOUCH! + +ego_dp_loadarea_loadcut_voronoi.sql +###################################Cut Loadarea with MV Voronoi cells +Identify and exclude Loadarea smaller than 100m². +Generate Centre of Loadareas with Centroid and PointOnSurface. +Calculate population from Census 2011. +Cut all 4 OSM sectors with MV Griddistricts. +Calculate statistics like NUTS and AGS code. +Check for Loadareas without AGS code. + + + +copyright + Reiner Lemoine Institut + +license + GNU Affero General Public License Version 3 (AGPL-3.0) + +url + https://github.com/openego/data_processing/blob/master/LICENSE + +author + Ludee + diff --git a/documentation/doc/dataprocessing/ego_dp_loadarea_loadmelt.rst b/documentation/doc/dataprocessing/ego_dp_loadarea_loadmelt.rst new file mode 100644 index 00000000..b849e4a8 --- /dev/null +++ b/documentation/doc/dataprocessing/ego_dp_loadarea_loadmelt.rst @@ -0,0 +1,24 @@ +.. AUTOGENERATED - DO NOT TOUCH! + +ego_dp_loadarea_loadmelt.sql +############################Melt loads from OSM landuse and Census 2011 +Collect loads from both sources. +Buffer collected loads with with 100m. +Unbuffer the collection with 100m. +Validate the melted geometries. +Fix geometries with error. +Check again for errors. + + +copyright + Reiner Lemoine Institut + +license + GNU Affero General Public License Version 3 (AGPL-3.0) + +url + https://github.com/openego/data_processing/blob/master/LICENSE + +author + Ludee + diff --git a/documentation/doc/dataprocessing/ego_dp_loadarea_loads.rst b/documentation/doc/dataprocessing/ego_dp_loadarea_loads.rst new file mode 100644 index 00000000..657a977b --- /dev/null +++ b/documentation/doc/dataprocessing/ego_dp_loadarea_loads.rst @@ -0,0 +1,21 @@ +.. AUTOGENERATED - DO NOT TOUCH! + +ego_dp_loadarea_loads.sql +#########################OSM Loads from landuse +Excludes large scale consumer. +Buffer OSM urban sectors with 100m +Unbuffer buffer with -100m + + +copyright + Reiner Lemoine Institut + +license + GNU Affero General Public License Version 3 (AGPL-3.0) + +url + https://github.com/openego/data_processing/blob/master/LICENSE + +author + Ludee + diff --git a/documentation/doc/dataprocessing/ego_dp_loadarea_peakload.rst b/documentation/doc/dataprocessing/ego_dp_loadarea_peakload.rst new file mode 100644 index 00000000..b1a9d201 --- /dev/null +++ b/documentation/doc/dataprocessing/ego_dp_loadarea_peakload.rst @@ -0,0 +1,19 @@ +.. AUTOGENERATED - DO NOT TOUCH! + +ego_dp_loadarea_peakload.sql +############################Peak loads per Loadarea +Uses SLP parameters per sectors. + + +copyright + Reiner Lemoine Institut + +license + GNU Affero General Public License Version 3 (AGPL-3.0) + +url + https://github.com/openego/data_processing/blob/master/LICENSE + +author + gplssm, Ludee + diff --git a/documentation/doc/dataprocessing/ego_dp_loadarea_statistic.rst b/documentation/doc/dataprocessing/ego_dp_loadarea_statistic.rst new file mode 100644 index 00000000..323488fd --- /dev/null +++ b/documentation/doc/dataprocessing/ego_dp_loadarea_statistic.rst @@ -0,0 +1,22 @@ +.. AUTOGENERATED - DO NOT TOUCH! + +ego_dp_loadarea_statistic.sql +#############################Results and statistics for eGoDP data +Substation, Loadarea, MV Griddistricts and Consumption. +MV Griddistrict types. +Municipality (Gemeinden). +Calculate statistics for BKG vg250. + + +copyright + Reiner Lemoine Institut + +license + GNU Affero General Public License Version 3 (AGPL-3.0) + +url + https://github.com/openego/data_processing/blob/master/LICENSE + +author + Ludee + diff --git a/documentation/doc/dataprocessing/ego_dp_lv_consumption_peakload.rst b/documentation/doc/dataprocessing/ego_dp_lv_consumption_peakload.rst new file mode 100644 index 00000000..a81a30b6 --- /dev/null +++ b/documentation/doc/dataprocessing/ego_dp_lv_consumption_peakload.rst @@ -0,0 +1,20 @@ +.. AUTOGENERATED - DO NOT TOUCH! + +ego_dp_lv_consumption_peakload.sql +##################################Update LV grid district table by + a. sectoral consumption in each LV grid district + b. sectoral peak load in each LV grid district + + +copyright + Reiner Lemoine Institut + +license + GNU Affero General Public License Version 3 (AGPL-3.0) + +url + https://github.com/openego/data_processing/blob/master/LICENSE + +author + gplssm + diff --git a/documentation/doc/dataprocessing/ego_dp_lv_griddistrict.rst b/documentation/doc/dataprocessing/ego_dp_lv_griddistrict.rst new file mode 100644 index 00000000..592fa29b --- /dev/null +++ b/documentation/doc/dataprocessing/ego_dp_lv_griddistrict.rst @@ -0,0 +1,18 @@ +.. AUTOGENERATED - DO NOT TOUCH! + +ego_dp_lv_griddistrict.sql +##########################In progess + + +copyright + Reiner Lemoine Institut + +license + GNU Affero General Public License Version 3 (AGPL-3.0) + +url + https://github.com/openego/data_processing/blob/master/LICENSE + +author + Ludee, jong42 + diff --git a/documentation/doc/dataprocessing/ego_dp_lv_loadcut.rst b/documentation/doc/dataprocessing/ego_dp_lv_loadcut.rst new file mode 100644 index 00000000..018a6df5 --- /dev/null +++ b/documentation/doc/dataprocessing/ego_dp_lv_loadcut.rst @@ -0,0 +1,24 @@ +.. AUTOGENERATED - DO NOT TOUCH! + +ego_dp_lv_loadcut.sql +#####################LV Loadcut +Cut Loadarea with MVLV Substation Voronoi. +Select parts with one LV Substation. +Select parts with no LV Substation. +Select parts with more than one substation. +Combine parts with Next Neighbor. +Collect and union all parts. + + +copyright + Reiner Lemoine Institut + +license + GNU Affero General Public License Version 3 (AGPL-3.0) + +url + https://github.com/openego/data_processing/blob/master/LICENSE + +author + jong42, Ludee + diff --git a/documentation/doc/dataprocessing/ego_dp_lv_substation.rst b/documentation/doc/dataprocessing/ego_dp_lv_substation.rst new file mode 100644 index 00000000..b5a12668 --- /dev/null +++ b/documentation/doc/dataprocessing/ego_dp_lv_substation.rst @@ -0,0 +1,20 @@ +.. AUTOGENERATED - DO NOT TOUCH! + +ego_dp_lv_substation.sql +########################MVLV Substation (ONT) +Create a lattice (regular fishnet grid) with 360m. +Create MVLV Substation from lattice centroid. + + +copyright + Reiner Lemoine Institut + +license + GNU Affero General Public License Version 3 (AGPL-3.0) + +url + https://github.com/openego/data_processing/blob/master/LICENSE + +author + jong42, Ludee + diff --git a/documentation/doc/dataprocessing/ego_dp_lv_substation_voronoi.rst b/documentation/doc/dataprocessing/ego_dp_lv_substation_voronoi.rst new file mode 100644 index 00000000..46acb8df --- /dev/null +++ b/documentation/doc/dataprocessing/ego_dp_lv_substation_voronoi.rst @@ -0,0 +1,19 @@ +.. AUTOGENERATED - DO NOT TOUCH! + +ego_dp_lv_substation_voronoi.sql +################################MVLV Substation Voronoi +Voronoi polygons with Eucldean distance (manhattan distance would be better but not available in sql). + + +copyright + Reiner Lemoine Institut + +license + GNU Affero General Public License Version 3 (AGPL-3.0) + +url + https://github.com/openego/data_processing/blob/master/LICENSE + +author + jong42, Ludee + diff --git a/documentation/doc/dataprocessing/ego_dp_mv_griddistrict.rst b/documentation/doc/dataprocessing/ego_dp_mv_griddistrict.rst new file mode 100644 index 00000000..eeeda01e --- /dev/null +++ b/documentation/doc/dataprocessing/ego_dp_mv_griddistrict.rst @@ -0,0 +1,21 @@ +.. AUTOGENERATED - DO NOT TOUCH! + +ego_dp_mv_griddistrict.sql +##########################MV GridDistricts +Generate MV GridDistricts from municipalities and Voronoi cells. +Each HVMV Substation receives one catchment area. +Detailed description can be found in Hülk et. al. 2017. + + +copyright + Reiner Lemoine Institut + +license + GNU Affero General Public License Version 3 (AGPL-3.0) + +url + https://github.com/openego/data_processing/blob/master/LICENSE + +author + Ludee + diff --git a/documentation/doc/dataprocessing/ego_dp_powerflow_assignment_generator.rst b/documentation/doc/dataprocessing/ego_dp_powerflow_assignment_generator.rst new file mode 100644 index 00000000..fe162cb1 --- /dev/null +++ b/documentation/doc/dataprocessing/ego_dp_powerflow_assignment_generator.rst @@ -0,0 +1,30 @@ +.. AUTOGENERATED - DO NOT TOUCH! + +ego_dp_powerflow_assignment_generator.sql +#########################################Generators which were assigned to a specific substation prior to this script need to be transformed to a data structure +suitable for powerflow calculation with tool developed and used in the open_eGo project. The following script transforms +data from the powerplant mviews and adds some parameters according to the characteristics of the generators. +To reduce the data volumn in the final table structure (see ego_dp_powerflow_hv_setup.sql) the generators are clustered +according to their source, installed capacity, weather point and substation they are assigned to. Here a new and unique +aggregate-ID (aggr_id) is assigned. +In an interims stage all generators are converted to a format suitable for powerflow flow calculation seperately. This data +can be accessed in table `model_draft.ego_supply_pf_generator_single `_. + + +Information on generators which are assigned to a specific substation are transformed to a data structure which is suitable +for PyPSA. This script creates the scenarios +'Status Quo', 'NEP 2035' and 'eGo 100' in the hv powerflow schema. + + +copyright + Flensburg University of Applied Sciences, Centre for Sustainable Energy Systems + +license + GNU Affero General Public License Version 3 (AGPL-3.0) + +url + https://github.com/openego/data_processing/blob/master/LICENSE + +author + IlkaCu, Ludee + diff --git a/documentation/doc/dataprocessing/ego_dp_powerflow_assignment_load.rst b/documentation/doc/dataprocessing/ego_dp_powerflow_assignment_load.rst new file mode 100644 index 00000000..4624ca55 --- /dev/null +++ b/documentation/doc/dataprocessing/ego_dp_powerflow_assignment_load.rst @@ -0,0 +1,20 @@ +.. AUTOGENERATED - DO NOT TOUCH! + +ego_dp_powerflow_assignment_load.sql +####################################Similar to generators in the previous script the data on loads are converted and clustered to fit the data structure +needed for powerflow calculations. The electricity demand of small scale consumer and industrial large scale consumer is +considered. + + +copyright + Flensburg University of Applied Sciences, Centre for Sustainable Energy Systems + +license + GNU Affero General Public License Version 3 (AGPL-3.0) + +url + https://github.com/openego/data_processing/blob/master/LICENSE + +author + IlkaCu + diff --git a/documentation/doc/dataprocessing/ego_dp_powerflow_assignment_otgid.rst b/documentation/doc/dataprocessing/ego_dp_powerflow_assignment_otgid.rst new file mode 100644 index 00000000..3a7eebb7 --- /dev/null +++ b/documentation/doc/dataprocessing/ego_dp_powerflow_assignment_otgid.rst @@ -0,0 +1,21 @@ +.. AUTOGENERATED - DO NOT TOUCH! + +ego_dp_powerflow_assignment_otgid.sql +#####################################This scripts updates tables containing `renewable power plants `_ and `conventional power plants `_ with information on the otg_id of substations which the generator is assigned to. +The otg_id and subst_id of the substations are matched in tables containing information on `HV/MV substations `_ and `EHV substations `_. + +Additionally the otg_id of offshore wind turbines is updated manually. The geometry of offshore wind power plants is matched with polygons representing a catchment area per relevant offshore grid connection point. + + +copyright + Flensburg University of Applied Sciences, Centre for Sustainable Energy Systems + +license + GNU Affero General Public License Version 3 (AGPL-3.0) + +url + https://github.com/openego/data_processing/blob/master/LICENSE + +author + IlkaCu + diff --git a/documentation/doc/dataprocessing/ego_dp_powerflow_assignment_storage.rst b/documentation/doc/dataprocessing/ego_dp_powerflow_assignment_storage.rst new file mode 100644 index 00000000..9892e420 --- /dev/null +++ b/documentation/doc/dataprocessing/ego_dp_powerflow_assignment_storage.rst @@ -0,0 +1,19 @@ +.. AUTOGENERATED - DO NOT TOUCH! + +ego_dp_powerflow_assignment_storage.sql +#######################################Equivalent to the assignment of generators in this script storages are converted and clustered for all three scenarios +considered in open_eGo. + + +copyright + Flensburg University of Applied Sciences, Centre for Sustainable Energy Systems + +license + GNU Affero General Public License Version 3 (AGPL-3.0) + +url + https://github.com/openego/data_processing/blob/master/LICENSE + +author + IlkaCu", "lukasol + diff --git a/documentation/doc/dataprocessing/ego_dp_powerflow_assignment_unid.rst b/documentation/doc/dataprocessing/ego_dp_powerflow_assignment_unid.rst new file mode 100644 index 00000000..45473426 --- /dev/null +++ b/documentation/doc/dataprocessing/ego_dp_powerflow_assignment_unid.rst @@ -0,0 +1,19 @@ +.. AUTOGENERATED - DO NOT TOUCH! + +ego_dp_powerflow_assignment_unid.sql +####################################All generators from the `conventional `_ and `renewable `_ power plant list are brought together in a `central generator list `_. +A unified id (un_id) is assigned to those generators listed. Information on the un_id is then added to the conventional and renewable power plant lists. + + +copyright + Flensburg University of Applied Sciences, Centre for Sustainable Energy Systems + +license + GNU Affero General Public License Version 3 (AGPL-3.0) + +url + https://github.com/openego/data_processing/blob/master/LICENSE + +author + IlkaCu + diff --git a/documentation/doc/dataprocessing/ego_dp_powerflow_create_pp_mview.rst b/documentation/doc/dataprocessing/ego_dp_powerflow_create_pp_mview.rst new file mode 100644 index 00000000..44955e86 --- /dev/null +++ b/documentation/doc/dataprocessing/ego_dp_powerflow_create_pp_mview.rst @@ -0,0 +1,18 @@ +.. AUTOGENERATED - DO NOT TOUCH! + +ego_dp_powerflow_create_pp_mview.sql +####################################SQL Script to create mviews diyplaying power plants by scenario. + + +copyright + Europa-Universität Flensburg - ZNES + +license + GNU Affero General Public License Version 3 (AGPL-3.0) + +url + https://github.com/openego/data_processing/blob/master/LICENSE + +author + wolfbunke + diff --git a/documentation/doc/dataprocessing/ego_dp_powerflow_electrical_neighbour.rst b/documentation/doc/dataprocessing/ego_dp_powerflow_electrical_neighbour.rst new file mode 100644 index 00000000..eaa102e7 --- /dev/null +++ b/documentation/doc/dataprocessing/ego_dp_powerflow_electrical_neighbour.rst @@ -0,0 +1,20 @@ +.. AUTOGENERATED - DO NOT TOUCH! + +ego_dp_powerflow_electrical_neighbour.sql +#########################################The electricity grid model extracted from osmTGmod is limited to the German territory. This script adds border crossing +lines and corresponding buses and transformers to all neighbouring countries which have a direct electrical connection +to the German grid. + + +copyright + Flensburg University of Applied Sciences, Centre for Sustainable Energy Systems + +license + GNU Affero General Public License Version 3 (AGPL-3.0) + +url + https://github.com/openego/data_processing/blob/master/LICENSE + +author + IlkaCu + diff --git a/documentation/doc/dataprocessing/ego_dp_powerflow_grid_future_scenarios.rst b/documentation/doc/dataprocessing/ego_dp_powerflow_grid_future_scenarios.rst new file mode 100644 index 00000000..853a8202 --- /dev/null +++ b/documentation/doc/dataprocessing/ego_dp_powerflow_grid_future_scenarios.rst @@ -0,0 +1,21 @@ +.. AUTOGENERATED - DO NOT TOUCH! + +ego_dp_powerflow_grid_future_scenarios.sql +##########################################The grid model which is used as an input for powerflow calculations and optimization in open_eGo is the same in all +three scenarios 'SQ', 'NEP 2035' and 'eGo100'. +In the following script the grid model created for the 'SQ' scenario in the previous scripts is duplicated for the remaining +two future scenarios + + +copyright + Flensburg University of Applied Sciences, Centre for Sustainable Energy Systems + +license + GNU Affero General Public License Version 3 (AGPL-3.0) + +url + https://github.com/openego/data_processing/blob/master/LICENSE + +author + IlkaCu + diff --git a/documentation/doc/dataprocessing/ego_dp_powerflow_hv_setup.rst b/documentation/doc/dataprocessing/ego_dp_powerflow_hv_setup.rst new file mode 100644 index 00000000..c48d5a94 --- /dev/null +++ b/documentation/doc/dataprocessing/ego_dp_powerflow_hv_setup.rst @@ -0,0 +1,35 @@ +.. AUTOGENERATED - DO NOT TOUCH! + +ego_dp_powerflow_hv_setup.sql +#############################This script creates all tables which are needed for hv-powerflow calculations. The characteristics of those tables +follow the structure of PyPSA's input data. + +The following tables are created: +`model_draft.ego_grid_pf_hv_scenario_settings `_ +`model_draft.ego_grid_pf_hv_source `_ +`model_draft.ego_grid_pf_hv_bus `_ +`model_draft.ego_grid_pf_hv_busmap `_ +`model_draft.ego_grid_pf_hv_generator `_ +`model_draft.ego_grid_pf_hv_line `_ +`model_draft.ego_grid_pf_hv_load `_ +`model_draft.ego_grid_pf_hv_storage `_ +`model_draft.ego_grid_pf_hv_temp_resolution `_ +`model_draft.ego_grid_pf_hv_transformer `_ +`model_draft.ego_grid_pf_hv_bus_v_mag_set `_ +`model_draft.ego_grid_pf_hv_generator_pq_set `_ +`model_draft.ego_grid_pf_hv_load_pq_set `_ +`model_draft.ego_grid_pf_hv_storage_pq_set `_ + + +copyright + Flensburg University of Applied Sciences, Centre for Sustainable Energy Systems + +license + GNU Affero General Public License Version 3 (AGPL-3.0) + +url + https://github.com/openego/data_processing/blob/master/LICENSE + +author + mariusves, IlkaCu, ulfmueller, Ludee, s3pp + diff --git a/documentation/doc/dataprocessing/ego_dp_powerflow_lopf_data.rst b/documentation/doc/dataprocessing/ego_dp_powerflow_lopf_data.rst new file mode 100644 index 00000000..b2dfd809 --- /dev/null +++ b/documentation/doc/dataprocessing/ego_dp_powerflow_lopf_data.rst @@ -0,0 +1,20 @@ +.. AUTOGENERATED - DO NOT TOUCH! + +ego_dp_powerflow_lopf_data.sql +##############################LOPF data - +Setting marginal_cost ( operating cost + fuel cost + CO2 crt cost ) +in model_draft.ego_grid_pf_hv_generator according to renpass_gis, NEP 2014 scenario. +In addition p_max_pu is set for all generators with variable dispatch based on p_max_pu = p_set / p_nom . + +copyright + Europa-Universität Flensburg, Centre for Sustainable Energy Systems + +license + GNU Affero General Public License Version 3 (AGPL-3.0) + +url + https://github.com/openego/data_processing/blob/master/LICENSE + +author + wolfbunke, lukasol + diff --git a/documentation/doc/dataprocessing/ego_dp_powerflow_osmtgmod_to_pypsa.rst b/documentation/doc/dataprocessing/ego_dp_powerflow_osmtgmod_to_pypsa.rst new file mode 100644 index 00000000..5bc21fb8 --- /dev/null +++ b/documentation/doc/dataprocessing/ego_dp_powerflow_osmtgmod_to_pypsa.rst @@ -0,0 +1,21 @@ +.. AUTOGENERATED - DO NOT TOUCH! + +ego_dp_powerflow_osmtgmod_to_pypsa.sql +######################################`osmTGmod `_ provides a model of the German EHV and HV grid based on OpenStreetMap. +This script extracts `bus `_ and `branch data `_ provided by osmTGmod +and inserts the grid model into the corresponding powerflow tables. +Additionally some (electrical) properties for transformers are adjusted or added. + + +copyright + Flensburg University of Applied Sciences, Centre for Sustainable Energy Systems + +license + GNU Affero General Public License Version 3 (AGPL-3.0) + +url + https://github.com/openego/data_processing/blob/master/LICENSE + +author + ulfmueller, IlkaCu, mariusves + diff --git a/documentation/doc/dataprocessing/ego_dp_powerflow_timeseries_demand.rst b/documentation/doc/dataprocessing/ego_dp_powerflow_timeseries_demand.rst new file mode 100644 index 00000000..5274e4a6 --- /dev/null +++ b/documentation/doc/dataprocessing/ego_dp_powerflow_timeseries_demand.rst @@ -0,0 +1,20 @@ +.. AUTOGENERATED - DO NOT TOUCH! + +ego_dp_powerflow_timeseries_demand.sql +######################################Aggregated load time series for neighbouring countries are based on rennpassG!S results and are added to the corresponding +`powerflow table `_. The load is equivalent +in all three scenarios. + + +copyright + Flensburg University of Applied Sciences, Centre for Sustainable Energy Systems + +license + GNU Affero General Public License Version 3 (AGPL-3.0) + +url + https://github.com/openego/data_processing/blob/master/LICENSE + +author + ulfmueller, wolfbunke + diff --git a/documentation/doc/dataprocessing/ego_dp_powerflow_voronoi_weatherpoint.rst b/documentation/doc/dataprocessing/ego_dp_powerflow_voronoi_weatherpoint.rst new file mode 100644 index 00000000..18357c14 --- /dev/null +++ b/documentation/doc/dataprocessing/ego_dp_powerflow_voronoi_weatherpoint.rst @@ -0,0 +1,18 @@ +.. AUTOGENERATED - DO NOT TOUCH! + +ego_dp_powerflow_voronoi_weatherpoint.sql +#########################################voronoi with climatepoints + + +copyright + Flensburg University of Applied Sciences, Centre for Sustainable Energy Systems + +license + GNU Affero General Public License Version 3 (AGPL-3.0) + +url + https://github.com/openego/data_processing/blob/master/LICENSE + +author + IlkaCu, Ludee + diff --git a/documentation/doc/dataprocessing/ego_dp_structure_input_verification.rst b/documentation/doc/dataprocessing/ego_dp_structure_input_verification.rst new file mode 100644 index 00000000..407581c3 --- /dev/null +++ b/documentation/doc/dataprocessing/ego_dp_structure_input_verification.rst @@ -0,0 +1,20 @@ +.. AUTOGENERATED - DO NOT TOUCH! + +ego_dp_structure_input_verification.sql +#######################################Input verification (eGoPP) +Check the necessary input tables from eGo PreProcessing. +Return version of input tables. + + +copyright + Reiner Lemoine Institut + +license + GNU Affero General Public License Version 3 (AGPL-3.0) + +url + https://github.com/openego/data_processing/blob/master/LICENSE + +author + Ludee + diff --git a/documentation/doc/dataprocessing/ego_dp_substation_ehv.rst b/documentation/doc/dataprocessing/ego_dp_substation_ehv.rst new file mode 100644 index 00000000..a97a0a28 --- /dev/null +++ b/documentation/doc/dataprocessing/ego_dp_substation_ehv.rst @@ -0,0 +1,20 @@ +.. AUTOGENERATED - DO NOT TOUCH! + +ego_dp_substation_ehv.sql +#########################EHV Substation +Abstract EHV Substations of the extra high voltage level from OSM. +This script abstracts substations of the extra high voltage level from openstreetmap data. + + +copyright + DLR Institute for Networked Energy Systems + +license + GNU Affero General Public License Version 3 (AGPL-3.0) + +url + https://github.com/openego/data_processing/blob/master/LICENSE + +author + lukasol, C. Matke, Ludee + diff --git a/documentation/doc/dataprocessing/ego_dp_substation_ehv_voronoi.rst b/documentation/doc/dataprocessing/ego_dp_substation_ehv_voronoi.rst new file mode 100644 index 00000000..5a4fbfbe --- /dev/null +++ b/documentation/doc/dataprocessing/ego_dp_substation_ehv_voronoi.rst @@ -0,0 +1,20 @@ +.. AUTOGENERATED - DO NOT TOUCH! + +ego_dp_substation_ehv_voronoi.sql +#################################EHV Substation Voronoi +Voronoi polygons with eucldean distance on EHV Substation. +Manhattan distance would be better but not available in sql. + + +copyright + Flensburg University of Applied Sciences, Centre for Sustainable Energy Systems + +license + GNU Affero General Public License Version 3 (AGPL-3.0) + +url + https://github.com/openego/data_processing/blob/master/LICENSE + +author + IlkaCu, Ludee + diff --git a/documentation/doc/dataprocessing/ego_dp_substation_hvmv.rst b/documentation/doc/dataprocessing/ego_dp_substation_hvmv.rst new file mode 100644 index 00000000..ba2401d5 --- /dev/null +++ b/documentation/doc/dataprocessing/ego_dp_substation_hvmv.rst @@ -0,0 +1,21 @@ +.. AUTOGENERATED - DO NOT TOUCH! + +ego_dp_substation_hvmv.sql +##########################HVMV Substation +Abstract HVMV Substations of the high voltage level from OSM. +This script abstracts substations of the high voltage level from openstreetmap data. +All substations that are relevant transition points between the transmission and distribution grid are identified, irrelevant ones are disregarded. + + +copyright + DLR Institute for Networked Energy Systems + +license + GNU Affero General Public License Version 3 (AGPL-3.0) + +url + https://github.com/openego/data_processing/blob/master/LICENSE + +author + lukasol, C. Matke, Ludee + diff --git a/documentation/doc/dataprocessing/ego_dp_substation_hvmv_voronoi.rst b/documentation/doc/dataprocessing/ego_dp_substation_hvmv_voronoi.rst new file mode 100644 index 00000000..e4a42423 --- /dev/null +++ b/documentation/doc/dataprocessing/ego_dp_substation_hvmv_voronoi.rst @@ -0,0 +1,20 @@ +.. AUTOGENERATED - DO NOT TOUCH! + +ego_dp_substation_hvmv_voronoi.sql +##################################HVMV Substation Voronoi +Voronoi polygons with eucldean distance on HVMV Substation. +Manhattan distance would be better but not available in sql. + + +copyright + Reiner Lemoine Institut + +license + GNU Affero General Public License Version 3 (AGPL-3.0) + +url + https://github.com/openego/data_processing/blob/master/LICENSE + +author + Ludee + diff --git a/documentation/doc/dataprocessing/ego_dp_substation_id_to_generator.rst b/documentation/doc/dataprocessing/ego_dp_substation_id_to_generator.rst new file mode 100644 index 00000000..1dbf2424 --- /dev/null +++ b/documentation/doc/dataprocessing/ego_dp_substation_id_to_generator.rst @@ -0,0 +1,21 @@ +.. AUTOGENERATED - DO NOT TOUCH! + +ego_dp_substation_id_to_generator.sql +#####################################Substation ID to Generator +All powerplants (Conventional and Renewable) receive the corresponding Substation ID. +Either the HVMV Substation ID (= MV Griddistrict ID) or the EHV Substaion ID. +Identify corresponding subst_id for all power plants according to their voltage_level and geometry. + + +copyright + Flensburg University of Applied Sciences, Centre for Sustainable Energy Systems + +license + GNU Affero General Public License Version 3 (AGPL-3.0) + +url + https://github.com/openego/data_processing/blob/master/LICENSE + +author + IlkaCu + diff --git a/documentation/doc/dataprocessing/ego_dp_substation_otg.rst b/documentation/doc/dataprocessing/ego_dp_substation_otg.rst new file mode 100644 index 00000000..0725faa4 --- /dev/null +++ b/documentation/doc/dataprocessing/ego_dp_substation_otg.rst @@ -0,0 +1,19 @@ +.. AUTOGENERATED - DO NOT TOUCH! + +ego_dp_substation_otg.sql +#########################Substation OTG-ID +Script to assign osmTGmod-id (OTG) to substation. + + +copyright + DLR Institute for Networked Energy Systems + +license + GNU Affero General Public License Version 3 (AGPL-3.0) + +url + https://github.com/openego/data_processing/blob/master/LICENSE + +author + lukasol, C. Matke + diff --git a/documentation/doc/dataprocessing/ego_dp_versioning.rst b/documentation/doc/dataprocessing/ego_dp_versioning.rst new file mode 100644 index 00000000..07e1e2f8 --- /dev/null +++ b/documentation/doc/dataprocessing/ego_dp_versioning.rst @@ -0,0 +1,19 @@ +.. AUTOGENERATED - DO NOT TOUCH! + +ego_dp_versioning.sql +#####################eGo Data Processing result data versioning +Copy a version from model_draft to OEP schema + + +copyright + © Reiner Lemoine Institut + +license + GNU Affero General Public License Version 3 (AGPL-3.0) + +url + https://github.com/openego/data_processing/blob/master/LICENSE + +author + Ludee + diff --git a/documentation/doc/dataprocessing/ego_dp_versioning_mviews.rst b/documentation/doc/dataprocessing/ego_dp_versioning_mviews.rst new file mode 100644 index 00000000..1ce3d005 --- /dev/null +++ b/documentation/doc/dataprocessing/ego_dp_versioning_mviews.rst @@ -0,0 +1,19 @@ +.. AUTOGENERATED - DO NOT TOUCH! + +ego_dp_versioning_mviews.sql +############################eGo Data Processing result data versioning +Copy a version of mvies from model_draft to OEP schema + + +copyright + Europa-Universität Flensburg + +license + GNU Affero General Public License Version 3 (AGPL-3.0) + +url + https://github.com/openego/data_processing/blob/master/LICENSE + +author + wolfbunke + diff --git a/documentation/doc/dataprocessing/ego_dp_versioning_overview.rst b/documentation/doc/dataprocessing/ego_dp_versioning_overview.rst new file mode 100644 index 00000000..ff6371b1 --- /dev/null +++ b/documentation/doc/dataprocessing/ego_dp_versioning_overview.rst @@ -0,0 +1,19 @@ +.. AUTOGENERATED - DO NOT TOUCH! + +ego_dp_versioning_overview.sql +##############################eGo Data Processing overview +Check all versioned tables + + +copyright + © Reiner Lemoine Institut + +license + GNU Affero General Public License Version 3 (AGPL-3.0) + +url + https://github.com/openego/data_processing/blob/master/LICENSE + +author + Ludee + diff --git a/documentation/doc/dataprocessing/functions/function_query_metadata.rst b/documentation/doc/dataprocessing/functions/function_query_metadata.rst new file mode 100644 index 00000000..e416e123 --- /dev/null +++ b/documentation/doc/dataprocessing/functions/function_query_metadata.rst @@ -0,0 +1,20 @@ +.. AUTOGENERATED - DO NOT TOUCH! + +function_query_metadata.sql +###########################Function select important parameters of a table and it's metadata + +NOT WORKING + + +copyright + Reiner Lemoine Institut + +license + GNU Affero General Public License Version 3 (AGPL-3.0) + +url + https://github.com/openego/data_processing/blob/master/LICENSE + +author + Ludee + diff --git a/documentation/doc/dataprocessing/modules.rst b/documentation/doc/dataprocessing/modules.rst index 65f2d4e8..f0882dcb 100644 --- a/documentation/doc/dataprocessing/modules.rst +++ b/documentation/doc/dataprocessing/modules.rst @@ -6,6 +6,103 @@ Data Processing Overview of scripts =================== + +dataprocessing/sql_snippets/ scripts +------------------------------------ +.. toctree:: + :titlesonly: + :maxdepth: 7 + + ego_dp_loadarea_census + ego_dp_loadarea_consumption + ego_dp_loadarea_griddistrict_results + ego_dp_loadarea_industry_consumer + ego_dp_loadarea_landuse + ego_dp_loadarea_loadcut_griddistrict + ego_dp_loadarea_loadcut_voronoi + ego_dp_loadarea_loadmelt + ego_dp_loadarea_loads + ego_dp_loadarea_peakload + ego_dp_loadarea_statistic + ego_dp_lv_consumption_peakload + ego_dp_lv_griddistrict + ego_dp_lv_peakload + ego_dp_lv_substation + ego_dp_lv_substation_voronoi + ego_dp_mv_griddistrict + ego_dp_powerflow_assignment_generator + ego_dp_powerflow_assignment_load + ego_dp_powerflow_assignment_otgid + ego_dp_powerflow_assignment_storage + ego_dp_powerflow_assignment_unid + ego_dp_powerflow_create_pp_mview + ego_dp_powerflow_electrical_neighbour + ego_dp_powerflow_grid_future_scenarios + ego_dp_powerflow_hv_setup + ego_dp_powerflow_lopf_data + ego_dp_powerflow_osmtgmod_to_pypsa + ego_dp_powerflow_timeseries_demand + ego_dp_powerflow_timeseries_generator + ego_dp_powerflow_voronoi_weatherpoint + ego_dp_structure_input_verification + ego_dp_substation_ehv + ego_dp_substation_ehv_voronoi + ego_dp_substation_hvmv + ego_dp_substation_hvmv_voronoi + ego_dp_substation_id_to_generator + ego_dp_substation_otg + ego_dp_supply_dp_powerflow_create_pp_mview + ego_dp_vacuum_full + ego_dp_versioning + ego_dp_versioning_mviews + ego_dp_versioning_overview + + + + +dataprocessing/sql_snippets/functions scripts +--------------------------------------------- + +.. toctree:: + :titlesonly: + :maxdepth: 7 + + functions/func_delete_double_rows + functions/func_drop_empty_table + functions/function_copy_comment_column + functions/function_copy_comment_mview + functions/function_copy_comment_table + functions/function_ego_scenario_log + functions/function_grant_oeuser + functions/function_query_metadata + functions/function_st_Buffer_Meters + functions/function_st_createfishnet + functions/function_st_relation_geometry + functions/function_st_safe_intersection + functions/function_utmzone + + + + + +dataprocessing/sql_snippets/rea scripts +--------------------------------------- + .. toctree:: :titlesonly: - :maxdepth: 2 + :maxdepth: 7 + + rea/ego_dp_conv + rea/ego_dp_lattice_500m + rea/ego_dp_lattice_50m + rea/ego_dp_rea_lattice_per_area_500m + rea/ego_dp_rea_lattice_per_area_50m + rea/ego_dp_rea_m1 + rea/ego_dp_rea_m2 + rea/ego_dp_rea_m3 + rea/ego_dp_rea_m4 + rea/ego_dp_rea_m5 + rea/ego_dp_rea_results + rea/ego_dp_rea_setup + rea/ego_dp_rea_wpa_per_mvgd + rea/ego_dp_wpa diff --git a/documentation/doc/dataprocessing/rea/ego_dp_conv.rst b/documentation/doc/dataprocessing/rea/ego_dp_conv.rst new file mode 100644 index 00000000..7d8a66ef --- /dev/null +++ b/documentation/doc/dataprocessing/rea/ego_dp_conv.rst @@ -0,0 +1,18 @@ +.. AUTOGENERATED - DO NOT TOUCH! + +ego_dp_conv.sql +###############Skript to allocate conventional power plants to loadareas + + +copyright + Reiner Lemoine Institut + +license + GNU Affero General Public License Version 3 (AGPL-3.0) + +url + https://github.com/openego/data_processing/blob/master/LICENSE + +author + Ludee + diff --git a/documentation/doc/dataprocessing/rea/ego_dp_lattice_500m.rst b/documentation/doc/dataprocessing/rea/ego_dp_lattice_500m.rst new file mode 100644 index 00000000..32179bcf --- /dev/null +++ b/documentation/doc/dataprocessing/rea/ego_dp_lattice_500m.rst @@ -0,0 +1,19 @@ +.. AUTOGENERATED - DO NOT TOUCH! + +ego_dp_lattice_500m.sql +#######################lattice (regular point grid) with 500m +lattice on bbox of Germany + + +copyright + Reiner Lemoine Institut + +license + GNU Affero General Public License Version 3 (AGPL-3.0) + +url + https://github.com/openego/data_processing/blob/master/LICENSE + +author + Ludee + diff --git a/documentation/doc/dataprocessing/rea/ego_dp_lattice_50m.rst b/documentation/doc/dataprocessing/rea/ego_dp_lattice_50m.rst new file mode 100644 index 00000000..1a1c4c26 --- /dev/null +++ b/documentation/doc/dataprocessing/rea/ego_dp_lattice_50m.rst @@ -0,0 +1,19 @@ +.. AUTOGENERATED - DO NOT TOUCH! + +ego_dp_lattice_50m.sql +######################lattice (regular point grid) with 50m +lattice on bbox of Germany + + +copyright + Reiner Lemoine Institut + +license + GNU Affero General Public License Version 3 (AGPL-3.0) + +url + https://github.com/openego/data_processing/blob/master/LICENSE + +author + Ludee + diff --git a/documentation/doc/dataprocessing/rea/ego_dp_rea_lattice_per_area_500m.rst b/documentation/doc/dataprocessing/rea/ego_dp_rea_lattice_per_area_500m.rst new file mode 100644 index 00000000..9b86f459 --- /dev/null +++ b/documentation/doc/dataprocessing/rea/ego_dp_rea_lattice_per_area_500m.rst @@ -0,0 +1,22 @@ +.. AUTOGENERATED - DO NOT TOUCH! + +ego_dp_rea_lattice_per_area_500m.sql +####################################lattice on bbox of Germany with 500m per area +wpa - points inside wind potential area +la - points inside loadarea +x - points inside wind potential area and loadarea +out - points outside area + + +copyright + Reiner Lemoine Institut + +license + GNU Affero General Public License Version 3 (AGPL-3.0) + +url + https://github.com/openego/data_processing/blob/master/LICENSE + +author + Ludee + diff --git a/documentation/doc/dataprocessing/rea/ego_dp_rea_lattice_per_area_50m.rst b/documentation/doc/dataprocessing/rea/ego_dp_rea_lattice_per_area_50m.rst new file mode 100644 index 00000000..6f78b442 --- /dev/null +++ b/documentation/doc/dataprocessing/rea/ego_dp_rea_lattice_per_area_50m.rst @@ -0,0 +1,19 @@ +.. AUTOGENERATED - DO NOT TOUCH! + +ego_dp_rea_lattice_per_area_50m.sql +###################################lattice on bbox of loadarea with 50m per area +la - points inside loadarea + + +copyright + Reiner Lemoine Institut + +license + GNU Affero General Public License Version 3 (AGPL-3.0) + +url + https://github.com/openego/data_processing/blob/master/LICENSE + +author + Ludee + diff --git a/documentation/doc/dataprocessing/rea/ego_dp_rea_m1.rst b/documentation/doc/dataprocessing/rea/ego_dp_rea_m1.rst new file mode 100644 index 00000000..864d7b48 --- /dev/null +++ b/documentation/doc/dataprocessing/rea/ego_dp_rea_m1.rst @@ -0,0 +1,20 @@ +.. AUTOGENERATED - DO NOT TOUCH! + +ego_dp_rea_m1.sql +#################Skript to allocate decentralized renewable power plants (dea) +Methods base on technology and voltage level +Uses different lattice from setup_ego_wpa_per_grid_district.sql + + +copyright + Reiner Lemoine Institut + +license + GNU Affero General Public License Version 3 (AGPL-3.0) + +url + https://github.com/openego/data_processing/blob/master/LICENSE + +author + Ludee + diff --git a/documentation/doc/dataprocessing/rea/ego_dp_rea_m2.rst b/documentation/doc/dataprocessing/rea/ego_dp_rea_m2.rst new file mode 100644 index 00000000..5de9efc4 --- /dev/null +++ b/documentation/doc/dataprocessing/rea/ego_dp_rea_m2.rst @@ -0,0 +1,20 @@ +.. AUTOGENERATED - DO NOT TOUCH! + +ego_dp_rea_m2.sql +#################Skript to allocate decentralized renewable power plants (dea) +Methods base on technology and voltage level +Uses different lattice from setup_ego_wpa_per_grid_district.sql + + +copyright + Reiner Lemoine Institut + +license + GNU Affero General Public License Version 3 (AGPL-3.0) + +url + https://github.com/openego/data_processing/blob/master/LICENSE + +author + Ludee + diff --git a/documentation/doc/dataprocessing/rea/ego_dp_rea_m3.rst b/documentation/doc/dataprocessing/rea/ego_dp_rea_m3.rst new file mode 100644 index 00000000..e0473c8a --- /dev/null +++ b/documentation/doc/dataprocessing/rea/ego_dp_rea_m3.rst @@ -0,0 +1,20 @@ +.. AUTOGENERATED - DO NOT TOUCH! + +ego_dp_rea_m3.sql +#################Skript to allocate decentralized renewable power plants (dea) +Methods base on technology and voltage level +Uses different lattice from setup_ego_wpa_per_grid_district.sql + + +copyright + Reiner Lemoine Institut + +license + GNU Affero General Public License Version 3 (AGPL-3.0) + +url + https://github.com/openego/data_processing/blob/master/LICENSE + +author + Ludee + diff --git a/documentation/doc/dataprocessing/rea/ego_dp_rea_m4.rst b/documentation/doc/dataprocessing/rea/ego_dp_rea_m4.rst new file mode 100644 index 00000000..05be02e1 --- /dev/null +++ b/documentation/doc/dataprocessing/rea/ego_dp_rea_m4.rst @@ -0,0 +1,20 @@ +.. AUTOGENERATED - DO NOT TOUCH! + +ego_dp_rea_m4.sql +#################Skript to allocate decentralized renewable power plants (dea) +Methods base on technology and voltage level +Uses different lattice from setup_ego_wpa_per_grid_district.sql + + +copyright + Reiner Lemoine Institut + +license + GNU Affero General Public License Version 3 (AGPL-3.0) + +url + https://github.com/openego/data_processing/blob/master/LICENSE + +author + Ludee + diff --git a/documentation/doc/dataprocessing/rea/ego_dp_rea_m5.rst b/documentation/doc/dataprocessing/rea/ego_dp_rea_m5.rst new file mode 100644 index 00000000..f36df3dc --- /dev/null +++ b/documentation/doc/dataprocessing/rea/ego_dp_rea_m5.rst @@ -0,0 +1,20 @@ +.. AUTOGENERATED - DO NOT TOUCH! + +ego_dp_rea_m5.sql +#################Skript to allocate decentralized renewable power plants (dea) +Methods base on technology and voltage level +Uses different lattice from setup_ego_wpa_per_grid_district.sql + + +copyright + Reiner Lemoine Institut + +license + GNU Affero General Public License Version 3 (AGPL-3.0) + +url + https://github.com/openego/data_processing/blob/master/LICENSE + +author + Ludee + diff --git a/documentation/doc/dataprocessing/rea/ego_dp_rea_results.rst b/documentation/doc/dataprocessing/rea/ego_dp_rea_results.rst new file mode 100644 index 00000000..fcaa189b --- /dev/null +++ b/documentation/doc/dataprocessing/rea/ego_dp_rea_results.rst @@ -0,0 +1,20 @@ +.. AUTOGENERATED - DO NOT TOUCH! + +ego_dp_rea_results.sql +######################Skript to allocate decentralized renewable power plants (dea) +Methods base on technology and voltage level +Uses different lattice from setup_ego_wpa_per_grid_district.sql + + +copyright + Reiner Lemoine Institut + +license + GNU Affero General Public License Version 3 (AGPL-3.0) + +url + https://github.com/openego/data_processing/blob/master/LICENSE + +author + Ludee + diff --git a/documentation/doc/dataprocessing/rea/ego_dp_rea_setup.rst b/documentation/doc/dataprocessing/rea/ego_dp_rea_setup.rst new file mode 100644 index 00000000..895f392a --- /dev/null +++ b/documentation/doc/dataprocessing/rea/ego_dp_rea_setup.rst @@ -0,0 +1,20 @@ +.. AUTOGENERATED - DO NOT TOUCH! + +ego_dp_rea_setup.sql +####################Skript to allocate decentralized renewable power plants (dea) +Methods base on technology and voltage level +Uses different lattice from setup_ego_wpa_per_grid_district.sql + + +copyright + Reiner Lemoine Institut + +license + GNU Affero General Public License Version 3 (AGPL-3.0) + +url + https://github.com/openego/data_processing/blob/master/LICENSE + +author + Ludee + diff --git a/documentation/doc/dataprocessing/rea/ego_dp_rea_wpa_per_mvgd.rst b/documentation/doc/dataprocessing/rea/ego_dp_rea_wpa_per_mvgd.rst new file mode 100644 index 00000000..ea2b57d2 --- /dev/null +++ b/documentation/doc/dataprocessing/rea/ego_dp_rea_wpa_per_mvgd.rst @@ -0,0 +1,20 @@ +.. AUTOGENERATED - DO NOT TOUCH! + +ego_dp_rea_wpa_per_mvgd.sql +###########################wind potential area per mv-griddistrict +wpa dump +wpa per mv-griddistrict + + +copyright + Reiner Lemoine Institut + +license + GNU Affero General Public License Version 3 (AGPL-3.0) + +url + https://github.com/openego/data_processing/blob/master/LICENSE + +author + Ludee + diff --git a/documentation/doc/dataprocessing/rea/ego_dp_wpa.rst b/documentation/doc/dataprocessing/rea/ego_dp_wpa.rst new file mode 100644 index 00000000..060f047d --- /dev/null +++ b/documentation/doc/dataprocessing/rea/ego_dp_wpa.rst @@ -0,0 +1,20 @@ +.. AUTOGENERATED - DO NOT TOUCH! + +ego_dp_wpa.sql +##############Skript to allocate decentralized renewable power plants (dea) +Methods base on technology and voltage level +Uses different lattice from setup_ego_wpa_per_grid_district.sql + + +copyright + Reiner Lemoine Institut + +license + GNU Affero General Public License Version 3 (AGPL-3.0) + +url + https://github.com/openego/data_processing/blob/master/LICENSE + +author + Ludee + From eb96a557faea444799b14781fad24604c0c8ac42 Mon Sep 17 00:00:00 2001 From: wolfbunke Date: Thu, 8 Feb 2018 16:25:26 +0100 Subject: [PATCH 067/104] add modules --- documentation/doc/index.rst | 7 ++- documentation/doc/preprocessing/modules.rst | 52 +++++++++++++++++++-- 2 files changed, 53 insertions(+), 6 deletions(-) diff --git a/documentation/doc/index.rst b/documentation/doc/index.rst index 3a6f19df..313032c7 100644 --- a/documentation/doc/index.rst +++ b/documentation/doc/index.rst @@ -3,12 +3,15 @@ Welcome to Data processing documentation of open_eGo - .. image:: https://openegoproject.files.wordpress.com/2017/02/open_ego_logo_breit.png?w=400 - :align: right :scale: 100% +[Add text here] + + + + diff --git a/documentation/doc/preprocessing/modules.rst b/documentation/doc/preprocessing/modules.rst index 00326407..ca938e29 100644 --- a/documentation/doc/preprocessing/modules.rst +++ b/documentation/doc/preprocessing/modules.rst @@ -8,14 +8,18 @@ Preprocessing Overview of scripts =================== + +preprocessing/sql_snippets/ scripts +----------------------------------- .. toctree:: :titlesonly: :maxdepth: 7 - (society/) - society/ego_pp_destatis_zensus_import - society/ego_pp_destatis_zensus_metadata - + destatis_gva_per_district + ego_demand_federalstate + ego_dp_conv_by_scenario + ego_dp_preprocessing_conv_powerplant + ego_dp_preprocessing_res_powerplant ego_dp_res_rea_by_scenario ego_dp_structure_boundaries_vg250 ego_dp_structure_census @@ -26,3 +30,43 @@ Overview of scripts ego_pre_slp_parameters ego_pre_voltage_level oedb_setup_schema_structure + opsd_powerdata + supply_ego_renewable_power_plants_germany + + +preprocessing/sql_snippets/boundaries scripts +--------------------------------------------- + +.. toctree:: + :titlesonly: + :maxdepth: 7 + + boundaries/ego_pp_gn250_import + boundaries/ego_pp_gn250_metadata + boundaries/ego_pp_vg250_import + boundaries/ego_pp_vg250_metadata + boundaries/ego_pp_vg250_mview + +preprocessing/sql_snippets/openstreetmap scripts +------------------------------------------ + +.. toctree:: + :titlesonly: + :maxdepth: 7 + + openstreetmap/ego_pp_osm_deu_import + openstreetmap/ego_pp_osm_deu_metadata + openstreetmap/ego_pp_osm_line_street_mview + openstreetmap/ego_pp_osm_polygon_building_mview + + + +preprocessing/sql_snippets/society scripts +------------------------------------------ + +.. toctree:: + :titlesonly: + :maxdepth: 7 + + society/ego_pp_destatis_zensus_import + society/ego_pp_destatis_zensus_metadata From d889bde1f03230600e7409ba5a3501bbbb8552bd Mon Sep 17 00:00:00 2001 From: Ludee Date: Thu, 8 Feb 2018 16:32:25 +0100 Subject: [PATCH 068/104] update docu LV --- dataprocessing/eGo_data_processing.py | 2 +- .../ego_dp_lv_consumption_peakload.sql | 294 +++--- .../sql_snippets/ego_dp_lv_griddistrict.sql | 509 +++++----- .../sql_snippets/ego_dp_lv_loadcut.sql | 16 +- .../sql_snippets/ego_dp_lv_substation.sql | 2 +- .../ego_dp_lv_substation_voronoi.sql | 6 +- .../ego_dp_bpmn_section_lowvoltage.graphml | 913 ++++++++++++++++++ .../bpmn/ego_dp_bpmn_sections.graphml | 91 +- 8 files changed, 1434 insertions(+), 399 deletions(-) create mode 100644 documentation/bpmn/ego_dp_bpmn_section_lowvoltage.graphml diff --git a/dataprocessing/eGo_data_processing.py b/dataprocessing/eGo_data_processing.py index 36623867..4c256b9a 100644 --- a/dataprocessing/eGo_data_processing.py +++ b/dataprocessing/eGo_data_processing.py @@ -73,7 +73,7 @@ def data_processing(): 'ego_dp_lv_loadcut.sql' # LV Loadcut 'ego_dp_lv_griddistrict.sql', # LV Griddistrict 'ego_dp_lv_consumption_peakload.sql', # LV Consumption and Peakload - + ## REA 'rea/ego_dp_lattice_500m.sql', # lattice (point grid) 500m 'rea/ego_dp_lattice_50m.sql', # lattice (point grid) 50m diff --git a/dataprocessing/sql_snippets/ego_dp_lv_consumption_peakload.sql b/dataprocessing/sql_snippets/ego_dp_lv_consumption_peakload.sql index 9cbc7c76..8b8f8ab7 100644 --- a/dataprocessing/sql_snippets/ego_dp_lv_consumption_peakload.sql +++ b/dataprocessing/sql_snippets/ego_dp_lv_consumption_peakload.sql @@ -1,160 +1,166 @@ /* -Update LV grid district table by - a. sectoral consumption in each LV grid district - b. sectoral peak load in each LV grid district - -__copyright__ = "Reiner Lemoine Institut" -__license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" -__url__ = "https://github.com/openego/data_processing/blob/master/LICENSE" -__author__ = "gplssm" +LV Consumption and Peakload +Update LV Griddistrict table by +a. sectoral consumption in each LV Griddistrict +b. sectoral peak load in each LV Griddistrict + +__copyright__ = "Reiner Lemoine Institut" +__license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" +__url__ = "https://github.com/openego/data_processing/blob/master/LICENSE" +__author__ = "gplssm" */ --- CONSUMPTION + +-- Consumption -- ego scenario log (version,io,schema_name,table_name,script_name,comment) SELECT ego_scenario_log('v0.3.0','input','model_draft','ego_demand_loadarea','ego_dp_lv_consumption_peakload.sql',' '); SELECT ego_scenario_log('v0.3.0','input','model_draft','ego_grid_lv_griddistrict','ego_dp_lv_consumption_peakload.sql',' '); --- residential -UPDATE model_draft.ego_grid_lv_griddistrict AS t1 - SET sector_consumption_residential = COALESCE(t2.real_cons,0) - FROM ( - WITH zensus_sum AS ( - SELECT lvgd.la_id, - SUM(lvgd.zensus_sum) AS lvgd_zensus_sum - FROM model_draft.ego_grid_lv_griddistrict AS lvgd - GROUP BY lvgd.la_id) - SELECT - lvgd.mvlv_subst_id as mvlv_subst_id, - la.id AS la_id, - la.sector_consumption_residential * lvgd.zensus_sum / zensus_sum.lvgd_zensus_sum AS real_cons - FROM model_draft.ego_demand_loadarea AS la - INNER JOIN model_draft.ego_grid_lv_griddistrict AS lvgd ON (la.id = lvgd.la_id) - INNER JOIN zensus_sum AS zensus_sum ON (zensus_sum.la_id = lvgd.la_id) - ) AS t2 - WHERE t1.mvlv_subst_id = t2.mvlv_subst_id; - - --- retail -UPDATE model_draft.ego_grid_lv_griddistrict AS t1 - SET sector_consumption_retail = COALESCE(t2.real_cons,0) - FROM ( - WITH lvgd_sector_area_retail_sum AS ( - SELECT lvgd.la_id, - SUM(lvgd.sector_area_retail) AS sum - FROM model_draft.ego_grid_lv_griddistrict AS lvgd - GROUP BY lvgd.la_id) - SELECT - lvgd.mvlv_subst_id as mvlv_subst_id, - la.id AS la_id, - la.sector_consumption_retail * lvgd.sector_area_retail / sum.sum AS real_cons - FROM model_draft.ego_demand_loadarea AS la - INNER JOIN model_draft.ego_grid_lv_griddistrict AS lvgd ON (la.id = lvgd.la_id) - INNER JOIN lvgd_sector_area_retail_sum AS sum ON (sum.la_id = lvgd.la_id) - ) AS t2 - WHERE t1.mvlv_subst_id = t2.mvlv_subst_id; - - --- industrial -UPDATE model_draft.ego_grid_lv_griddistrict AS t1 - SET sector_consumption_industrial = COALESCE(t2.real_cons,0) - FROM ( - WITH lvgd_sector_area_industrial_sum AS ( - SELECT lvgd.la_id, - SUM(lvgd.sector_area_industrial) AS sum - FROM model_draft.ego_grid_lv_griddistrict AS lvgd - GROUP BY lvgd.la_id) - SELECT - lvgd.mvlv_subst_id as mvlv_subst_id, - la.id AS la_id, - la.sector_consumption_industrial * lvgd.sector_area_industrial / sum.sum AS real_cons - FROM model_draft.ego_demand_loadarea AS la - INNER JOIN model_draft.ego_grid_lv_griddistrict AS lvgd ON (la.id = lvgd.la_id) - INNER JOIN lvgd_sector_area_industrial_sum AS sum ON (sum.la_id = lvgd.la_id) - ) AS t2 - WHERE t1.mvlv_subst_id = t2.mvlv_subst_id; - - --- agricultural -UPDATE model_draft.ego_grid_lv_griddistrict AS t1 - SET sector_consumption_agricultural = COALESCE(t2.real_cons,0) +-- Residential +UPDATE model_draft.ego_grid_lv_griddistrict AS t1 + SET sector_consumption_residential = COALESCE(t2.real_cons,0) + FROM ( + WITH zensus_sum AS ( + SELECT lvgd.la_id, + SUM(lvgd.zensus_sum) AS lvgd_zensus_sum + FROM model_draft.ego_grid_lv_griddistrict AS lvgd + GROUP BY lvgd.la_id) + SELECT + lvgd.mvlv_subst_id as mvlv_subst_id, + la.id AS la_id, + la.sector_consumption_residential * lvgd.zensus_sum / zensus_sum.lvgd_zensus_sum AS real_cons + FROM model_draft.ego_demand_loadarea AS la + INNER JOIN model_draft.ego_grid_lv_griddistrict AS lvgd ON (la.id = lvgd.la_id) + INNER JOIN zensus_sum AS zensus_sum ON (zensus_sum.la_id = lvgd.la_id) + ) AS t2 + WHERE t1.mvlv_subst_id = t2.mvlv_subst_id; + + +-- Retail +UPDATE model_draft.ego_grid_lv_griddistrict AS t1 + SET sector_consumption_retail = COALESCE(t2.real_cons,0) + FROM ( + WITH lvgd_sector_area_retail_sum AS ( + SELECT lvgd.la_id, + SUM(lvgd.sector_area_retail) AS sum + FROM model_draft.ego_grid_lv_griddistrict AS lvgd + GROUP BY lvgd.la_id) + SELECT + lvgd.mvlv_subst_id as mvlv_subst_id, + la.id AS la_id, + la.sector_consumption_retail * lvgd.sector_area_retail / sum.sum AS real_cons + FROM model_draft.ego_demand_loadarea AS la + INNER JOIN model_draft.ego_grid_lv_griddistrict AS lvgd ON (la.id = lvgd.la_id) + INNER JOIN lvgd_sector_area_retail_sum AS sum ON (sum.la_id = lvgd.la_id) + ) AS t2 + WHERE t1.mvlv_subst_id = t2.mvlv_subst_id; + + +-- Industrial +UPDATE model_draft.ego_grid_lv_griddistrict AS t1 + SET sector_consumption_industrial = COALESCE(t2.real_cons,0) + FROM ( + WITH lvgd_sector_area_industrial_sum AS ( + SELECT lvgd.la_id, + SUM(lvgd.sector_area_industrial) AS sum + FROM model_draft.ego_grid_lv_griddistrict AS lvgd + GROUP BY lvgd.la_id) + SELECT + lvgd.mvlv_subst_id as mvlv_subst_id, + la.id AS la_id, + la.sector_consumption_industrial * lvgd.sector_area_industrial / sum.sum AS real_cons + FROM model_draft.ego_demand_loadarea AS la + INNER JOIN model_draft.ego_grid_lv_griddistrict AS lvgd ON (la.id = lvgd.la_id) + INNER JOIN lvgd_sector_area_industrial_sum AS sum ON (sum.la_id = lvgd.la_id) + ) AS t2 + WHERE t1.mvlv_subst_id = t2.mvlv_subst_id; + + +-- Agricultural +UPDATE model_draft.ego_grid_lv_griddistrict AS t1 + SET sector_consumption_agricultural = COALESCE(t2.real_cons,0) FROM ( - WITH lvgd_sector_area_agricultural_sum AS ( - SELECT lvgd.la_id, - SUM(lvgd.sector_area_agricultural) AS sum - FROM model_draft.ego_grid_lv_griddistrict AS lvgd - GROUP BY lvgd.la_id) - SELECT - lvgd.mvlv_subst_id as mvlv_subst_id, - la.id AS la_id, - la.sector_consumption_agricultural * lvgd.sector_area_agricultural / sum.sum AS real_cons - FROM model_draft.ego_demand_loadarea AS la - INNER JOIN model_draft.ego_grid_lv_griddistrict AS lvgd ON (la.id = lvgd.la_id) - INNER JOIN lvgd_sector_area_agricultural_sum AS sum ON (sum.la_id = lvgd.la_id) - ) AS t2 - WHERE t1.mvlv_subst_id = t2.mvlv_subst_id; - - --- sum of all sectors -UPDATE model_draft.ego_grid_lv_griddistrict - SET sector_consumption_sum = - sector_consumption_residential + - sector_consumption_retail + - sector_consumption_industrial + - sector_consumption_agricultural; - - --- PEAK LOAD --- residential + WITH lvgd_sector_area_agricultural_sum AS ( + SELECT lvgd.la_id, + SUM(lvgd.sector_area_agricultural) AS sum + FROM model_draft.ego_grid_lv_griddistrict AS lvgd + GROUP BY lvgd.la_id) + SELECT + lvgd.mvlv_subst_id as mvlv_subst_id, + la.id AS la_id, + la.sector_consumption_agricultural * lvgd.sector_area_agricultural / sum.sum AS real_cons + FROM model_draft.ego_demand_loadarea AS la + INNER JOIN model_draft.ego_grid_lv_griddistrict AS lvgd ON (la.id = lvgd.la_id) + INNER JOIN lvgd_sector_area_agricultural_sum AS sum ON (sum.la_id = lvgd.la_id) + ) AS t2 + WHERE t1.mvlv_subst_id = t2.mvlv_subst_id; + + +-- Sum of all sectors +UPDATE model_draft.ego_grid_lv_griddistrict + SET sector_consumption_sum = + sector_consumption_residential + + sector_consumption_retail + + sector_consumption_industrial + + sector_consumption_agricultural; + + +-- Peakload + +-- ego scenario log (version,io,schema_name,table_name,script_name,comment) +SELECT ego_scenario_log('v0.3.0','input','scenario','ego_slp_parameters','ego_dp_lv_consumption_peakload.sql',' '); + +-- Residential UPDATE model_draft.ego_grid_lv_griddistrict as t1 - SET sector_peakload_residential = t2.peak_load - FROM ( - SELECT lvgd.mvlv_subst_id, - slp.value * lvgd.sector_consumption_residential AS peak_load - FROM - model_draft.ego_grid_lv_griddistrict AS lvgd, - scenario.ego_slp_parameters AS slp - WHERE slp.parameter = 'consumption_peak_h0') AS t2 - WHERE t1.mvlv_subst_id = t2.mvlv_subst_id; - - --- retail + SET sector_peakload_residential = t2.peak_load + FROM ( + SELECT lvgd.mvlv_subst_id, + slp.value * lvgd.sector_consumption_residential AS peak_load + FROM + model_draft.ego_grid_lv_griddistrict AS lvgd, + scenario.ego_slp_parameters AS slp + WHERE slp.parameter = 'consumption_peak_h0') AS t2 + WHERE t1.mvlv_subst_id = t2.mvlv_subst_id; + + +-- Retail UPDATE model_draft.ego_grid_lv_griddistrict as t1 - SET sector_peakload_retail = t2.peak_load - FROM ( - SELECT lvgd.mvlv_subst_id, - slp.value * lvgd.sector_consumption_retail AS peak_load - FROM - model_draft.ego_grid_lv_griddistrict AS lvgd, - scenario.ego_slp_parameters AS slp - WHERE slp.parameter = 'consumption_peak_g0') AS t2 - WHERE t1.mvlv_subst_id = t2.mvlv_subst_id; - - --- industrial + SET sector_peakload_retail = t2.peak_load + FROM ( + SELECT lvgd.mvlv_subst_id, + slp.value * lvgd.sector_consumption_retail AS peak_load + FROM + model_draft.ego_grid_lv_griddistrict AS lvgd, + scenario.ego_slp_parameters AS slp + WHERE slp.parameter = 'consumption_peak_g0') AS t2 + WHERE t1.mvlv_subst_id = t2.mvlv_subst_id; + + +-- Industrial UPDATE model_draft.ego_grid_lv_griddistrict as t1 - SET sector_peakload_industrial = t2.peak_load - FROM ( - SELECT lvgd.mvlv_subst_id, - slp.value * lvgd.sector_consumption_industrial AS peak_load - FROM - model_draft.ego_grid_lv_griddistrict AS lvgd, - scenario.ego_slp_parameters AS slp - WHERE slp.parameter = 'consumption_peak_i0') AS t2 - WHERE t1.mvlv_subst_id = t2.mvlv_subst_id; - - --- agricultural + SET sector_peakload_industrial = t2.peak_load + FROM ( + SELECT lvgd.mvlv_subst_id, + slp.value * lvgd.sector_consumption_industrial AS peak_load + FROM + model_draft.ego_grid_lv_griddistrict AS lvgd, + scenario.ego_slp_parameters AS slp + WHERE slp.parameter = 'consumption_peak_i0') AS t2 + WHERE t1.mvlv_subst_id = t2.mvlv_subst_id; + + +-- Agricultural UPDATE model_draft.ego_grid_lv_griddistrict as t1 - SET sector_peakload_agricultural = t2.peak_load - FROM ( - SELECT lvgd.mvlv_subst_id, - slp.value * lvgd.sector_consumption_agricultural AS peak_load - FROM - model_draft.ego_grid_lv_griddistrict AS lvgd, - scenario.ego_slp_parameters AS slp - WHERE slp.parameter = 'consumption_peak_l0') AS t2 - WHERE t1.mvlv_subst_id = t2.mvlv_subst_id; + SET sector_peakload_agricultural = t2.peak_load + FROM ( + SELECT lvgd.mvlv_subst_id, + slp.value * lvgd.sector_consumption_agricultural AS peak_load + FROM + model_draft.ego_grid_lv_griddistrict AS lvgd, + scenario.ego_slp_parameters AS slp + WHERE slp.parameter = 'consumption_peak_l0') AS t2 + WHERE t1.mvlv_subst_id = t2.mvlv_subst_id; -- ego scenario log (version,io,schema_name,table_name,script_name,comment) SELECT ego_scenario_log('v0.3.0','output','model_draft','ego_grid_lv_griddistrict','ego_dp_lv_consumption_peakload.sql',' '); diff --git a/dataprocessing/sql_snippets/ego_dp_lv_griddistrict.sql b/dataprocessing/sql_snippets/ego_dp_lv_griddistrict.sql index 2f45cdcc..018489fb 100644 --- a/dataprocessing/sql_snippets/ego_dp_lv_griddistrict.sql +++ b/dataprocessing/sql_snippets/ego_dp_lv_griddistrict.sql @@ -1,5 +1,7 @@ /* -In progess +LV Griddistrict +Create LV Griddistrict from MVLV Substation. +Generate OSM landuse per sectors. __copyright__ = "Reiner Lemoine Institut" __license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" @@ -11,161 +13,175 @@ __author__ = "Ludee, jong42" -- collect and union DROP TABLE IF EXISTS model_draft.ego_grid_lv_griddistrict CASCADE; CREATE TABLE model_draft.ego_grid_lv_griddistrict ( - id integer, - mvlv_subst_id integer, - subst_id integer, - la_id integer, - nn boolean, - subst_cnt integer, - zensus_sum integer, - zensus_count integer, - zensus_density double precision, - population_density double precision, - area_ha double precision, - sector_area_residential double precision, - sector_area_retail double precision, - sector_area_industrial double precision, - sector_area_agricultural double precision, - sector_area_sum double precision, - sector_share_residential double precision, - sector_share_retail double precision, - sector_share_industrial double precision, - sector_share_agricultural double precision, - sector_share_sum double precision, - sector_count_residential integer, - sector_count_retail integer, - sector_count_industrial integer, - sector_count_agricultural integer, - sector_count_sum integer, - sector_consumption_residential double precision, - sector_consumption_retail double precision, - sector_consumption_industrial double precision, + id integer, + mvlv_subst_id integer, + subst_id integer, + la_id integer, + nn boolean, + subst_cnt integer, + zensus_sum integer, + zensus_count integer, + zensus_density double precision, + population_density double precision, + area_ha double precision, + sector_area_residential double precision, + sector_area_retail double precision, + sector_area_industrial double precision, + sector_area_agricultural double precision, + sector_area_sum double precision, + sector_share_residential double precision, + sector_share_retail double precision, + sector_share_industrial double precision, + sector_share_agricultural double precision, + sector_share_sum double precision, + sector_count_residential integer, + sector_count_retail integer, + sector_count_industrial integer, + sector_count_agricultural integer, + sector_count_sum integer, + sector_consumption_residential double precision, + sector_consumption_retail double precision, + sector_consumption_industrial double precision, sector_consumption_agricultural double precision, - sector_consumption_sum double precision, - sector_peakload_residential double precision, - sector_peakload_retail double precision, - sector_peakload_industrial double precision, - sector_peakload_agricultural double precision, - geom geometry(MultiPolygon,3035), + sector_consumption_sum double precision, + sector_peakload_residential double precision, + sector_peakload_retail double precision, + sector_peakload_industrial double precision, + sector_peakload_agricultural double precision, + geom geometry(MultiPolygon,3035), CONSTRAINT ego_grid_lv_griddistrict_pkey PRIMARY KEY (id) ); +-- index GIST (geom) +CREATE INDEX ego_grid_lv_griddistrict_gidx + ON model_draft.ego_grid_lv_griddistrict USING GIST (geom); + -- grant (oeuser) -ALTER TABLE model_draft.ego_grid_lv_griddistrict OWNER TO oeuser; +ALTER TABLE model_draft.ego_grid_lv_griddistrict OWNER TO oeuser; --- index GIST (geom) -CREATE INDEX ego_grid_lv_griddistrict_gidx - ON model_draft.ego_grid_lv_griddistrict USING GIST (geom); +-- metadata +COMMENT ON TABLE model_draft.ego_grid_lv_griddistrict IS '{ + "comment": "eGoDP - Temporary table", + "version": "v0.3.0" }' ; -- insert -INSERT INTO model_draft.ego_grid_lv_griddistrict (id,mvlv_subst_id,subst_id,la_id,nn,geom) - SELECT * - FROM model_draft.ego_grid_lv_griddistrict_cut_nn_collect - ORDER BY mvlv_subst_id; +INSERT INTO model_draft.ego_grid_lv_griddistrict (id,mvlv_subst_id,subst_id,la_id,nn,geom) + SELECT * + FROM model_draft.ego_grid_lv_griddistrict_cut_nn_collect + ORDER BY mvlv_subst_id; -- ego scenario log (version,io,schema_name,table_name,script_name,comment) -SELECT ego_scenario_log('v0.3.0','input','model_draft','ego_grid_mvlv_substation','ego_dp_lv_peakload.sql',' '); +SELECT ego_scenario_log('v0.3.0','input','model_draft','ego_grid_mvlv_substation','ego_dp_lv_griddistrict.sql',' '); -- mvlv substation count -UPDATE model_draft.ego_grid_lv_griddistrict AS t1 - SET subst_cnt = t2.subst_cnt - FROM (SELECT a.id AS id, - COUNT(b.geom)::integer AS subst_cnt - FROM model_draft.ego_grid_lv_griddistrict AS a, - model_draft.ego_grid_mvlv_substation AS b - WHERE a.geom && b.geom AND - ST_CONTAINS(a.geom,b.geom) - GROUP BY a.id - )AS t2 - WHERE t1.id = t2.id; +UPDATE model_draft.ego_grid_lv_griddistrict AS t1 + SET subst_cnt = t2.subst_cnt + FROM ( + SELECT a.id AS id, + COUNT(b.geom)::integer AS subst_cnt + FROM model_draft.ego_grid_lv_griddistrict AS a, + model_draft.ego_grid_mvlv_substation AS b + WHERE a.geom && b.geom AND + ST_CONTAINS(a.geom,b.geom) + GROUP BY a.id + )AS t2 + WHERE t1.id = t2.id; -- update area (area_ha) -UPDATE model_draft.ego_grid_lv_griddistrict AS t1 - SET area_ha = t2.area - FROM (SELECT id, - ST_AREA(ST_TRANSFORM(geom,3035))/10000 AS area - FROM model_draft.ego_grid_lv_griddistrict - ) AS t2 - WHERE t1.id = t2.id; - - +UPDATE model_draft.ego_grid_lv_griddistrict AS t1 + SET area_ha = t2.area + FROM ( + SELECT id, + ST_AREA(ST_TRANSFORM(geom,3035))/10000 AS area + FROM model_draft.ego_grid_lv_griddistrict + ) AS t2 + WHERE t1.id = t2.id; + + -- ego scenario log (version,io,schema_name,table_name,script_name,comment) -SELECT ego_scenario_log('v0.3.0','input','society','destatis_zensus_population_per_ha_mview','ego_dp_lv_peakload.sql',' '); +SELECT ego_scenario_log('v0.3.0','input','society','destatis_zensus_population_per_ha_mview','ego_dp_lv_griddistrict.sql',' '); -- zensus 2011 population -UPDATE model_draft.ego_grid_lv_griddistrict AS t1 - SET zensus_sum = t2.zensus_sum, - zensus_count = t2.zensus_count, - zensus_density = t2.zensus_density - FROM (SELECT a.id AS id, - SUM(b.population)::integer AS zensus_sum, - COUNT(b.geom_point)::integer AS zensus_count, - (SUM(b.population)/COUNT(b.geom_point))::numeric AS zensus_density - FROM model_draft.ego_grid_lv_griddistrict AS a, - society.destatis_zensus_population_per_ha_mview AS b - WHERE a.geom && b.geom_point AND - ST_CONTAINS(a.geom,b.geom_point) - GROUP BY a.id - )AS t2 - WHERE t1.id = t2.id; - - - --- 1. residential sector -DROP TABLE IF EXISTS model_draft.ego_osm_sector_per_lvgd_1_residential CASCADE; -CREATE TABLE model_draft.ego_osm_sector_per_lvgd_1_residential ( - id SERIAL NOT NULL, - geom geometry(Polygon,3035), - CONSTRAINT ego_osm_sector_per_lvgd_1_residential_pkey PRIMARY KEY (id)); +UPDATE model_draft.ego_grid_lv_griddistrict AS t1 + SET zensus_sum = t2.zensus_sum, + zensus_count = t2.zensus_count, + zensus_density = t2.zensus_density + FROM ( + SELECT a.id AS id, + SUM(b.population)::integer AS zensus_sum, + COUNT(b.geom_point)::integer AS zensus_count, + (SUM(b.population)/COUNT(b.geom_point))::numeric AS zensus_density + FROM model_draft.ego_grid_lv_griddistrict AS a, + society.destatis_zensus_population_per_ha_mview AS b + WHERE a.geom && b.geom_point AND + ST_CONTAINS(a.geom,b.geom_point) + GROUP BY a.id + )AS t2 + WHERE t1.id = t2.id; + + +-- 1. Residential sector +DROP TABLE IF EXISTS model_draft.ego_osm_sector_per_lvgd_1_residential CASCADE; +CREATE TABLE model_draft.ego_osm_sector_per_lvgd_1_residential ( + id SERIAL NOT NULL, + geom geometry(Polygon,3035), + CONSTRAINT ego_osm_sector_per_lvgd_1_residential_pkey PRIMARY KEY (id)); -- index GIST (geom) -CREATE INDEX ego_osm_sector_per_lvgd_1_residential_gidx - ON model_draft.ego_osm_sector_per_lvgd_1_residential USING GIST (geom); +CREATE INDEX ego_osm_sector_per_lvgd_1_residential_gidx + ON model_draft.ego_osm_sector_per_lvgd_1_residential USING GIST (geom); -- grant (oeuser) -ALTER TABLE model_draft.ego_osm_sector_per_lvgd_1_residential OWNER TO oeuser; +ALTER TABLE model_draft.ego_osm_sector_per_lvgd_1_residential OWNER TO oeuser; + +-- metadata +COMMENT ON TABLE model_draft.ego_osm_sector_per_lvgd_1_residential IS '{ + "comment": "eGoDP - Temporary table", + "version": "v0.3.0" }' ; -- ego scenario log (version,io,schema_name,table_name,script_name,comment) -SELECT ego_scenario_log('v0.3.0','input','model_draft','ego_osm_sector_per_griddistrict_1_residential','ego_dp_lv_peakload.sql',' '); +SELECT ego_scenario_log('v0.3.0','input','model_draft','ego_osm_sector_per_griddistrict_1_residential','ego_dp_lv_griddistrict.sql',' '); -- intersect sector with mv-griddistrict -INSERT INTO model_draft.ego_osm_sector_per_lvgd_1_residential (geom) - SELECT c.geom ::geometry(Polygon,3035) - FROM (SELECT (ST_DUMP(ST_SAFE_INTERSECTION(a.geom,b.geom))).geom AS geom - FROM model_draft.ego_osm_sector_per_griddistrict_1_residential AS a, - model_draft.ego_grid_lv_griddistrict AS b - WHERE a.geom && b.geom - ) AS c - WHERE ST_GeometryType(c.geom) = 'ST_Polygon'; +INSERT INTO model_draft.ego_osm_sector_per_lvgd_1_residential (geom) + SELECT c.geom ::geometry(Polygon,3035) + FROM ( + SELECT (ST_DUMP(ST_SAFE_INTERSECTION(a.geom,b.geom))).geom AS geom + FROM model_draft.ego_osm_sector_per_griddistrict_1_residential AS a, + model_draft.ego_grid_lv_griddistrict AS b + WHERE a.geom && b.geom + ) AS c + WHERE ST_GeometryType(c.geom) = 'ST_Polygon'; -- sector stats -UPDATE model_draft.ego_grid_lv_griddistrict AS t1 - SET sector_area_residential = t2.sector_area, - sector_count_residential = t2.sector_count, - sector_share_residential = t2.sector_area / t2.area_ha - FROM (SELECT b.id AS id, - SUM(ST_AREA(a.geom)/10000) AS sector_area, - COUNT(a.geom) AS sector_count, - b.area_ha AS area_ha - FROM model_draft.ego_osm_sector_per_lvgd_1_residential AS a, - model_draft.ego_grid_lv_griddistrict AS b - WHERE b.geom && a.geom AND - ST_INTERSECTS(b.geom,ST_BUFFER(a.geom,-1)) - GROUP BY b.id - ) AS t2 - WHERE t1.id = t2.id; +UPDATE model_draft.ego_grid_lv_griddistrict AS t1 + SET sector_area_residential = t2.sector_area, + sector_count_residential = t2.sector_count, + sector_share_residential = t2.sector_area / t2.area_ha + FROM ( + SELECT b.id AS id, + SUM(ST_AREA(a.geom)/10000) AS sector_area, + COUNT(a.geom) AS sector_count, + b.area_ha AS area_ha + FROM model_draft.ego_osm_sector_per_lvgd_1_residential AS a, + model_draft.ego_grid_lv_griddistrict AS b + WHERE b.geom && a.geom AND + ST_INTERSECTS(b.geom,ST_BUFFER(a.geom,-1)) + GROUP BY b.id + ) AS t2 + WHERE t1.id = t2.id; -- ego scenario log (version,io,schema_name,table_name,script_name,comment) -SELECT ego_scenario_log('v0.3.0','output','model_draft','ego_osm_sector_per_lvgd_1_residential','ego_dp_lv_peakload.sql',' '); +SELECT ego_scenario_log('v0.3.0','output','model_draft','ego_osm_sector_per_lvgd_1_residential','ego_dp_lv_griddistrict.sql',' '); --- 2. retail sector +-- 2. Retail sector DROP TABLE IF EXISTS model_draft.ego_osm_sector_per_lvgd_2_retail CASCADE; CREATE TABLE model_draft.ego_osm_sector_per_lvgd_2_retail ( - id SERIAL NOT NULL, - geom geometry(Polygon,3035), - CONSTRAINT ego_osm_sector_per_lvgd_2_retail_pkey PRIMARY KEY (id)); + id SERIAL NOT NULL, + geom geometry(Polygon,3035), + CONSTRAINT ego_osm_sector_per_lvgd_2_retail_pkey PRIMARY KEY (id)); -- index GIST (geom) CREATE INDEX ego_osm_sector_per_lvgd_2_retail_gidx @@ -174,46 +190,51 @@ CREATE INDEX ego_osm_sector_per_lvgd_2_retail_gidx -- grant (oeuser) ALTER TABLE model_draft.ego_osm_sector_per_lvgd_2_retail OWNER TO oeuser; +-- metadata +COMMENT ON TABLE model_draft.ego_osm_sector_per_lvgd_2_retail IS '{ + "comment": "eGoDP - Temporary table", + "version": "v0.3.0" }' ; + -- ego scenario log (version,io,schema_name,table_name,script_name,comment) -SELECT ego_scenario_log('v0.3.0','input','model_draft','ego_osm_sector_per_griddistrict_2_retail','ego_dp_lv_peakload.sql',' '); +SELECT ego_scenario_log('v0.3.0','input','model_draft','ego_osm_sector_per_griddistrict_2_retail','ego_dp_lv_griddistrict.sql',' '); -- intersect sector with mv-griddistrict INSERT INTO model_draft.ego_osm_sector_per_lvgd_2_retail (geom) - SELECT c.geom ::geometry(Polygon,3035) - FROM (SELECT (ST_DUMP(ST_SAFE_INTERSECTION(a.geom,b.geom))).geom AS geom - FROM model_draft.ego_osm_sector_per_griddistrict_2_retail AS a, - model_draft.ego_grid_lv_griddistrict AS b - WHERE a.geom && b.geom - ) AS c - WHERE ST_GeometryType(c.geom) = 'ST_Polygon'; + SELECT c.geom ::geometry(Polygon,3035) + FROM (SELECT (ST_DUMP(ST_SAFE_INTERSECTION(a.geom,b.geom))).geom AS geom + FROM model_draft.ego_osm_sector_per_griddistrict_2_retail AS a, + model_draft.ego_grid_lv_griddistrict AS b + WHERE a.geom && b.geom + ) AS c + WHERE ST_GeometryType(c.geom) = 'ST_Polygon'; -- sector stats UPDATE model_draft.ego_grid_lv_griddistrict AS t1 - SET sector_area_retail = t2.sector_area, - sector_count_retail = t2.sector_count, - sector_share_retail = t2.sector_area / t2.area_ha - FROM (SELECT b.id AS id, - SUM(ST_AREA(a.geom)/10000) AS sector_area, - COUNT(a.geom) AS sector_count, - b.area_ha AS area_ha - FROM model_draft.ego_osm_sector_per_lvgd_2_retail AS a, - model_draft.ego_grid_lv_griddistrict AS b - WHERE b.geom && a.geom AND - ST_INTERSECTS(b.geom,ST_BUFFER(a.geom,-1)) - GROUP BY b.id - ) AS t2 - WHERE t1.id = t2.id; + SET sector_area_retail = t2.sector_area, + sector_count_retail = t2.sector_count, + sector_share_retail = t2.sector_area / t2.area_ha + FROM (SELECT b.id AS id, + SUM(ST_AREA(a.geom)/10000) AS sector_area, + COUNT(a.geom) AS sector_count, + b.area_ha AS area_ha + FROM model_draft.ego_osm_sector_per_lvgd_2_retail AS a, + model_draft.ego_grid_lv_griddistrict AS b + WHERE b.geom && a.geom AND + ST_INTERSECTS(b.geom,ST_BUFFER(a.geom,-1)) + GROUP BY b.id + ) AS t2 + WHERE t1.id = t2.id; -- ego scenario log (version,io,schema_name,table_name,script_name,comment) -SELECT ego_scenario_log('v0.3.0','output','model_draft','ego_osm_sector_per_lvgd_2_retail','ego_dp_lv_peakload.sql',' '); +SELECT ego_scenario_log('v0.3.0','output','model_draft','ego_osm_sector_per_lvgd_2_retail','ego_dp_lv_griddistrict.sql',' '); --- 3. industrial sector +-- 3. Industrial sector DROP TABLE IF EXISTS model_draft.ego_osm_sector_per_lvgd_3_industrial CASCADE; CREATE TABLE model_draft.ego_osm_sector_per_lvgd_3_industrial ( - id SERIAL NOT NULL, - geom geometry(Polygon,3035), - CONSTRAINT ego_osm_sector_per_lvgd_3_industrial_pkey PRIMARY KEY (id)); + id SERIAL NOT NULL, + geom geometry(Polygon,3035), + CONSTRAINT ego_osm_sector_per_lvgd_3_industrial_pkey PRIMARY KEY (id)); -- index GIST (geom) CREATE INDEX ego_osm_sector_per_lvgd_3_industrial_gidx @@ -222,47 +243,52 @@ CREATE INDEX ego_osm_sector_per_lvgd_3_industrial_gidx -- grant (oeuser) ALTER TABLE model_draft.ego_osm_sector_per_lvgd_3_industrial OWNER TO oeuser; +-- metadata +COMMENT ON TABLE model_draft.ego_osm_sector_per_lvgd_3_industrial IS '{ + "comment": "eGoDP - Temporary table", + "version": "v0.3.0" }' ; + -- ego scenario log (version,io,schema_name,table_name,script_name,comment) -SELECT ego_scenario_log('v0.3.0','input','model_draft','ego_osm_sector_per_griddistrict_3_industrial','ego_dp_lv_peakload.sql',' '); +SELECT ego_scenario_log('v0.3.0','input','model_draft','ego_osm_sector_per_griddistrict_3_industrial','ego_dp_lv_griddistrict.sql',' '); -- intersect sector with mv-griddistrict INSERT INTO model_draft.ego_osm_sector_per_lvgd_3_industrial (geom) - SELECT c.geom ::geometry(Polygon,3035) - FROM (SELECT (ST_DUMP(ST_SAFE_INTERSECTION(a.geom,b.geom))).geom AS geom - FROM model_draft.ego_osm_sector_per_griddistrict_3_industrial AS a, - model_draft.ego_grid_lv_griddistrict AS b - WHERE a.geom && b.geom - ) AS c - WHERE ST_GeometryType(c.geom) = 'ST_Polygon'; + SELECT c.geom ::geometry(Polygon,3035) + FROM (SELECT (ST_DUMP(ST_SAFE_INTERSECTION(a.geom,b.geom))).geom AS geom + FROM model_draft.ego_osm_sector_per_griddistrict_3_industrial AS a, + model_draft.ego_grid_lv_griddistrict AS b + WHERE a.geom && b.geom + ) AS c + WHERE ST_GeometryType(c.geom) = 'ST_Polygon'; -- sector stats UPDATE model_draft.ego_grid_lv_griddistrict AS t1 - SET sector_area_industrial = t2.sector_area, - sector_count_industrial = t2.sector_count, - sector_share_industrial = t2.sector_area / t2.area_ha - FROM (SELECT b.id AS id, - SUM(ST_AREA(a.geom)/10000) AS sector_area, - COUNT(a.geom) AS sector_count, - b.area_ha AS area_ha - FROM model_draft.ego_osm_sector_per_lvgd_3_industrial AS a, - model_draft.ego_grid_lv_griddistrict AS b - WHERE b.geom && a.geom AND - ST_INTERSECTS(b.geom,ST_BUFFER(a.geom,-1)) - GROUP BY b.id - ) AS t2 - WHERE t1.id = t2.id; + SET sector_area_industrial = t2.sector_area, + sector_count_industrial = t2.sector_count, + sector_share_industrial = t2.sector_area / t2.area_ha + FROM (SELECT b.id AS id, + SUM(ST_AREA(a.geom)/10000) AS sector_area, + COUNT(a.geom) AS sector_count, + b.area_ha AS area_ha + FROM model_draft.ego_osm_sector_per_lvgd_3_industrial AS a, + model_draft.ego_grid_lv_griddistrict AS b + WHERE b.geom && a.geom AND + ST_INTERSECTS(b.geom,ST_BUFFER(a.geom,-1)) + GROUP BY b.id + ) AS t2 + WHERE t1.id = t2.id; -- ego scenario log (version,io,schema_name,table_name,script_name,comment) -SELECT ego_scenario_log('v0.3.0','output','model_draft','ego_osm_sector_per_lvgd_3_industrial','ego_dp_lv_peakload.sql',' '); +SELECT ego_scenario_log('v0.3.0','output','model_draft','ego_osm_sector_per_lvgd_3_industrial','ego_dp_lv_griddistrict.sql',' '); --- 4. agricultural sector +-- 4. Agricultural sector DROP TABLE IF EXISTS model_draft.ego_osm_sector_per_lvgd_4_agricultural CASCADE; CREATE TABLE model_draft.ego_osm_sector_per_lvgd_4_agricultural ( - id SERIAL NOT NULL, - geom geometry(Polygon,3035), - CONSTRAINT ego_osm_sector_per_lvgd_4_agricultural_pkey PRIMARY KEY (id)); + id SERIAL NOT NULL, + geom geometry(Polygon,3035), + CONSTRAINT ego_osm_sector_per_lvgd_4_agricultural_pkey PRIMARY KEY (id)); -- index GIST (geom) CREATE INDEX ego_osm_sector_per_lvgd_4_agricultural_gidx @@ -271,78 +297,89 @@ CREATE INDEX ego_osm_sector_per_lvgd_4_agricultural_gidx -- grant (oeuser) ALTER TABLE model_draft.ego_osm_sector_per_lvgd_4_agricultural OWNER TO oeuser; +-- metadata +COMMENT ON TABLE model_draft.ego_osm_sector_per_lvgd_4_agricultural IS '{ + "comment": "eGoDP - Temporary table", + "version": "v0.3.0" }' ; + -- ego scenario log (version,io,schema_name,table_name,script_name,comment) -SELECT ego_scenario_log('v0.3.0','input','model_draft','ego_osm_sector_per_griddistrict_4_agricultural','ego_dp_lv_peakload.sql',' '); +SELECT ego_scenario_log('v0.3.0','input','model_draft','ego_osm_sector_per_griddistrict_4_agricultural','ego_dp_lv_griddistrict.sql',' '); -- intersect sector with mv-griddistrict INSERT INTO model_draft.ego_osm_sector_per_lvgd_4_agricultural (geom) - SELECT c.geom ::geometry(Polygon,3035) - FROM (SELECT (ST_DUMP(ST_SAFE_INTERSECTION(a.geom,b.geom))).geom AS geom - FROM model_draft.ego_osm_sector_per_griddistrict_4_agricultural AS a, - model_draft.ego_grid_lv_griddistrict AS b - WHERE a.geom && b.geom - ) AS c - WHERE ST_GeometryType(c.geom) = 'ST_Polygon'; + SELECT c.geom ::geometry(Polygon,3035) + FROM (SELECT (ST_DUMP(ST_SAFE_INTERSECTION(a.geom,b.geom))).geom AS geom + FROM model_draft.ego_osm_sector_per_griddistrict_4_agricultural AS a, + model_draft.ego_grid_lv_griddistrict AS b + WHERE a.geom && b.geom + ) AS c + WHERE ST_GeometryType(c.geom) = 'ST_Polygon'; -- sector stats UPDATE model_draft.ego_grid_lv_griddistrict AS t1 - SET sector_area_agricultural = t2.sector_area, - sector_count_agricultural = t2.sector_count, - sector_share_agricultural = t2.sector_area / t2.area_ha - FROM (SELECT b.id AS id, - SUM(ST_AREA(a.geom)/10000) AS sector_area, - COUNT(a.geom) AS sector_count, - b.area_ha AS area_ha - FROM model_draft.ego_osm_sector_per_lvgd_4_agricultural AS a, - model_draft.ego_grid_lv_griddistrict AS b - WHERE b.geom && a.geom AND - ST_INTERSECTS(b.geom,ST_BUFFER(a.geom,-1)) - GROUP BY b.id - ) AS t2 - WHERE t1.id = t2.id; + SET sector_area_agricultural = t2.sector_area, + sector_count_agricultural = t2.sector_count, + sector_share_agricultural = t2.sector_area / t2.area_ha + FROM (SELECT b.id AS id, + SUM(ST_AREA(a.geom)/10000) AS sector_area, + COUNT(a.geom) AS sector_count, + b.area_ha AS area_ha + FROM model_draft.ego_osm_sector_per_lvgd_4_agricultural AS a, + model_draft.ego_grid_lv_griddistrict AS b + WHERE b.geom && a.geom AND + ST_INTERSECTS(b.geom,ST_BUFFER(a.geom,-1)) + GROUP BY b.id + ) AS t2 + WHERE t1.id = t2.id; -- ego scenario log (version,io,schema_name,table_name,script_name,comment) -SELECT ego_scenario_log('v0.3.0','output','model_draft','ego_osm_sector_per_lvgd_4_agricultural','ego_dp_lv_peakload.sql',' '); +SELECT ego_scenario_log('v0.3.0','output','model_draft','ego_osm_sector_per_lvgd_4_agricultural','ego_dp_lv_griddistrict.sql',' '); -- sector stats -UPDATE model_draft.ego_grid_lv_griddistrict AS t1 - SET sector_area_sum = t2.sector_area_sum, - sector_share_sum = t2.sector_share_sum, - sector_count_sum = t2.sector_count_sum - FROM ( - SELECT id, - coalesce(sector_area_residential,0) + - coalesce(sector_area_retail,0) + - coalesce(sector_area_industrial,0) + - coalesce(sector_area_agricultural,0) AS sector_area_sum, - coalesce(sector_share_residential,0) + - coalesce(sector_share_retail,0) + - coalesce(sector_share_industrial,0) + - coalesce(sector_share_agricultural,0) AS sector_share_sum, - coalesce(sector_count_residential,0) + - coalesce(sector_count_retail,0) + - coalesce(sector_count_industrial,0) + - coalesce(sector_count_agricultural,0) AS sector_count_sum - FROM model_draft.ego_grid_lv_griddistrict - ) AS t2 - WHERE t1.id = t2.id; - - -/* -- add count + UPDATE model_draft.ego_grid_lv_griddistrict AS t1 + SET sector_area_sum = t2.sector_area_sum, + sector_share_sum = t2.sector_share_sum, + sector_count_sum = t2.sector_count_sum + FROM ( + SELECT id, + coalesce(sector_area_residential,0) + + coalesce(sector_area_retail,0) + + coalesce(sector_area_industrial,0) + + coalesce(sector_area_agricultural,0) AS sector_area_sum, + coalesce(sector_share_residential,0) + + coalesce(sector_share_retail,0) + + coalesce(sector_share_industrial,0) + + coalesce(sector_share_agricultural,0) AS sector_share_sum, + coalesce(sector_count_residential,0) + + coalesce(sector_count_retail,0) + + coalesce(sector_count_industrial,0) + + coalesce(sector_count_agricultural,0) AS sector_count_sum + FROM model_draft.ego_grid_lv_griddistrict + ) AS t2 + WHERE t1.id = t2.id; + +-- ego scenario log (version,io,schema_name,table_name,script_name,comment) +SELECT ego_scenario_log('v0.3.0','output','model_draft','ego_grid_lv_griddistrict','ego_dp_lv_griddistrict.sql',' '); + + +/* +-- add count ALTER TABLE grid.ego_dp_mvlv_substation - DROP COLUMN IF EXISTS subst_cnt, - ADD COLUMN subst_cnt integer; + DROP COLUMN IF EXISTS subst_cnt, + ADD COLUMN subst_cnt integer; -- mvlv substation count -UPDATE grid.ego_dp_mvlv_substation AS t1 - SET subst_cnt = t2.subst_cnt - FROM (SELECT a.mvlv_subst_id AS id, - COUNT(b.geom)::integer AS subst_cnt - FROM grid.ego_dp_mvlv_substation AS a, - grid.ego_dp_lv_griddistrict AS b - WHERE a.geom && b.geom AND - ST_CONTAINS(b.geom,a.geom) - GROUP BY a.mvlv_subst_id - )AS t2 - WHERE t1.mvlv_subst_id = t2.id; */ +UPDATE grid.ego_dp_mvlv_substation AS t1 + SET subst_cnt = t2.subst_cnt + FROM ( + SELECT a.mvlv_subst_id AS id, + COUNT(b.geom)::integer AS subst_cnt + FROM grid.ego_dp_mvlv_substation AS a, + grid.ego_dp_lv_griddistrict AS b + WHERE a.geom && b.geom AND + ST_CONTAINS(b.geom,a.geom) + GROUP BY a.mvlv_subst_id + )AS t2 + WHERE t1.mvlv_subst_id = t2.id; +*/ diff --git a/dataprocessing/sql_snippets/ego_dp_lv_loadcut.sql b/dataprocessing/sql_snippets/ego_dp_lv_loadcut.sql index f84309dd..e8a6236f 100644 --- a/dataprocessing/sql_snippets/ego_dp_lv_loadcut.sql +++ b/dataprocessing/sql_snippets/ego_dp_lv_loadcut.sql @@ -15,8 +15,8 @@ __author__ = "jong42, Ludee" -- ego scenario log (version,io,schema_name,table_name,script_name,comment) -SELECT ego_scenario_log('v0.3.0','input','model_draft','ego_demand_loadarea','ego_dp_lv_griddistrict.sql',' '); -SELECT ego_scenario_log('v0.3.0','input','model_draft','ego_grid_mvlv_substation_voronoi','ego_dp_lv_griddistrict.sql',' '); +SELECT ego_scenario_log('v0.3.0','input','model_draft','ego_demand_loadarea','ego_dp_lv_loadcut.sql',' '); +SELECT ego_scenario_log('v0.3.0','input','model_draft','ego_grid_mvlv_substation_voronoi','ego_dp_lv_loadcut.sql',' '); -- Cut Loadarea with MVLV Substation Voronoi DROP TABLE IF EXISTS model_draft.ego_grid_lv_griddistrict_cut CASCADE; @@ -64,7 +64,7 @@ UPDATE model_draft.ego_grid_lv_griddistrict_cut AS t1 WHERE t1.id = t2.id; -- ego scenario log (version,io,schema_name,table_name,script_name,comment) -SELECT ego_scenario_log('v0.3.0','temp','model_draft','ego_grid_lv_griddistrict_cut','ego_dp_lv_griddistrict.sql',' '); +SELECT ego_scenario_log('v0.3.0','temp','model_draft','ego_grid_lv_griddistrict_cut','ego_dp_lv_loadcut.sql',' '); /* -- Validate (geom) @@ -120,7 +120,7 @@ COMMENT ON TABLE model_draft.ego_grid_lv_griddistrict_cut_1subst IS '{ "version": "v0.3.0" }' ; -- ego scenario log (version,io,schema_name,table_name,script_name,comment) -SELECT ego_scenario_log('v0.3.0','temp','model_draft','ego_grid_lv_griddistrict_cut_1subst','ego_dp_lv_griddistrict.sql',' '); +SELECT ego_scenario_log('v0.3.0','temp','model_draft','ego_grid_lv_griddistrict_cut_1subst','ego_dp_lv_loadcut.sql',' '); -- Select parts with no LV Substation @@ -152,7 +152,7 @@ COMMENT ON TABLE model_draft.ego_grid_lv_griddistrict_cut_0subst IS '{ "version": "v0.3.0" }' ; -- ego scenario log (version,io,schema_name,table_name,script_name,comment) -SELECT ego_scenario_log('v0.3.0','temp','model_draft','ego_grid_lv_griddistrict_cut_0subst','ego_dp_lv_griddistrict.sql',' '); +SELECT ego_scenario_log('v0.3.0','temp','model_draft','ego_grid_lv_griddistrict_cut_0subst','ego_dp_lv_loadcut.sql',' '); -- Select parts with more than one substation @@ -184,7 +184,7 @@ COMMENT ON TABLE model_draft.ego_grid_lv_griddistrict_cut_xsubst IS '{ "version": "v0.3.0" }' ; -- ego scenario log (version,io,schema_name,table_name,script_name,comment) -SELECT ego_scenario_log('v0.3.0','temp','model_draft','ego_grid_lv_griddistrict_cut_xsubst','ego_dp_lv_griddistrict.sql',' '); +SELECT ego_scenario_log('v0.3.0','temp','model_draft','ego_grid_lv_griddistrict_cut_xsubst','ego_dp_lv_loadcut.sql',' '); -- Combine parts with Next Neighbor @@ -235,7 +235,7 @@ COMMENT ON TABLE model_draft.ego_grid_lv_griddistrict_cut_nn IS '{ "version": "v0.3.0" }' ; -- ego scenario log (version,io,schema_name,table_name,script_name,comment) -SELECT ego_scenario_log('v0.3.0','temp','model_draft','ego_grid_lv_griddistrict_cut_nn','ego_dp_lv_griddistrict.sql',' '); +SELECT ego_scenario_log('v0.3.0','temp','model_draft','ego_grid_lv_griddistrict_cut_nn','ego_dp_lv_loadcut.sql',' '); -- Collect and union all parts @@ -306,4 +306,4 @@ COMMENT ON TABLE model_draft.ego_grid_lv_griddistrict_cut_nn_collect IS '{ "version": "v0.3.0" }' ; -- ego scenario log (version,io,schema_name,table_name,script_name,comment) -SELECT ego_scenario_log('v0.3.0','temp','model_draft','ego_grid_lv_griddistrict_cut_nn_collect','ego_dp_lv_griddistrict.sql',' '); +SELECT ego_scenario_log('v0.3.0','temp','model_draft','ego_grid_lv_griddistrict_cut_nn_collect','ego_dp_lv_loadcut.sql',' '); diff --git a/dataprocessing/sql_snippets/ego_dp_lv_substation.sql b/dataprocessing/sql_snippets/ego_dp_lv_substation.sql index 6fc1648f..78832fe6 100644 --- a/dataprocessing/sql_snippets/ego_dp_lv_substation.sql +++ b/dataprocessing/sql_snippets/ego_dp_lv_substation.sql @@ -6,7 +6,7 @@ Create MVLV Substation from lattice centroid. __copyright__ = "Reiner Lemoine Institut" __license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" __url__ = "https://github.com/openego/data_processing/blob/master/LICENSE" -__author__ = "jong42, Ludee" +__author__ = "Ludee, jong42" */ diff --git a/dataprocessing/sql_snippets/ego_dp_lv_substation_voronoi.sql b/dataprocessing/sql_snippets/ego_dp_lv_substation_voronoi.sql index a2bebc4e..08d50944 100644 --- a/dataprocessing/sql_snippets/ego_dp_lv_substation_voronoi.sql +++ b/dataprocessing/sql_snippets/ego_dp_lv_substation_voronoi.sql @@ -5,10 +5,14 @@ Voronoi polygons with Eucldean distance (manhattan distance would be better but __copyright__ = "Reiner Lemoine Institut" __license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" __url__ = "https://github.com/openego/data_processing/blob/master/LICENSE" -__author__ = "jong42, Ludee" +__author__ = "Ludee, jong42" */ +-- ego scenario log (version,io,schema_name,table_name,script_name,comment) +SELECT ego_scenario_log('v0.3.0','input','model_draft','ego_grid_mvlv_substation','ego_dp_lv_substation_voronoi.sql',' '); +SELECT ego_scenario_log('v0.3.0','input','model_draft','ego_grid_hvmv_substation_dummy','ego_dp_lv_substation_voronoi.sql',' '); + -- add Dummy points to substations (18 Points) ALTER TABLE model_draft.ego_grid_mvlv_substation DROP COLUMN IF EXISTS is_dummy; diff --git a/documentation/bpmn/ego_dp_bpmn_section_lowvoltage.graphml b/documentation/bpmn/ego_dp_bpmn_section_lowvoltage.graphml new file mode 100644 index 00000000..19a0afcf --- /dev/null +++ b/documentation/bpmn/ego_dp_bpmn_section_lowvoltage.graphml @@ -0,0 +1,913 @@ + + + + + + + + + + + + + + + + + + + + + + + eGo DataProcessing - lowvoltage + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ego_dp_lv_substation.sql + + + + + + + + + + + + + + + + + + 9 min + + + + + + + + + + + + + + + + + + + + + + ego_dp_lv_substation_voronoi.sql + + + + + + + + + + + + + + + + + + 2 h + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Open Data Commons Open Database License 1.0 + + + + + + + + + + + + + + + + + + + + + + ego_dp_lv_loadcut.sql + + + + + + + + + + + + + + + + + + ego_dp_lv_griddistrict.sql + + + + + + + + + + + + + + + + + + ego_dp_lv_consumption_peakload.sql + + + + + + + + + + + + + + + + + + model_draft.ego_grid_mvlv_substation + + + + + + + + + + + + + + + + + + + + + + + + model_draft.ego_demand_loadarea +model_draft.ego_grid_mv_griddistrict + + + + + + + + + + + + + + + + + + + + + + + Open Data Commons Open Database License 1.0 + + + + + + + + + + + + + + + + + + + + + + model_draft.ego_grid_lv_griddistrict + + + + + + + + + + + + + + + + + + + + + + + Open Data Commons Open Database License 1.0 + + + + + + + + + + + + + + + + + + + + + + 20 min + + + + + + + + + + + + + + + + + + + + + + 40 min + + + + + + + + + + + + + + + + + + + + + + 5 min + + + + + + + + + + + + + + + + + + + + + + model_draft.ego_grid_mvlv_substation_voronoi + + + + + + + + + + + + + + + + + + + + + + + model_draft.ego_grid_lv_griddistrict_cut_nn_collect + + + + + + + + + + + + + + + + + + + + + + + + model_draft.ego_grid_mvlv_substation + + + + + + + + + + + + + + + + + + + + + + + Open Data Commons Open Database License 1.0 + + + + + + + + + + + + + + + + + + + + + + + scenario.ego_slp_parameters + + + + + + + + + + + + + + + + + + + + + + + Open Data Commons Open Database License 1.0 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/documentation/bpmn/ego_dp_bpmn_sections.graphml b/documentation/bpmn/ego_dp_bpmn_sections.graphml index f0305d78..18b4e927 100644 --- a/documentation/bpmn/ego_dp_bpmn_sections.graphml +++ b/documentation/bpmn/ego_dp_bpmn_sections.graphml @@ -17,7 +17,7 @@ - + eGo DataProcessing @@ -53,13 +53,13 @@ - + - + @@ -242,7 +242,7 @@ grid.ego_ehv_substation - + @@ -266,7 +266,7 @@ grid.ego_ehv_substation - + POWERFLOW @@ -337,7 +337,7 @@ grid.ego_ehv_substation - + ? @@ -357,6 +357,54 @@ grid.ego_ehv_substation + + + + + + + grid.ego_dp_mvlv_substation +grid.ego_dp_lv_griddistrict + + + + + + + + + + + + + + + + + + + + + + + LOWVOLTAGE + + + + + + + + + + + + + + + + + @@ -422,10 +470,10 @@ grid.ego_ehv_substation - + - + @@ -506,6 +554,33 @@ grid.ego_ehv_substation + + + + + + + + + + + + + + + + + + + + + + + + + + + From ee0060fb4e2c9f4cede3caa3f9659ea838301840 Mon Sep 17 00:00:00 2001 From: wolfbunke Date: Thu, 8 Feb 2018 16:42:11 +0100 Subject: [PATCH 069/104] add modules --- documentation/doc/dataprocessing/modules.rst | 152 +++++++++---------- 1 file changed, 76 insertions(+), 76 deletions(-) diff --git a/documentation/doc/dataprocessing/modules.rst b/documentation/doc/dataprocessing/modules.rst index f0882dcb..583896b6 100644 --- a/documentation/doc/dataprocessing/modules.rst +++ b/documentation/doc/dataprocessing/modules.rst @@ -10,52 +10,52 @@ Overview of scripts dataprocessing/sql_snippets/ scripts ------------------------------------ .. toctree:: - :titlesonly: - :maxdepth: 7 - - ego_dp_loadarea_census - ego_dp_loadarea_consumption - ego_dp_loadarea_griddistrict_results - ego_dp_loadarea_industry_consumer - ego_dp_loadarea_landuse - ego_dp_loadarea_loadcut_griddistrict - ego_dp_loadarea_loadcut_voronoi - ego_dp_loadarea_loadmelt - ego_dp_loadarea_loads - ego_dp_loadarea_peakload - ego_dp_loadarea_statistic - ego_dp_lv_consumption_peakload - ego_dp_lv_griddistrict - ego_dp_lv_peakload - ego_dp_lv_substation - ego_dp_lv_substation_voronoi - ego_dp_mv_griddistrict - ego_dp_powerflow_assignment_generator - ego_dp_powerflow_assignment_load - ego_dp_powerflow_assignment_otgid - ego_dp_powerflow_assignment_storage - ego_dp_powerflow_assignment_unid - ego_dp_powerflow_create_pp_mview - ego_dp_powerflow_electrical_neighbour - ego_dp_powerflow_grid_future_scenarios - ego_dp_powerflow_hv_setup - ego_dp_powerflow_lopf_data - ego_dp_powerflow_osmtgmod_to_pypsa - ego_dp_powerflow_timeseries_demand - ego_dp_powerflow_timeseries_generator - ego_dp_powerflow_voronoi_weatherpoint - ego_dp_structure_input_verification - ego_dp_substation_ehv - ego_dp_substation_ehv_voronoi - ego_dp_substation_hvmv - ego_dp_substation_hvmv_voronoi - ego_dp_substation_id_to_generator - ego_dp_substation_otg - ego_dp_supply_dp_powerflow_create_pp_mview - ego_dp_vacuum_full - ego_dp_versioning - ego_dp_versioning_mviews - ego_dp_versioning_overview + :titlesonly: + :maxdepth: 7 + + ego_dp_loadarea_census + ego_dp_loadarea_consumption + ego_dp_loadarea_griddistrict_results + ego_dp_loadarea_industry_consumer + ego_dp_loadarea_landuse + ego_dp_loadarea_loadcut_griddistrict + ego_dp_loadarea_loadcut_voronoi + ego_dp_loadarea_loadmelt + ego_dp_loadarea_loads + ego_dp_loadarea_peakload + ego_dp_loadarea_statistic + ego_dp_lv_consumption_peakload + ego_dp_lv_griddistrict + ego_dp_lv_peakload + ego_dp_lv_substation + ego_dp_lv_substation_voronoi + ego_dp_mv_griddistrict + ego_dp_powerflow_assignment_generator + ego_dp_powerflow_assignment_load + ego_dp_powerflow_assignment_otgid + ego_dp_powerflow_assignment_storage + ego_dp_powerflow_assignment_unid + ego_dp_powerflow_create_pp_mview + ego_dp_powerflow_electrical_neighbour + ego_dp_powerflow_grid_future_scenarios + ego_dp_powerflow_hv_setup + ego_dp_powerflow_lopf_data + ego_dp_powerflow_osmtgmod_to_pypsa + ego_dp_powerflow_timeseries_demand + ego_dp_powerflow_timeseries_generator + ego_dp_powerflow_voronoi_weatherpoint + ego_dp_structure_input_verification + ego_dp_substation_ehv + ego_dp_substation_ehv_voronoi + ego_dp_substation_hvmv + ego_dp_substation_hvmv_voronoi + ego_dp_substation_id_to_generator + ego_dp_substation_otg + ego_dp_supply_dp_powerflow_create_pp_mview + ego_dp_vacuum_full + ego_dp_versioning + ego_dp_versioning_mviews + ego_dp_versioning_overview @@ -67,19 +67,19 @@ dataprocessing/sql_snippets/functions scripts :titlesonly: :maxdepth: 7 - functions/func_delete_double_rows - functions/func_drop_empty_table - functions/function_copy_comment_column - functions/function_copy_comment_mview - functions/function_copy_comment_table - functions/function_ego_scenario_log - functions/function_grant_oeuser - functions/function_query_metadata - functions/function_st_Buffer_Meters - functions/function_st_createfishnet - functions/function_st_relation_geometry - functions/function_st_safe_intersection - functions/function_utmzone + functions/func_delete_double_rows + functions/func_drop_empty_table + functions/function_copy_comment_column + functions/function_copy_comment_mview + functions/function_copy_comment_table + functions/function_ego_scenario_log + functions/function_grant_oeuser + functions/function_query_metadata + functions/function_st_Buffer_Meters + functions/function_st_createfishnet + functions/function_st_relation_geometry + functions/function_st_safe_intersection + functions/function_utmzone @@ -89,20 +89,20 @@ dataprocessing/sql_snippets/rea scripts --------------------------------------- .. toctree:: - :titlesonly: - :maxdepth: 7 - - rea/ego_dp_conv - rea/ego_dp_lattice_500m - rea/ego_dp_lattice_50m - rea/ego_dp_rea_lattice_per_area_500m - rea/ego_dp_rea_lattice_per_area_50m - rea/ego_dp_rea_m1 - rea/ego_dp_rea_m2 - rea/ego_dp_rea_m3 - rea/ego_dp_rea_m4 - rea/ego_dp_rea_m5 - rea/ego_dp_rea_results - rea/ego_dp_rea_setup - rea/ego_dp_rea_wpa_per_mvgd - rea/ego_dp_wpa + :titlesonly: + :maxdepth: 7 + + rea/ego_dp_conv + rea/ego_dp_lattice_500m + rea/ego_dp_lattice_50m + rea/ego_dp_rea_lattice_per_area_500m + rea/ego_dp_rea_lattice_per_area_50m + rea/ego_dp_rea_m1 + rea/ego_dp_rea_m2 + rea/ego_dp_rea_m3 + rea/ego_dp_rea_m4 + rea/ego_dp_rea_m5 + rea/ego_dp_rea_results + rea/ego_dp_rea_setup + rea/ego_dp_rea_wpa_per_mvgd + rea/ego_dp_wpa From 9657a0b38594fb65426fe77578de26749a7412e2 Mon Sep 17 00:00:00 2001 From: WolfBunke Date: Thu, 8 Feb 2018 16:46:52 +0100 Subject: [PATCH 070/104] Update README.rst --- README.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.rst b/README.rst index 2637427d..2740d6be 100644 --- a/README.rst +++ b/README.rst @@ -1,5 +1,5 @@ -.. image:: https://readthedocs.org/projects/data-processing/badge/?version=feature-docu-wolf - :target: http://data-processing.readthedocs.io/en/latest/?badge=feature-docu-wolf +.. image:: https://readthedocs.org/projects/data-processing/badge/?version=feature-readthedocs + :target: http://data-processing.readthedocs.io/en/latest/?badge=feature-readthedocs :alt: Documentation Status .. image:: https://openegoproject.files.wordpress.com/2017/02/open_ego_logo_breit.png?w=400 From ce0ae6519d4b3f6929aee54597c8a01a02f27e87 Mon Sep 17 00:00:00 2001 From: IlkaCu Date: Thu, 8 Feb 2018 16:54:17 +0100 Subject: [PATCH 071/104] update docu LOPF_data #92 --- .../sql_snippets/ego_dp_powerflow_lopf_data.sql | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/dataprocessing/sql_snippets/ego_dp_powerflow_lopf_data.sql b/dataprocessing/sql_snippets/ego_dp_powerflow_lopf_data.sql index 2e384b30..b274abc3 100644 --- a/dataprocessing/sql_snippets/ego_dp_powerflow_lopf_data.sql +++ b/dataprocessing/sql_snippets/ego_dp_powerflow_lopf_data.sql @@ -1,8 +1,13 @@ /* -LOPF data - -Setting marginal_cost ( operating cost + fuel cost + CO2 crt cost ) -in model_draft.ego_grid_pf_hv_generator according to renpass_gis, NEP 2014 scenario. -In addition p_max_pu is set for all generators with variable dispatch based on p_max_pu = p_set / p_nom . +Missing parameters necessary for calculating a linear optimal power flow (LOPF) are added to the existing data. This +includes marginal costs per technology, which is composed of specific operating cost, fuel costs and CO2 costs +according to renpass_gis, NEP 2014 scenario. +In addition p_max_pu is set for all generators with variable dispatch based on p_max_pu = p_set / p_nom. + +A further section of the script is used to insert extendable battery and hydrogen storages to all substations in the +grid model. These have a initial installed capacity p_nom=0, which can be extended when executing an optimization +(by calculating a LOPF). + __copyright__ = "Europa-Universität Flensburg, Centre for Sustainable Energy Systems" __license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" __url__ = "https://github.com/openego/data_processing/blob/master/LICENSE" From 9f5d176ed62012348141d66a4f7fd3dad9b386ce Mon Sep 17 00:00:00 2001 From: wolfbunke Date: Thu, 8 Feb 2018 17:02:38 +0100 Subject: [PATCH 072/104] add modules --- documentation/doc/dataprocessing/modules.rst | 156 +++++++++---------- 1 file changed, 78 insertions(+), 78 deletions(-) diff --git a/documentation/doc/dataprocessing/modules.rst b/documentation/doc/dataprocessing/modules.rst index 583896b6..cc5150de 100644 --- a/documentation/doc/dataprocessing/modules.rst +++ b/documentation/doc/dataprocessing/modules.rst @@ -9,53 +9,53 @@ Overview of scripts dataprocessing/sql_snippets/ scripts ------------------------------------ + .. toctree:: - :titlesonly: - :maxdepth: 7 - - ego_dp_loadarea_census - ego_dp_loadarea_consumption - ego_dp_loadarea_griddistrict_results - ego_dp_loadarea_industry_consumer - ego_dp_loadarea_landuse - ego_dp_loadarea_loadcut_griddistrict - ego_dp_loadarea_loadcut_voronoi - ego_dp_loadarea_loadmelt - ego_dp_loadarea_loads - ego_dp_loadarea_peakload - ego_dp_loadarea_statistic - ego_dp_lv_consumption_peakload - ego_dp_lv_griddistrict - ego_dp_lv_peakload - ego_dp_lv_substation - ego_dp_lv_substation_voronoi - ego_dp_mv_griddistrict - ego_dp_powerflow_assignment_generator - ego_dp_powerflow_assignment_load - ego_dp_powerflow_assignment_otgid - ego_dp_powerflow_assignment_storage - ego_dp_powerflow_assignment_unid - ego_dp_powerflow_create_pp_mview - ego_dp_powerflow_electrical_neighbour - ego_dp_powerflow_grid_future_scenarios - ego_dp_powerflow_hv_setup - ego_dp_powerflow_lopf_data - ego_dp_powerflow_osmtgmod_to_pypsa - ego_dp_powerflow_timeseries_demand - ego_dp_powerflow_timeseries_generator - ego_dp_powerflow_voronoi_weatherpoint - ego_dp_structure_input_verification - ego_dp_substation_ehv - ego_dp_substation_ehv_voronoi - ego_dp_substation_hvmv - ego_dp_substation_hvmv_voronoi - ego_dp_substation_id_to_generator - ego_dp_substation_otg - ego_dp_supply_dp_powerflow_create_pp_mview - ego_dp_vacuum_full - ego_dp_versioning - ego_dp_versioning_mviews - ego_dp_versioning_overview + :titlesonly: + :maxdepth: 7 + ego_dp_loadarea_census + ego_dp_loadarea_consumption + ego_dp_loadarea_griddistrict_results + ego_dp_loadarea_industry_consumer + ego_dp_loadarea_landuse + ego_dp_loadarea_loadcut_griddistrict + ego_dp_loadarea_loadcut_voronoi + ego_dp_loadarea_loadmelt + ego_dp_loadarea_loads + ego_dp_loadarea_peakload + ego_dp_loadarea_statistic + ego_dp_lv_consumption_peakload + ego_dp_lv_griddistrict + ego_dp_lv_peakload + ego_dp_lv_substation + ego_dp_lv_substation_voronoi + ego_dp_mv_griddistrict + ego_dp_powerflow_assignment_generator + ego_dp_powerflow_assignment_load + ego_dp_powerflow_assignment_otgid + ego_dp_powerflow_assignment_storage + ego_dp_powerflow_assignment_unid + ego_dp_powerflow_create_pp_mview + ego_dp_powerflow_electrical_neighbour + ego_dp_powerflow_grid_future_scenarios + ego_dp_powerflow_hv_setup + ego_dp_powerflow_lopf_data + ego_dp_powerflow_osmtgmod_to_pypsa + ego_dp_powerflow_timeseries_demand + ego_dp_powerflow_timeseries_generator + ego_dp_powerflow_voronoi_weatherpoint + ego_dp_structure_input_verification + ego_dp_substation_ehv + ego_dp_substation_ehv_voronoi + ego_dp_substation_hvmv + ego_dp_substation_hvmv_voronoi + ego_dp_substation_id_to_generator + ego_dp_substation_otg + ego_dp_supply_dp_powerflow_create_pp_mview + ego_dp_vacuum_full + ego_dp_versioning + ego_dp_versioning_mviews + ego_dp_versioning_overview @@ -64,22 +64,22 @@ dataprocessing/sql_snippets/functions scripts --------------------------------------------- .. toctree:: - :titlesonly: - :maxdepth: 7 + :titlesonly: + :maxdepth: 7 - functions/func_delete_double_rows - functions/func_drop_empty_table - functions/function_copy_comment_column - functions/function_copy_comment_mview - functions/function_copy_comment_table - functions/function_ego_scenario_log - functions/function_grant_oeuser - functions/function_query_metadata - functions/function_st_Buffer_Meters - functions/function_st_createfishnet - functions/function_st_relation_geometry - functions/function_st_safe_intersection - functions/function_utmzone + functions/func_delete_double_rows + functions/func_drop_empty_table + functions/function_copy_comment_column + functions/function_copy_comment_mview + functions/function_copy_comment_table + functions/function_ego_scenario_log + functions/function_grant_oeuser + functions/function_query_metadata + functions/function_st_Buffer_Meters + functions/function_st_createfishnet + functions/function_st_relation_geometry + functions/function_st_safe_intersection + functions/function_utmzone @@ -89,20 +89,20 @@ dataprocessing/sql_snippets/rea scripts --------------------------------------- .. toctree:: - :titlesonly: - :maxdepth: 7 - - rea/ego_dp_conv - rea/ego_dp_lattice_500m - rea/ego_dp_lattice_50m - rea/ego_dp_rea_lattice_per_area_500m - rea/ego_dp_rea_lattice_per_area_50m - rea/ego_dp_rea_m1 - rea/ego_dp_rea_m2 - rea/ego_dp_rea_m3 - rea/ego_dp_rea_m4 - rea/ego_dp_rea_m5 - rea/ego_dp_rea_results - rea/ego_dp_rea_setup - rea/ego_dp_rea_wpa_per_mvgd - rea/ego_dp_wpa + :titlesonly: + :maxdepth: 7 + + rea/ego_dp_conv + rea/ego_dp_lattice_500m + rea/ego_dp_lattice_50m + rea/ego_dp_rea_lattice_per_area_500m + rea/ego_dp_rea_lattice_per_area_50m + rea/ego_dp_rea_m1 + rea/ego_dp_rea_m2 + rea/ego_dp_rea_m3 + rea/ego_dp_rea_m4 + rea/ego_dp_rea_m5 + rea/ego_dp_rea_results + rea/ego_dp_rea_setup + rea/ego_dp_rea_wpa_per_mvgd + rea/ego_dp_wpa From 9860970a3aa3ed2a5c4eaff49281ab47d3750167 Mon Sep 17 00:00:00 2001 From: wolfbunke Date: Thu, 8 Feb 2018 17:14:41 +0100 Subject: [PATCH 073/104] update file --- documentation/build_script_doc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/documentation/build_script_doc.py b/documentation/build_script_doc.py index 92b96fec..ac634fb4 100644 --- a/documentation/build_script_doc.py +++ b/documentation/build_script_doc.py @@ -38,7 +38,7 @@ for key in __KEYS: if key == 'description': - out.write(fi+'\n'+'#'.join(['#'*len(fi)]) ) + out.write(fi+'\n'+'#'.join(['#'*len(fi)])+'\n\n' ) out.write(result[key].replace('\n\n','\n')) else: out.write(key+'\n') From f36a8b5889add61432a6a093041f97695859e4ff Mon Sep 17 00:00:00 2001 From: wolfbunke Date: Thu, 8 Feb 2018 17:17:28 +0100 Subject: [PATCH 074/104] update files --- .../doc/dataprocessing/ego_dp_loadarea_census.rst | 4 +++- .../ego_dp_loadarea_consumption.rst | 4 +++- .../ego_dp_loadarea_griddistrict_results.rst | 4 +++- .../ego_dp_loadarea_industry_consumer.rst | 4 +++- .../dataprocessing/ego_dp_loadarea_landuse.rst | 4 +++- .../ego_dp_loadarea_loadcut_griddistrict.rst | 4 +++- .../ego_dp_loadarea_loadcut_voronoi.rst | 4 +++- .../dataprocessing/ego_dp_loadarea_loadmelt.rst | 4 +++- .../doc/dataprocessing/ego_dp_loadarea_loads.rst | 4 +++- .../dataprocessing/ego_dp_loadarea_peakload.rst | 4 +++- .../dataprocessing/ego_dp_loadarea_statistic.rst | 4 +++- .../ego_dp_lv_consumption_peakload.rst | 9 ++++++--- .../doc/dataprocessing/ego_dp_lv_griddistrict.rst | 6 +++++- .../doc/dataprocessing/ego_dp_lv_loadcut.rst | 4 +++- .../doc/dataprocessing/ego_dp_lv_substation.rst | 6 ++++-- .../ego_dp_lv_substation_voronoi.rst | 6 ++++-- .../doc/dataprocessing/ego_dp_mv_griddistrict.rst | 4 +++- .../ego_dp_powerflow_assignment_generator.rst | 4 +++- .../ego_dp_powerflow_assignment_load.rst | 4 +++- .../ego_dp_powerflow_assignment_otgid.rst | 4 +++- .../ego_dp_powerflow_assignment_storage.rst | 4 +++- .../ego_dp_powerflow_assignment_unid.rst | 4 +++- .../ego_dp_powerflow_create_pp_mview.rst | 5 ++++- .../ego_dp_powerflow_electrical_neighbour.rst | 4 +++- .../ego_dp_powerflow_grid_future_scenarios.rst | 4 +++- .../dataprocessing/ego_dp_powerflow_hv_setup.rst | 4 +++- .../dataprocessing/ego_dp_powerflow_lopf_data.rst | 15 +++++++++++---- .../ego_dp_powerflow_osmtgmod_to_pypsa.rst | 4 +++- .../ego_dp_powerflow_timeseries_demand.rst | 4 +++- .../ego_dp_powerflow_voronoi_weatherpoint.rst | 4 +++- .../ego_dp_structure_input_verification.rst | 4 +++- .../doc/dataprocessing/ego_dp_substation_ehv.rst | 4 +++- .../ego_dp_substation_ehv_voronoi.rst | 4 +++- .../doc/dataprocessing/ego_dp_substation_hvmv.rst | 4 +++- .../ego_dp_substation_hvmv_voronoi.rst | 4 +++- .../ego_dp_substation_id_to_generator.rst | 4 +++- .../doc/dataprocessing/ego_dp_substation_otg.rst | 4 +++- .../doc/dataprocessing/ego_dp_versioning.rst | 4 +++- .../dataprocessing/ego_dp_versioning_mviews.rst | 4 +++- .../dataprocessing/ego_dp_versioning_overview.rst | 4 +++- .../functions/function_query_metadata.rst | 4 +++- .../doc/dataprocessing/rea/ego_dp_conv.rst | 4 +++- .../dataprocessing/rea/ego_dp_lattice_500m.rst | 4 +++- .../doc/dataprocessing/rea/ego_dp_lattice_50m.rst | 4 +++- .../rea/ego_dp_rea_lattice_per_area_500m.rst | 4 +++- .../rea/ego_dp_rea_lattice_per_area_50m.rst | 4 +++- .../doc/dataprocessing/rea/ego_dp_rea_m1.rst | 4 +++- .../doc/dataprocessing/rea/ego_dp_rea_m2.rst | 4 +++- .../doc/dataprocessing/rea/ego_dp_rea_m3.rst | 4 +++- .../doc/dataprocessing/rea/ego_dp_rea_m4.rst | 4 +++- .../doc/dataprocessing/rea/ego_dp_rea_m5.rst | 4 +++- .../doc/dataprocessing/rea/ego_dp_rea_results.rst | 4 +++- .../doc/dataprocessing/rea/ego_dp_rea_setup.rst | 4 +++- .../rea/ego_dp_rea_wpa_per_mvgd.rst | 4 +++- .../doc/dataprocessing/rea/ego_dp_wpa.rst | 4 +++- 55 files changed, 181 insertions(+), 62 deletions(-) diff --git a/documentation/doc/dataprocessing/ego_dp_loadarea_census.rst b/documentation/doc/dataprocessing/ego_dp_loadarea_census.rst index 5ffc179b..d424d46e 100644 --- a/documentation/doc/dataprocessing/ego_dp_loadarea_census.rst +++ b/documentation/doc/dataprocessing/ego_dp_loadarea_census.rst @@ -1,7 +1,9 @@ .. AUTOGENERATED - DO NOT TOUCH! ego_dp_loadarea_census.sql -##########################Loads from Census 2011 +########################## + +Loads from Census 2011 Include Census 2011 population per ha. Identify population in OSM loads. diff --git a/documentation/doc/dataprocessing/ego_dp_loadarea_consumption.rst b/documentation/doc/dataprocessing/ego_dp_loadarea_consumption.rst index e7d81c89..53fded9b 100644 --- a/documentation/doc/dataprocessing/ego_dp_loadarea_consumption.rst +++ b/documentation/doc/dataprocessing/ego_dp_loadarea_consumption.rst @@ -1,7 +1,9 @@ .. AUTOGENERATED - DO NOT TOUCH! ego_dp_loadarea_consumption.sql -###############################Allocate consumption to Loadareas +############################### + +Allocate consumption to Loadareas copyright diff --git a/documentation/doc/dataprocessing/ego_dp_loadarea_griddistrict_results.rst b/documentation/doc/dataprocessing/ego_dp_loadarea_griddistrict_results.rst index 0d16face..33742afb 100644 --- a/documentation/doc/dataprocessing/ego_dp_loadarea_griddistrict_results.rst +++ b/documentation/doc/dataprocessing/ego_dp_loadarea_griddistrict_results.rst @@ -1,7 +1,9 @@ .. AUTOGENERATED - DO NOT TOUCH! ego_dp_loadarea_griddistrict_results.sql -########################################Results for MV Griddistrict +######################################## + +Results for MV Griddistrict After finishing the Loadareas we can aggregate the results for the MV Griddistricts: Area of MV Griddistrict. Municipality (Gemeinden). diff --git a/documentation/doc/dataprocessing/ego_dp_loadarea_industry_consumer.rst b/documentation/doc/dataprocessing/ego_dp_loadarea_industry_consumer.rst index aa0c7c9b..d484512b 100644 --- a/documentation/doc/dataprocessing/ego_dp_loadarea_industry_consumer.rst +++ b/documentation/doc/dataprocessing/ego_dp_loadarea_industry_consumer.rst @@ -1,7 +1,9 @@ .. AUTOGENERATED - DO NOT TOUCH! ego_dp_loadarea_industry_consumer.sql -#####################################OSM Industry consumer +##################################### + +OSM Industry consumer Calculate specific electricity consumption per million Euro GVA for each federal state. Calculate the electricity consumption for each industry polygon. Identify corresponding bus for large scale consumer (lsc) with the help of ehv-voronoi. diff --git a/documentation/doc/dataprocessing/ego_dp_loadarea_landuse.rst b/documentation/doc/dataprocessing/ego_dp_loadarea_landuse.rst index 035f67c4..a9b9e42b 100644 --- a/documentation/doc/dataprocessing/ego_dp_loadarea_landuse.rst +++ b/documentation/doc/dataprocessing/ego_dp_loadarea_landuse.rst @@ -1,7 +1,9 @@ .. AUTOGENERATED - DO NOT TOUCH! ego_dp_loadarea_landuse.sql -###########################OSM landuse sectors +########################### + +OSM landuse sectors Extract landuse areas from OpenStreetMap. Cut the landuse with German boders (vg250) and make valid geometries. Divide into 4 landuse sectors: diff --git a/documentation/doc/dataprocessing/ego_dp_loadarea_loadcut_griddistrict.rst b/documentation/doc/dataprocessing/ego_dp_loadarea_loadcut_griddistrict.rst index 35f5f8d9..526bcb9b 100644 --- a/documentation/doc/dataprocessing/ego_dp_loadarea_loadcut_griddistrict.rst +++ b/documentation/doc/dataprocessing/ego_dp_loadarea_loadcut_griddistrict.rst @@ -1,7 +1,9 @@ .. AUTOGENERATED - DO NOT TOUCH! ego_dp_loadarea_loadcut_griddistrict.sql -########################################Cut Loadarea with MV Griddistrict +######################################## + +Cut Loadarea with MV Griddistrict Identify and exclude Loadarea smaller than 100m². Generate Centre of Loadareas with Centroid and PointOnSurface. Calculate population from Census 2011. diff --git a/documentation/doc/dataprocessing/ego_dp_loadarea_loadcut_voronoi.rst b/documentation/doc/dataprocessing/ego_dp_loadarea_loadcut_voronoi.rst index 62de18af..85ffae5b 100644 --- a/documentation/doc/dataprocessing/ego_dp_loadarea_loadcut_voronoi.rst +++ b/documentation/doc/dataprocessing/ego_dp_loadarea_loadcut_voronoi.rst @@ -1,7 +1,9 @@ .. AUTOGENERATED - DO NOT TOUCH! ego_dp_loadarea_loadcut_voronoi.sql -###################################Cut Loadarea with MV Voronoi cells +################################### + +Cut Loadarea with MV Voronoi cells Identify and exclude Loadarea smaller than 100m². Generate Centre of Loadareas with Centroid and PointOnSurface. Calculate population from Census 2011. diff --git a/documentation/doc/dataprocessing/ego_dp_loadarea_loadmelt.rst b/documentation/doc/dataprocessing/ego_dp_loadarea_loadmelt.rst index b849e4a8..e55da606 100644 --- a/documentation/doc/dataprocessing/ego_dp_loadarea_loadmelt.rst +++ b/documentation/doc/dataprocessing/ego_dp_loadarea_loadmelt.rst @@ -1,7 +1,9 @@ .. AUTOGENERATED - DO NOT TOUCH! ego_dp_loadarea_loadmelt.sql -############################Melt loads from OSM landuse and Census 2011 +############################ + +Melt loads from OSM landuse and Census 2011 Collect loads from both sources. Buffer collected loads with with 100m. Unbuffer the collection with 100m. diff --git a/documentation/doc/dataprocessing/ego_dp_loadarea_loads.rst b/documentation/doc/dataprocessing/ego_dp_loadarea_loads.rst index 657a977b..229e97bb 100644 --- a/documentation/doc/dataprocessing/ego_dp_loadarea_loads.rst +++ b/documentation/doc/dataprocessing/ego_dp_loadarea_loads.rst @@ -1,7 +1,9 @@ .. AUTOGENERATED - DO NOT TOUCH! ego_dp_loadarea_loads.sql -#########################OSM Loads from landuse +######################### + +OSM Loads from landuse Excludes large scale consumer. Buffer OSM urban sectors with 100m Unbuffer buffer with -100m diff --git a/documentation/doc/dataprocessing/ego_dp_loadarea_peakload.rst b/documentation/doc/dataprocessing/ego_dp_loadarea_peakload.rst index b1a9d201..b832bd7a 100644 --- a/documentation/doc/dataprocessing/ego_dp_loadarea_peakload.rst +++ b/documentation/doc/dataprocessing/ego_dp_loadarea_peakload.rst @@ -1,7 +1,9 @@ .. AUTOGENERATED - DO NOT TOUCH! ego_dp_loadarea_peakload.sql -############################Peak loads per Loadarea +############################ + +Peak loads per Loadarea Uses SLP parameters per sectors. diff --git a/documentation/doc/dataprocessing/ego_dp_loadarea_statistic.rst b/documentation/doc/dataprocessing/ego_dp_loadarea_statistic.rst index 323488fd..29993bd3 100644 --- a/documentation/doc/dataprocessing/ego_dp_loadarea_statistic.rst +++ b/documentation/doc/dataprocessing/ego_dp_loadarea_statistic.rst @@ -1,7 +1,9 @@ .. AUTOGENERATED - DO NOT TOUCH! ego_dp_loadarea_statistic.sql -#############################Results and statistics for eGoDP data +############################# + +Results and statistics for eGoDP data Substation, Loadarea, MV Griddistricts and Consumption. MV Griddistrict types. Municipality (Gemeinden). diff --git a/documentation/doc/dataprocessing/ego_dp_lv_consumption_peakload.rst b/documentation/doc/dataprocessing/ego_dp_lv_consumption_peakload.rst index a81a30b6..ea3bcbfb 100644 --- a/documentation/doc/dataprocessing/ego_dp_lv_consumption_peakload.rst +++ b/documentation/doc/dataprocessing/ego_dp_lv_consumption_peakload.rst @@ -1,9 +1,12 @@ .. AUTOGENERATED - DO NOT TOUCH! ego_dp_lv_consumption_peakload.sql -##################################Update LV grid district table by - a. sectoral consumption in each LV grid district - b. sectoral peak load in each LV grid district +################################## + +LV Consumption and Peakload +Update LV Griddistrict table by +a. sectoral consumption in each LV Griddistrict +b. sectoral peak load in each LV Griddistrict copyright diff --git a/documentation/doc/dataprocessing/ego_dp_lv_griddistrict.rst b/documentation/doc/dataprocessing/ego_dp_lv_griddistrict.rst index 592fa29b..07dc4657 100644 --- a/documentation/doc/dataprocessing/ego_dp_lv_griddistrict.rst +++ b/documentation/doc/dataprocessing/ego_dp_lv_griddistrict.rst @@ -1,7 +1,11 @@ .. AUTOGENERATED - DO NOT TOUCH! ego_dp_lv_griddistrict.sql -##########################In progess +########################## + +LV Griddistrict +Create LV Griddistrict from MVLV Substation. +Generate OSM landuse per sectors. copyright diff --git a/documentation/doc/dataprocessing/ego_dp_lv_loadcut.rst b/documentation/doc/dataprocessing/ego_dp_lv_loadcut.rst index 018a6df5..3f23c55a 100644 --- a/documentation/doc/dataprocessing/ego_dp_lv_loadcut.rst +++ b/documentation/doc/dataprocessing/ego_dp_lv_loadcut.rst @@ -1,7 +1,9 @@ .. AUTOGENERATED - DO NOT TOUCH! ego_dp_lv_loadcut.sql -#####################LV Loadcut +##################### + +LV Loadcut Cut Loadarea with MVLV Substation Voronoi. Select parts with one LV Substation. Select parts with no LV Substation. diff --git a/documentation/doc/dataprocessing/ego_dp_lv_substation.rst b/documentation/doc/dataprocessing/ego_dp_lv_substation.rst index b5a12668..b5d74689 100644 --- a/documentation/doc/dataprocessing/ego_dp_lv_substation.rst +++ b/documentation/doc/dataprocessing/ego_dp_lv_substation.rst @@ -1,7 +1,9 @@ .. AUTOGENERATED - DO NOT TOUCH! ego_dp_lv_substation.sql -########################MVLV Substation (ONT) +######################## + +MVLV Substation (ONT) Create a lattice (regular fishnet grid) with 360m. Create MVLV Substation from lattice centroid. @@ -16,5 +18,5 @@ url https://github.com/openego/data_processing/blob/master/LICENSE author - jong42, Ludee + Ludee, jong42 diff --git a/documentation/doc/dataprocessing/ego_dp_lv_substation_voronoi.rst b/documentation/doc/dataprocessing/ego_dp_lv_substation_voronoi.rst index 46acb8df..c04f3807 100644 --- a/documentation/doc/dataprocessing/ego_dp_lv_substation_voronoi.rst +++ b/documentation/doc/dataprocessing/ego_dp_lv_substation_voronoi.rst @@ -1,7 +1,9 @@ .. AUTOGENERATED - DO NOT TOUCH! ego_dp_lv_substation_voronoi.sql -################################MVLV Substation Voronoi +################################ + +MVLV Substation Voronoi Voronoi polygons with Eucldean distance (manhattan distance would be better but not available in sql). @@ -15,5 +17,5 @@ url https://github.com/openego/data_processing/blob/master/LICENSE author - jong42, Ludee + Ludee, jong42 diff --git a/documentation/doc/dataprocessing/ego_dp_mv_griddistrict.rst b/documentation/doc/dataprocessing/ego_dp_mv_griddistrict.rst index eeeda01e..90ba56a1 100644 --- a/documentation/doc/dataprocessing/ego_dp_mv_griddistrict.rst +++ b/documentation/doc/dataprocessing/ego_dp_mv_griddistrict.rst @@ -1,7 +1,9 @@ .. AUTOGENERATED - DO NOT TOUCH! ego_dp_mv_griddistrict.sql -##########################MV GridDistricts +########################## + +MV GridDistricts Generate MV GridDistricts from municipalities and Voronoi cells. Each HVMV Substation receives one catchment area. Detailed description can be found in Hülk et. al. 2017. diff --git a/documentation/doc/dataprocessing/ego_dp_powerflow_assignment_generator.rst b/documentation/doc/dataprocessing/ego_dp_powerflow_assignment_generator.rst index fe162cb1..c2c866d7 100644 --- a/documentation/doc/dataprocessing/ego_dp_powerflow_assignment_generator.rst +++ b/documentation/doc/dataprocessing/ego_dp_powerflow_assignment_generator.rst @@ -1,7 +1,9 @@ .. AUTOGENERATED - DO NOT TOUCH! ego_dp_powerflow_assignment_generator.sql -#########################################Generators which were assigned to a specific substation prior to this script need to be transformed to a data structure +######################################### + +Generators which were assigned to a specific substation prior to this script need to be transformed to a data structure suitable for powerflow calculation with tool developed and used in the open_eGo project. The following script transforms data from the powerplant mviews and adds some parameters according to the characteristics of the generators. To reduce the data volumn in the final table structure (see ego_dp_powerflow_hv_setup.sql) the generators are clustered diff --git a/documentation/doc/dataprocessing/ego_dp_powerflow_assignment_load.rst b/documentation/doc/dataprocessing/ego_dp_powerflow_assignment_load.rst index 4624ca55..7967830a 100644 --- a/documentation/doc/dataprocessing/ego_dp_powerflow_assignment_load.rst +++ b/documentation/doc/dataprocessing/ego_dp_powerflow_assignment_load.rst @@ -1,7 +1,9 @@ .. AUTOGENERATED - DO NOT TOUCH! ego_dp_powerflow_assignment_load.sql -####################################Similar to generators in the previous script the data on loads are converted and clustered to fit the data structure +#################################### + +Similar to generators in the previous script the data on loads are converted and clustered to fit the data structure needed for powerflow calculations. The electricity demand of small scale consumer and industrial large scale consumer is considered. diff --git a/documentation/doc/dataprocessing/ego_dp_powerflow_assignment_otgid.rst b/documentation/doc/dataprocessing/ego_dp_powerflow_assignment_otgid.rst index 3a7eebb7..f2e133a0 100644 --- a/documentation/doc/dataprocessing/ego_dp_powerflow_assignment_otgid.rst +++ b/documentation/doc/dataprocessing/ego_dp_powerflow_assignment_otgid.rst @@ -1,7 +1,9 @@ .. AUTOGENERATED - DO NOT TOUCH! ego_dp_powerflow_assignment_otgid.sql -#####################################This scripts updates tables containing `renewable power plants `_ and `conventional power plants `_ with information on the otg_id of substations which the generator is assigned to. +##################################### + +This scripts updates tables containing `renewable power plants `_ and `conventional power plants `_ with information on the otg_id of substations which the generator is assigned to. The otg_id and subst_id of the substations are matched in tables containing information on `HV/MV substations `_ and `EHV substations `_. Additionally the otg_id of offshore wind turbines is updated manually. The geometry of offshore wind power plants is matched with polygons representing a catchment area per relevant offshore grid connection point. diff --git a/documentation/doc/dataprocessing/ego_dp_powerflow_assignment_storage.rst b/documentation/doc/dataprocessing/ego_dp_powerflow_assignment_storage.rst index 9892e420..508aa87f 100644 --- a/documentation/doc/dataprocessing/ego_dp_powerflow_assignment_storage.rst +++ b/documentation/doc/dataprocessing/ego_dp_powerflow_assignment_storage.rst @@ -1,7 +1,9 @@ .. AUTOGENERATED - DO NOT TOUCH! ego_dp_powerflow_assignment_storage.sql -#######################################Equivalent to the assignment of generators in this script storages are converted and clustered for all three scenarios +####################################### + +Equivalent to the assignment of generators in this script storages are converted and clustered for all three scenarios considered in open_eGo. diff --git a/documentation/doc/dataprocessing/ego_dp_powerflow_assignment_unid.rst b/documentation/doc/dataprocessing/ego_dp_powerflow_assignment_unid.rst index 45473426..7bdd76c0 100644 --- a/documentation/doc/dataprocessing/ego_dp_powerflow_assignment_unid.rst +++ b/documentation/doc/dataprocessing/ego_dp_powerflow_assignment_unid.rst @@ -1,7 +1,9 @@ .. AUTOGENERATED - DO NOT TOUCH! ego_dp_powerflow_assignment_unid.sql -####################################All generators from the `conventional `_ and `renewable `_ power plant list are brought together in a `central generator list `_. +#################################### + +All generators from the `conventional `_ and `renewable `_ power plant list are brought together in a `central generator list `_. A unified id (un_id) is assigned to those generators listed. Information on the un_id is then added to the conventional and renewable power plant lists. diff --git a/documentation/doc/dataprocessing/ego_dp_powerflow_create_pp_mview.rst b/documentation/doc/dataprocessing/ego_dp_powerflow_create_pp_mview.rst index 44955e86..f7174db9 100644 --- a/documentation/doc/dataprocessing/ego_dp_powerflow_create_pp_mview.rst +++ b/documentation/doc/dataprocessing/ego_dp_powerflow_create_pp_mview.rst @@ -1,7 +1,10 @@ .. AUTOGENERATED - DO NOT TOUCH! ego_dp_powerflow_create_pp_mview.sql -####################################SQL Script to create mviews diyplaying power plants by scenario. +#################################### + +This script creates discrete materialized views (mview) for conventional and renewable power plants per scenario, +resulting in six different mviews for the three main scenarios considered in open_eGo. copyright diff --git a/documentation/doc/dataprocessing/ego_dp_powerflow_electrical_neighbour.rst b/documentation/doc/dataprocessing/ego_dp_powerflow_electrical_neighbour.rst index eaa102e7..0bfa8836 100644 --- a/documentation/doc/dataprocessing/ego_dp_powerflow_electrical_neighbour.rst +++ b/documentation/doc/dataprocessing/ego_dp_powerflow_electrical_neighbour.rst @@ -1,7 +1,9 @@ .. AUTOGENERATED - DO NOT TOUCH! ego_dp_powerflow_electrical_neighbour.sql -#########################################The electricity grid model extracted from osmTGmod is limited to the German territory. This script adds border crossing +######################################### + +The electricity grid model extracted from osmTGmod is limited to the German territory. This script adds border crossing lines and corresponding buses and transformers to all neighbouring countries which have a direct electrical connection to the German grid. diff --git a/documentation/doc/dataprocessing/ego_dp_powerflow_grid_future_scenarios.rst b/documentation/doc/dataprocessing/ego_dp_powerflow_grid_future_scenarios.rst index 853a8202..1a15f1c8 100644 --- a/documentation/doc/dataprocessing/ego_dp_powerflow_grid_future_scenarios.rst +++ b/documentation/doc/dataprocessing/ego_dp_powerflow_grid_future_scenarios.rst @@ -1,7 +1,9 @@ .. AUTOGENERATED - DO NOT TOUCH! ego_dp_powerflow_grid_future_scenarios.sql -##########################################The grid model which is used as an input for powerflow calculations and optimization in open_eGo is the same in all +########################################## + +The grid model which is used as an input for powerflow calculations and optimization in open_eGo is the same in all three scenarios 'SQ', 'NEP 2035' and 'eGo100'. In the following script the grid model created for the 'SQ' scenario in the previous scripts is duplicated for the remaining two future scenarios diff --git a/documentation/doc/dataprocessing/ego_dp_powerflow_hv_setup.rst b/documentation/doc/dataprocessing/ego_dp_powerflow_hv_setup.rst index c48d5a94..8b6bc2fb 100644 --- a/documentation/doc/dataprocessing/ego_dp_powerflow_hv_setup.rst +++ b/documentation/doc/dataprocessing/ego_dp_powerflow_hv_setup.rst @@ -1,7 +1,9 @@ .. AUTOGENERATED - DO NOT TOUCH! ego_dp_powerflow_hv_setup.sql -#############################This script creates all tables which are needed for hv-powerflow calculations. The characteristics of those tables +############################# + +This script creates all tables which are needed for hv-powerflow calculations. The characteristics of those tables follow the structure of PyPSA's input data. The following tables are created: diff --git a/documentation/doc/dataprocessing/ego_dp_powerflow_lopf_data.rst b/documentation/doc/dataprocessing/ego_dp_powerflow_lopf_data.rst index b2dfd809..69aad801 100644 --- a/documentation/doc/dataprocessing/ego_dp_powerflow_lopf_data.rst +++ b/documentation/doc/dataprocessing/ego_dp_powerflow_lopf_data.rst @@ -1,10 +1,17 @@ .. AUTOGENERATED - DO NOT TOUCH! ego_dp_powerflow_lopf_data.sql -##############################LOPF data - -Setting marginal_cost ( operating cost + fuel cost + CO2 crt cost ) -in model_draft.ego_grid_pf_hv_generator according to renpass_gis, NEP 2014 scenario. -In addition p_max_pu is set for all generators with variable dispatch based on p_max_pu = p_set / p_nom . +############################## + +Missing parameters necessary for calculating a linear optimal power flow (LOPF) are added to the existing data. This +includes marginal costs per technology, which is composed of specific operating cost, fuel costs and CO2 costs +according to renpass_gis, NEP 2014 scenario. +In addition p_max_pu is set for all generators with variable dispatch based on p_max_pu = p_set / p_nom. + +A further section of the script is used to insert extendable battery and hydrogen storages to all substations in the +grid model. These have a initial installed capacity p_nom=0, which can be extended when executing an optimization +(by calculating a LOPF). + copyright Europa-Universität Flensburg, Centre for Sustainable Energy Systems diff --git a/documentation/doc/dataprocessing/ego_dp_powerflow_osmtgmod_to_pypsa.rst b/documentation/doc/dataprocessing/ego_dp_powerflow_osmtgmod_to_pypsa.rst index 5bc21fb8..9c923a30 100644 --- a/documentation/doc/dataprocessing/ego_dp_powerflow_osmtgmod_to_pypsa.rst +++ b/documentation/doc/dataprocessing/ego_dp_powerflow_osmtgmod_to_pypsa.rst @@ -1,7 +1,9 @@ .. AUTOGENERATED - DO NOT TOUCH! ego_dp_powerflow_osmtgmod_to_pypsa.sql -######################################`osmTGmod `_ provides a model of the German EHV and HV grid based on OpenStreetMap. +###################################### + +`osmTGmod `_ provides a model of the German EHV and HV grid based on OpenStreetMap. This script extracts `bus `_ and `branch data `_ provided by osmTGmod and inserts the grid model into the corresponding powerflow tables. Additionally some (electrical) properties for transformers are adjusted or added. diff --git a/documentation/doc/dataprocessing/ego_dp_powerflow_timeseries_demand.rst b/documentation/doc/dataprocessing/ego_dp_powerflow_timeseries_demand.rst index 5274e4a6..8834f697 100644 --- a/documentation/doc/dataprocessing/ego_dp_powerflow_timeseries_demand.rst +++ b/documentation/doc/dataprocessing/ego_dp_powerflow_timeseries_demand.rst @@ -1,7 +1,9 @@ .. AUTOGENERATED - DO NOT TOUCH! ego_dp_powerflow_timeseries_demand.sql -######################################Aggregated load time series for neighbouring countries are based on rennpassG!S results and are added to the corresponding +###################################### + +Aggregated load time series for neighbouring countries are based on rennpassG!S results and are added to the corresponding `powerflow table `_. The load is equivalent in all three scenarios. diff --git a/documentation/doc/dataprocessing/ego_dp_powerflow_voronoi_weatherpoint.rst b/documentation/doc/dataprocessing/ego_dp_powerflow_voronoi_weatherpoint.rst index 18357c14..f68ef8d8 100644 --- a/documentation/doc/dataprocessing/ego_dp_powerflow_voronoi_weatherpoint.rst +++ b/documentation/doc/dataprocessing/ego_dp_powerflow_voronoi_weatherpoint.rst @@ -1,7 +1,9 @@ .. AUTOGENERATED - DO NOT TOUCH! ego_dp_powerflow_voronoi_weatherpoint.sql -#########################################voronoi with climatepoints +######################################### + +voronoi with climatepoints copyright diff --git a/documentation/doc/dataprocessing/ego_dp_structure_input_verification.rst b/documentation/doc/dataprocessing/ego_dp_structure_input_verification.rst index 407581c3..1b5864f2 100644 --- a/documentation/doc/dataprocessing/ego_dp_structure_input_verification.rst +++ b/documentation/doc/dataprocessing/ego_dp_structure_input_verification.rst @@ -1,7 +1,9 @@ .. AUTOGENERATED - DO NOT TOUCH! ego_dp_structure_input_verification.sql -#######################################Input verification (eGoPP) +####################################### + +Input verification (eGoPP) Check the necessary input tables from eGo PreProcessing. Return version of input tables. diff --git a/documentation/doc/dataprocessing/ego_dp_substation_ehv.rst b/documentation/doc/dataprocessing/ego_dp_substation_ehv.rst index a97a0a28..50383628 100644 --- a/documentation/doc/dataprocessing/ego_dp_substation_ehv.rst +++ b/documentation/doc/dataprocessing/ego_dp_substation_ehv.rst @@ -1,7 +1,9 @@ .. AUTOGENERATED - DO NOT TOUCH! ego_dp_substation_ehv.sql -#########################EHV Substation +######################### + +EHV Substation Abstract EHV Substations of the extra high voltage level from OSM. This script abstracts substations of the extra high voltage level from openstreetmap data. diff --git a/documentation/doc/dataprocessing/ego_dp_substation_ehv_voronoi.rst b/documentation/doc/dataprocessing/ego_dp_substation_ehv_voronoi.rst index 5a4fbfbe..2be0dee6 100644 --- a/documentation/doc/dataprocessing/ego_dp_substation_ehv_voronoi.rst +++ b/documentation/doc/dataprocessing/ego_dp_substation_ehv_voronoi.rst @@ -1,7 +1,9 @@ .. AUTOGENERATED - DO NOT TOUCH! ego_dp_substation_ehv_voronoi.sql -#################################EHV Substation Voronoi +################################# + +EHV Substation Voronoi Voronoi polygons with eucldean distance on EHV Substation. Manhattan distance would be better but not available in sql. diff --git a/documentation/doc/dataprocessing/ego_dp_substation_hvmv.rst b/documentation/doc/dataprocessing/ego_dp_substation_hvmv.rst index ba2401d5..357ad0ef 100644 --- a/documentation/doc/dataprocessing/ego_dp_substation_hvmv.rst +++ b/documentation/doc/dataprocessing/ego_dp_substation_hvmv.rst @@ -1,7 +1,9 @@ .. AUTOGENERATED - DO NOT TOUCH! ego_dp_substation_hvmv.sql -##########################HVMV Substation +########################## + +HVMV Substation Abstract HVMV Substations of the high voltage level from OSM. This script abstracts substations of the high voltage level from openstreetmap data. All substations that are relevant transition points between the transmission and distribution grid are identified, irrelevant ones are disregarded. diff --git a/documentation/doc/dataprocessing/ego_dp_substation_hvmv_voronoi.rst b/documentation/doc/dataprocessing/ego_dp_substation_hvmv_voronoi.rst index e4a42423..87790a98 100644 --- a/documentation/doc/dataprocessing/ego_dp_substation_hvmv_voronoi.rst +++ b/documentation/doc/dataprocessing/ego_dp_substation_hvmv_voronoi.rst @@ -1,7 +1,9 @@ .. AUTOGENERATED - DO NOT TOUCH! ego_dp_substation_hvmv_voronoi.sql -##################################HVMV Substation Voronoi +################################## + +HVMV Substation Voronoi Voronoi polygons with eucldean distance on HVMV Substation. Manhattan distance would be better but not available in sql. diff --git a/documentation/doc/dataprocessing/ego_dp_substation_id_to_generator.rst b/documentation/doc/dataprocessing/ego_dp_substation_id_to_generator.rst index 1dbf2424..e0ebabfe 100644 --- a/documentation/doc/dataprocessing/ego_dp_substation_id_to_generator.rst +++ b/documentation/doc/dataprocessing/ego_dp_substation_id_to_generator.rst @@ -1,7 +1,9 @@ .. AUTOGENERATED - DO NOT TOUCH! ego_dp_substation_id_to_generator.sql -#####################################Substation ID to Generator +##################################### + +Substation ID to Generator All powerplants (Conventional and Renewable) receive the corresponding Substation ID. Either the HVMV Substation ID (= MV Griddistrict ID) or the EHV Substaion ID. Identify corresponding subst_id for all power plants according to their voltage_level and geometry. diff --git a/documentation/doc/dataprocessing/ego_dp_substation_otg.rst b/documentation/doc/dataprocessing/ego_dp_substation_otg.rst index 0725faa4..00417999 100644 --- a/documentation/doc/dataprocessing/ego_dp_substation_otg.rst +++ b/documentation/doc/dataprocessing/ego_dp_substation_otg.rst @@ -1,7 +1,9 @@ .. AUTOGENERATED - DO NOT TOUCH! ego_dp_substation_otg.sql -#########################Substation OTG-ID +######################### + +Substation OTG-ID Script to assign osmTGmod-id (OTG) to substation. diff --git a/documentation/doc/dataprocessing/ego_dp_versioning.rst b/documentation/doc/dataprocessing/ego_dp_versioning.rst index 07e1e2f8..a0cb0ff5 100644 --- a/documentation/doc/dataprocessing/ego_dp_versioning.rst +++ b/documentation/doc/dataprocessing/ego_dp_versioning.rst @@ -1,7 +1,9 @@ .. AUTOGENERATED - DO NOT TOUCH! ego_dp_versioning.sql -#####################eGo Data Processing result data versioning +##################### + +eGo Data Processing result data versioning Copy a version from model_draft to OEP schema diff --git a/documentation/doc/dataprocessing/ego_dp_versioning_mviews.rst b/documentation/doc/dataprocessing/ego_dp_versioning_mviews.rst index 1ce3d005..6bf97470 100644 --- a/documentation/doc/dataprocessing/ego_dp_versioning_mviews.rst +++ b/documentation/doc/dataprocessing/ego_dp_versioning_mviews.rst @@ -1,7 +1,9 @@ .. AUTOGENERATED - DO NOT TOUCH! ego_dp_versioning_mviews.sql -############################eGo Data Processing result data versioning +############################ + +eGo Data Processing result data versioning Copy a version of mvies from model_draft to OEP schema diff --git a/documentation/doc/dataprocessing/ego_dp_versioning_overview.rst b/documentation/doc/dataprocessing/ego_dp_versioning_overview.rst index ff6371b1..6b61ef34 100644 --- a/documentation/doc/dataprocessing/ego_dp_versioning_overview.rst +++ b/documentation/doc/dataprocessing/ego_dp_versioning_overview.rst @@ -1,7 +1,9 @@ .. AUTOGENERATED - DO NOT TOUCH! ego_dp_versioning_overview.sql -##############################eGo Data Processing overview +############################## + +eGo Data Processing overview Check all versioned tables diff --git a/documentation/doc/dataprocessing/functions/function_query_metadata.rst b/documentation/doc/dataprocessing/functions/function_query_metadata.rst index e416e123..c714d70c 100644 --- a/documentation/doc/dataprocessing/functions/function_query_metadata.rst +++ b/documentation/doc/dataprocessing/functions/function_query_metadata.rst @@ -1,7 +1,9 @@ .. AUTOGENERATED - DO NOT TOUCH! function_query_metadata.sql -###########################Function select important parameters of a table and it's metadata +########################### + +Function select important parameters of a table and it's metadata NOT WORKING diff --git a/documentation/doc/dataprocessing/rea/ego_dp_conv.rst b/documentation/doc/dataprocessing/rea/ego_dp_conv.rst index 7d8a66ef..b63b4a38 100644 --- a/documentation/doc/dataprocessing/rea/ego_dp_conv.rst +++ b/documentation/doc/dataprocessing/rea/ego_dp_conv.rst @@ -1,7 +1,9 @@ .. AUTOGENERATED - DO NOT TOUCH! ego_dp_conv.sql -###############Skript to allocate conventional power plants to loadareas +############### + +Skript to allocate conventional power plants to loadareas copyright diff --git a/documentation/doc/dataprocessing/rea/ego_dp_lattice_500m.rst b/documentation/doc/dataprocessing/rea/ego_dp_lattice_500m.rst index 32179bcf..d6cc53f7 100644 --- a/documentation/doc/dataprocessing/rea/ego_dp_lattice_500m.rst +++ b/documentation/doc/dataprocessing/rea/ego_dp_lattice_500m.rst @@ -1,7 +1,9 @@ .. AUTOGENERATED - DO NOT TOUCH! ego_dp_lattice_500m.sql -#######################lattice (regular point grid) with 500m +####################### + +lattice (regular point grid) with 500m lattice on bbox of Germany diff --git a/documentation/doc/dataprocessing/rea/ego_dp_lattice_50m.rst b/documentation/doc/dataprocessing/rea/ego_dp_lattice_50m.rst index 1a1c4c26..f5192d2f 100644 --- a/documentation/doc/dataprocessing/rea/ego_dp_lattice_50m.rst +++ b/documentation/doc/dataprocessing/rea/ego_dp_lattice_50m.rst @@ -1,7 +1,9 @@ .. AUTOGENERATED - DO NOT TOUCH! ego_dp_lattice_50m.sql -######################lattice (regular point grid) with 50m +###################### + +lattice (regular point grid) with 50m lattice on bbox of Germany diff --git a/documentation/doc/dataprocessing/rea/ego_dp_rea_lattice_per_area_500m.rst b/documentation/doc/dataprocessing/rea/ego_dp_rea_lattice_per_area_500m.rst index 9b86f459..eff991a8 100644 --- a/documentation/doc/dataprocessing/rea/ego_dp_rea_lattice_per_area_500m.rst +++ b/documentation/doc/dataprocessing/rea/ego_dp_rea_lattice_per_area_500m.rst @@ -1,7 +1,9 @@ .. AUTOGENERATED - DO NOT TOUCH! ego_dp_rea_lattice_per_area_500m.sql -####################################lattice on bbox of Germany with 500m per area +#################################### + +lattice on bbox of Germany with 500m per area wpa - points inside wind potential area la - points inside loadarea x - points inside wind potential area and loadarea diff --git a/documentation/doc/dataprocessing/rea/ego_dp_rea_lattice_per_area_50m.rst b/documentation/doc/dataprocessing/rea/ego_dp_rea_lattice_per_area_50m.rst index 6f78b442..a20d81f4 100644 --- a/documentation/doc/dataprocessing/rea/ego_dp_rea_lattice_per_area_50m.rst +++ b/documentation/doc/dataprocessing/rea/ego_dp_rea_lattice_per_area_50m.rst @@ -1,7 +1,9 @@ .. AUTOGENERATED - DO NOT TOUCH! ego_dp_rea_lattice_per_area_50m.sql -###################################lattice on bbox of loadarea with 50m per area +################################### + +lattice on bbox of loadarea with 50m per area la - points inside loadarea diff --git a/documentation/doc/dataprocessing/rea/ego_dp_rea_m1.rst b/documentation/doc/dataprocessing/rea/ego_dp_rea_m1.rst index 864d7b48..cde6b9a5 100644 --- a/documentation/doc/dataprocessing/rea/ego_dp_rea_m1.rst +++ b/documentation/doc/dataprocessing/rea/ego_dp_rea_m1.rst @@ -1,7 +1,9 @@ .. AUTOGENERATED - DO NOT TOUCH! ego_dp_rea_m1.sql -#################Skript to allocate decentralized renewable power plants (dea) +################# + +Skript to allocate decentralized renewable power plants (dea) Methods base on technology and voltage level Uses different lattice from setup_ego_wpa_per_grid_district.sql diff --git a/documentation/doc/dataprocessing/rea/ego_dp_rea_m2.rst b/documentation/doc/dataprocessing/rea/ego_dp_rea_m2.rst index 5de9efc4..b185fb06 100644 --- a/documentation/doc/dataprocessing/rea/ego_dp_rea_m2.rst +++ b/documentation/doc/dataprocessing/rea/ego_dp_rea_m2.rst @@ -1,7 +1,9 @@ .. AUTOGENERATED - DO NOT TOUCH! ego_dp_rea_m2.sql -#################Skript to allocate decentralized renewable power plants (dea) +################# + +Skript to allocate decentralized renewable power plants (dea) Methods base on technology and voltage level Uses different lattice from setup_ego_wpa_per_grid_district.sql diff --git a/documentation/doc/dataprocessing/rea/ego_dp_rea_m3.rst b/documentation/doc/dataprocessing/rea/ego_dp_rea_m3.rst index e0473c8a..2a7f75c2 100644 --- a/documentation/doc/dataprocessing/rea/ego_dp_rea_m3.rst +++ b/documentation/doc/dataprocessing/rea/ego_dp_rea_m3.rst @@ -1,7 +1,9 @@ .. AUTOGENERATED - DO NOT TOUCH! ego_dp_rea_m3.sql -#################Skript to allocate decentralized renewable power plants (dea) +################# + +Skript to allocate decentralized renewable power plants (dea) Methods base on technology and voltage level Uses different lattice from setup_ego_wpa_per_grid_district.sql diff --git a/documentation/doc/dataprocessing/rea/ego_dp_rea_m4.rst b/documentation/doc/dataprocessing/rea/ego_dp_rea_m4.rst index 05be02e1..8e8dc541 100644 --- a/documentation/doc/dataprocessing/rea/ego_dp_rea_m4.rst +++ b/documentation/doc/dataprocessing/rea/ego_dp_rea_m4.rst @@ -1,7 +1,9 @@ .. AUTOGENERATED - DO NOT TOUCH! ego_dp_rea_m4.sql -#################Skript to allocate decentralized renewable power plants (dea) +################# + +Skript to allocate decentralized renewable power plants (dea) Methods base on technology and voltage level Uses different lattice from setup_ego_wpa_per_grid_district.sql diff --git a/documentation/doc/dataprocessing/rea/ego_dp_rea_m5.rst b/documentation/doc/dataprocessing/rea/ego_dp_rea_m5.rst index f36df3dc..0ef13398 100644 --- a/documentation/doc/dataprocessing/rea/ego_dp_rea_m5.rst +++ b/documentation/doc/dataprocessing/rea/ego_dp_rea_m5.rst @@ -1,7 +1,9 @@ .. AUTOGENERATED - DO NOT TOUCH! ego_dp_rea_m5.sql -#################Skript to allocate decentralized renewable power plants (dea) +################# + +Skript to allocate decentralized renewable power plants (dea) Methods base on technology and voltage level Uses different lattice from setup_ego_wpa_per_grid_district.sql diff --git a/documentation/doc/dataprocessing/rea/ego_dp_rea_results.rst b/documentation/doc/dataprocessing/rea/ego_dp_rea_results.rst index fcaa189b..0dd69801 100644 --- a/documentation/doc/dataprocessing/rea/ego_dp_rea_results.rst +++ b/documentation/doc/dataprocessing/rea/ego_dp_rea_results.rst @@ -1,7 +1,9 @@ .. AUTOGENERATED - DO NOT TOUCH! ego_dp_rea_results.sql -######################Skript to allocate decentralized renewable power plants (dea) +###################### + +Skript to allocate decentralized renewable power plants (dea) Methods base on technology and voltage level Uses different lattice from setup_ego_wpa_per_grid_district.sql diff --git a/documentation/doc/dataprocessing/rea/ego_dp_rea_setup.rst b/documentation/doc/dataprocessing/rea/ego_dp_rea_setup.rst index 895f392a..e2386ed8 100644 --- a/documentation/doc/dataprocessing/rea/ego_dp_rea_setup.rst +++ b/documentation/doc/dataprocessing/rea/ego_dp_rea_setup.rst @@ -1,7 +1,9 @@ .. AUTOGENERATED - DO NOT TOUCH! ego_dp_rea_setup.sql -####################Skript to allocate decentralized renewable power plants (dea) +#################### + +Skript to allocate decentralized renewable power plants (dea) Methods base on technology and voltage level Uses different lattice from setup_ego_wpa_per_grid_district.sql diff --git a/documentation/doc/dataprocessing/rea/ego_dp_rea_wpa_per_mvgd.rst b/documentation/doc/dataprocessing/rea/ego_dp_rea_wpa_per_mvgd.rst index ea2b57d2..816f510a 100644 --- a/documentation/doc/dataprocessing/rea/ego_dp_rea_wpa_per_mvgd.rst +++ b/documentation/doc/dataprocessing/rea/ego_dp_rea_wpa_per_mvgd.rst @@ -1,7 +1,9 @@ .. AUTOGENERATED - DO NOT TOUCH! ego_dp_rea_wpa_per_mvgd.sql -###########################wind potential area per mv-griddistrict +########################### + +wind potential area per mv-griddistrict wpa dump wpa per mv-griddistrict diff --git a/documentation/doc/dataprocessing/rea/ego_dp_wpa.rst b/documentation/doc/dataprocessing/rea/ego_dp_wpa.rst index 060f047d..5ffe44a0 100644 --- a/documentation/doc/dataprocessing/rea/ego_dp_wpa.rst +++ b/documentation/doc/dataprocessing/rea/ego_dp_wpa.rst @@ -1,7 +1,9 @@ .. AUTOGENERATED - DO NOT TOUCH! ego_dp_wpa.sql -##############Skript to allocate decentralized renewable power plants (dea) +############## + +Skript to allocate decentralized renewable power plants (dea) Methods base on technology and voltage level Uses different lattice from setup_ego_wpa_per_grid_district.sql From 1c0441e9ed8f79cd1a2e1f9cd93a468ae83c89fc Mon Sep 17 00:00:00 2001 From: Ludee Date: Thu, 8 Feb 2018 17:18:47 +0100 Subject: [PATCH 075/104] update doku REA --- dataprocessing/eGo_data_processing.py | 29 +-- .../ego_dp_lv_consumption_peakload.sql | 2 +- .../sql_snippets/rea/ego_dp_lattice_500m.sql | 99 +++---- .../sql_snippets/rea/ego_dp_lattice_50m.sql | 96 +++---- .../rea/ego_dp_rea_lattice_per_area_500m.sql | 21 +- .../rea/ego_dp_rea_lattice_per_area_50m.sql | 71 ++--- .../sql_snippets/rea/ego_dp_rea_m1.sql | 20 +- .../sql_snippets/rea/ego_dp_rea_m2.sql | 20 +- .../sql_snippets/rea/ego_dp_rea_m3.sql | 22 +- .../sql_snippets/rea/ego_dp_rea_m4.sql | 22 +- .../sql_snippets/rea/ego_dp_rea_m5.sql | 22 +- .../sql_snippets/rea/ego_dp_rea_results.sql | 19 +- .../sql_snippets/rea/ego_dp_rea_setup.sql | 246 ++++++++++-------- .../rea/ego_dp_rea_wpa_per_mvgd.sql | 133 ++++------ .../sql_snippets/rea/ego_dp_wpa.sql | 35 --- .../bpmn/ego_dp_bpmn_sections.graphml | 89 ++++++- 16 files changed, 441 insertions(+), 505 deletions(-) delete mode 100644 dataprocessing/sql_snippets/rea/ego_dp_wpa.sql diff --git a/dataprocessing/eGo_data_processing.py b/dataprocessing/eGo_data_processing.py index 4c256b9a..03ec3ebc 100644 --- a/dataprocessing/eGo_data_processing.py +++ b/dataprocessing/eGo_data_processing.py @@ -74,21 +74,20 @@ def data_processing(): 'ego_dp_lv_griddistrict.sql', # LV Griddistrict 'ego_dp_lv_consumption_peakload.sql', # LV Consumption and Peakload - ## REA - 'rea/ego_dp_lattice_500m.sql', # lattice (point grid) 500m - 'rea/ego_dp_lattice_50m.sql', # lattice (point grid) 50m - 'rea/ego_dp_rea_wpa_per_mvgd.sql', # wind potential area - - 'rea/ego_dp_rea_lattice_per_area_500m.sql', # prepare 500m lattice - 'rea/ego_dp_rea_lattice_per_area_50m.sql', # prepare 50m lattice - 'rea/ego_dp_rea_setup.sql', # setup table for allocation - 'rea/ego_dp_rea_m1.sql', # M1 biomass and solar to farmyard - 'rea/ego_dp_rea_m2.sql', # M2 windfarms - 'rea/ego_dp_rea_m3.sql', # M3 wind turbines to wpa - 'rea/ego_dp_rea_m4.sql', # M4 other and rest - 'rea/ego_dp_rea_m5.sql', # M5 LV to LA - 'rea/ego_dp_rea_results.sql', # results and statistics - + ## REA + 'rea/ego_dp_lattice_500m.sql', # Lattice (point grid) 500m + 'rea/ego_dp_lattice_50m.sql', # Lattice (point grid) 50m + 'rea/ego_dp_rea_wpa_per_mvgd.sql', # Wind potential area (WPA) + 'rea/ego_dp_rea_lattice_per_area_500m.sql', # Prepare 500m lattice + 'rea/ego_dp_rea_lattice_per_area_50m.sql', # Prepare 50m lattice + 'rea/ego_dp_rea_setup.sql', # Setup tables for REA + 'rea/ego_dp_rea_m1.sql', # M1 biomass and solar to OSM agricultural + 'rea/ego_dp_rea_m2.sql', # M2 wind farms + 'rea/ego_dp_rea_m3.sql', # M3 wind turbines to WPA + 'rea/ego_dp_rea_m4.sql', # M4 other and rest + 'rea/ego_dp_rea_m5.sql', # M5 LV to Loadarea + 'rea/ego_dp_rea_results.sql', # Results and statistics + ## POWERFLOW 'ego_dp_powerflow_assignment_otgid.sql', # assign otg_id to pp lists 'ego_dp_powerflow_assignment_unid.sql', # create a unified_id over all pp (res and conv) diff --git a/dataprocessing/sql_snippets/ego_dp_lv_consumption_peakload.sql b/dataprocessing/sql_snippets/ego_dp_lv_consumption_peakload.sql index 8b8f8ab7..71d871b0 100644 --- a/dataprocessing/sql_snippets/ego_dp_lv_consumption_peakload.sql +++ b/dataprocessing/sql_snippets/ego_dp_lv_consumption_peakload.sql @@ -42,7 +42,7 @@ UPDATE model_draft.ego_grid_lv_griddistrict AS t1 SET sector_consumption_retail = COALESCE(t2.real_cons,0) FROM ( WITH lvgd_sector_area_retail_sum AS ( - SELECT lvgd.la_id, + SELECT lvgd.la_id, SUM(lvgd.sector_area_retail) AS sum FROM model_draft.ego_grid_lv_griddistrict AS lvgd GROUP BY lvgd.la_id) diff --git a/dataprocessing/sql_snippets/rea/ego_dp_lattice_500m.sql b/dataprocessing/sql_snippets/rea/ego_dp_lattice_500m.sql index 31da0ef1..266e7526 100644 --- a/dataprocessing/sql_snippets/rea/ego_dp_lattice_500m.sql +++ b/dataprocessing/sql_snippets/rea/ego_dp_lattice_500m.sql @@ -1,91 +1,58 @@ /* -lattice (regular point grid) with 500m -lattice on bbox of Germany +Lattice (regular point grid) with 500m +Lattice on bounding box of Germany. -__copyright__ = "Reiner Lemoine Institut" -__license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" -__url__ = "https://github.com/openego/data_processing/blob/master/LICENSE" -__author__ = "Ludee" +__copyright__ = "Reiner Lemoine Institut" +__license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" +__url__ = "https://github.com/openego/data_processing/blob/master/LICENSE" +__author__ = "Ludee" */ + -- table for lattice 500m -DROP TABLE IF EXISTS model_draft.ego_lattice_500m CASCADE; -CREATE TABLE model_draft.ego_lattice_500m ( - id SERIAL NOT NULL, - subst_id integer, - area_type text, - geom_box geometry(Polygon,3035), - geom geometry(Point,3035), -CONSTRAINT ego_lattice_500m_pkey PRIMARY KEY (id)); +DROP TABLE IF EXISTS model_draft.ego_lattice_500m CASCADE; +CREATE TABLE model_draft.ego_lattice_500m ( + id SERIAL NOT NULL, + subst_id integer, + area_type text, + geom_box geometry(Polygon,3035), + geom geometry(Point,3035), +CONSTRAINT ego_lattice_500m_pkey PRIMARY KEY (id)); -- ego scenario log (version,io,schema_name,table_name,script_name,comment) SELECT ego_scenario_log('v0.3.0','input','boundaries','bkg_vg250_1_sta_union_mview','ego_dp_lattice_500m.sql',' '); -- lattice on bbox of Germany with 500m INSERT INTO model_draft.ego_lattice_500m (geom_box) - SELECT ST_SETSRID(ST_CreateFishnet( - ROUND((ST_ymax(box2d(box.geom)) - ST_ymin(box2d(box.geom))) /500)::integer, - ROUND((ST_xmax(box2d(box.geom)) - ST_xmin(box2d(box.geom))) /500)::integer, - 500, - 500, - ST_xmin (box2d(box.geom)), - ST_ymin (box2d(box.geom)) - ),3035)::geometry(POLYGON,3035) AS geom - FROM boundaries.bkg_vg250_1_sta_union_mview AS box ; + SELECT ST_SETSRID(ST_CreateFishnet( + ROUND((ST_ymax(box2d(box.geom)) - ST_ymin(box2d(box.geom))) /500)::integer, + ROUND((ST_xmax(box2d(box.geom)) - ST_xmin(box2d(box.geom))) /500)::integer, + 500, + 500, + ST_xmin (box2d(box.geom)), + ST_ymin (box2d(box.geom)) + ),3035)::geometry(POLYGON,3035) AS geom + FROM boundaries.bkg_vg250_1_sta_union_mview AS box ; -- index gist (geom_box) -CREATE INDEX ego_lattice_500m_geom_box_idx - ON model_draft.ego_lattice_500m USING gist (geom_box); +CREATE INDEX ego_lattice_500m_geom_box_idx + ON model_draft.ego_lattice_500m USING gist (geom_box); -- centroid -UPDATE model_draft.ego_lattice_500m - SET geom = ST_CENTROID(geom_box); +UPDATE model_draft.ego_lattice_500m + SET geom = ST_CENTROID(geom_box); -- index gist (geom) -CREATE INDEX ego_lattice_500m_geom_idx - ON model_draft.ego_lattice_500m USING gist (geom); +CREATE INDEX ego_lattice_500m_geom_idx + ON model_draft.ego_lattice_500m USING gist (geom); -- grant (oeuser) -ALTER TABLE model_draft.ego_lattice_500m OWNER TO oeuser; +ALTER TABLE model_draft.ego_lattice_500m OWNER TO oeuser; -- metadata COMMENT ON TABLE model_draft.ego_lattice_500m IS '{ - "title": "eGoDP - lattice on bbox of Germany with 500m", - "description": "lattice (regular point grid)", - "language": [ "eng" ], - "reference_date": "", - "sources": [ - {"name": "boundaries.bkg_vg250_1_sta_union_mview","description": "","url": ""} ], - "spatial": [ - {"extend": "Germany", - "resolution": "500m"} ], - "license": [ - {"id": "tba", - "name": "tba", - "version": "tba", - "url": "tba", - "instruction": "tba"} ], - "contributors": [ - {"name": "Ludwig Hülk", "email": "ludwig.huelk@rl-institut.de", - "date": "01.10.2016", "comment": "create table"}, - {"name": "Ludwig Hülk", "email": "ludwig.huelk@rl-institut.de", - "date": "12.10.2016", "comment": "create metadata"}, - {"name": "Ludwig Hülk", "email": "ludwig.huelk@rl-institut.de", - "date": "25.12.2016", "comment": "update to v0.2"}, - {"name": "Ludwig Hülk", "email": "ludwig.huelk@rl-institut.de", - "date": "10.01.2016", "comment": "update centroid"} ], - "resources": [{ - "schema": { - "fields": [ - {"name": "id", "description": "unique identifier", "unit": "" }, - {"name": "subst_id", "description": "hvmv-substation", "unit": "" }, - {"name": "area_type", "description": "type of area (wpa, la, x)", "unit": "" }, - {"name": "geom_box", "description": "Geometry polygon", "unit": "" }, - {"name": "geom", "description": "Geometry point", "unit": "" } ]}, - "meta_version": "1.0"}] }'; - --- select description -SELECT obj_description('model_draft.ego_lattice_500m' ::regclass) ::json; + "comment": "eGoDP - Temporary table", + "version": "v0.3.0" }'; -- ego scenario log (version,io,schema_name,table_name,script_name,comment) SELECT ego_scenario_log('v0.3.0','output','model_draft','ego_lattice_500m','ego_dp_lattice_500m.sql',' '); diff --git a/dataprocessing/sql_snippets/rea/ego_dp_lattice_50m.sql b/dataprocessing/sql_snippets/rea/ego_dp_lattice_50m.sql index 8e47940e..c53b2a74 100644 --- a/dataprocessing/sql_snippets/rea/ego_dp_lattice_50m.sql +++ b/dataprocessing/sql_snippets/rea/ego_dp_lattice_50m.sql @@ -1,21 +1,21 @@ /* -lattice (regular point grid) with 50m -lattice on bbox of Germany +Lattice (regular point grid) with 50m +Lattice on bounding box of Germany. -__copyright__ = "Reiner Lemoine Institut" -__license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" -__url__ = "https://github.com/openego/data_processing/blob/master/LICENSE" -__author__ = "Ludee" +__copyright__ = "Reiner Lemoine Institut" +__license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" +__url__ = "https://github.com/openego/data_processing/blob/master/LICENSE" +__author__ = "Ludee" */ -- table for lattice 50m -DROP TABLE IF EXISTS model_draft.ego_lattice_50m CASCADE; -CREATE TABLE model_draft.ego_lattice_50m ( - id SERIAL NOT NULL, - subst_id integer, - area_type text, - geom_box geometry(Polygon,3035), - geom geometry(Point,3035), +DROP TABLE IF EXISTS model_draft.ego_lattice_50m CASCADE; +CREATE TABLE model_draft.ego_lattice_50m ( + id SERIAL NOT NULL, + subst_id integer, + area_type text, + geom_box geometry(Polygon,3035), + geom geometry(Point,3035), CONSTRAINT ego_lattice_50m_pkey PRIMARY KEY (id)); -- ego scenario log (version,io,schema_name,table_name,script_name,comment) @@ -23,69 +23,35 @@ SELECT ego_scenario_log('v0.3.0','input','boundaries','bkg_vg250_1_sta_union_mvi -- insert lattice INSERT INTO model_draft.ego_lattice_50m (geom_box) - SELECT ST_SETSRID(ST_CREATEFISHNET( - ROUND((ST_ymax(box2d(geom)) - ST_ymin(box2d(geom))) /50)::integer, - ROUND((ST_xmax(box2d(geom)) - ST_xmin(box2d(geom))) /50)::integer, - 50, - 50, - ST_xmin (box2d(geom)), - ST_ymin (box2d(geom)) - ),3035)::geometry(POLYGON,3035) AS geom - FROM boundaries.bkg_vg250_1_sta_union_mview; + SELECT ST_SETSRID(ST_CREATEFISHNET( + ROUND((ST_ymax(box2d(geom)) - ST_ymin(box2d(geom))) /50)::integer, + ROUND((ST_xmax(box2d(geom)) - ST_xmin(box2d(geom))) /50)::integer, + 50, + 50, + ST_xmin (box2d(geom)), + ST_ymin (box2d(geom)) + ),3035)::geometry(POLYGON,3035) AS geom + FROM boundaries.bkg_vg250_1_sta_union_mview; -- index gist (geom_box) -CREATE INDEX ego_lattice_50m_geom_box_idx - ON model_draft.ego_lattice_50m USING gist (geom_box); +CREATE INDEX ego_lattice_50m_geom_box_idx + ON model_draft.ego_lattice_50m USING gist (geom_box); -- centroid -UPDATE model_draft.ego_lattice_50m - SET geom = ST_CENTROID(geom_box); +UPDATE model_draft.ego_lattice_50m + SET geom = ST_CENTROID(geom_box); -- index gist (geom) -CREATE INDEX ego_lattice_50m_geom_idx - ON model_draft.ego_lattice_50m USING gist (geom); +CREATE INDEX ego_lattice_50m_geom_idx + ON model_draft.ego_lattice_50m USING gist (geom); -- grant (oeuser) -ALTER TABLE model_draft.ego_lattice_50m OWNER TO oeuser; +ALTER TABLE model_draft.ego_lattice_50m OWNER TO oeuser; -- metadata COMMENT ON TABLE model_draft.ego_lattice_50m IS '{ - "title": "eGoDP - lattice on loadarea with 50m", - "description": "lattice (regular point grid)", - "language": [ "eng" ], - "reference_date": "", - "sources": [ - {"name": "boundaries.bkg_vg250_1_sta_union_mview","description": "","url": ""} ], - "spatial": [ - {"extend": "Germany", - "resolution": "50m"} ], - "license": [ - {"id": "tba", - "name": "tba", - "version": "tba", - "url": "tba", - "instruction": "tba"} ], - "contributors": [ - {"name": "Ludwig Hülk", "email": "ludwig.huelk@rl-institut.de", - "date": "01.10.2016", "comment": "create table"}, - {"name": "Ludwig Hülk", "email": "ludwig.huelk@rl-institut.de", - "date": "12.10.2016", "comment": "create metadata"}, - {"name": "Ludwig Hülk", "email": "ludwig.huelk@rl-institut.de", - "date": "25.12.2016", "comment": "update to v0.2"}, - {"name": "Ludwig Hülk", "email": "ludwig.huelk@rl-institut.de", - "date": "10.01.2016", "comment": "update centroid"} ], - "resources": [{ - "schema": { - "fields": [ - {"name": "id", "description": "unique identifier", "unit": "" }, - {"name": "subst_id", "description": "hvmv-substation", "unit": "" }, - {"name": "area_type", "description": "type of area (wpa, la, x)", "unit": "" }, - {"name": "geom_box", "description": "Geometry polygon", "unit": "" }, - {"name": "geom", "description": "Geometry point", "unit": "" } ]}, - "meta_version": "1.0"}] }'; - --- select description -SELECT obj_description('model_draft.ego_lattice_50m' ::regclass) ::json; + "comment": "eGoDP - Temporary table", + "version": "v0.3.0" }'; -- ego scenario log (version,io,schema_name,table_name,script_name,comment) SELECT ego_scenario_log('v0.3.0','output','model_draft','ego_lattice_50m','ego_dp_lattice_50m.sql',' '); diff --git a/dataprocessing/sql_snippets/rea/ego_dp_rea_lattice_per_area_500m.sql b/dataprocessing/sql_snippets/rea/ego_dp_rea_lattice_per_area_500m.sql index 1a66e898..d2bb2757 100644 --- a/dataprocessing/sql_snippets/rea/ego_dp_rea_lattice_per_area_500m.sql +++ b/dataprocessing/sql_snippets/rea/ego_dp_rea_lattice_per_area_500m.sql @@ -1,14 +1,15 @@ /* -lattice on bbox of Germany with 500m per area -wpa - points inside wind potential area -la - points inside loadarea -x - points inside wind potential area and loadarea -out - points outside area - -__copyright__ = "Reiner Lemoine Institut" -__license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" -__url__ = "https://github.com/openego/data_processing/blob/master/LICENSE" -__author__ = "Ludee" +Prepare 500m lattice +Lattice on bounding box of Germany with 500m per area: +wpa - points inside wind potential area +la - points inside loadarea +x - points inside wind potential area and loadarea +out - points outside area + +__copyright__ = "Reiner Lemoine Institut" +__license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" +__url__ = "https://github.com/openego/data_processing/blob/master/LICENSE" +__author__ = "Ludee" */ -- ego scenario log (version,io,schema_name,table_name,script_name,comment) diff --git a/dataprocessing/sql_snippets/rea/ego_dp_rea_lattice_per_area_50m.sql b/dataprocessing/sql_snippets/rea/ego_dp_rea_lattice_per_area_50m.sql index 3139faa3..056944bd 100644 --- a/dataprocessing/sql_snippets/rea/ego_dp_rea_lattice_per_area_50m.sql +++ b/dataprocessing/sql_snippets/rea/ego_dp_rea_lattice_per_area_50m.sql @@ -1,59 +1,60 @@ /* -lattice on bbox of loadarea with 50m per area -la - points inside loadarea +Prepare 500m lattice +Lattice on bounding box of Germany with 50m per area: +la - points inside loadarea -__copyright__ = "Reiner Lemoine Institut" -__license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" -__url__ = "https://github.com/openego/data_processing/blob/master/LICENSE" -__author__ = "Ludee" +__copyright__ = "Reiner Lemoine Institut" +__license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" +__url__ = "https://github.com/openego/data_processing/blob/master/LICENSE" +__author__ = "Ludee" */ -- ego scenario log (version,io,schema_name,table_name,script_name,comment) SELECT ego_scenario_log('v0.3.0','input','model_draft','ego_grid_mv_griddistrict','ego_dp_rea_lattice_per_area_50m.sql',' '); -- substation id from mv-griddistrict -UPDATE model_draft.ego_lattice_50m AS t1 - SET subst_id = t2.subst_id - FROM ( - SELECT grid.id, - gd.subst_id AS subst_id - FROM model_draft.ego_lattice_50m AS grid, - model_draft.ego_grid_mv_griddistrict AS gd - WHERE gd.geom && grid.geom AND - ST_CONTAINS(gd.geom,grid.geom) - ) AS t2 - WHERE t1.id = t2.id; +UPDATE model_draft.ego_lattice_50m AS t1 + SET subst_id = t2.subst_id + FROM ( + SELECT grid.id, + gd.subst_id AS subst_id + FROM model_draft.ego_lattice_50m AS grid, + model_draft.ego_grid_mv_griddistrict AS gd + WHERE gd.geom && grid.geom AND + ST_CONTAINS(gd.geom,grid.geom) + ) AS t2 + WHERE t1.id = t2.id; -- ego scenario log (version,io,schema_name,table_name,script_name,comment) SELECT ego_scenario_log('v0.3.0','input','model_draft','ego_demand_loadarea','ego_dp_rea_lattice_per_area_50m.sql',' '); -- area type for loadarea (la) -UPDATE model_draft.ego_lattice_50m AS t1 - SET area_type = t2.area_type - FROM ( - SELECT grid.id, - 'la' AS area_type - FROM model_draft.ego_lattice_50m AS grid, - model_draft.ego_demand_loadarea AS la - WHERE la.geom && grid.geom AND - ST_CONTAINS(la.geom,grid.geom) - ) AS t2 - WHERE t1.id = t2.id; +UPDATE model_draft.ego_lattice_50m AS t1 + SET area_type = t2.area_type + FROM ( + SELECT grid.id, + 'la' AS area_type + FROM model_draft.ego_lattice_50m AS grid, + model_draft.ego_demand_loadarea AS la + WHERE la.geom && grid.geom AND + ST_CONTAINS(la.geom,grid.geom) + ) AS t2 + WHERE t1.id = t2.id; -- ego scenario log (version,io,schema_name,table_name,script_name,comment) SELECT ego_scenario_log('v0.3.0','output','model_draft','ego_lattice_50m','ego_dp_rea_lattice_per_area_50m.sql',' '); -- mview points inside la -DROP MATERIALIZED VIEW IF EXISTS model_draft.ego_lattice_50m_la_mview CASCADE; -CREATE MATERIALIZED VIEW model_draft.ego_lattice_50m_la_mview AS - SELECT * - FROM model_draft.ego_lattice_50m - WHERE area_type = 'la'; +DROP MATERIALIZED VIEW IF EXISTS model_draft.ego_lattice_50m_la_mview CASCADE; +CREATE MATERIALIZED VIEW model_draft.ego_lattice_50m_la_mview AS + SELECT * + FROM model_draft.ego_lattice_50m + WHERE area_type = 'la'; -- index gist (geom) -CREATE INDEX ego_lattice_50m_la_mview_geom_idx - ON model_draft.ego_lattice_50m_la_mview USING gist (geom); +CREATE INDEX ego_lattice_50m_la_mview_geom_idx + ON model_draft.ego_lattice_50m_la_mview USING gist (geom); -- grant (oeuser) ALTER TABLE model_draft.ego_lattice_50m_la_mview OWNER TO oeuser; diff --git a/dataprocessing/sql_snippets/rea/ego_dp_rea_m1.sql b/dataprocessing/sql_snippets/rea/ego_dp_rea_m1.sql index 244935c8..e690f7d9 100644 --- a/dataprocessing/sql_snippets/rea/ego_dp_rea_m1.sql +++ b/dataprocessing/sql_snippets/rea/ego_dp_rea_m1.sql @@ -1,18 +1,14 @@ /* -Skript to allocate decentralized renewable power plants (dea) -Methods base on technology and voltage level -Uses different lattice from setup_ego_wpa_per_grid_district.sql - -__copyright__ = "Reiner Lemoine Institut" -__license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" -__url__ = "https://github.com/openego/data_processing/blob/master/LICENSE" -__author__ = "Ludee" +M1 biomass and solar to OSM agricultural +Allocates "biomass" & (renewable) "gas" to OSM agricultural areas. +The rest could not be allocated, consider in M4. + +__copyright__ = "Reiner Lemoine Institut" +__license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" +__url__ = "https://github.com/openego/data_processing/blob/master/LICENSE" +__author__ = "Ludee" */ -/* 1. M1-1 -Move "biomass" & (renewable) "gas" to OSM agricultural areas. -The rest could not be allocated, consider in M4. -*/ -- ego scenario log (version,io,schema_name,table_name,script_name,comment) SELECT ego_scenario_log('v0.3.0','input','model_draft','ego_dp_supply_res_powerplant','ego_dp_rea_m1.sql',' '); diff --git a/dataprocessing/sql_snippets/rea/ego_dp_rea_m2.sql b/dataprocessing/sql_snippets/rea/ego_dp_rea_m2.sql index 476a665e..1fdde67f 100644 --- a/dataprocessing/sql_snippets/rea/ego_dp_rea_m2.sql +++ b/dataprocessing/sql_snippets/rea/ego_dp_rea_m2.sql @@ -1,18 +1,14 @@ /* -Skript to allocate decentralized renewable power plants (dea) -Methods base on technology and voltage level -Uses different lattice from setup_ego_wpa_per_grid_district.sql - -__copyright__ = "Reiner Lemoine Institut" -__license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" -__url__ = "https://github.com/openego/data_processing/blob/master/LICENSE" -__author__ = "Ludee" +M2 wind farms +Allocates "wind" turbines with voltage level 4 to WPA as wind farms. +The rest could not be allocated, consider in M3. + +__copyright__ = "Reiner Lemoine Institut" +__license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" +__url__ = "https://github.com/openego/data_processing/blob/master/LICENSE" +__author__ = "Ludee" */ -/* 3. M2 -Move "wind" with "4" to WPA as wind farms. -The rest could not be allocated, consider in M4. -*/ -- ego scenario log (version,io,schema_name,table_name,script_name,comment) SELECT ego_scenario_log('v0.3.0','input','model_draft','ego_dp_supply_res_powerplant','ego_dp_rea_m2.sql',' '); diff --git a/dataprocessing/sql_snippets/rea/ego_dp_rea_m3.sql b/dataprocessing/sql_snippets/rea/ego_dp_rea_m3.sql index 15ce5f40..eff7f22a 100644 --- a/dataprocessing/sql_snippets/rea/ego_dp_rea_m3.sql +++ b/dataprocessing/sql_snippets/rea/ego_dp_rea_m3.sql @@ -1,19 +1,15 @@ /* -Skript to allocate decentralized renewable power plants (dea) -Methods base on technology and voltage level -Uses different lattice from setup_ego_wpa_per_grid_district.sql - -__copyright__ = "Reiner Lemoine Institut" -__license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" -__url__ = "https://github.com/openego/data_processing/blob/master/LICENSE" -__author__ = "Ludee" -*/ - -/* 4. M3 -Move "wind" with "5" & "6" to wpa_grid. +M3 wind turbines to WPA +Allocates "wind" turbines with voltage levels "5" & "6" to WPA. Also considers rest of M2. The rest could not be allocated, consider in M4. -*/ + +__copyright__ = "Reiner Lemoine Institut" +__license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" +__url__ = "https://github.com/openego/data_processing/blob/master/LICENSE" +__author__ = "Ludee" +*/ + -- ego scenario log (version,io,schema_name,table_name,script_name,comment) SELECT ego_scenario_log('v0.3.0','input','model_draft','ego_dp_supply_res_powerplant','ego_dp_rea_m3.sql',' '); diff --git a/dataprocessing/sql_snippets/rea/ego_dp_rea_m4.sql b/dataprocessing/sql_snippets/rea/ego_dp_rea_m4.sql index 52a2f5cc..79c24a5b 100644 --- a/dataprocessing/sql_snippets/rea/ego_dp_rea_m4.sql +++ b/dataprocessing/sql_snippets/rea/ego_dp_rea_m4.sql @@ -1,20 +1,16 @@ /* -Skript to allocate decentralized renewable power plants (dea) -Methods base on technology and voltage level -Uses different lattice from setup_ego_wpa_per_grid_district.sql - -__copyright__ = "Reiner Lemoine Institut" -__license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" -__url__ = "https://github.com/openego/data_processing/blob/master/LICENSE" -__author__ = "Ludee" -*/ - -/* 5. M4 -Move "wind" with "5" & "6" to wpa_grid. +M4 other and rest +Allocates "wind" with voltage levels "5" & "6" to WPA. "solar ground" & "wind" ohne voltage & Rest M1-1 & Rest M1-2 & Rest M3. Also considers rest of M1-1, M1-2 and M3. There should be no rest! -*/ + +__copyright__ = "Reiner Lemoine Institut" +__license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" +__url__ = "https://github.com/openego/data_processing/blob/master/LICENSE" +__author__ = "Ludee" +*/ + -- ego scenario log (version,io,schema_name,table_name,script_name,comment) SELECT ego_scenario_log('v0.3.0','input','model_draft','ego_dp_supply_res_powerplant','ego_dp_rea_m4.sql',' '); diff --git a/dataprocessing/sql_snippets/rea/ego_dp_rea_m5.sql b/dataprocessing/sql_snippets/rea/ego_dp_rea_m5.sql index 54d1899a..8568b87a 100644 --- a/dataprocessing/sql_snippets/rea/ego_dp_rea_m5.sql +++ b/dataprocessing/sql_snippets/rea/ego_dp_rea_m5.sql @@ -1,19 +1,15 @@ /* -Skript to allocate decentralized renewable power plants (dea) -Methods base on technology and voltage level -Uses different lattice from setup_ego_wpa_per_grid_district.sql - -__copyright__ = "Reiner Lemoine Institut" -__license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" -__url__ = "https://github.com/openego/data_processing/blob/master/LICENSE" -__author__ = "Ludee" +M5 LV to Loadarea +Allocate "solar" with voltage levels "6" & "7" to Loadarea. +There should be no rest! + +__copyright__ = "Reiner Lemoine Institut" +__license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" +__url__ = "https://github.com/openego/data_processing/blob/master/LICENSE" +__author__ = "Ludee" */ -/* 6. M5 -Relocate "solar" with "6" & "7" to la_grid. -There should be no rest. -*/ - + -- ego scenario log (version,io,schema_name,table_name,script_name,comment) SELECT ego_scenario_log('v0.3.0','input','model_draft','ego_dp_supply_res_powerplant','ego_dp_rea_m5.sql',' '); diff --git a/dataprocessing/sql_snippets/rea/ego_dp_rea_results.sql b/dataprocessing/sql_snippets/rea/ego_dp_rea_results.sql index 88dd6a4d..fed70d8a 100644 --- a/dataprocessing/sql_snippets/rea/ego_dp_rea_results.sql +++ b/dataprocessing/sql_snippets/rea/ego_dp_rea_results.sql @@ -1,17 +1,12 @@ /* -Skript to allocate decentralized renewable power plants (dea) -Methods base on technology and voltage level -Uses different lattice from setup_ego_wpa_per_grid_district.sql - -__copyright__ = "Reiner Lemoine Institut" -__license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" -__url__ = "https://github.com/openego/data_processing/blob/master/LICENSE" -__author__ = "Ludee" +Results and statistics for REA + +__copyright__ = "Reiner Lemoine Institut" +__license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" +__url__ = "https://github.com/openego/data_processing/blob/master/LICENSE" +__author__ = "Ludee" */ -/* -Results -*/ -- ego scenario log (version,io,schema_name,table_name,script_name,comment) SELECT ego_scenario_log('v0.3.0','input','model_draft','ego_dp_supply_res_powerplant','ego_dp_rea_results.sql',' '); @@ -36,7 +31,7 @@ ALTER TABLE model_draft.ego_supply_rea_per_gentype_and_voltlevel -- ego scenario log (version,io,schema_name,table_name,script_name,comment) SELECT ego_scenario_log('v0.3.0','output','model_draft','ego_supply_rea_per_gentype_and_voltlevel','ego_dp_rea_results.sql',' '); - + /* DEA capacity and count per grid_district */ diff --git a/dataprocessing/sql_snippets/rea/ego_dp_rea_setup.sql b/dataprocessing/sql_snippets/rea/ego_dp_rea_setup.sql index 1180ebd0..de49374b 100644 --- a/dataprocessing/sql_snippets/rea/ego_dp_rea_setup.sql +++ b/dataprocessing/sql_snippets/rea/ego_dp_rea_setup.sql @@ -1,70 +1,73 @@ /* -Skript to allocate decentralized renewable power plants (dea) -Methods base on technology and voltage level -Uses different lattice from setup_ego_wpa_per_grid_district.sql - -__copyright__ = "Reiner Lemoine Institut" -__license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" -__url__ = "https://github.com/openego/data_processing/blob/master/LICENSE" -__author__ = "Ludee" +Setup tables for REA +Skript to allocate decentralized renewable power plants (dea). +Methods base on technology and voltage level. +Allocate DEA outside of Germany to next HVMV Substation. +Generate OSM farmyards. + +__copyright__ = "Reiner Lemoine Institut" +__license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" +__url__ = "https://github.com/openego/data_processing/blob/master/LICENSE" +__author__ = "Ludee" */ + -- number of grid_district -> 3608 - SELECT COUNT(*) - FROM model_draft.ego_grid_mv_griddistrict; +SELECT COUNT(*) +FROM model_draft.ego_grid_mv_griddistrict; -- ego scenario log (version,io,schema_name,table_name,script_name,comment) SELECT ego_scenario_log('v0.3.0','input','model_draft','ego_dp_supply_res_powerplant','ego_dp_rea_setup.sql',' '); ALTER TABLE model_draft.ego_dp_supply_res_powerplant - DROP COLUMN IF EXISTS la_id CASCADE, - ADD COLUMN la_id integer, - DROP COLUMN IF EXISTS mvlv_subst_id CASCADE, - ADD COLUMN mvlv_subst_id integer, - DROP COLUMN IF EXISTS rea_sort CASCADE, - ADD COLUMN rea_sort integer, - DROP COLUMN IF EXISTS rea_flag CASCADE, - ADD COLUMN rea_flag character varying, - DROP COLUMN IF EXISTS rea_geom_line CASCADE, - ADD COLUMN rea_geom_line geometry(LineString,3035), - DROP COLUMN IF EXISTS rea_geom_new CASCADE, - ADD COLUMN rea_geom_new geometry(Point,3035); + DROP COLUMN IF EXISTS la_id CASCADE, + ADD COLUMN la_id integer, + DROP COLUMN IF EXISTS mvlv_subst_id CASCADE, + ADD COLUMN mvlv_subst_id integer, + DROP COLUMN IF EXISTS rea_sort CASCADE, + ADD COLUMN rea_sort integer, + DROP COLUMN IF EXISTS rea_flag CASCADE, + ADD COLUMN rea_flag character varying, + DROP COLUMN IF EXISTS rea_geom_line CASCADE, + ADD COLUMN rea_geom_line geometry(LineString,3035), + DROP COLUMN IF EXISTS rea_geom_new CASCADE, + ADD COLUMN rea_geom_new geometry(Point,3035); -- ego scenario log (version,io,schema_name,table_name,script_name,comment) SELECT ego_scenario_log('v0.3.0','input','model_draft','ego_grid_mv_griddistrict','ego_dp_rea_setup.sql',' '); -- subst_id from mv-griddistrict -UPDATE model_draft.ego_dp_supply_res_powerplant AS t1 - SET subst_id = t2.subst_id - FROM ( - SELECT a.id AS id, - b.subst_id AS subst_id - FROM model_draft.ego_dp_supply_res_powerplant AS a, - model_draft.ego_grid_mv_griddistrict AS b - WHERE b.geom && ST_TRANSFORM(a.geom,3035) AND - ST_CONTAINS(b.geom,ST_TRANSFORM(a.geom,3035)) - ) AS t2 - WHERE t1.id = t2.id; +UPDATE model_draft.ego_dp_supply_res_powerplant AS t1 + SET subst_id = t2.subst_id + FROM ( + SELECT a.id AS id, + b.subst_id AS subst_id + FROM model_draft.ego_dp_supply_res_powerplant AS a, + model_draft.ego_grid_mv_griddistrict AS b + WHERE b.geom && ST_TRANSFORM(a.geom,3035) AND + ST_CONTAINS(b.geom,ST_TRANSFORM(a.geom,3035)) + ) AS t2 + WHERE t1.id = t2.id; -- rea_flag reset -UPDATE model_draft.ego_dp_supply_res_powerplant - SET rea_flag = NULL, - rea_geom_new = NULL, - rea_geom_line = NULL; +UPDATE model_draft.ego_dp_supply_res_powerplant + SET rea_flag = NULL, + rea_geom_new = NULL, + rea_geom_line = NULL; -- re outside mv-griddistrict -UPDATE model_draft.ego_dp_supply_res_powerplant - SET rea_flag = 'out', - rea_geom_new = NULL, - rea_geom_line = NULL - WHERE subst_id IS NULL; +UPDATE model_draft.ego_dp_supply_res_powerplant + SET rea_flag = 'out', + rea_geom_new = NULL, + rea_geom_line = NULL + WHERE subst_id IS NULL; -- re outside mv-griddistrict -> offshore wind -UPDATE model_draft.ego_dp_supply_res_powerplant - SET rea_flag = 'wind_offshore', - rea_geom_new = NULL, - rea_geom_line = NULL - WHERE generation_subtype = 'wind_offshore'; +UPDATE model_draft.ego_dp_supply_res_powerplant + SET rea_flag = 'wind_offshore', + rea_geom_new = NULL, + rea_geom_line = NULL + WHERE generation_subtype = 'wind_offshore'; -- ego scenario log (version,io,schema_name,table_name,script_name,comment) SELECT ego_scenario_log('v0.3.0','output','model_draft','ego_dp_supply_res_powerplant','ego_dp_rea_setup.sql',' '); @@ -77,27 +80,32 @@ Offshore wind power plants are not moved. */ -- re outside mv-griddistrict -DROP MATERIALIZED VIEW IF EXISTS model_draft.ego_dp_supply_res_powerplant_out_mview CASCADE; -CREATE MATERIALIZED VIEW model_draft.ego_dp_supply_res_powerplant_out_mview AS - SELECT * - FROM model_draft.ego_dp_supply_res_powerplant - WHERE rea_flag = 'out' OR rea_flag = 'wind_offshore'; +DROP MATERIALIZED VIEW IF EXISTS model_draft.ego_dp_supply_res_powerplant_out_mview CASCADE; +CREATE MATERIALIZED VIEW model_draft.ego_dp_supply_res_powerplant_out_mview AS + SELECT * + FROM model_draft.ego_dp_supply_res_powerplant + WHERE rea_flag = 'out' OR rea_flag = 'wind_offshore'; -- index GIST (geom) CREATE INDEX ego_dp_supply_res_powerplant_out_mview_geom_idx - ON model_draft.ego_dp_supply_res_powerplant_out_mview USING gist (geom); + ON model_draft.ego_dp_supply_res_powerplant_out_mview USING gist (geom); -- index GIST (rea_geom_line) CREATE INDEX ego_dp_supply_res_powerplant_out_mview_rea_geom_line_idx - ON model_draft.ego_dp_supply_res_powerplant_out_mview USING gist (rea_geom_line); + ON model_draft.ego_dp_supply_res_powerplant_out_mview USING gist (rea_geom_line); -- index GIST (rea_geom_new) CREATE INDEX ego_dp_supply_res_powerplant_out_mview_rea_geom_new_idx - ON model_draft.ego_dp_supply_res_powerplant_out_mview USING gist (rea_geom_new); + ON model_draft.ego_dp_supply_res_powerplant_out_mview USING gist (rea_geom_new); -- grant (oeuser) ALTER TABLE model_draft.ego_dp_supply_res_powerplant_out_mview OWNER TO oeuser; +-- metadata +COMMENT ON MATERIALIZED VIEW model_draft.ego_dp_supply_res_powerplant_out_mview IS '{ + "comment": "eGoDP - Temporary table", + "version": "v0.3.0" }'; + -- ego scenario log (version,io,schema_name,table_name,script_name,comment) SELECT ego_scenario_log('v0.3.0','temp','model_draft','ego_dp_supply_res_powerplant_out_mview','ego_dp_rea_setup.sql','First check if RES are outside Germany'); @@ -106,70 +114,82 @@ SELECT ego_scenario_log('v0.3.0','temp','model_draft','ego_dp_supply_res_powerpl SELECT ego_scenario_log('v0.3.0','input','model_draft','ego_grid_hvmv_substation','ego_dp_rea_setup.sql',' '); -- new geom, DEA to next substation -DROP TABLE IF EXISTS model_draft.ego_dp_supply_res_powerplant_out_nn CASCADE; -CREATE TABLE model_draft.ego_dp_supply_res_powerplant_out_nn AS - SELECT DISTINCT ON (a.id) - a.id AS dea_id, - a.generation_type, - b.subst_id, - b.geom ::geometry(Point,3035) AS geom_sub, - ST_Distance(ST_TRANSFORM(a.geom,3035),b.geom) AS distance, - ST_TRANSFORM(a.geom,3035) ::geometry(Point,3035) AS geom - FROM model_draft.ego_dp_supply_res_powerplant_out_mview AS a, - model_draft.ego_grid_hvmv_substation AS b - WHERE ST_DWithin(ST_TRANSFORM(a.geom,3035),b.geom, 100000) -- In a 100 km radius - ORDER BY a.id, ST_Distance(ST_TRANSFORM(a.geom,3035),b.geom); - -ALTER TABLE model_draft.ego_dp_supply_res_powerplant_out_nn - ADD PRIMARY KEY (dea_id), - OWNER TO oeuser; +DROP TABLE IF EXISTS model_draft.ego_dp_supply_res_powerplant_out_nn CASCADE; +CREATE TABLE model_draft.ego_dp_supply_res_powerplant_out_nn AS + SELECT DISTINCT ON (a.id) + a.id AS dea_id, + a.generation_type, + b.subst_id, + b.geom ::geometry(Point,3035) AS geom_sub, + ST_Distance(ST_TRANSFORM(a.geom,3035),b.geom) AS distance, + ST_TRANSFORM(a.geom,3035) ::geometry(Point,3035) AS geom + FROM model_draft.ego_dp_supply_res_powerplant_out_mview AS a, + model_draft.ego_grid_hvmv_substation AS b + WHERE ST_DWithin(ST_TRANSFORM(a.geom,3035),b.geom, 100000) -- In a 100 km radius + ORDER BY a.id, ST_Distance(ST_TRANSFORM(a.geom,3035),b.geom); + +ALTER TABLE model_draft.ego_dp_supply_res_powerplant_out_nn + ADD PRIMARY KEY (dea_id), + OWNER TO oeuser; + +-- metadata +COMMENT ON TABLE model_draft.ego_dp_supply_res_powerplant_out_nn IS '{ + "comment": "eGoDP - Temporary table", + "version": "v0.3.0" }'; -- ego scenario log (version,io,schema_name,table_name,script_name,comment) SELECT ego_scenario_log('v0.3.0','temp','model_draft','ego_dp_supply_res_powerplant_out_nn','ego_dp_rea_setup.sql',' '); - + -- new subst_id and rea_geom_new with line -UPDATE model_draft.ego_dp_supply_res_powerplant AS t1 - SET subst_id = t2.subst_id, - rea_geom_new = t2.rea_geom_new, - rea_geom_line = t2.rea_geom_line - FROM (SELECT nn.dea_id AS dea_id, - nn.subst_id AS subst_id, - nn.geom_sub AS rea_geom_new, - ST_MAKELINE(nn.geom,nn.geom_sub) ::geometry(LineString,3035) AS rea_geom_line - FROM model_draft.ego_dp_supply_res_powerplant_out_nn AS nn, - model_draft.ego_dp_supply_res_powerplant AS dea - WHERE rea_flag = 'out' - )AS t2 - WHERE t1.id = t2.dea_id; - --- re outside mv-griddistrict -DROP MATERIALIZED VIEW IF EXISTS model_draft.ego_dp_supply_res_powerplant_out_mview CASCADE; -CREATE MATERIALIZED VIEW model_draft.ego_dp_supply_res_powerplant_out_mview AS - SELECT dea.* - FROM model_draft.ego_dp_supply_res_powerplant AS dea - WHERE rea_flag = 'out' OR rea_flag = 'wind_offshore'; +UPDATE model_draft.ego_dp_supply_res_powerplant AS t1 + SET subst_id = t2.subst_id, + rea_geom_new = t2.rea_geom_new, + rea_geom_line = t2.rea_geom_line + FROM ( + SELECT nn.dea_id AS dea_id, + nn.subst_id AS subst_id, + nn.geom_sub AS rea_geom_new, + ST_MAKELINE(nn.geom,nn.geom_sub) ::geometry(LineString,3035) AS rea_geom_line + FROM model_draft.ego_dp_supply_res_powerplant_out_nn AS nn, + model_draft.ego_dp_supply_res_powerplant AS dea + WHERE rea_flag = 'out' + )AS t2 + WHERE t1.id = t2.dea_id; + + +-- DEA outside MV Griddistrict +DROP MATERIALIZED VIEW IF EXISTS model_draft.ego_dp_supply_res_powerplant_out_mview CASCADE; +CREATE MATERIALIZED VIEW model_draft.ego_dp_supply_res_powerplant_out_mview AS + SELECT dea.* + FROM model_draft.ego_dp_supply_res_powerplant AS dea + WHERE rea_flag = 'out' OR rea_flag = 'wind_offshore'; -- index GIST (geom) CREATE INDEX ego_dp_supply_res_powerplant_out_mview_geom_idx - ON model_draft.ego_dp_supply_res_powerplant_out_mview USING gist (geom); + ON model_draft.ego_dp_supply_res_powerplant_out_mview USING gist (geom); -- index GIST (rea_geom_line) CREATE INDEX ego_dp_supply_res_powerplant_out_mview_rea_geom_line_idx - ON model_draft.ego_dp_supply_res_powerplant_out_mview USING gist (rea_geom_line); + ON model_draft.ego_dp_supply_res_powerplant_out_mview USING gist (rea_geom_line); -- index GIST (rea_geom_new) CREATE INDEX ego_dp_supply_res_powerplant_out_mview_rea_geom_new_idx - ON model_draft.ego_dp_supply_res_powerplant_out_mview USING gist (rea_geom_new); + ON model_draft.ego_dp_supply_res_powerplant_out_mview USING gist (rea_geom_new); -- grant (oeuser) ALTER TABLE model_draft.ego_dp_supply_res_powerplant_out_mview OWNER TO oeuser; +-- metadata +COMMENT ON MATERIALIZED VIEW model_draft.ego_dp_supply_res_powerplant_out_mview IS '{ + "comment": "eGoDP - Temporary table", + "version": "v0.3.0" }'; + -- ego scenario log (version,io,schema_name,table_name,script_name,comment) SELECT ego_scenario_log('v0.3.0','temp','model_draft','ego_dp_supply_res_powerplant_out_mview','ego_dp_rea_setup.sql','Second check if RES outside Germany'); -- drop -DROP TABLE IF EXISTS model_draft.ego_dp_supply_res_powerplant_out_nn CASCADE; --- DROP MATERIALIZED VIEW IF EXISTS model_draft.ego_dp_supply_res_powerplant_out_mview CASCADE; +DROP TABLE IF EXISTS model_draft.ego_dp_supply_res_powerplant_out_nn CASCADE; +-- DROP MATERIALIZED VIEW IF EXISTS model_draft.ego_dp_supply_res_powerplant_out_mview CASCADE; /* @@ -181,27 +201,27 @@ In Germany a lot of farmyard builings are used for renewable energy production w SELECT ego_scenario_log('v0.3.0','input','model_draft','ego_osm_sector_per_griddistrict_4_agricultural','ego_dp_rea_setup.sql',' '); ALTER TABLE model_draft.ego_osm_sector_per_griddistrict_4_agricultural - DROP COLUMN IF EXISTS subst_id, - ADD COLUMN subst_id integer, - DROP COLUMN IF EXISTS area_ha, - ADD COLUMN area_ha double precision; + DROP COLUMN IF EXISTS subst_id, + ADD COLUMN subst_id integer, + DROP COLUMN IF EXISTS area_ha, + ADD COLUMN area_ha double precision; -- update subst_id from grid_district UPDATE model_draft.ego_osm_sector_per_griddistrict_4_agricultural AS t1 - SET subst_id = t2.subst_id - FROM ( - SELECT osm.id AS id, - dis.subst_id AS subst_id - FROM model_draft.ego_osm_sector_per_griddistrict_4_agricultural AS osm, - model_draft.ego_grid_mv_griddistrict AS dis - WHERE dis.geom && ST_CENTROID(osm.geom) AND - ST_CONTAINS(dis.geom,ST_CENTROID(osm.geom)) - ) AS t2 - WHERE t1.id = t2.id; + SET subst_id = t2.subst_id + FROM ( + SELECT osm.id AS id, + dis.subst_id AS subst_id + FROM model_draft.ego_osm_sector_per_griddistrict_4_agricultural AS osm, + model_draft.ego_grid_mv_griddistrict AS dis + WHERE dis.geom && ST_CENTROID(osm.geom) AND + ST_CONTAINS(dis.geom,ST_CENTROID(osm.geom)) + ) AS t2 + WHERE t1.id = t2.id; -- update area UPDATE model_draft.ego_osm_sector_per_griddistrict_4_agricultural - SET area_ha = ST_AREA(geom)/10000; + SET area_ha = ST_AREA(geom)/10000; -- ego scenario log (version,io,schema_name,table_name,script_name,comment) SELECT ego_scenario_log('v0.3.0','output','model_draft','ego_osm_sector_per_griddistrict_4_agricultural','ego_dp_rea_setup.sql',' '); diff --git a/dataprocessing/sql_snippets/rea/ego_dp_rea_wpa_per_mvgd.sql b/dataprocessing/sql_snippets/rea/ego_dp_rea_wpa_per_mvgd.sql index a4acf966..3f05f620 100644 --- a/dataprocessing/sql_snippets/rea/ego_dp_rea_wpa_per_mvgd.sql +++ b/dataprocessing/sql_snippets/rea/ego_dp_rea_wpa_per_mvgd.sql @@ -1,12 +1,11 @@ /* -wind potential area per mv-griddistrict -wpa dump -wpa per mv-griddistrict - -__copyright__ = "Reiner Lemoine Institut" -__license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" -__url__ = "https://github.com/openego/data_processing/blob/master/LICENSE" -__author__ = "Ludee" +Wind potential area (WPA) per MV-Griddistrict +Cut WPA with MV-Griddistrict and make valid geometries. + +__copyright__ = "Reiner Lemoine Institut" +__license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" +__url__ = "https://github.com/openego/data_processing/blob/master/LICENSE" +__author__ = "Ludee" */ @@ -38,7 +37,8 @@ ALTER TABLE model_draft.ego_supply_wpa OWNER TO oeuser; -- ego scenario log (version,io,schema_name,table_name,script_name,comment) SELECT ego_scenario_log('v0.3.0','temp','model_draft','ego_supply_wpa','ego_dp_rea_wpa_per_mvgd.sql',' '); - */ +*/ + /* -- validate (geom) DROP VIEW IF EXISTS model_draft.ego_supply_wpa_error_geom_view CASCADE; CREATE VIEW model_draft.ego_supply_wpa_error_geom_view AS @@ -55,100 +55,67 @@ CREATE VIEW model_draft.ego_supply_wpa_error_geom_view AS WHERE test.error = FALSE; -- drop empty view -SELECT f_drop_view('{ego_supply_wpa_error_geom_view}', 'calc_ego_re'); */ +SELECT f_drop_view('{ego_supply_wpa_error_geom_view}', 'calc_ego_re'); +*/ --- wpa per mv-griddistrict -DROP TABLE IF EXISTS model_draft.ego_supply_wpa_per_mvgd CASCADE; -CREATE TABLE model_draft.ego_supply_wpa_per_mvgd ( - id serial, - subst_id integer, - area_ha double precision, - geom geometry(Polygon,3035), -CONSTRAINT ego_supply_wpa_per_mvgd_pkey PRIMARY KEY (id)); +-- WPA per MV-Griddistrict +DROP TABLE IF EXISTS model_draft.ego_supply_wpa_per_mvgd CASCADE; +CREATE TABLE model_draft.ego_supply_wpa_per_mvgd ( + id serial, + subst_id integer, + area_ha double precision, + geom geometry(Polygon,3035), +CONSTRAINT ego_supply_wpa_per_mvgd_pkey PRIMARY KEY (id)); -- ego scenario log (version,io,schema_name,table_name,script_name,comment) SELECT ego_scenario_log('v0.3.0','input','model_draft','ego_grid_mv_griddistrict','ego_dp_rea_wpa_per_mvgd.sql',' '); SELECT ego_scenario_log('v0.3.0','input','supply','vernetzen_wind_potential_area','ego_dp_rea_wpa_per_mvgd.sql',' '); -- insert wpa per mv-griddistrict -WITH wpa_dump AS ( - SELECT (ST_DUMP(ST_MULTI(ST_UNION( - ST_BUFFER(ST_BUFFER(ST_TRANSFORM(geom,3035),-0,01),0,01) - )))).geom AS geom - FROM supply.vernetzen_wind_potential_area) +WITH wpa_dump AS ( + SELECT (ST_DUMP(ST_MULTI(ST_UNION( + ST_BUFFER(ST_BUFFER(ST_TRANSFORM(geom,3035),-0,01),0,01) + )))).geom AS geom + FROM supply.vernetzen_wind_potential_area) INSERT INTO model_draft.ego_supply_wpa_per_mvgd (area_ha, geom) - SELECT ST_AREA(c.geom)/10000, - c.geom ::geometry(Polygon,3035) - FROM (SELECT ST_MakeValid((ST_DUMP(ST_MULTI(ST_SAFE_INTERSECTION(a.geom,b.geom)))).geom) AS geom - FROM wpa_dump AS a, - model_draft.ego_grid_mv_griddistrict AS b - WHERE a.geom && b.geom - ) AS c - WHERE ST_IsValid(c.geom) = 't' AND ST_GeometryType(c.geom) = 'ST_Polygon' ; + SELECT ST_AREA(c.geom)/10000, + c.geom ::geometry(Polygon,3035) + FROM ( + SELECT ST_MakeValid((ST_DUMP(ST_MULTI(ST_SAFE_INTERSECTION(a.geom,b.geom)))).geom) AS geom + FROM wpa_dump AS a, + model_draft.ego_grid_mv_griddistrict AS b + WHERE a.geom && b.geom + ) AS c + WHERE ST_IsValid(c.geom) = 't' AND ST_GeometryType(c.geom) = 'ST_Polygon' ; -- substation id -UPDATE model_draft.ego_supply_wpa_per_mvgd AS t1 - SET subst_id = t2.subst_id - FROM ( - SELECT a.id AS id, - b.subst_id AS subst_id - FROM model_draft.ego_supply_wpa_per_mvgd AS a, - model_draft.ego_grid_mv_griddistrict AS b - WHERE b.geom && a.geom AND - ST_CONTAINS(b.geom,ST_PointOnSurface(a.geom)) - ) AS t2 - WHERE t1.id = t2.id; +UPDATE model_draft.ego_supply_wpa_per_mvgd AS t1 + SET subst_id = t2.subst_id + FROM ( + SELECT a.id AS id, + b.subst_id AS subst_id + FROM model_draft.ego_supply_wpa_per_mvgd AS a, + model_draft.ego_grid_mv_griddistrict AS b + WHERE b.geom && a.geom AND + ST_CONTAINS(b.geom,ST_PointOnSurface(a.geom)) + ) AS t2 + WHERE t1.id = t2.id; -- index gist (geom) -CREATE INDEX ego_supply_wpa_per_mvgd_geom_idx - ON model_draft.ego_supply_wpa_per_mvgd USING gist (geom); +CREATE INDEX ego_supply_wpa_per_mvgd_geom_idx + ON model_draft.ego_supply_wpa_per_mvgd USING gist (geom); -- grant (oeuser) -ALTER TABLE model_draft.ego_supply_wpa_per_mvgd OWNER TO oeuser; +ALTER TABLE model_draft.ego_supply_wpa_per_mvgd OWNER TO oeuser; -- metadata COMMENT ON TABLE model_draft.ego_supply_wpa_per_mvgd IS '{ - "title": "eGo dataprocessing - WPA per MV Griddistrict", - "description": "Potential areas for wind power plants - Wind Potential Area (wpa)", - "language": [ "eng" ], - "reference_date": "", - "sources": [ - {"name": "eGo dataprocessing", "description": "v0.3.0", "url": "https://github.com/openego/data_processing", "license": "GNU Affero General Public License Version 3 (AGPL-3.0)", "copyright": " " }, - {"name": "VerNetzen - Wind potential Area", "description": " ", "url": "http://oep.iks.cs.ovgu.de/dataedit/view/supply/vernetzen_wind_potential_area", "license": "ODbL-1.0", "copyright": "© VerNetzen"} ], - "spatial": [ - {"extend": "Germany", - "resolution": "50m"} ], - "license": [ - {"id": "ODbL-1.0", - "name": "Open Data Commons Open Database License 1.0", - "version": "1.0", - "url": "https://opendatacommons.org/licenses/odbl/1.0/", - "instruction": "You are free: To Share, To Create, To Adapt; As long as you: Attribute, Share-Alike, Keep open!", - "copyright": "© Reiner Lemoine Institut" } ], - "contributors": [ - {"name": "Ludwig Hülk", "email": "ludwig.huelk@rl-institut.de", - "date": "01.10.2016", "comment": "Create table"}, - {"name": "Ludwig Hülk", "email": "ludwig.huelk@rl-institut.de", - "date": "25.12.2016", "comment": "Add metadata"}, - {"name": "Ludwig Hülk", "email": "ludwig.huelk@rl-institut.de", - "date": "25.12.2016", "comment": "Update to v0.2"}, - {"name": "Ludwig Hülk", "email": "ludwig.huelk@rl-institut.de", - "date": "28.03.2017", "comment": "Update to v0.3.0"}], - "resources": [{ - "schema": { - "fields": [ - {"name": "id", "description": "Unique identifier", "unit": "" }, - {"name": "subst_id", "description": "HVMV substation", "unit": "" }, - {"name": "area_ha", "description": "Area", "unit": "ha" }, - {"name": "geom", "description": "Geometry", "unit": "" }]}, - "meta_version": "1.2"}] }'; - --- select description -SELECT obj_description('model_draft.ego_supply_wpa_per_mvgd' ::regclass) ::json; + "comment": "eGoDP - Temporary table", + "version": "v0.3.0" }'; -- ego scenario log (version,io,schema_name,table_name,script_name,comment) SELECT ego_scenario_log('v0.3.0','output','model_draft','ego_supply_wpa_per_mvgd','ego_dp_rea_wpa_per_mvgd.sql',' '); --- DROP TABLE IF EXISTS model_draft.ego_supply_wpa CASCADE; +-- DROP TABLE IF EXISTS model_draft.ego_supply_wpa CASCADE; diff --git a/dataprocessing/sql_snippets/rea/ego_dp_wpa.sql b/dataprocessing/sql_snippets/rea/ego_dp_wpa.sql deleted file mode 100644 index 11ae69f4..00000000 --- a/dataprocessing/sql_snippets/rea/ego_dp_wpa.sql +++ /dev/null @@ -1,35 +0,0 @@ - --- metadata -COMMENT ON TABLE supply.soethe_wind_potential_area IS '{ - "title": "eGoDP_REA - wpa per mv-griddistrict", - "description": "potential areas for wind power plants - Wind Potential Area (wpa)", - "language": [ "eng" ], - "reference_date": "", - "sources": [ - {"name": "VerNetzen - Projektabschlussbericht","description": "Sozial-ökologische und technisch-ökonomische Modellierung von Entwicklungspfaden der Energiewende","url": "http://www.uni-flensburg.de/fileadmin/content/abteilungen/industrial/dokumente/downloads/veroeffentlichungen/forschungsergebnisse/vernetzen-2016-endbericht-online.pdf"}, - {"name": "OpenStreetMap","description": "Geofabrik - Download - OpenStreetMap Data Extracts","url": "http://download.geofabrik.de/europe/germany.html#"}, - {"name": "Bundesamt für Kartographie und Geodäsie - Digitale Landschaftsmodell 1:250 000 (DLM250)","description": "© GeoBasis-DE / BKG 2015","url": "http://www.bkg.bund.de"}, - {"name": "Bundesamt für Naturschutz - Schutzgebiete in Deutschland","description": "","url": "https://www.bfn.de/karten.html"} ], - "spatial": [ - {"extend": "Germany", - "resolution": ""} ], - "license": [ - {"id": "ODbL-1.0", - "name": "Open Data Commons Open Database License 1.0", - "version": "1.0", - "url": "https://opendatacommons.org/licenses/odbl/1.0/", - "instruction": "You are free: To Share, To Create, To Adapt; As long as you: Attribute, Share-Alike, Keep open!"} ], - "contributors": [ - {"name": "Ludwig Hülk", "email": "ludwig.huelk@rl-institut.de", - "date": "01.08.2016", "comment": "Create table"}, - {"name": "Ludwig Hülk", "email": "ludwig.huelk@rl-institut.de", - "date": "07.03.2017", "comment": "Add metadata"} ], - "resources": [{ - "schema": { - "fields": [ - {"name": "region_key", "description": "unique identifier", "unit": "" }, - {"name": "geom", "description": "Geometry", "unit": "" }]}, - "meta_version": "1.0"}] }'; - --- select description -SELECT obj_description('supply.soethe_wind_potential_area' ::regclass) ::json; diff --git a/documentation/bpmn/ego_dp_bpmn_sections.graphml b/documentation/bpmn/ego_dp_bpmn_sections.graphml index 18b4e927..96caf4a3 100644 --- a/documentation/bpmn/ego_dp_bpmn_sections.graphml +++ b/documentation/bpmn/ego_dp_bpmn_sections.graphml @@ -17,7 +17,7 @@ - + eGo DataProcessing @@ -53,13 +53,13 @@ - + - + @@ -242,7 +242,7 @@ grid.ego_ehv_substation - + @@ -266,7 +266,7 @@ grid.ego_ehv_substation - + POWERFLOW @@ -337,7 +337,7 @@ grid.ego_ehv_substation - + ? @@ -405,6 +405,54 @@ grid.ego_dp_lv_griddistrict + + + + + + + grid.ego_dp_mvlv_substation +grid.ego_dp_lv_griddistrict + + + + + + + + + + + + + + + + + + + + + + + REA + + + + + + + + + + + + + + + + + @@ -569,7 +617,34 @@ grid.ego_dp_lv_griddistrict - + + + + + + + + + + + + + + + + + + + + + + + + + + + + From 1db70b3d827b00f8eb970317c4ec155b18c1c6a4 Mon Sep 17 00:00:00 2001 From: WolfBunke Date: Thu, 8 Feb 2018 17:24:39 +0100 Subject: [PATCH 076/104] Update modules.rst --- documentation/doc/dataprocessing/modules.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/documentation/doc/dataprocessing/modules.rst b/documentation/doc/dataprocessing/modules.rst index cc5150de..c8e509c9 100644 --- a/documentation/doc/dataprocessing/modules.rst +++ b/documentation/doc/dataprocessing/modules.rst @@ -13,6 +13,7 @@ dataprocessing/sql_snippets/ scripts .. toctree:: :titlesonly: :maxdepth: 7 + ego_dp_loadarea_census ego_dp_loadarea_consumption ego_dp_loadarea_griddistrict_results From de4ff086bbd10236b0aff6b8fe4cb5e003c335a4 Mon Sep 17 00:00:00 2001 From: wolfbunke Date: Mon, 26 Mar 2018 11:22:00 +0200 Subject: [PATCH 077/104] change doc-spring for rtd --- documentation/doc/methodology.rst | 11 +++++++ documentation/doc/scenario.rst | 1 + .../sql_snippets/ego_dp_conv_by_scenario.sql | 25 ++-------------- .../ego_dp_preprocessing_conv_powerplant.sql | 5 +++- .../ego_dp_preprocessing_res_powerplant.sql | 4 ++- .../ego_dp_res_rea_by_scenario.sql | 29 ++++++++----------- .../ego_nep_2015_scenario_capacities.sql | 4 ++- preprocessing/sql_snippets/opsd_powerdata.sql | 2 +- ...ply_ego_renewable_power_plants_germany.sql | 2 +- 9 files changed, 39 insertions(+), 44 deletions(-) create mode 100644 documentation/doc/methodology.rst diff --git a/documentation/doc/methodology.rst b/documentation/doc/methodology.rst new file mode 100644 index 00000000..ecc4d98d --- /dev/null +++ b/documentation/doc/methodology.rst @@ -0,0 +1,11 @@ +============= +Methodologies +============= + +[Intro] + + + +.. Renewable allocation +.. include:: renewables.rst + diff --git a/documentation/doc/scenario.rst b/documentation/doc/scenario.rst index 7845df4a..9b52b752 100644 --- a/documentation/doc/scenario.rst +++ b/documentation/doc/scenario.rst @@ -64,6 +64,7 @@ eGo 100 Methodology *********** +.. inclued:: methodology.rst ********** diff --git a/preprocessing/sql_snippets/ego_dp_conv_by_scenario.sql b/preprocessing/sql_snippets/ego_dp_conv_by_scenario.sql index d4ae5c7d..caee4ef1 100644 --- a/preprocessing/sql_snippets/ego_dp_conv_by_scenario.sql +++ b/preprocessing/sql_snippets/ego_dp_conv_by_scenario.sql @@ -1,33 +1,14 @@ /* -Start - SQL Script which prepare and insert a conventional power plant data list by scenario -for the project open_eGo and the tools eTraGo and eDisGo. +for the project open_eGo and the tools eTraGo and eDisGo. And insert Power plants by +NEP 2035 scenario data set. + __copyright__ = "Europa-Universität Flensburg - ZNES" __license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" __url__ = "https://github.com/openego/data_processing/blob/master/LICENSE" __author__ = "wolfbunke" - - -Notes: ------- - - Part II: - Power plants by NEP 2035 scenario data - Part III: - Power plants by eGo 100 scenario data - -Documentation: --------------- - flags: - repowering : old unit get an update of this electrical_capacity (plus or minus) - commissioning: New unit by a scenario assumption - decommissioning: decommissioning of status quo units by a scenario assumption - constantly: existing plant for status quo or other scenarios - -End */ diff --git a/preprocessing/sql_snippets/ego_dp_preprocessing_conv_powerplant.sql b/preprocessing/sql_snippets/ego_dp_preprocessing_conv_powerplant.sql index bda614b0..534cc132 100644 --- a/preprocessing/sql_snippets/ego_dp_preprocessing_conv_powerplant.sql +++ b/preprocessing/sql_snippets/ego_dp_preprocessing_conv_powerplant.sql @@ -1,5 +1,8 @@ /* -Rectifies incorrect or implausible records in power plant list and adjusts it for further use +This script rectifies incorrect or implausible records in power plant list of the BNetzA +and adjusts it for further use. The results ends up in table model_draft.ego_dp_supply_conv_powerplant +and supply.ego_dp_conv_powerplant. + __copyright__ = "Flensburg University of Applied Sciences, Centre for Sustainable Energy Systems" __license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" diff --git a/preprocessing/sql_snippets/ego_dp_preprocessing_res_powerplant.sql b/preprocessing/sql_snippets/ego_dp_preprocessing_res_powerplant.sql index 56552372..ef2a5fda 100644 --- a/preprocessing/sql_snippets/ego_dp_preprocessing_res_powerplant.sql +++ b/preprocessing/sql_snippets/ego_dp_preprocessing_res_powerplant.sql @@ -1,5 +1,7 @@ /* -Set up status quo data and create standardized table of all scenarios and rectifies incorrect or implausible records in power plant list and adjusts it for further use +This script set up status quo data and create standardized table of all scenarios +and rectifies incorrect or implausible records in power plant list and adjusts +it for further use. __copyright__ = "Flensburg University of Applied Sciences, Centre for Sustainable Energy Systems" __license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" diff --git a/preprocessing/sql_snippets/ego_dp_res_rea_by_scenario.sql b/preprocessing/sql_snippets/ego_dp_res_rea_by_scenario.sql index 96207366..b02e37ce 100644 --- a/preprocessing/sql_snippets/ego_dp_res_rea_by_scenario.sql +++ b/preprocessing/sql_snippets/ego_dp_res_rea_by_scenario.sql @@ -3,30 +3,25 @@ SQL Script that prepare and insert single renewable power plant data by a given scenario in order to create a high resulution allocation renewable energy expansion. For the project open_eGo and the tools eTraGo, eDisGo and eGo the scenarios are -named 'Status Quo' (2015), 'NEP 2035', 'eGo 100'. Learn more about the scenario here [link] +named 'Status Quo' (2015), 'NEP 2035', 'eGo 100'. Learn more about the scenario here +`scenarios here `_. This script is divided into two parts: -Part I: - Development of new renewable power plants by NEP 2035 scenario data -Part II: - Development of new renewable power plants by ego 100% scenario data +Part I +****** +- Development of new renewable power plants by NEP 2035 scenario data + +Part II +******* +- Development of new renewable power plants by ego 100% scenario data + Methodology ----------- Both parts of the script work more or less with the same Methodology of an expansion -and allocation of renewable energy plants. - -Renewable allocation --------------------- - -Documentation -------------- -flags: -repowering : old unit get an update of this electrical_capacity (plus or minus) -commissioning: New unit by a scenario assumption -decommissioning: decommissioning of status quo units by a scenario assumption -constantly: existing plant of status quo or other scenarios +and allocation of renewable energy plants. A full documentation of the used +Methodology of the Renewable allocation `can be found here `_. __copyright__ = "Europa-Universität Flensburg, Centre for Sustainable Energy Systems" diff --git a/preprocessing/sql_snippets/ego_nep_2015_scenario_capacities.sql b/preprocessing/sql_snippets/ego_nep_2015_scenario_capacities.sql index d74311ac..625a1186 100644 --- a/preprocessing/sql_snippets/ego_nep_2015_scenario_capacities.sql +++ b/preprocessing/sql_snippets/ego_nep_2015_scenario_capacities.sql @@ -1,5 +1,7 @@ /* -Setup for scenario capacities NEP 2015 +Create and setup the table model_draft.ego_nep_2015_scenario_capacities for +electrical scenario capacities of the Netzentwicklungsplan 2015, erster Entwurf +per federal state in Germany. __copyright__ = "Europa-Universität Flensburg, Centre for Sustainable Energy Systems" diff --git a/preprocessing/sql_snippets/opsd_powerdata.sql b/preprocessing/sql_snippets/opsd_powerdata.sql index 00e76776..39153855 100644 --- a/preprocessing/sql_snippets/opsd_powerdata.sql +++ b/preprocessing/sql_snippets/opsd_powerdata.sql @@ -1,5 +1,5 @@ /* -Setup for OPSD power plants list +Setup for OPSD power plants list. __copyright__ = "Europa-Universität Flensburg, Centre for Sustainable Energy Systems" __license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" diff --git a/preprocessing/sql_snippets/supply_ego_renewable_power_plants_germany.sql b/preprocessing/sql_snippets/supply_ego_renewable_power_plants_germany.sql index 9c1cb17b..cbdf0a15 100644 --- a/preprocessing/sql_snippets/supply_ego_renewable_power_plants_germany.sql +++ b/preprocessing/sql_snippets/supply_ego_renewable_power_plants_germany.sql @@ -1,5 +1,5 @@ /* -Setup for renewables power plants list +Setup for renewables power plants list of raw data of the status quo in Germany. __copyright__ = "Europa-Universität Flensburg, Centre for Sustainable Energy Systems" __license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" From 3f918c962ad183d62ce2e8b51f943b5e888e8e04 Mon Sep 17 00:00:00 2001 From: wolfbunke Date: Mon, 26 Mar 2018 13:21:30 +0200 Subject: [PATCH 078/104] change RTD docu --- ...ego_dp_supply_dp_powerflow_create_pp_mview.sql | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/dataprocessing/sql_snippets/ego_dp_supply_dp_powerflow_create_pp_mview.sql b/dataprocessing/sql_snippets/ego_dp_supply_dp_powerflow_create_pp_mview.sql index 759df7e4..4c47d1bb 100644 --- a/dataprocessing/sql_snippets/ego_dp_supply_dp_powerflow_create_pp_mview.sql +++ b/dataprocessing/sql_snippets/ego_dp_supply_dp_powerflow_create_pp_mview.sql @@ -1,16 +1,15 @@ /* SQL Script to create mviews displaying power plants by scenario. -__copyright__ = "Europa-Universität Flensburg - ZNES" -__license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" -__url__ = "https://github.com/openego/data_processing/blob/master/LICENSE" -__author__ = "wolfbunke" +ToDo +---- +- create and add docu meta string -toDo: - - alter supply table add preversion - - CREATE json doc-string - +__copyright__ = "Europa-Universität Flensburg - ZNES" +__license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" +__url__ = "https://github.com/openego/data_processing/blob/master/LICENSE" +__author__ = "wolfbunke" */ From 7f9569fd3674e7313f9c6ea7f77f8a4b93ba2a0d Mon Sep 17 00:00:00 2001 From: wolfbunke Date: Mon, 26 Mar 2018 13:22:26 +0200 Subject: [PATCH 079/104] change RTD docu --- .../doc/dataprocessing/rea/ego_dp_lattice_500m.rst | 4 ++-- .../doc/dataprocessing/rea/ego_dp_lattice_50m.rst | 4 ++-- .../rea/ego_dp_rea_lattice_per_area_500m.rst | 11 ++++++----- .../rea/ego_dp_rea_lattice_per_area_50m.rst | 5 +++-- .../doc/dataprocessing/rea/ego_dp_rea_m1.rst | 6 +++--- .../doc/dataprocessing/rea/ego_dp_rea_m2.rst | 6 +++--- .../doc/dataprocessing/rea/ego_dp_rea_m3.rst | 7 ++++--- .../doc/dataprocessing/rea/ego_dp_rea_m4.rst | 8 +++++--- .../doc/dataprocessing/rea/ego_dp_rea_m5.rst | 6 +++--- .../doc/dataprocessing/rea/ego_dp_rea_results.rst | 4 +--- .../doc/dataprocessing/rea/ego_dp_rea_setup.rst | 8 +++++--- .../dataprocessing/rea/ego_dp_rea_wpa_per_mvgd.rst | 5 ++--- 12 files changed, 39 insertions(+), 35 deletions(-) diff --git a/documentation/doc/dataprocessing/rea/ego_dp_lattice_500m.rst b/documentation/doc/dataprocessing/rea/ego_dp_lattice_500m.rst index d6cc53f7..dde38f48 100644 --- a/documentation/doc/dataprocessing/rea/ego_dp_lattice_500m.rst +++ b/documentation/doc/dataprocessing/rea/ego_dp_lattice_500m.rst @@ -3,8 +3,8 @@ ego_dp_lattice_500m.sql ####################### -lattice (regular point grid) with 500m -lattice on bbox of Germany +Lattice (regular point grid) with 500m +Lattice on bounding box of Germany. copyright diff --git a/documentation/doc/dataprocessing/rea/ego_dp_lattice_50m.rst b/documentation/doc/dataprocessing/rea/ego_dp_lattice_50m.rst index f5192d2f..d6f70f10 100644 --- a/documentation/doc/dataprocessing/rea/ego_dp_lattice_50m.rst +++ b/documentation/doc/dataprocessing/rea/ego_dp_lattice_50m.rst @@ -3,8 +3,8 @@ ego_dp_lattice_50m.sql ###################### -lattice (regular point grid) with 50m -lattice on bbox of Germany +Lattice (regular point grid) with 50m +Lattice on bounding box of Germany. copyright diff --git a/documentation/doc/dataprocessing/rea/ego_dp_rea_lattice_per_area_500m.rst b/documentation/doc/dataprocessing/rea/ego_dp_rea_lattice_per_area_500m.rst index eff991a8..0ca8de81 100644 --- a/documentation/doc/dataprocessing/rea/ego_dp_rea_lattice_per_area_500m.rst +++ b/documentation/doc/dataprocessing/rea/ego_dp_rea_lattice_per_area_500m.rst @@ -3,11 +3,12 @@ ego_dp_rea_lattice_per_area_500m.sql #################################### -lattice on bbox of Germany with 500m per area -wpa - points inside wind potential area -la - points inside loadarea -x - points inside wind potential area and loadarea -out - points outside area +Prepare 500m lattice +Lattice on bounding box of Germany with 500m per area: +wpa - points inside wind potential area +la - points inside loadarea +x - points inside wind potential area and loadarea +out - points outside area copyright diff --git a/documentation/doc/dataprocessing/rea/ego_dp_rea_lattice_per_area_50m.rst b/documentation/doc/dataprocessing/rea/ego_dp_rea_lattice_per_area_50m.rst index a20d81f4..55e55860 100644 --- a/documentation/doc/dataprocessing/rea/ego_dp_rea_lattice_per_area_50m.rst +++ b/documentation/doc/dataprocessing/rea/ego_dp_rea_lattice_per_area_50m.rst @@ -3,8 +3,9 @@ ego_dp_rea_lattice_per_area_50m.sql ################################### -lattice on bbox of loadarea with 50m per area -la - points inside loadarea +Prepare 500m lattice +Lattice on bounding box of Germany with 50m per area: +la - points inside loadarea copyright diff --git a/documentation/doc/dataprocessing/rea/ego_dp_rea_m1.rst b/documentation/doc/dataprocessing/rea/ego_dp_rea_m1.rst index cde6b9a5..c7801363 100644 --- a/documentation/doc/dataprocessing/rea/ego_dp_rea_m1.rst +++ b/documentation/doc/dataprocessing/rea/ego_dp_rea_m1.rst @@ -3,9 +3,9 @@ ego_dp_rea_m1.sql ################# -Skript to allocate decentralized renewable power plants (dea) -Methods base on technology and voltage level -Uses different lattice from setup_ego_wpa_per_grid_district.sql +M1 biomass and solar to OSM agricultural +Allocates "biomass" & (renewable) "gas" to OSM agricultural areas. +The rest could not be allocated, consider in M4. copyright diff --git a/documentation/doc/dataprocessing/rea/ego_dp_rea_m2.rst b/documentation/doc/dataprocessing/rea/ego_dp_rea_m2.rst index b185fb06..c1cc1d76 100644 --- a/documentation/doc/dataprocessing/rea/ego_dp_rea_m2.rst +++ b/documentation/doc/dataprocessing/rea/ego_dp_rea_m2.rst @@ -3,9 +3,9 @@ ego_dp_rea_m2.sql ################# -Skript to allocate decentralized renewable power plants (dea) -Methods base on technology and voltage level -Uses different lattice from setup_ego_wpa_per_grid_district.sql +M2 wind farms +Allocates "wind" turbines with voltage level 4 to WPA as wind farms. +The rest could not be allocated, consider in M3. copyright diff --git a/documentation/doc/dataprocessing/rea/ego_dp_rea_m3.rst b/documentation/doc/dataprocessing/rea/ego_dp_rea_m3.rst index 2a7f75c2..6b7f0089 100644 --- a/documentation/doc/dataprocessing/rea/ego_dp_rea_m3.rst +++ b/documentation/doc/dataprocessing/rea/ego_dp_rea_m3.rst @@ -3,9 +3,10 @@ ego_dp_rea_m3.sql ################# -Skript to allocate decentralized renewable power plants (dea) -Methods base on technology and voltage level -Uses different lattice from setup_ego_wpa_per_grid_district.sql +M3 wind turbines to WPA +Allocates "wind" turbines with voltage levels "5" & "6" to WPA. +Also considers rest of M2. +The rest could not be allocated, consider in M4. copyright diff --git a/documentation/doc/dataprocessing/rea/ego_dp_rea_m4.rst b/documentation/doc/dataprocessing/rea/ego_dp_rea_m4.rst index 8e8dc541..d84fbf92 100644 --- a/documentation/doc/dataprocessing/rea/ego_dp_rea_m4.rst +++ b/documentation/doc/dataprocessing/rea/ego_dp_rea_m4.rst @@ -3,9 +3,11 @@ ego_dp_rea_m4.sql ################# -Skript to allocate decentralized renewable power plants (dea) -Methods base on technology and voltage level -Uses different lattice from setup_ego_wpa_per_grid_district.sql +M4 other and rest +Allocates "wind" with voltage levels "5" & "6" to WPA. +"solar ground" & "wind" ohne voltage & Rest M1-1 & Rest M1-2 & Rest M3. +Also considers rest of M1-1, M1-2 and M3. +There should be no rest! copyright diff --git a/documentation/doc/dataprocessing/rea/ego_dp_rea_m5.rst b/documentation/doc/dataprocessing/rea/ego_dp_rea_m5.rst index 0ef13398..5cd763c9 100644 --- a/documentation/doc/dataprocessing/rea/ego_dp_rea_m5.rst +++ b/documentation/doc/dataprocessing/rea/ego_dp_rea_m5.rst @@ -3,9 +3,9 @@ ego_dp_rea_m5.sql ################# -Skript to allocate decentralized renewable power plants (dea) -Methods base on technology and voltage level -Uses different lattice from setup_ego_wpa_per_grid_district.sql +M5 LV to Loadarea +Allocate "solar" with voltage levels "6" & "7" to Loadarea. +There should be no rest! copyright diff --git a/documentation/doc/dataprocessing/rea/ego_dp_rea_results.rst b/documentation/doc/dataprocessing/rea/ego_dp_rea_results.rst index 0dd69801..874f9a99 100644 --- a/documentation/doc/dataprocessing/rea/ego_dp_rea_results.rst +++ b/documentation/doc/dataprocessing/rea/ego_dp_rea_results.rst @@ -3,9 +3,7 @@ ego_dp_rea_results.sql ###################### -Skript to allocate decentralized renewable power plants (dea) -Methods base on technology and voltage level -Uses different lattice from setup_ego_wpa_per_grid_district.sql +Results and statistics for REA copyright diff --git a/documentation/doc/dataprocessing/rea/ego_dp_rea_setup.rst b/documentation/doc/dataprocessing/rea/ego_dp_rea_setup.rst index e2386ed8..2cbc5934 100644 --- a/documentation/doc/dataprocessing/rea/ego_dp_rea_setup.rst +++ b/documentation/doc/dataprocessing/rea/ego_dp_rea_setup.rst @@ -3,9 +3,11 @@ ego_dp_rea_setup.sql #################### -Skript to allocate decentralized renewable power plants (dea) -Methods base on technology and voltage level -Uses different lattice from setup_ego_wpa_per_grid_district.sql +Setup tables for REA +Skript to allocate decentralized renewable power plants (dea). +Methods base on technology and voltage level. +Allocate DEA outside of Germany to next HVMV Substation. +Generate OSM farmyards. copyright diff --git a/documentation/doc/dataprocessing/rea/ego_dp_rea_wpa_per_mvgd.rst b/documentation/doc/dataprocessing/rea/ego_dp_rea_wpa_per_mvgd.rst index 816f510a..cba699f1 100644 --- a/documentation/doc/dataprocessing/rea/ego_dp_rea_wpa_per_mvgd.rst +++ b/documentation/doc/dataprocessing/rea/ego_dp_rea_wpa_per_mvgd.rst @@ -3,9 +3,8 @@ ego_dp_rea_wpa_per_mvgd.sql ########################### -wind potential area per mv-griddistrict -wpa dump -wpa per mv-griddistrict +Wind potential area (WPA) per MV-Griddistrict +Cut WPA with MV-Griddistrict and make valid geometries. copyright From 48a05024c8dbc9b4b2087235f15b1f2abe162898 Mon Sep 17 00:00:00 2001 From: wolfbunke Date: Mon, 26 Mar 2018 13:24:06 +0200 Subject: [PATCH 080/104] change RTD docu --- .../ego_dp_res_rea_by_scenario.rst | 29 ++++++++----------- .../ego_nep_2015_scenario_capacities.rst | 4 ++- 2 files changed, 15 insertions(+), 18 deletions(-) diff --git a/documentation/doc/preprocessing/ego_dp_res_rea_by_scenario.rst b/documentation/doc/preprocessing/ego_dp_res_rea_by_scenario.rst index c2f9e643..10c56fd5 100644 --- a/documentation/doc/preprocessing/ego_dp_res_rea_by_scenario.rst +++ b/documentation/doc/preprocessing/ego_dp_res_rea_by_scenario.rst @@ -7,30 +7,25 @@ SQL Script that prepare and insert single renewable power plant data by a given scenario in order to create a high resulution allocation renewable energy expansion. For the project open_eGo and the tools eTraGo, eDisGo and eGo the scenarios are -named 'Status Quo' (2015), 'NEP 2035', 'eGo 100'. Learn more about the scenario here [link] +named 'Status Quo' (2015), 'NEP 2035', 'eGo 100'. Learn more about the scenario here +`scenarios here `_. This script is divided into two parts: -Part I: - Development of new renewable power plants by NEP 2035 scenario data -Part II: - Development of new renewable power plants by ego 100% scenario data +Part I +****** +- Development of new renewable power plants by NEP 2035 scenario data + +Part II +******* +- Development of new renewable power plants by ego 100% scenario data + Methodology ----------- Both parts of the script work more or less with the same Methodology of an expansion -and allocation of renewable energy plants. - -Renewable allocation --------------------- - -Documentation -------------- -flags: -repowering : old unit get an update of this electrical_capacity (plus or minus) -commissioning: New unit by a scenario assumption -decommissioning: decommissioning of status quo units by a scenario assumption -constantly: existing plant of status quo or other scenarios +and allocation of renewable energy plants. A full documentation of the used +Methodology of the Renewable allocation `can be found here `_. diff --git a/documentation/doc/preprocessing/ego_nep_2015_scenario_capacities.rst b/documentation/doc/preprocessing/ego_nep_2015_scenario_capacities.rst index 72d51e77..a3c16a5f 100644 --- a/documentation/doc/preprocessing/ego_nep_2015_scenario_capacities.rst +++ b/documentation/doc/preprocessing/ego_nep_2015_scenario_capacities.rst @@ -3,7 +3,9 @@ ego_nep_2015_scenario_capacities.sql #################################### -Setup for scenario capacities NEP 2015 +Create and setup the table model_draft.ego_nep_2015_scenario_capacities for +electrical scenario capacities of the Netzentwicklungsplan 2015, erster Entwurf +per federal state in Germany. From 189083dab16c4892b60eb2101136a4e294f306a5 Mon Sep 17 00:00:00 2001 From: wolfbunke Date: Mon, 26 Mar 2018 13:25:09 +0200 Subject: [PATCH 081/104] change RTD docu --- preprocessing/sql_snippets/destatis_gva_per_district.sql | 7 ++++--- preprocessing/sql_snippets/ego_demand_federalstate.sql | 9 +++++---- .../sql_snippets/ego_dp_structure_boundaries_vg250.sql | 9 +++++---- preprocessing/sql_snippets/ego_dp_structure_census.sql | 2 +- preprocessing/sql_snippets/opsd_powerdata.sql | 6 ++++-- 5 files changed, 19 insertions(+), 14 deletions(-) diff --git a/preprocessing/sql_snippets/destatis_gva_per_district.sql b/preprocessing/sql_snippets/destatis_gva_per_district.sql index fc6a8eae..f9002af9 100644 --- a/preprocessing/sql_snippets/destatis_gva_per_district.sql +++ b/preprocessing/sql_snippets/destatis_gva_per_district.sql @@ -1,10 +1,11 @@ /* Setup for table economic.destatis_gva_per_district -__copyright__ = "Flensburg University of Applied Sciences, Centre for Sustainable Energy Systems" -__license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" -__url__ = "https://github.com/openego/data_processing/blob/master/LICENSE" +__copyright__ = "Flensburg University of Applied Sciences, Centre for Sustainable Energy Systems" +__license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" +__url__ = "https://github.com/openego/data_processing/blob/master/LICENSE" __author__ = "IlkaCu" + */ diff --git a/preprocessing/sql_snippets/ego_demand_federalstate.sql b/preprocessing/sql_snippets/ego_demand_federalstate.sql index 340b6c96..3a5e62f7 100644 --- a/preprocessing/sql_snippets/ego_demand_federalstate.sql +++ b/preprocessing/sql_snippets/ego_demand_federalstate.sql @@ -1,10 +1,11 @@ /* Setup for table demand.ego_demand_federalstate -__copyright__ = "Flensburg University of Applied Sciences, Centre for Sustainable Energy Systems" -__license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" -__url__ = "https://github.com/openego/data_processing/blob/master/LICENSE" -__author__ = "IlkaCu" +__copyright__ = "Flensburg University of Applied Sciences, Centre for Sustainable Energy Systems" +__license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" +__url__ = "https://github.com/openego/data_processing/blob/master/LICENSE" +__author__ = "IlkaCu" + */ diff --git a/preprocessing/sql_snippets/ego_dp_structure_boundaries_vg250.sql b/preprocessing/sql_snippets/ego_dp_structure_boundaries_vg250.sql index f6a1c546..a8329a9b 100644 --- a/preprocessing/sql_snippets/ego_dp_structure_boundaries_vg250.sql +++ b/preprocessing/sql_snippets/ego_dp_structure_boundaries_vg250.sql @@ -4,10 +4,11 @@ Inputs are german administrative borders (boundaries.bkg_vg250) Create mviews with transformed CRS (EPSG:3035) and corrected geometries Municipalities / Gemeinden are fragmented and cleaned from ringholes (bkg_vg250_6_gem_clean) -__copyright__ = "Reiner Lemoine Institut" -__license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" -__url__ = "https://github.com/openego/data_processing/blob/master/LICENSE" -__author__ = "Ludee" +__copyright__ = "Reiner Lemoine Institut" +__license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" +__url__ = "https://github.com/openego/data_processing/blob/master/LICENSE" +__author__ = "Ludee" + */ -- 1. Nationalstaat (sta) - country (cntry) diff --git a/preprocessing/sql_snippets/ego_dp_structure_census.sql b/preprocessing/sql_snippets/ego_dp_structure_census.sql index 6ec0542d..bb1c48b7 100644 --- a/preprocessing/sql_snippets/ego_dp_structure_census.sql +++ b/preprocessing/sql_snippets/ego_dp_structure_census.sql @@ -1,6 +1,6 @@ /* census 2011 population per ha -Extract points with population (>0) from census in mview +Extract points with population ( > 0) from census in mview __copyright__ = "Reiner Lemoine Institut" __license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" diff --git a/preprocessing/sql_snippets/opsd_powerdata.sql b/preprocessing/sql_snippets/opsd_powerdata.sql index 39153855..ecaa4e6a 100644 --- a/preprocessing/sql_snippets/opsd_powerdata.sql +++ b/preprocessing/sql_snippets/opsd_powerdata.sql @@ -1,5 +1,6 @@ /* -Setup for OPSD power plants list. + +Create ego_conventional_powerplant based on OPSD beta Version of 2015/16 __copyright__ = "Europa-Universität Flensburg, Centre for Sustainable Energy Systems" __license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" @@ -8,7 +9,8 @@ __author__ = "wolfbunke" */ --- OPSD powerplants based on beta version +-------------------------------------------------------------------------------- + -- Table: supply.ego_conventional_powerplant -- DROP supply.ego_conventional_powerplant; From 1aa937c48fe1f2af85bde970ea0585a7e3ce898c Mon Sep 17 00:00:00 2001 From: wolfbunke Date: Mon, 26 Mar 2018 13:42:13 +0200 Subject: [PATCH 082/104] add new dp version --- documentation/doc/whatsnew/v0-3-1.rst | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 documentation/doc/whatsnew/v0-3-1.rst diff --git a/documentation/doc/whatsnew/v0-3-1.rst b/documentation/doc/whatsnew/v0-3-1.rst new file mode 100644 index 00000000..418b4c0a --- /dev/null +++ b/documentation/doc/whatsnew/v0-3-1.rst @@ -0,0 +1,23 @@ +Release v0.3.1 (April XX, 2018) ++++++++++++++++++++++++++++++++ + +[Description] + + + +Added features +-------------- + +* + + +Bug fixes +--------- + +* + + +Other changes +------------- + +* From 3d4ac5e29739004e665baad675a865d75bf9d903 Mon Sep 17 00:00:00 2001 From: wolfbunke Date: Mon, 26 Mar 2018 13:43:13 +0200 Subject: [PATCH 083/104] add new pages --- documentation/doc/index.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/documentation/doc/index.rst b/documentation/doc/index.rst index 313032c7..8135da50 100644 --- a/documentation/doc/index.rst +++ b/documentation/doc/index.rst @@ -25,6 +25,7 @@ Welcome to Data processing documentation of open_eGo dataprocessing preprocessing scenario + scripts whatsnew From 0cc779c36acf830aadb0934dc62b22300b808c20 Mon Sep 17 00:00:00 2001 From: wolfbunke Date: Mon, 26 Mar 2018 13:43:33 +0200 Subject: [PATCH 084/104] update file --- documentation/doc/scripts.rst | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/documentation/doc/scripts.rst b/documentation/doc/scripts.rst index d3f2f2eb..82b05cf2 100644 --- a/documentation/doc/scripts.rst +++ b/documentation/doc/scripts.rst @@ -9,7 +9,9 @@ Data processing SQL-Scripts ----------- -[add file name and Links to doc/dataprocessing/"name"] + +.. include:: /dataprocessing/modules.rst + Python-Scripts -------------- @@ -20,7 +22,8 @@ Preprocessing SQL-Scripts ----------- -[add file name and Links to doc/dataprocessing/"name"] + +.. include:: /preprocessing/modules.rst Python-Scripts -------------- From bbb165520e245ab90a47b6575b5398204e41de0e Mon Sep 17 00:00:00 2001 From: wolfbunke Date: Mon, 26 Mar 2018 13:43:54 +0200 Subject: [PATCH 085/104] incluede new version --- documentation/doc/whatsnew.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/documentation/doc/whatsnew.rst b/documentation/doc/whatsnew.rst index a6143927..1af94460 100644 --- a/documentation/doc/whatsnew.rst +++ b/documentation/doc/whatsnew.rst @@ -10,3 +10,4 @@ See what's new as per release! .. include:: whatsnew/v0-3-0.rst +.. include:: whatsnew/v0-3-1.rst From be0aaf4b00069254dcd91952b045dded071964aa Mon Sep 17 00:00:00 2001 From: wolfbunke Date: Mon, 26 Mar 2018 14:10:11 +0200 Subject: [PATCH 086/104] test script import --- documentation/doc/scripts.rst | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/documentation/doc/scripts.rst b/documentation/doc/scripts.rst index 82b05cf2..4aecead8 100644 --- a/documentation/doc/scripts.rst +++ b/documentation/doc/scripts.rst @@ -3,7 +3,6 @@ Data processing scripts ======================= - Data processing =============== @@ -15,8 +14,15 @@ SQL-Scripts Python-Scripts -------------- + [use sphinx doc strings] +.. toctree:: + :maxdepth: 7 + :titlesonly: + + Dataprocessing + Preprocessing ============= @@ -25,6 +31,14 @@ SQL-Scripts .. include:: /preprocessing/modules.rst + Python-Scripts -------------- + [use sphinx doc strings] + +.. toctree:: + :maxdepth: 7 + :titlesonly: + + Dataprocessing From 1f141bd776a55cf9067444bc493f2ee16b1be811 Mon Sep 17 00:00:00 2001 From: wolfbunke Date: Mon, 26 Mar 2018 16:36:57 +0200 Subject: [PATCH 087/104] change order and import of docs --- documentation/doc/scripts.rst | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/documentation/doc/scripts.rst b/documentation/doc/scripts.rst index 4aecead8..9a1ae9af 100644 --- a/documentation/doc/scripts.rst +++ b/documentation/doc/scripts.rst @@ -9,7 +9,11 @@ Data processing SQL-Scripts ----------- -.. include:: /dataprocessing/modules.rst +.. toctree:: + :maxdepth: 7 + :titlesonly: + + Dataprocessing Python-Scripts @@ -17,28 +21,20 @@ Python-Scripts [use sphinx doc strings] -.. toctree:: - :maxdepth: 7 - :titlesonly: - - Dataprocessing Preprocessing ============= SQL-Scripts ----------- +.. toctree:: + :maxdepth: 7 + :titlesonly: -.. include:: /preprocessing/modules.rst + Preprocessing Python-Scripts -------------- [use sphinx doc strings] - -.. toctree:: - :maxdepth: 7 - :titlesonly: - - Dataprocessing From cd5807cbdf38a9233c9458f804deba8663c45b00 Mon Sep 17 00:00:00 2001 From: wolfbunke Date: Mon, 26 Mar 2018 16:37:23 +0200 Subject: [PATCH 088/104] change page import --- documentation/doc/index.rst | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/documentation/doc/index.rst b/documentation/doc/index.rst index 8135da50..5e287015 100644 --- a/documentation/doc/index.rst +++ b/documentation/doc/index.rst @@ -22,10 +22,8 @@ Welcome to Data processing documentation of open_eGo :hidden: getting_started - dataprocessing - preprocessing - scenario scripts + scenario whatsnew From 9c06d1189e77e9a953614dd895c3a7434a682324 Mon Sep 17 00:00:00 2001 From: wolfbunke Date: Mon, 26 Mar 2018 16:43:19 +0200 Subject: [PATCH 089/104] test maxdepth --- documentation/doc/scripts.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/documentation/doc/scripts.rst b/documentation/doc/scripts.rst index 9a1ae9af..69edfd62 100644 --- a/documentation/doc/scripts.rst +++ b/documentation/doc/scripts.rst @@ -10,7 +10,7 @@ SQL-Scripts ----------- .. toctree:: - :maxdepth: 7 + :maxdepth: 1 :titlesonly: Dataprocessing @@ -28,7 +28,7 @@ Preprocessing SQL-Scripts ----------- .. toctree:: - :maxdepth: 7 + :maxdepth: 1 :titlesonly: Preprocessing From a70329ac0c7c3357c66c16461044773a5976e674 Mon Sep 17 00:00:00 2001 From: wolfbunke Date: Mon, 26 Mar 2018 16:49:28 +0200 Subject: [PATCH 090/104] change title --- documentation/doc/dataprocessing/modules.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/documentation/doc/dataprocessing/modules.rst b/documentation/doc/dataprocessing/modules.rst index c8e509c9..749b341c 100644 --- a/documentation/doc/dataprocessing/modules.rst +++ b/documentation/doc/dataprocessing/modules.rst @@ -1,6 +1,6 @@ -=============== -Data Processing -=============== +=========================== +Data Processing SQL-Scripts +=========================== Overview of scripts @@ -13,7 +13,7 @@ dataprocessing/sql_snippets/ scripts .. toctree:: :titlesonly: :maxdepth: 7 - + ego_dp_loadarea_census ego_dp_loadarea_consumption ego_dp_loadarea_griddistrict_results From dc44f4168f5a6b67b404a91f51e806a0dc736b4b Mon Sep 17 00:00:00 2001 From: wolfbunke Date: Mon, 26 Mar 2018 16:49:43 +0200 Subject: [PATCH 091/104] change title --- documentation/doc/preprocessing/modules.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/documentation/doc/preprocessing/modules.rst b/documentation/doc/preprocessing/modules.rst index ca938e29..c1e01014 100644 --- a/documentation/doc/preprocessing/modules.rst +++ b/documentation/doc/preprocessing/modules.rst @@ -1,6 +1,6 @@ -============= -Preprocessing -============= +========================= +Preprocessing SQL-Scripts +========================= From f0c780e19252abac677244c79d97ad9222470c3d Mon Sep 17 00:00:00 2001 From: wolfbunke Date: Tue, 27 Mar 2018 10:17:17 +0200 Subject: [PATCH 092/104] remove files --- documentation/doc/dataprocessing.rst | 5 --- documentation/doc/methodology.rst | 11 ------ documentation/doc/preprocessing.rst | 5 --- documentation/doc/renewables.rst | 50 ---------------------------- 4 files changed, 71 deletions(-) delete mode 100644 documentation/doc/dataprocessing.rst delete mode 100644 documentation/doc/methodology.rst delete mode 100644 documentation/doc/preprocessing.rst delete mode 100644 documentation/doc/renewables.rst diff --git a/documentation/doc/dataprocessing.rst b/documentation/doc/dataprocessing.rst deleted file mode 100644 index b76f493e..00000000 --- a/documentation/doc/dataprocessing.rst +++ /dev/null @@ -1,5 +0,0 @@ -.. toctree:: - :maxdepth: 7 - :titlesonly: - - Dataprocessing diff --git a/documentation/doc/methodology.rst b/documentation/doc/methodology.rst deleted file mode 100644 index ecc4d98d..00000000 --- a/documentation/doc/methodology.rst +++ /dev/null @@ -1,11 +0,0 @@ -============= -Methodologies -============= - -[Intro] - - - -.. Renewable allocation -.. include:: renewables.rst - diff --git a/documentation/doc/preprocessing.rst b/documentation/doc/preprocessing.rst deleted file mode 100644 index 76a08261..00000000 --- a/documentation/doc/preprocessing.rst +++ /dev/null @@ -1,5 +0,0 @@ -.. toctree:: - :maxdepth: 7 - :titlesonly: - - Preprocessing diff --git a/documentation/doc/renewables.rst b/documentation/doc/renewables.rst deleted file mode 100644 index 3f187530..00000000 --- a/documentation/doc/renewables.rst +++ /dev/null @@ -1,50 +0,0 @@ -======================================== -Methodologies of Renewable Energy Plants -======================================== - -[Intro] - -******************** -Renewable allocation -******************** - -The Methodology of the expansion and allocation of renewable energy plants is -done in two parts. The first part is the developent and expansion of renewable -power palnts by a scenario input of installed capacities. The allocation based on -the spacial level of municipalities. The second part allocated the surplus of -power plants power plants on a high spacial resultion by white areas and other -Polygon objects (see XXX). - - - -Expansion of power plants by technology -======================================= - - -Wind onshore ------------- - Text - -Wind offshore -------------- - text - -Solar ------ - text - -Hydro Power ------------ - run of river and reservoir - - -Pumped Storage --------------- - -Biomass -------- - text - -geothermal ----------- - text From cdc0fbba605a07199003878ef41abbc28a9674ed Mon Sep 17 00:00:00 2001 From: wolfbunke Date: Tue, 27 Mar 2018 10:34:28 +0200 Subject: [PATCH 093/104] change structure --- documentation/doc/getting_started.rst | 7 +++ documentation/doc/index.rst | 12 +++++ documentation/doc/scenario.rst | 48 +++-------------- documentation/doc/scenario/ego_scenarios.rst | 52 +++++++++++++++++++ .../doc/scenario/global_assumption.rst | 10 ++++ documentation/doc/scenario/methodology.rst | 11 ++++ documentation/doc/scenario/renewables.rst | 50 ++++++++++++++++++ 7 files changed, 149 insertions(+), 41 deletions(-) create mode 100644 documentation/doc/scenario/ego_scenarios.rst create mode 100644 documentation/doc/scenario/global_assumption.rst create mode 100644 documentation/doc/scenario/methodology.rst create mode 100644 documentation/doc/scenario/renewables.rst diff --git a/documentation/doc/getting_started.rst b/documentation/doc/getting_started.rst index a1c5572b..be739496 100644 --- a/documentation/doc/getting_started.rst +++ b/documentation/doc/getting_started.rst @@ -1,3 +1,10 @@ =============== Getting Started =============== + + +Overview +******** + +- How to install +- How to run the dataprocessing package diff --git a/documentation/doc/index.rst b/documentation/doc/index.rst index 5e287015..65095435 100644 --- a/documentation/doc/index.rst +++ b/documentation/doc/index.rst @@ -30,6 +30,18 @@ Welcome to Data processing documentation of open_eGo +******* +LICENSE +******* +Copyright (C) 2015-2018 open_eGo project + +This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. +This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. +You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/. + + + + Indices and tables ================== diff --git a/documentation/doc/scenario.rst b/documentation/doc/scenario.rst index 9b52b752..5e8b96bb 100644 --- a/documentation/doc/scenario.rst +++ b/documentation/doc/scenario.rst @@ -5,6 +5,13 @@ Scenario framework +****************** +open_eGo Scenarios +****************** + + + +Import Scenario data as CSV .. csv-table:: Overview of eGo Scenarios :file: https://raw.githubusercontent.com/openego/.... :delim: ; @@ -14,47 +21,6 @@ Scenario framework -***************** -Global assumption -***************** - -Weater year -=========== - All scenarios using the reanalysis weater data of coastDat-2 Hindcast data model - from the Helmholtz-Zentrum Geesthacht (HZG). - - - - - - - -********** -Status Quo -********** - - - - - -******** -NEP 2035 -******** - -[NEP2015] - - -Scenario definition of renpassG!S -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -.. include:: https://raw.githubusercontent.com/znes/FlEnS/master/open_eGo/NEP_2035/README.rst - - - - -******** -eGo 100 -******** diff --git a/documentation/doc/scenario/ego_scenarios.rst b/documentation/doc/scenario/ego_scenarios.rst new file mode 100644 index 00000000..0460f86c --- /dev/null +++ b/documentation/doc/scenario/ego_scenarios.rst @@ -0,0 +1,52 @@ +================== +open_eGo Scenarios +================== + +For the project open_eGo been three scenarios choosen in order to + + + + +********** +Status Quo +********** + + + + + +******** +NEP 2035 +******** + +[NEP2015] + + +Scenario definition of renpassG!S +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +.. include:: https://raw.githubusercontent.com/znes/FlEnS/master/open_eGo/NEP_2035/README.rst + + + + +******** +eGo 100 +******** + + + + + +********** +References +********** + +.. [NEP2015] Übertragungsnetzbetreiber Deutschland, Netzentwicklungsplan + Strom 2025, Version 2015, 1. Entwurf, 2015. https://www.netzentwicklungsplan.de/sites/default/files/paragraphs-files/NEP_2025_1_Entwurf_Teil1_0_0.pdf + +.. [coastdat-2] coastDat-2 Hindcast model http://www.coastdat.de/data/index.php.en + +.. [FlEnS] Wolf-Dieter Bunke Martin Söthe Marion Christ Cord Kaldemeyer + *(Fl)ensburg (En)ergy (S)cenarios - open_eGo Scenarios for 2014/2035/2050*. + https://osf.io/bpf36/ diff --git a/documentation/doc/scenario/global_assumption.rst b/documentation/doc/scenario/global_assumption.rst new file mode 100644 index 00000000..fcadea32 --- /dev/null +++ b/documentation/doc/scenario/global_assumption.rst @@ -0,0 +1,10 @@ +================= +Global assumption +================= + + + +Weater year +=========== + All scenarios using the reanalysis weater data of coastDat-2 Hindcast data model + from the Helmholtz-Zentrum Geesthacht (HZG). diff --git a/documentation/doc/scenario/methodology.rst b/documentation/doc/scenario/methodology.rst new file mode 100644 index 00000000..ecc4d98d --- /dev/null +++ b/documentation/doc/scenario/methodology.rst @@ -0,0 +1,11 @@ +============= +Methodologies +============= + +[Intro] + + + +.. Renewable allocation +.. include:: renewables.rst + diff --git a/documentation/doc/scenario/renewables.rst b/documentation/doc/scenario/renewables.rst new file mode 100644 index 00000000..3f187530 --- /dev/null +++ b/documentation/doc/scenario/renewables.rst @@ -0,0 +1,50 @@ +======================================== +Methodologies of Renewable Energy Plants +======================================== + +[Intro] + +******************** +Renewable allocation +******************** + +The Methodology of the expansion and allocation of renewable energy plants is +done in two parts. The first part is the developent and expansion of renewable +power palnts by a scenario input of installed capacities. The allocation based on +the spacial level of municipalities. The second part allocated the surplus of +power plants power plants on a high spacial resultion by white areas and other +Polygon objects (see XXX). + + + +Expansion of power plants by technology +======================================= + + +Wind onshore +------------ + Text + +Wind offshore +------------- + text + +Solar +----- + text + +Hydro Power +----------- + run of river and reservoir + + +Pumped Storage +-------------- + +Biomass +------- + text + +geothermal +---------- + text From 4350414904f2f8631b981eeba1ea127fc9d85ea2 Mon Sep 17 00:00:00 2001 From: wolfbunke Date: Tue, 27 Mar 2018 10:41:30 +0200 Subject: [PATCH 094/104] add new files --- documentation/doc/scenario.rst | 18 +++++++++++++++++- documentation/doc/scenario/load.rst | 3 +++ documentation/doc/scenario/methodology.rst | 13 ++++++++++--- 3 files changed, 30 insertions(+), 4 deletions(-) create mode 100644 documentation/doc/scenario/load.rst diff --git a/documentation/doc/scenario.rst b/documentation/doc/scenario.rst index 5e8b96bb..75b38cc4 100644 --- a/documentation/doc/scenario.rst +++ b/documentation/doc/scenario.rst @@ -23,6 +23,15 @@ Import Scenario data as CSV +.. toctree:: + :maxdepth: 1 + :titlesonly: + + open_eGo Scenario definition + + + + @@ -30,7 +39,14 @@ Import Scenario data as CSV Methodology *********** -.. inclued:: methodology.rst +.. toctree:: + :maxdepth: 1 + :titlesonly: + + Methodology + + + ********** diff --git a/documentation/doc/scenario/load.rst b/documentation/doc/scenario/load.rst new file mode 100644 index 00000000..ea62db62 --- /dev/null +++ b/documentation/doc/scenario/load.rst @@ -0,0 +1,3 @@ +==== +Load +==== diff --git a/documentation/doc/scenario/methodology.rst b/documentation/doc/scenario/methodology.rst index ecc4d98d..bd0d7e84 100644 --- a/documentation/doc/scenario/methodology.rst +++ b/documentation/doc/scenario/methodology.rst @@ -1,11 +1,18 @@ ============= -Methodologies +Methodologies ============= [Intro] -.. Renewable allocation -.. include:: renewables.rst + + + +.. toctree:: + :maxdepth: 1 + :titlesonly: + + Methodologies and Assumptions for Renewables + Methodologies and Assumptions for Load From a71a55500980d21b1aeb354418c580aac8675aef Mon Sep 17 00:00:00 2001 From: wolfbunke Date: Tue, 27 Mar 2018 11:11:50 +0200 Subject: [PATCH 095/104] change (C) --- documentation/doc/conf.py | 2 +- documentation/doc/index.rst | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/documentation/doc/conf.py b/documentation/doc/conf.py index 0c6ef8c2..56661b6c 100644 --- a/documentation/doc/conf.py +++ b/documentation/doc/conf.py @@ -102,7 +102,7 @@ # General information about the project. project = u'open_eGo Data Processing' -copyright = u'2015-2017, open_eGo-Team' +copyright = u'2015-2018, open_eGo-Team' author = u'open_eGo-Team' diff --git a/documentation/doc/index.rst b/documentation/doc/index.rst index 65095435..b5312195 100644 --- a/documentation/doc/index.rst +++ b/documentation/doc/index.rst @@ -33,7 +33,12 @@ Welcome to Data processing documentation of open_eGo ******* LICENSE ******* -Copyright (C) 2015-2018 open_eGo project +Copyright (C) 2015-2018 open_eGo-Team +(C) Flensburg University of Applied Sciences, Centre for Sustainable Energy Systems +(C) Europa-Universität Flensburg, Centre for Sustainable Energy Systems +(C) Reiner Lemoine Institut +(C) DLR Institute for Networked Energy Systems" + This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. From c4346ba483d1e69218695521bfdcf605ffeac4bf Mon Sep 17 00:00:00 2001 From: wolfbunke Date: Tue, 27 Mar 2018 14:49:23 +0200 Subject: [PATCH 096/104] add change message --- documentation/doc/whatsnew/v0-3-1.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/documentation/doc/whatsnew/v0-3-1.rst b/documentation/doc/whatsnew/v0-3-1.rst index 418b4c0a..5ea36af9 100644 --- a/documentation/doc/whatsnew/v0-3-1.rst +++ b/documentation/doc/whatsnew/v0-3-1.rst @@ -20,4 +20,5 @@ Bug fixes Other changes ------------- -* +* change use of geom (original) to rea_geom_new +* ... From f62f43f736efb7323f76b0606806487a94a58580 Mon Sep 17 00:00:00 2001 From: wolfbunke Date: Tue, 3 Apr 2018 14:56:32 +0200 Subject: [PATCH 097/104] add open_ego project page --- documentation/doc/index.rst | 1 + documentation/doc/openego.rst | 68 +++++++++++++++++++++++++++++++++++ 2 files changed, 69 insertions(+) create mode 100644 documentation/doc/openego.rst diff --git a/documentation/doc/index.rst b/documentation/doc/index.rst index b5312195..3c1b6556 100644 --- a/documentation/doc/index.rst +++ b/documentation/doc/index.rst @@ -22,6 +22,7 @@ Welcome to Data processing documentation of open_eGo :hidden: getting_started + openego scripts scenario diff --git a/documentation/doc/openego.rst b/documentation/doc/openego.rst new file mode 100644 index 00000000..6f2ab3b7 --- /dev/null +++ b/documentation/doc/openego.rst @@ -0,0 +1,68 @@ +==================== +Open_eGo the project +==================== + + +Open Electricity Grid Optimization +================================== + +The project open_eGo aims to develop a transparent, inter-grid-level operating +grid planning tool to investigate economic viable grid expansion scenarios +considering alternative flexibility options such as storages or redispatch. + +Uniform grid planning is required for a successful energy transition. This +involves the management of the German electricity grid with more than 800 +different network operators and the resulting wide range of interests that +sometimes stand at odds with the national economic objectives of the energy +transition. However, there is currently no suitable grid planning tool that +is able to consider optimum national economic use of the various flexibility +options at the different levels. The current challenges of planning for grid +expansion associated with the energy transition are answered by open_eGo. + +In energy system analysis, models and input data are often handled restrictively. +Such a lack of transparency impedes reproducibility and consequently also a +proper interpretation of the results. Thus, in open_eGo we publish all our code +on github under the Affero General Public License Version 3. +The data we use as input, but also all our results will be published on the +OpenEnergy Platform, in most cases under an Open Database License Version 1. + +For the open_eGo project several python packages are developt which are feeded by +the input data of the data processing. + +ego.io +****** +SQLAlchemy Interface to the OpenEnergy database (oedb).OEDB table ORM objects are +defined here and small helpers for io tasks are contained. `Learn more here. `_ + + +Ding0 +***** +The DIstribution Network GeneratOr (Ding0) is a tool to generate synthetic +medium and low voltage power distribution grids based on open (or at least +accessible) data. `Learn more here. `_ + + +eDisGo +****** +The python package eDisGo provides a toolbox for analysis and optimization +of distribution grids. `Learn more here. `_ + +eTraGo +****** +The python package eTraGo provides a toolbox for Optimization of flexibility +options for transmission grids based on PyPSA. `Learn more here. `_ + + +eGo +*** +The python package eGo is a toolbox and application which connects and integrates + the tools eTraGo and eDisGo in order to calcualte the overall economic optimum. +`Learn more here. `_ + + + +.. only:: html + + .. raw:: html +

The text on this website is published under CC-BY 4.0.

+

Supported by BMWi

From b740cc10485e9c163ad098337fa1dd7c91bf53d0 Mon Sep 17 00:00:00 2001 From: wolfbunke Date: Tue, 3 Apr 2018 15:00:31 +0200 Subject: [PATCH 098/104] add open_ego project page --- documentation/doc/index.rst | 5 ----- documentation/doc/openego.rst | 3 ++- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/documentation/doc/index.rst b/documentation/doc/index.rst index 3c1b6556..07a13ab9 100644 --- a/documentation/doc/index.rst +++ b/documentation/doc/index.rst @@ -11,11 +11,6 @@ Welcome to Data processing documentation of open_eGo - - - - - .. toctree:: :maxdepth: 7 :titlesonly: diff --git a/documentation/doc/openego.rst b/documentation/doc/openego.rst index 6f2ab3b7..ca5e0c04 100644 --- a/documentation/doc/openego.rst +++ b/documentation/doc/openego.rst @@ -55,8 +55,9 @@ options for transmission grids based on PyPSA. `Learn more here. `_ From f40287362579e3e0e76f2a6a8ff06c365559d334 Mon Sep 17 00:00:00 2001 From: wolfbunke Date: Tue, 3 Apr 2018 15:06:58 +0200 Subject: [PATCH 099/104] add http functions --- documentation/doc/conf.py | 23 +++++++++++++++++++++-- documentation/requirements.txt | 2 ++ 2 files changed, 23 insertions(+), 2 deletions(-) diff --git a/documentation/doc/conf.py b/documentation/doc/conf.py index 56661b6c..6678a675 100644 --- a/documentation/doc/conf.py +++ b/documentation/doc/conf.py @@ -55,6 +55,8 @@ 'sphinx.ext.napoleon', #enable Napoleon Sphinx v>1.3 # 'sphinx_paramlinks',#to have links to the types of the parameters of the functions 'numpydoc', + 'sphinxcontrib.httpdomain', # for restfull API + 'sphinxcontrib.autohttp.flask', 'sphinx.ext.extlinks' # enables external links with a key ] @@ -82,8 +84,25 @@ 'Shapely object') } - - +# test oedb implementation +def rstjinja(app, docname, source): + """ + Render our pages as a jinja template for fancy templating goodness. + """ + # Make sure we're outputting HTML + if app.builder.format != 'html': + return + src = source[0] + rendered = app.builder.templates.render_string( + src, app.config.html_context + ) + source[0] = rendered + +def setup(app): + app.connect("source-read", rstjinja) + +# add https +httpexample_scheme = 'https' # Add any paths that contain templates here, relative to this directory. diff --git a/documentation/requirements.txt b/documentation/requirements.txt index 070cb9c5..b7a36882 100644 --- a/documentation/requirements.txt +++ b/documentation/requirements.txt @@ -4,3 +4,5 @@ sphinx_rtd_theme numpy == 1.12.1 numpydoc == 0.7.0 +sphinxcontrib-httpdomain +aiohttp_jinja2 From e7539001f5f1533ff2579b5b0d04559f2ecf2abf Mon Sep 17 00:00:00 2001 From: wolfbunke Date: Tue, 3 Apr 2018 15:18:34 +0200 Subject: [PATCH 100/104] test html inclusion --- documentation/doc/openego.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/documentation/doc/openego.rst b/documentation/doc/openego.rst index ca5e0c04..3fd1f5b1 100644 --- a/documentation/doc/openego.rst +++ b/documentation/doc/openego.rst @@ -65,5 +65,6 @@ the tools eTraGo and eDisGo in order to calcualte the overall economic optimum. .. only:: html .. raw:: html -

The text on this website is published under CC-BY 4.0.

-

Supported by BMWi

+ +

The text on this website is published under CC-BY 4.0.

+

Supported by BMWi

From 0227c183d36a703d73232935a9c65ec7a73cfc75 Mon Sep 17 00:00:00 2001 From: wolfbunke Date: Tue, 3 Apr 2018 15:26:18 +0200 Subject: [PATCH 101/104] update and add RTD requires --- setup.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 0cfbaad3..089d6c5d 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ setup( name='dataprocessing', - version='0.1-pre', + version='0.3.0', packages=find_packages(), package_data={ 'dataprocessing': [os.path.join('sql_snippets','*.sql')] @@ -21,6 +21,11 @@ 'ego.io >=0.0.1rc4, <= 0.0.2', 'geoalchemy2' ], + extras_require={ + 'docs': [ + 'sphinx >= 1.4', + 'sphinx_rtd_theme', +'sphinxcontrib-httpdomain']}, entry_points={ 'console_scripts': [ 'ego_data_processing = dataprocessing.eGo_data_processing:data_processing', ]} From 3f0cc9d94ca12c4b7930e5c10313c2ff503a5b94 Mon Sep 17 00:00:00 2001 From: wolfbunke Date: Tue, 3 Apr 2018 15:28:39 +0200 Subject: [PATCH 102/104] add installation part from readme.rst --- documentation/doc/getting_started.rst | 33 +++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/documentation/doc/getting_started.rst b/documentation/doc/getting_started.rst index be739496..dac9389a 100644 --- a/documentation/doc/getting_started.rst +++ b/documentation/doc/getting_started.rst @@ -8,3 +8,36 @@ Overview - How to install - How to run the dataprocessing package + +Installation +============ + +Installation of latest release + +``` +(sudo) pip3 install dataprocessing +``` + +Installation (of developer version) via pip on linux systems as follows + +``` +sudo pip3 install -e +``` + +Troubleshooting + +On Windows +*********** + +1. __Problem__: Installation of required package shapely fails. __Solution__: Install pre-build + wheel from [here](http://www.lfd.uci.edu/~gohlke/pythonlibs/#shapely) + + +Run +==== + + You can run data processing by calling command-line script + + ``` + ~$ ego_data_processing + ``` From 7e7d86f879418d281e0d5a6955f05ae82451aef7 Mon Sep 17 00:00:00 2001 From: wolfbunke Date: Tue, 3 Apr 2018 15:48:58 +0200 Subject: [PATCH 103/104] test raw import --- documentation/doc/scenario/ego_scenarios.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/documentation/doc/scenario/ego_scenarios.rst b/documentation/doc/scenario/ego_scenarios.rst index 0460f86c..aa219aae 100644 --- a/documentation/doc/scenario/ego_scenarios.rst +++ b/documentation/doc/scenario/ego_scenarios.rst @@ -13,6 +13,12 @@ Status Quo +.. include:: https://raw.githubusercontent.com/znes/FlEnS/dev/open_eGo/SQ/README.rst + +.. raw:: rst + :file: https://raw.githubusercontent.com/znes/FlEnS/dev/open_eGo/SQ/README.rst + + ******** From 806cab0d10e12d5b0f3a515b79cea23b2043d4b9 Mon Sep 17 00:00:00 2001 From: wolfbunke Date: Thu, 5 Apr 2018 09:29:35 +0200 Subject: [PATCH 104/104] add changes befor merge --- dataprocessing/eGo_data_processing.py | 1 + .../ego_dp_powerflow_fix_ehv_subnetworks.sql | 282 +++++++++++ .../sql_snippets/rea/ego_dp_rea_results.sql | 40 +- utilities/ego_dp_fix_ehv_subnetworks.sql | 439 ++++++++++++++++++ 4 files changed, 755 insertions(+), 7 deletions(-) create mode 100644 dataprocessing/sql_snippets/ego_dp_powerflow_fix_ehv_subnetworks.sql create mode 100644 utilities/ego_dp_fix_ehv_subnetworks.sql diff --git a/dataprocessing/eGo_data_processing.py b/dataprocessing/eGo_data_processing.py index 03ec3ebc..e1e71179 100644 --- a/dataprocessing/eGo_data_processing.py +++ b/dataprocessing/eGo_data_processing.py @@ -96,6 +96,7 @@ def data_processing(): 'ego_dp_powerflow_hv_setup.sql', # Set schema/tables for EHV/HV powerflow calculations up 'ego_dp_powerflow_osmtgmod_to_pypsa.sql', # Include data from osmTGmod into EHV/HV powerflow schema 'ego_dp_powerflow_electrical_neighbour.sql', # Create border crossing lines and buses in neighbouring countries + 'ego_dp_powerflow_fix_ehv_subnetworks.sql', # Fix topological errors in eHV grid 'ego_dp_powerflow_grid_future_scenarios.sql', # Copy grid to future scenarios 'ego_dp_powerflow_assignment_generator.sql', # Assign generators to corresponding substation (SQ, NEP2035, eGo100) 'ego_dp_powerflow_assignment_load.sql', # Assign loads to their corresponding substation (SQ, NEP2035, eGo100) diff --git a/dataprocessing/sql_snippets/ego_dp_powerflow_fix_ehv_subnetworks.sql b/dataprocessing/sql_snippets/ego_dp_powerflow_fix_ehv_subnetworks.sql new file mode 100644 index 00000000..9fb00f47 --- /dev/null +++ b/dataprocessing/sql_snippets/ego_dp_powerflow_fix_ehv_subnetworks.sql @@ -0,0 +1,282 @@ +DROP SEQUENCE IF EXISTS model_draft.ego_grid_hv_fix_errors_bus_id CASCADE; +CREATE SEQUENCE model_draft.ego_grid_hv_fix_errors_bus_id; +SELECT setval('model_draft.ego_grid_hv_fix_errors_bus_id', (max(bus_id)+1)) FROM model_draft.ego_grid_pf_hv_bus; + +DROP SEQUENCE IF EXISTS model_draft.ego_grid_hv_fix_errors_line_id CASCADE; +CREATE SEQUENCE model_draft.ego_grid_hv_fix_errors_line_id; +SELECT setval('model_draft.ego_grid_hv_fix_errors_line_id', (max(line_id)+1)) FROM model_draft.ego_grid_pf_hv_line; + +DROP SEQUENCE IF EXISTS model_draft.ego_grid_hv_fix_errors_transformer_id CASCADE; +CREATE SEQUENCE model_draft.ego_grid_hv_fix_errors_transformer_id; +SELECT setval('model_draft.ego_grid_hv_fix_errors_transformer_id', (max(trafo_id)+1)) FROM model_draft.ego_grid_pf_hv_transformer; + + +---- 380kV Berlin +--- line doesn't exist in entso-e, substations are 110kV in osm +-- delete 380kV buses + +DELETE FROM model_draft.ego_grid_pf_hv_bus WHERE v_nom = 380 AND bus_id IN (SELECT bus_i FROM grid.otg_ehvhv_bus_data +WHERE geom IN ('0101000020E6100000E6D4C59C60F02A40A254AE08CF424A40','0101000020E61000000F6844C4280B2B4074AC9C07C1424A40', '0101000020E61000008A5DDBDB2DE92A40372C5789C3424A40', '0101000020E6100000799F91F85E0B2B40277E8D4F25434A40', '0101000020E6100000ADA580B4FF112B40829EBC7E77434A40', '0101000020E6100000C8C54A64F5122B4012EB782DCC444A40') +AND base_kv = 380); + +DELETE FROM model_draft.ego_grid_pf_hv_line WHERE bus0 IN (SELECT bus_i FROM grid.otg_ehvhv_bus_data WHERE geom IN ('0101000020E6100000E6D4C59C60F02A40A254AE08CF424A40','0101000020E61000000F6844C4280B2B4074AC9C07C1424A40', '0101000020E61000008A5DDBDB2DE92A40372C5789C3424A40', '0101000020E6100000799F91F85E0B2B40277E8D4F25434A40', '0101000020E6100000ADA580B4FF112B40829EBC7E77434A40', '0101000020E6100000C8C54A64F5122B4012EB782DCC444A40') +AND base_kv = 380); + +DELETE FROM model_draft.ego_grid_pf_hv_transformer WHERE bus1 IN (SELECT bus_i FROM grid.otg_ehvhv_bus_data WHERE geom IN ('0101000020E6100000E6D4C59C60F02A40A254AE08CF424A40','0101000020E61000000F6844C4280B2B4074AC9C07C1424A40', '0101000020E61000008A5DDBDB2DE92A40372C5789C3424A40', '0101000020E6100000799F91F85E0B2B40277E8D4F25434A40', '0101000020E6100000ADA580B4FF112B40829EBC7E77434A40', '0101000020E6100000C8C54A64F5122B4012EB782DCC444A40') +AND base_kv = 380); + + +---- 220kV Weiher +--- missing line from Weiher to Uchtelfangen +-- add line +INSERT INTO model_draft.ego_grid_pf_hv_line (line_id, bus0, bus1, s_nom, cables, frequency, topo, geom, length, x) +SELECT nextval('model_draft.ego_grid_hv_fix_errors_line_id'), + (SELECT bus_i FROM grid.otg_ehvhv_bus_data WHERE base_kv = 220 AND osm_name = 'KW Weiher'), + (SELECT bus_i FROM grid.otg_ehvhv_bus_data WHERE base_kv = 220 AND osm_name = 'Umspannwerk Uchtelfangen'), + 1040, + 6, + 50, + '0102000020E610000002000000D6DAC30771211C402D969AACD8AA4840650A175E64FC1B4071A44A690DB04840', + '0105000020E610000001000000010200000002000000D6DAC30771211C402D969AACD8AA4840650A175E64FC1B4071A44A690DB04840', + 5.23167613642908 * 1.15, + 5.23167613642908 * 1.15 * 314.15 * 0.001/2; + + +INSERT INTO model_draft.ego_grid_pf_hv_bus (bus_id, v_nom, geom) +SELECT DISTINCT ON (geom) + nextval('model_draft.ego_grid_hv_fix_errors_bus_id'), + 110, + geom +FROM grid.otg_ehvhv_bus_data WHERE geom = '0101000020E61000008FEB3AAF0C152140B97D456DD1094940'; + +UPDATE model_draft.ego_grid_pf_hv_line +SET bus1 = (SELECT bus_i FROM grid.otg_ehvhv_bus_data WHERE geom = '0101000020E610000091281516C01521401894D558490C4940' AND base_kv = 110), + bus0 = (SELECT bus_id FROM model_draft.ego_grid_pf_hv_bus WHERE geom = '0101000020E61000008FEB3AAF0C152140B97D456DD1094940' AND v_nom = 110), + s_nom = 520, + cables = 6, + x = length * 314.15 * 0.0012/2 +WHERE bus1 = (SELECT bus_i FROM grid.otg_ehvhv_bus_data WHERE geom = '0101000020E610000091281516C01521401894D558490C4940' AND base_kv = 220) + AND bus0 = (SELECT bus_i FROM grid.otg_ehvhv_bus_data WHERE geom = '0101000020E61000008FEB3AAF0C152140B97D456DD1094940' AND base_kv = 220); + +UPDATE model_draft.ego_grid_pf_hv_line +SET bus0 = (SELECT bus_i FROM grid.otg_ehvhv_bus_data WHERE geom = '0101000020E6100000C208F2600E1321404EED06B1FE094940' AND base_kv = 110), + bus1 = (SELECT bus_id FROM model_draft.ego_grid_pf_hv_bus WHERE geom = '0101000020E61000008FEB3AAF0C152140B97D456DD1094940' AND v_nom = 110), + s_nom = 520, + cables = 6, + x = length * 314.15 * 0.0012/2 +WHERE bus0 = (SELECT bus_i FROM grid.otg_ehvhv_bus_data WHERE geom = '0101000020E6100000C208F2600E1321404EED06B1FE094940' AND base_kv = 220) + AND bus1 = (SELECT bus_i FROM grid.otg_ehvhv_bus_data WHERE geom = '0101000020E61000008FEB3AAF0C152140B97D456DD1094940' AND base_kv = 220); + +DELETE FROM model_draft.ego_grid_pf_hv_bus WHERE bus_id IN +(SELECT bus_i FROM grid.otg_ehvhv_bus_data WHERE geom IN ('0101000020E61000008FEB3AAF0C152140B97D456DD1094940', '0101000020E6100000C208F2600E1321404EED06B1FE094940', '0101000020E610000091281516C01521401894D558490C4940') AND base_kv = 220); + +---220kV subnetwork Heinitz/Saarstahl +--- add 220kV line from Uchtelfangen to Heinitz, in respect to osm and bing +-- this error is maybe fixed in osm +INSERT INTO model_draft.ego_grid_pf_hv_line (line_id, bus0, bus1, length, topo, geom, x, r, s_nom, cables, frequency) +SELECT nextval('model_draft.ego_grid_hv_fix_errors_line_id'), + (SELECT bus_i FROM grid.otg_ehvhv_bus_data WHERE base_kv = 220 AND osm_name = 'Umspannwerk Uchtelfangen'), + (SELECT bus_i FROM grid.otg_ehvhv_bus_data WHERE base_kv = 220 AND osm_name = 'Umspannwerk Heinitz'), + 10.6040557238013, + '0102000020E610000002000000650A175E64FC1B4071A44A690DB0484085E1E2CCE9771C40D1DD7BCF2EA94840', + '0105000020E610000001000000010200000002000000650A175E64FC1B4071A44A690DB0484085E1E2CCE9771C40D1DD7BCF2EA94840', + 10.6040557238013 * 314 * 0.001/2, + 10.6040557238013 * 0.109/2, + 1040, + 6, + 50; + +---- Verbindung Lübeck-Siems +INSERT INTO model_draft.ego_grid_pf_hv_bus (bus_id, v_nom, geom) +SELECT DISTINCT ON (geom) + nextval('model_draft.ego_grid_hv_fix_errors_bus_id'), + 220, + geom +FROM grid.otg_ehvhv_bus_data WHERE osm_name IN ('Umspannwerk Siems'); + +INSERT INTO model_draft.ego_grid_pf_hv_line (line_id, bus0, bus1, s_nom, topo, geom, length, x, cables, frequency) +SELECT nextval('model_draft.ego_grid_hv_fix_errors_line_id'), + (SELECT bus_i FROM grid.otg_ehvhv_bus_data WHERE base_kv = 220 AND osm_name = 'Lübeck'), + (SELECT DISTINCT ON (bus_id) bus_id FROM model_draft.ego_grid_pf_hv_bus WHERE v_nom = 220 AND geom = '0101000020E6100000D38040358C8525403935408972F44A40'), + 520, + '0102000020E6100000020000006380D3776E4825406764811FA7F54A40D38040358C8525403935408972F44A40', + '0105000020E6100000010000000102000000020000006380D3776E4825406764811FA7F54A40D38040358C8525403935408972F44A40', + 7.91338283450564 * 1.15, + 314.15 * 0.001 * 7.91338283450564 * 1.15, + 3, + 50; + +INSERT INTO model_draft.ego_grid_pf_hv_transformer(trafo_id, bus0, bus1, s_nom, x, phase_shift, tap_ratio, topo, geom) +SELECT nextval('model_draft.ego_grid_hv_fix_errors_transformer_id'), + (SELECT DISTINCT ON (bus_id) bus_id FROM model_draft.ego_grid_pf_hv_bus WHERE v_nom = 220 AND geom = '0101000020E6100000D38040358C8525403935408972F44A40'), + (SELECT DISTINCT ON (bus_id) bus_id FROM model_draft.ego_grid_pf_hv_bus WHERE v_nom = 380 AND geom = '0101000020E6100000D38040358C8525403935408972F44A40'), + 600, + 9.68, + 0, + 1, + '0102000020E610000002000000D38040358C8525403935408972F44A40D38040358C8525403935408972F44A40', + '0105000020E610000001000000010200000002000000D38040358C8525403935408972F44A40D38040358C8525403935408972F44A40'; + +---- 380kV Plattling +--- wrong line connection +-- delete old line and add new one +INSERT INTO model_draft.ego_grid_pf_hv_bus (bus_id, v_nom, geom) +VALUES (nextval('model_draft.ego_grid_hv_fix_errors_bus_id'), + 380, + '0101000020E6100000E1F4899702B52940FA1DD48F97614840'); + +INSERT INTO model_draft.ego_grid_pf_hv_line (line_id, bus0, bus1, topo, geom,length, x, s_nom, cables, frequency) +VALUES (nextval('model_draft.ego_grid_hv_fix_errors_line_id'), + (SELECT bus_i FROM grid.otg_ehvhv_bus_data WHERE base_kv = 380 AND osm_name = 'Umspannwerk Pleinting'), + (SELECT DISTINCT ON (bus_id) bus_id FROM model_draft.ego_grid_pf_hv_bus WHERE v_nom = 380 AND geom = '0101000020E6100000E1F4899702B52940FA1DD48F97614840'), + '0102000020E61000000200000030AC43C5F4342A40D8CA9DE357554840E1F4899702B52940FA1DD48F97614840', + '0105000020E610000001000000010200000032000000E1F4899702B52940FA1DD48F976148401D2C5217DFB629402B5327FB42614840CAF6C6B546B92940DE03745FCE604840DF1C098F91BB29403F41182E6160484075EF9705C9BD2940154152FAF85F4840EA91ABFD42C02940C81FB182845F484054AE4BE889C22940171A3ED8185F4840D5592DB0C7C4294041F0F8F6AE5E4840A65B1BCF0CC729409679ABAE435E4840AD6D8AC745C9294031395A7AD95D48402CADD05158CB2940D4827236785D48403535BF5076CD29402B3BB313145D484044F174F8B5CF2940EA5A7B9FAA5C4840EB3E5B62C0D12940B0D69AF7495C4840C30A5CC3B1D329400371C394ED5B4840A16BBAF9A1D52940C65E398C935B4840178F41DDF6D729404C112A82495B4840E58E482586DA2940F855B950F95A484042823D810BDD294038FEFAD7A85A48404CA59F7076DF2940E27899BC5C5A4840650CBD0F51E22940E256E652015A4840203FC0FFFBE42940B3B112F3AC594840C5CC9948C4E72940B6CA5D9555594840896A0025F4E929406304F97E0F59484025F4E967A0EC2940D07F0F5EBB58484035046CAC69EF2940CD1DA2766458484012A5BDC117F22940E6B4029E0F5848403CF4DDAD2CF5294024AF7378AD5748400E9D43BEF0F7294044937A05585748405820D50B99FA2940FE63213A04574840996AC1E677FD294020D099B4A956484063EA533310002A40BB39A63858564840B3CF639467022A40CFC023850D5648400848EAF307052A40A297512CB7554840AB871EE7EC072A4089FF852F5D554840A3135333B50A2A40BC2CDCA8045548403EE2FCF26E0D2A40ACA0B316B0544840A5486359D50F2A40E729615C6054484003931B45D6122A40351D4B6947544840C878944A78162A40CEEE7F3628544840F11879B4CC192A402321DB430C544840416150A6D11C2A40B35F77BAF3534840C1ADBB79AA1F2A403D57A53EDA534840F9307BD976222A404969368FC3534840032BE2CF4B242A4031E076B2E553484071766B990C272A4040C1C58A1A5448404301DBC188292A4063DD2EEA49544840C19206126F2C2A40058651B58254484048B599547E2F2A40ED22F197BB5448406B6A3414D2312A40006A0F20E8544840', + 22.624793411008, + 314.15 * 0.0008 * 22.624793411008, + 1790, + 3, + 50), + + (nextval('model_draft.ego_grid_hv_fix_errors_line_id'), + (SELECT DISTINCT ON (bus_id) bus_id FROM model_draft.ego_grid_pf_hv_bus WHERE v_nom = 380 AND geom = '0101000020E6100000E1F4899702B52940FA1DD48F97614840'), + (SELECT bus_i FROM grid.otg_ehvhv_bus_data WHERE base_kv = 380 AND osm_name = 'Schwandorf'), + '0102000020E610000002000000E1F4899702B52940FA1DD48F97614840BBEF0B431D2A2840230697C412A64840', + '0105000020E610000003000000010200000006000000C0EF0B431D2A2840200697C412A64840B2C68FE7E92A2840E88E5951DEA5484060668E9BD02A2840C4149B45DEA5484026FC523F6F2A2840352CA116DEA5484071A4D8767F292840C0EAC891CEA548400A2DEBFEB1282840BCEBC781B2A548400102000000040000006B6A3414D2312A40006A0F20E85448405AFBF14D89322A40263218C8585548407AD10D034C332A40B566D0758655484044AC43C5F4342A40D9CA9DE3575548400102000000CE0000000A2DEBFEB1282840BCEBC781B2A5484067E77E98CE2828402497FF907EA54840D026874F3A292840823D810B0DA548408ED7721D99292840688297CFA8A4484084DCA051152A28403430F2B226A44840BFDD488F952A2840FDAEBE709DA348402B4F20EC142B2840CA260A3E17A34840C2590009792B2840E8065449AEA24840FC45BF6CF12B2840A19FA9D72DA24840031203136E2C28408CA03193A8A148402E07D561E02C2840A60EF27A30A14840E801E264D12E28407B88467710A1484060A7FD7B9531284063145F48E2A0484059880E81233528408CE8E802A8A048400475CAA31B392840847F113466A04840B47B4D6AC33C2840A3B1513129A04840683EE76ED73F2840F85BF1C3F79F484047489341A4412840C4E347A1D19F4840468E194DD3442840ECEA9FF18E9F4840C48FD6BDBA4728403E0F49884D9F4840D09D60FF754A2840319CC651149F4840558440D3B74D28400E2840B9129F4840D604ACB074512840F2BEE0890F9F4840BA7C355195542840CF4A5AF10D9F48406ADF3719B0572840EF5B08CD099F4840238216B7765B2840906D7429099F4840B05CCA541C5E28405E448078029F4840EFEC86C844612840F08398F0F09E4840A88A4E3BA164284039C3C36AE29E4840EDF1423A3C682840C49B9031D29E4840329FBD44066B28403CE3569CC59E484089A8D3CB396E2840C7BB2363B59E4840F10D85CFD6712840E1687D80A49E4840A125D9340075284015D4A6A0919E4840C86EB081BE76284032DD90EB4B9E484061F998B44E792840FDEC9117E39D48404F01D5E4CE792840768071BA769D484050768E5C927A28400DD30847DA9C4840E158BCFD5E7B284079D388F4369C4840F1F62004E47B284049BA66F2CD9B4840FADB5493967C284003CC7C073F9B484093F139C1487D284082F3F3F0AF9A4840AB6FAAFFBD7D28401222CFE4519A4840F17F4754A87E284001E77BFC94994840BC410F10277F284058B9612530994840291B7B9BA37F2840A4816962CB984840C5DF9B4B168028403128D36872984840F8F829334A8028406D09545ADA974840943AB7BF698028409C29BEEB7D974840667EDA4D95802840191AF44AFE964840B5F6E39B12812840AD78D965AE9648406242716CE2812840E55828E32996484035AB88E4758228400947DAD7CB95484079A235502A832840BBF1EEC858954840612129D8358428401258EF26AE9448409816F549EE842840E30D7A8038944840B00FFCB9B285284094957032BB93484062597A7E62862840748A9F104B934840EB45A3F1FA862840415365CEE99248406D4ECA49CD872840870B8A308F924840AD9E3825C588284045C9F50027924840E28A30EAFF8928400C923EADA29148406B4EB91D758B2840FD5DE9C6059148402E85515AC98C2840B741EDB7769048406166440EB68D284008AD872F13904840C5F13279B98E284004DD0319A68F48400AF31E679A902840C60B337E2B8F4840EC8E20F01B92284046990D32C98E48402AE9BC21E8932840E72620DC538E48407DEC8909C5952840FB952941DA8D4840A5468DAE7798284021E3F6706E8D4840E7954627A69A284089658E40178D4840A8A55E5C4F9D284066B8A6E5AC8C4840EE26F8A6E99F284078A27FDD448C48406C15B3147FA2284015A930B6108C4840D4884FF003A6284003A4479DCA8B4840361488E821A82840A32F73709F8B4840F743C769E3AB2840A00491A0538B4840EE00F4A045AF2840A5C5747C0F8B4840FFB7EDD68DB22840DE93E23ECD8A48407111291774B428403F092241A78A48402480F67EFEB62840A60A4625758A4840B032BF3F4AB9284052D4997B488A4840F6C2537E08BC28407EC34483148A48403636E0980ABE2840BC067DE9ED894840E785E05DD3C02840C54D57C1B9894840C5DC5ACB09C32840FEB1B5638F89484009A469F57AC42840082F0B372A894840589643E625C62840BB0D6ABFB5884840EA2DD45059C72840BC2EB2536288484005FE4BAD52C928407A05FDE0D78748404584DACAA6CB284032E5435035874840A2A476757DCD284056ECD401B5864840D51CC5DE30CE28408C0EED084C864840DA9486753ECF284099017855B18548404E97C5C4E6CF2840E7E4A0DF52854840D5BF35C181D228407978CF81E584484031653B3A09D428409A5A5B1DA584484031074147ABD6284020A8644A3584484047F9EEFBDCD92840AD0210D2AE8348409E06B1D8CBDB284012B57E445D8348406F5287CBE0DE2840848DA152DB8248405CCCCF0D4DE128407D5D86FF748248401FBDE13E72E3284051B0B5AD1C824840A96E89B729E52840EE485057D28148403242D36DE4E5284071CEE38B51814840F63988E7B6E628409B3347FBC48048404E42E90B21E72840A74709B07E80484012BC218D0AE828407BCCF6D7E17F48407480BB4791E828406056CD188B7F48407E4056A64EEA2840E94DA0E3FE7E484026DEA6E441EB2840932A9B83B17E48401C768478C9EC2840DA38622D3E7E4840116C01463CEE28406ECACB50CB7D4840175F590E99EF2840B24AE9995E7D4840DDCEBEF220F12840484A1F5FE77C48402CA0AB0892F22840F992D794757C48408C7D6E0D11F428408F78680EFF7B48408C88BDAB79F5284087DD770C8F7B484078E62F3E16F8284015B3B9C5577B48404076CD9A0EFB2840DBCD42F1197B484051BF0B5BB3FD284074DB74BAE27A48402F675B7281002940D4DC651AA87A48402DCDAD105603294069DDABFB6C7A4840C5758C2B2E06294058B329B2317A4840DDCAB7E3F2082940F25602CEF7794840FF31BE79BB0B294093A3A597BD79484073CAEDA87B0E294028B85851837948403CB02D4D5B11294083D4377A4679484065FF3C0D18142940FF44C07C0D794840BF72CE99FE1629406B28B517D17848400D0055DCB81929408934E0E297784840D96212899D1C29407E4397265B7848405B1A097E651F29403DD7F7E12078484051943AB7BF21294030C912E7F2774840C63945A22B242940794F2F42C27748406412E456F7262940E895FC998B77484063FDB0EFD4292940830BC3915177484049A2F20A9F2C2940DAF51CA21B774840F0976082642F294002767F06E57648407E384888F2312940C985144DB1764840FFBC5FBB6A342940B8509E1E80764840CC71B8A00837294003E32A604C76484085ABA8667B392940A49AA3D81B764840E443F57B073C2940ACAD3319E975484073F0F1AE1F3F29403D6D437BAB75484049A93A9AD9412940C4094CA7757548401F42A6C695442940B6D210FA3E754840F50AB034954629407728AF3A17754840737A83D49247294012BCC6D397744840F1CD80C4C0482940FB90B75CFD734840967DB2BD714929407D19D69EA37348406ADFDC5F3D4A2940E87CC2233B734840C4BC7D0C0C4B294028CB5A54D5724840E2033BFE0B4C2940337678BE557248406027501FDC4C2940DCA799A4E87148400EEDAD92D94E2940E3E13D07967148404FC9DEF714512940FA0159993A71484017B1F4465253294070445266DE704840102A2790C855294063B323D577704840C1D6B672405829404A2C84301270484061F1E54F655A29403C50A73CBA6F48400245D1A8655C2940FB0B981B676F4840ED24C742195F2940C967C3ABF66E484094BF7B478D6129407937BB5A936E4840ED35F39A0D6429407F29A84D416E4840C2F1214D61662940C3D89D49F66D4840F51E1D0D966829405389FC44AF6D4840823D810B0D6B29405270C2CE5E6D48404F53701D886D2940BDD930540F6D484070F32103D46F2940C4ACBC89C66C4840B1F4465277722940A9C0C936706C484032D6EDA29E74294085AC133C2A6C484052071E842577294044EC0214D96B4840386A85E97B79294005A96FF48C6B4840089E31827C7B2940C7CA79104C6B4840B7B82121257D2940A20337F7FC6A48403B8BDEA9807F2940A708CB338A6A4840C3E4FC039B81294029EACC3D246A48400EA320787C83294058665B17C8694840BB5A931392852940C77A0F3C636948405E6CB5E2768729409D2166400769484042621635F3872940FB35FEE9AB6848402F23AB11B0882940074E6CF420684840FABDA83869892940F9CFE4AC99674840DD32969F0A8A294011F0B5B123674840E1777874C88A29402614C7269E6648408DD5E6FF558B294007FE0120386648402FCAC749BC8B2940EC00E374ED65484076662728EA8D2940126C5CFFAE6548402CEADD697C9029406C996780666548408901B7932D932940F8CC48731A654840197DBBDBAB95294058CBF852D3644840C2572A5E1B9829408ECEF9298E6448406241ABDDC09A29406EBEB62341644840D988168F419D2940EB1791CDFA634840D8ED5811DA9F29407C5E961BB16348400BF7802F3BA22940154FE2186E634840429A0C22ADA42940EA1560692A6348408C45782057A7294030A3B327DC6248400FB16609D7A82940B18BFDC0B062484025523F1471AB2940A8DF2AF466624840B00A2F1C63AE294037177FDB136248405E471CB281B02940C72C7B12D8614840309DD66D50B3294082D94EA5B0614840E1F4899702B52940FA1DD48F97614840', + 90.5604456325126, + 314.15 * 0.0008 * 90.5604456325126, + 1790, + 3, + 50), + + (nextval('model_draft.ego_grid_hv_fix_errors_line_id'), + (SELECT DISTINCT ON (bus_id) bus_id FROM model_draft.ego_grid_pf_hv_bus WHERE v_nom = 380 AND geom = '0101000020E6100000E1F4899702B52940FA1DD48F97614840'), + (SELECT bus_i FROM grid.otg_ehvhv_bus_data WHERE base_kv = 380 AND geom = '0101000020E6100000C000DCEF17B429409E0779BEB3614840'), + '0102000020E610000002000000E1F4899702B52940FA1DD48F97614840C000DCEF17B429409E0779BEB3614840', + '0105000020E610000001000000010200000002000000E1F4899702B52940FA1DD48F97614840C000DCEF17B429409E0779BEB3614840' + 0.162698660268822, + 314.15 * 0.0008 * 0.162698660268822, + 1790, + 3, + 50); + +DELETE FROM model_draft.ego_grid_pf_hv_line WHERE bus0 = (SELECT bus_i FROM grid.otg_ehvhv_bus_data WHERE base_kv = 380 AND osm_name = 'Umspannwerk Pleinting') AND bus1 = (SELECT bus_i FROM grid.otg_ehvhv_bus_data WHERE base_kv = 380 AND osm_name = 'Schwandorf'); + +DELETE FROM model_draft.ego_grid_pf_hv_transformer WHERE bus1 = (SELECT DISTINCT ON (bus_i) bus_i FROM grid.otg_ehvhv_bus_data WHERE base_kv = 380AND geom = '0101000020E61000002F70D819E6B4294094DDFA53EE614840'); + +DELETE FROM model_draft.ego_grid_pf_hv_bus WHERE geom = '0101000020E61000002F70D819E6B4294094DDFA53EE614840' AND v_nom = 380; + +---- 380kV Weisweiler +--- missing connection from powerstation to 380kV line +-- add 380kV line +INSERT INTO model_draft.ego_grid_pf_hv_line (line_id, bus0, bus1, topo, geom,length, x, s_nom, cables, frequency) +SELECT nextval('model_draft.ego_grid_hv_fix_errors_line_id'), + (SELECT bus_i FROM grid.otg_ehvhv_bus_data WHERE base_kv = 380 AND geom = '0101000020E610000050D9BE3268491940C27D4210236B4940'), + (SELECT bus_i FROM grid.otg_ehvhv_bus_data WHERE base_kv = 380 AND geom = '0101000020E6100000FE4C1828844919408E469968EB6A4940'), + '0102000020E61000000200000050D9BE3268491940C27D4210236B4940FE4C1828844919408E469968EB6A4940', + '0105000020E61000000100000001020000000200000050D9BE3268491940C27D4210236B4940FE4C1828844919408E469968EB6A4940', + 0.189094013858938 * 1.15, + 314.15 * 0.0008 /2 *0.189094013858938 * 1.15, + 3580, + 6, + 50; + + +---- Umspannwerk Marke +--- lines are not connected to the station in Marke +-- connect lines to the station + +UPDATE model_draft.ego_grid_pf_hv_line +SET bus1 = (SELECT bus_i FROM grid.otg_ehvhv_bus_data WHERE base_kv = 110 AND geom = '0101000020E6100000E68C989C3B86284098C783C0D9DE4940') +WHERE geom = '0105000020E610000002000000010200000003000000BC8CAC46C0862840B5D084DCFBDE494027214729D786284060BD40FFF3DE494069FE3D1D34882840A6CEED6F1ADF494001020000002E000000165685611B64284006E9184630E84940B225F5AFF6652840770E0AEF17E84940377F02DEB86728400CC2267C00E84940E39EF87B73692840547CD7FBE8E749406B4AB20E476B28406C9E7EABD0E74940A74AEF76186E2840490158D3ABE74940A83D80A037702840995CD60E90E74940344A97FE2571284098CC672F91E74940EED9CE520D7228406198028871E7494052031775F7722840D7DB0B7151E74940B11D8CD827742840D2F93ABA5BE74940EEA1D8655375284067AE1DD665E74940000CBA731777284096A1855F45E74940F6211400887828409A756B3E53E749404776A565A47A2840D3F0773936E74940209E25C8087C28401F5CF05822E74940BA539511727D28408EE5023C0EE74940DB1CE736E17E2840BE06335CD3E649403AAEEBBC328028407A2CC7759DE6494078C6AD388B8128402016C50666E64940D2D73DC3E5822840D73CA29D2EE649404F9FD3E24284284088026CF6F6E5494059A42EBE0D862840073AA462ADE5494096287B4B39872840C60490357EE5494013807F4A958828408A1B5CDF2CE5494015D67C4BEF8928402A6A7A9ADDE44940AFA4CB51368B2840397C77D091E44940927C2590128B2840CE5FD7E54AE44940CDC75AE8EF8A28401CC5837703E44940D83DC3E5C28A2840AE084845ADE3494053B648DA8D8A2840F6CCDC8D4FE34940824A4B9B608A2840FA0B3D62F4E24940E1DEEB5A318A28402DEBA3F89DE24940DED506825B8A28402509C21550E249406E2A9CEE868A284012DB824A01E24940615793A7AC8A28403F20D099B4E149403E5DDDB1D88A28400AE69E6461E14940642FCA22038B2840425DA45016E14940C753EAED2A8B2840F009C84DC3E04940CD5CE0F2588B2840E6E4EA6C6DE04940DE4FD724898B284031DE454E15E0494074A95B87B48B2840452E3883BFDF494031197DBBDB8B2840E86F9DDA74DF494098530262128A2840922749D74CDF4940C42F50AD19882840021B6BDA20DF4940BC8CAC46C0862840B5D084DCFBDE4940' AND s_nom = 520; + +UPDATE model_draft.ego_grid_pf_hv_line +SET bus0 = (SELECT bus_i FROM grid.otg_ehvhv_bus_data WHERE base_kv = 110 AND geom = '0101000020E6100000E68C989C3B86284098C783C0D9DE4940') +WHERE s_nom = 1040 AND geom = '0105000020E61000000100000001020000003400000069FE3D1D34882840A6CEED6F1ADF494069FE3D1D34882840A6CEED6F1ADF4940D034BCB43C8A28407668FDD247DF494054104DEA158C28409D88D92670DF4940F3C3526EEC8B28404D73E1F6BADF494081608E1EBF8B284089EFC4AC17E049404B2F206A918B2840B646A9296EE04940F1976082648B2840F522241CC4E0494058B66A323E8B2840F4401A040CE14940FC6E5FAC148B284074733B4558E14940C565CBA8E88A28407FA4880CABE14940A3E8818FC18A2840A96A82A8FBE14940C8DA3A93918A2840496F13494FE24940FFD0CC936B8A28405E3931DA99E24940FB7F304B968A28405CF80B87EFE24940AAE27CA0CB8A2840B4C3A92050E34940E540B4FBFA8A284072EA5E82AEE34940FD5877E2288B2840945742D202E4494098BFE72C588B2840B8BF69B05FE449403B6178DB3B8D2840EF3614E3A1E44940281A5A530F8F28406889DF5EE3E449407F2CE9CD4D902840FCBF8F0F1FE549404504D2B47A9128408CB5094158E549400F7D1C72D8922840C9E9EBF99AE54940097481261D9428406E293119D8E5494095DB51F75C9528403D30DBA914E64940CCCE47BEB7962840CF9662FD55E64940A5F6C7201C9828407D6C81F398E6494022B3695B839928401F66D421DCE64940F66F4D70A09A2840974DCAEE13E749409004D0DECF9B2840E6E324DE4BE7494007C36FF9FE9C2840C8478B3386E7494033A083D3279E28409C95A3B6C3E749400BDDDBE33B9F28409030B19EFFE74940BD2B71D355A02840F49A0DE83BE84940BF805EB873A12840C2E3367579E849401784F23E8EA2284033A0281AB5E849405876C1E09AA328401BAD591DEFE849401106F93482A4284066225B4C22E949406F5633219CA52840FE7F9C3061E949407F0FA848CFA628404CD18030A6E949409AEBD918E0A7284027101BD1E2E949406ECCA1FB28A92840BF8A42812DEA4940B782A62556AA284055EA48E471EA4940CA9BB28982AB284093F650ECB2EA4940F8C77BD5CAAC2840B52CA924FCEA4940C24AAA5BE2AD284095AC79443BEB49408F0BBDB497AF28403B3F202B53EB49408D92A17433B12840A14495AB69EB49403CE75DABF3B22840ED8B3A2982EB49402CC313D5B6B428404C3ED1D09AEB49402CC313D5B6B428404C3ED1D09AEB4940'; + +UPDATE model_draft.ego_grid_pf_hv_line +SET bus1 = (SELECT bus_i FROM grid.otg_ehvhv_bus_data WHERE base_kv = 110 AND geom = '0101000020E6100000E68C989C3B86284098C783C0D9DE4940') +WHERE s_nom = 520 AND geom = '0105000020E61000000100000001020000001F0000003FBF396DD7C5284066DAA3DC22DC49403FBF396DD7C5284066DAA3DC22DC494034EDAC2704C428402B5E1BE038DC494042F806150BC2284018B1F44652DC4940C2413168D7BF284082AFE8D66BDC49402E1801BAD4BD2840B68075C185DC49406AFD2D01F8BB2840510F762F9CDC494075E789E76CB9284087D2CDB4B3DC4940CBC16C020CB728407C50AB43C9DC4940CF3A3EB555B428400A6D3997E2DC4940D4B430B033B228404E94CED1F4DC49405BE55311B8AF2840EE974F560CDD4940B7627FD93DAD2840427A8A1C22DD4940EA944737C2AA284037F867AB37DD49401351A79773A82840209A79724DDD49404EA14ED42DA628404BBB873A62DD4940F22BD67091A32840CED36F157ADD494001F676F0B8A12840CDF6D7E19EDD4940026A6AD95A9F2840204F26C9CEDD4940FD07477F1E9D2840DFD9684AFCDD494025C4A6DFCF9A28405B3B9B9F2CDE49402918DF6124992840672C9ACE4EDE4940D525E318C996284042F2295B7FDE494001B562C966942840723216F2ADDE494029DD4C3BEB91284016359886E1DE49400405DEC9A78F2840B892C2610EDF49404525BF8FB48D2840FCAD9D2809DF49405D959FAFB48B28404CA544B703DF4940B87E55890D8928405566EF31FDDE494094E7B0B10187284073874D64E6DE494094E7B0B10187284073874D64E6DE4940'; + +UPDATE model_draft.ego_grid_pf_hv_line +SET bus0 = (SELECT bus_i FROM grid.otg_ehvhv_bus_data WHERE base_kv = 110 AND geom = '0101000020E6100000E68C989C3B86284098C783C0D9DE4940') +WHERE s_nom = 520 AND geom = '0105000020E61000000100000001020000002A0000003308628F3F872840068B1E53D2DE49400E901E752A872840C1971D3DD9DE494037525B8F67882840E2DC15B0D3DE4940E55E059DB5882840298705AD76DE494073CA92EF0889284060764F1E16DE49400E18247D5A89284044A9BD88B6DD49401FD55526A18928402961A6ED5FDD49405BC6979A4E882840EF05668522DD4940BFFB3E77DD8628404D0C1357DFDC4940BD7A70D28F852840E3E47E87A2DC494020B017AF1E842840E8B9CF3B5FDC4940F416B435C7822840C6D4A76620DC49407E2C335B6881284058B49487E0DB49405463F83E0B80284008DB3E9AA0DB4940E3B32BE3957E2840E97D88B25CDB4940A6619DCF257D2840BE2A61B719DB49406339F878D77B2840B3AFE18EDCDA494054D625998B7A28408BD3FF28A0DA4940A553B2F73D7928406944C42863DA4940BE384C8F01782840984B4FFD28DA4940033972EEC0762840154C46DFEED94940DA733EE19175284020717E79B7D949401AA54BFF927428407970C16389D9494013FEFB427E742840E1078C9A54D9494049275CD94F742840FE3DC27AEDD84940A79B1FDA22742840C6C551B989D849409C1DA9BEF3732840678AEF7A1FD849409B19A2AFC57328403166A60FB8D7494066EC3A0AC6732840589A4AF553D74940FA916CBFC673284006BD378600D74940B0027CB77973284023F6AEE6A5D64940789F3E5D3873284037FBA82B44D64940428EF7F422742840E94427F0F3D54940CE870C50BF742840D36C1E87C1D549405B417859B875284052C9EF236DD549401D6217A0C87628407407567A12D54940F9A067B3EA772840FEDA55A3B2D449409008D7EDFD772840A70705A568D449408E4AA07719782840019C285316D449402A9721E92E78284071276C9AD2D34940B4E6C75F5A782840D8344AF2B7D34940B4E6C75F5A782840D8344AF2B7D34940'; + +UPDATE model_draft.ego_grid_pf_hv_line +SET bus0 = (SELECT bus_i FROM grid.otg_ehvhv_bus_data WHERE base_kv = 110 AND geom = '0101000020E6100000E68C989C3B86284098C783C0D9DE4940') +WHERE s_nom = 520 AND geom = '0105000020E6100000010000000102000000410000003308628F3F872840068B1E53D2DE49403308628F3F872840068B1E53D2DE494021C610A5628828402544543C89DE4940A7875748AF882840EFF4392D2EDE494016BA5C0E05892840EC055559CADD4940BAB42B3E4F89284037A38BF271DD4940EF5FB422C5872840704EDB7525DD49402DB87AA9338628409980046AD6DC49408D16FB26A8842840C07EE3C688DC494035C69805248328408C8FAA8141DC4940D4635B069C812840E027582DFADB49401E3691990B802840F37A8BE2B0DB4940B4C46FAF717E28407975334866DB4940C4A92050477D284005CF73FA30DB49407C9C69C2F67B284007EE409DF2DA4940DD66857D967A2840A54DD53DB2DA49407561FFD027792840DF910C946FDA494080619E3AFB772840A24CFE8238DA4940F3E7DB82A5762840D41D7A41FAD949404BA82A7E9D752840F2800DE3C9D9494021DFEF6140742840C01C870B8AD94940FF4A427D2672284026E2ADF36FD9494009D51753FA6F28401649601855D949400577FB07EC6D2840653C4A253CD949402C387293076C2840003153A40CD94940645694B7C86A2840974E35C4C2D84940B4D0292389692840C3E96EE877D84940B9910DFF44682840E4665D482CD8494049EA4EC12B67284080E89326EFD749405D01E0336D66284001608610A1D749402F0906C6B0652840AC22DC6454D749408FDC3FBBE8642840E20E2FE301D74940C0C1CD98386428405AF9C0E9B8D64940D363A593B6622840833BAB60AFD649405B046B419460284054162AA4A1D649403181B630665E2840C7BA5DD493D649408514F2F7415C2840C2429C3D86D6494070F2B62D255A2840A52CE86278D649405BDF76572C58284040EE6CD96BD6494045C82F720556284083B2DFC95DD64940C88ED7CDD6532840F52801D64FD64940B4DF2417AD512840D3DF4BE141D649404692C5A28E4F2840397AA12534D64940A6E727E66A4D28403A07CF8426D649406EC72F174C4B2840A0A124C918D64940E3A8DC442D492840727CA30C0BD649400A01AF850F4728402610655EFDD549409E1BE43FEE442840F7EAE3A1EFD5494076487BCDBC42284087A8C29FE1D5494084A279008B402840D6480158D3D54940AC62E06F6A3E2840A723809BC5D549400951BEA0853C28406077BAF3C4D5494021C19EC0853A2840AE8ACB4CC4D549405B3A30CA7D382840499748B3C3D549402BC0779B3736284002EB820BC3D54940A2A41BBC0A342840BB3EBD63C2D549400735327ED03128402C28B110C2D549408BFED0CC932F2840F157B730C1D54940E8F9D346752E2840E57BEB68C1D549404F07B29E5A2D28406DDCAC0B89D54940F55CF0B3DB2C28407ADC01E841D54940BFBED6A5462C28406F974748EED44940D9182AB5CD2B2840CD13BEADAAD449406AE21DE0492B284047C2082B5FD449406AE21DE0492B284047C2082B5FD44940'; + +DELETE FROM model_draft.ego_grid_pf_hv_line WHERE s_nom = 260 AND geom = '0105000020E6100000010000000102000000040000003308628F3F872840068B1E53D2DE49400E901E752A872840C1971D3DD9DE49405E72929C02872840A308A9DBD9DE494094E7B0B10187284073874D64E6DE4940'; + +---- Umspannwerk Jessen Nord +--- missing 110kV lines +-- add lines manually, THIS MIGHT BE FIXED WHEN UPDATING OSM-DATA! + +INSERT INTO model_draft.ego_grid_pf_hv_bus (scn_name, bus_id, v_nom, geom) +VALUES ('Status Quo', nextval('model_draft.ego_grid_hv_fix_errors_bus_id'), 110, ST_SetSRID(ST_Point(13.0317764, 51.7792147), 4326)), + ('Status Quo', nextval('model_draft.ego_grid_hv_fix_errors_bus_id'), 110, ST_SetSRID(ST_Point(13.0289850, 51.7797518), 4326)); + +INSERT INTO model_draft.ego_grid_pf_hv_line (scn_name,line_id, bus0, bus1, x, r, g, b, s_nom, length, cables, frequency, geom, topo ) +VALUES + ('Status Quo', + nextval('model_draft.ego_grid_hv_fix_errors_line_id'), + (SELECT bus_i FROM grid.otg_ehvhv_bus_data WHERE osm_name = 'UW Jessen Nord' AND base_kv = 110), + (SELECT DISTINCT ON (bus_id) bus_id FROM model_draft.ego_grid_pf_hv_bus WHERE geom = ST_SetSRID(ST_Point(13.0317764, 51.7792147), 4326) AND v_nom = 110), + 0.6138, + 0.17754, + 0, + 0.000019455, + 520, + 3.3, + 6, + 50, + '0105000020E610000001000000010200000002000000B9910DFF44102A40FE87AA4EBDE34940204C62AEFA1D2A402EA5F4F75DE64940', + '0102000020E610000002000000B9910DFF44102A40FE87AA4EBDE34940204C62AEFA1D2A402EA5F4F75DE64940' + ), + + ('Status Quo', + nextval('model_draft.ego_grid_hv_fix_errors_line_id'), + (SELECT bus_i FROM grid.otg_ehvhv_bus_data WHERE osm_name = 'UW Jessen Nord' AND base_kv = 110), + (SELECT DISTINCT ON (bus_id) bus_id FROM model_draft.ego_grid_pf_hv_bus WHERE geom = ST_SetSRID(ST_Point(13.0289850, 51.7797518), 4326) AND v_nom = 110), + 0.6138, + 0.17754, + 0, + 0.000019455, + 520, + 3.3, + 6, + 50, + '0105000020E6100000010000000102000000020000002D26361FD70E2A40A2FF2FE8CEE34940204C62AEFA1D2A402EA5F4F75DE64940', + '0102000020E6100000020000002D26361FD70E2A40A2FF2FE8CEE34940204C62AEFA1D2A402EA5F4F75DE64940'); + +UPDATE model_draft.ego_grid_pf_hv_line + SET + bus1 = (SELECT DISTINCT ON (bus_id) bus_id FROM model_draft.ego_grid_pf_hv_bus WHERE geom = ST_SetSRID(ST_Point(13.0317764, 51.7792147), 4326) AND v_nom = 110), + length = 15.9, + x = 6, + r = 1.735, + b = 0.0000475, + geom ='0105000020E610000001000000010200000002000000B9910DFF44102A40FE87AA4EBDE349406D49FDAB7D682A40EC2411D033DA4940', + topo = '0102000020E610000002000000B9910DFF44102A40FE87AA4EBDE349406D49FDAB7D682A40EC2411D033DA4940' + WHERE topo = '0102000020E6100000020000006D49FDAB7D682A40EC2411D033DA49406AB8C23255F22940ED1AB07B44E54940' AND s_nom = 260 +; + +INSERT INTO model_draft.ego_grid_pf_hv_line (scn_name,line_id, bus0, bus1, x, r, g, b, s_nom, length, cables, frequency, geom, topo ) +VALUES ('Status Quo', + nextval('model_draft.ego_grid_hv_fix_errors_line_id'), + (SELECT DISTINCT ON (bus_id) bus_id FROM model_draft.ego_grid_pf_hv_bus WHERE geom = ST_SetSRID(ST_Point(13.0317764, 51.7792147), 4326) AND v_nom = 110), + (SELECT DISTINCT ON (bus_id) bus_id FROM model_draft.ego_grid_pf_hv_bus WHERE geom = ST_SetSRID(ST_Point(13.0289850, 51.7797518), 4326) AND v_nom = 110), + 0.0755, 0.0218, 0, 0.000000597, 260, 0.2, 3, 50, + '0105000020E610000001000000010200000002000000B9910DFF44102A40FE87AA4EBDE349402D26361FD70E2A40A2FF2FE8CEE34940', + '0102000020E610000002000000B9910DFF44102A40FE87AA4EBDE349402D26361FD70E2A40A2FF2FE8CEE34940' + ), + + ('Status Quo', + nextval('model_draft.ego_grid_hv_fix_errors_line_id'), + (SELECT DISTINCT ON (bus_id) bus_id FROM model_draft.ego_grid_pf_hv_bus WHERE geom = ST_SetSRID(ST_Point(13.0289850, 51.7797518), 4326) AND v_nom = 110), + (SELECT bus_i FROM grid.otg_ehvhv_bus_data WHERE geom = '0101000020E61000006AB8C23255F22940ED1AB07B44E54940' AND base_kv = 110), + 1.547, 0.447, 0, 0.000012249, 260, 4.1, 3, 50, + '0105000020E6100000010000000102000000020000006AB8C23255F22940ED1AB07B44E549402D26361FD70E2A40A2FF2FE8CEE34940', + '0102000020E6100000020000006AB8C23255F22940ED1AB07B44E549402D26361FD70E2A40A2FF2FE8CEE34940'); + + +DELETE FROM model_draft.ego_grid_pf_hv_transformer WHERE bus1 NOT IN (SELECT bus_id FROM model_draft.ego_grid_pf_hv_bus) OR bus0 NOT IN (SELECT bus_id FROM model_draft.ego_grid_pf_hv_bus); diff --git a/dataprocessing/sql_snippets/rea/ego_dp_rea_results.sql b/dataprocessing/sql_snippets/rea/ego_dp_rea_results.sql index fed70d8a..53c44b50 100644 --- a/dataprocessing/sql_snippets/rea/ego_dp_rea_results.sql +++ b/dataprocessing/sql_snippets/rea/ego_dp_rea_results.sql @@ -1,12 +1,18 @@ /* -Results and statistics for REA - -__copyright__ = "Reiner Lemoine Institut" -__license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" -__url__ = "https://github.com/openego/data_processing/blob/master/LICENSE" -__author__ = "Ludee" +Skript to allocate decentralized renewable power plants (dea) +Methods base on technology and voltage level +Uses different lattice from setup_ego_wpa_per_grid_district.sql +This script includes a hotfix to fill all empty cells of column rea_geom_new with the original geometry from column geom. + +__copyright__ = "Reiner Lemoine Institut" +__license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" +__url__ = "https://github.com/openego/data_processing/blob/master/LICENSE" +__author__ = "Ludee" */ +/* +Results +*/ -- ego scenario log (version,io,schema_name,table_name,script_name,comment) SELECT ego_scenario_log('v0.3.0','input','model_draft','ego_dp_supply_res_powerplant','ego_dp_rea_results.sql',' '); @@ -31,7 +37,7 @@ ALTER TABLE model_draft.ego_supply_rea_per_gentype_and_voltlevel -- ego scenario log (version,io,schema_name,table_name,script_name,comment) SELECT ego_scenario_log('v0.3.0','output','model_draft','ego_supply_rea_per_gentype_and_voltlevel','ego_dp_rea_results.sql',' '); - + /* DEA capacity and count per grid_district */ @@ -219,3 +225,23 @@ ALTER TABLE model_draft.ego_supply_rea_per_method -- ego scenario log (version,io,schema_name,table_name,script_name,comment) SELECT ego_scenario_log('v0.3.0','output','model_draft','ego_supply_rea_per_method','ego_dp_rea_results.sql',' '); + + +-- Hotfix to fill empty rea_geom_new cells in table + +Update table model_draft_ego_dp_supply_res_powerplant + set rea_geom_new = ST_Transform(geom,3035), + comment = comment || 'add original geom to rea_geom_new' +Where rea_geom_new is null; + +-- Add index on rea_geom_new + +DROP INDEX model_draft.ego_dp_supply_res_powerplant_geom_new_idx; + +CREATE INDEX ego_dp_supply_res_powerplant_geom_new_idx + ON model_draft.ego_dp_supply_res_powerplant + USING gist + (rea_geom_new); + +-- ego scenario log (version,io,schema_name,table_name,script_name,comment) +SELECT ego_scenario_log('v0.3.0','output','model_draft','ego_dp_supply_res_powerplant','ego_dp_rea_results.sql',' '); diff --git a/utilities/ego_dp_fix_ehv_subnetworks.sql b/utilities/ego_dp_fix_ehv_subnetworks.sql new file mode 100644 index 00000000..12a2646b --- /dev/null +++ b/utilities/ego_dp_fix_ehv_subnetworks.sql @@ -0,0 +1,439 @@ +DROP SEQUENCE IF EXISTS model_draft.ego_grid_hv_fix_errors_bus_id CASCADE; +CREATE SEQUENCE model_draft.ego_grid_hv_fix_errors_bus_id; +SELECT setval('model_draft.ego_grid_hv_fix_errors_bus_id', (max(bus_id)+1)) FROM model_draft.ego_grid_pf_hv_bus; + +DROP SEQUENCE IF EXISTS model_draft.ego_grid_hv_fix_errors_line_id CASCADE; +CREATE SEQUENCE model_draft.ego_grid_hv_fix_errors_line_id; +SELECT setval('model_draft.ego_grid_hv_fix_errors_line_id', (max(line_id)+1)) FROM model_draft.ego_grid_pf_hv_line; + +DROP SEQUENCE IF EXISTS model_draft.ego_grid_hv_fix_errors_transformer_id CASCADE; +CREATE SEQUENCE model_draft.ego_grid_hv_fix_errors_transformer_id; +SELECT setval('model_draft.ego_grid_hv_fix_errors_transformer_id', (max(trafo_id)+1)) FROM model_draft.ego_grid_pf_hv_transformer; + + +---- 380kV Berlin +--- line doesn't exist in entso-e, substations are 110kV in osm +-- delete 380kV buses nd lines and temporary reconnect one-ports + +/* +UPDATE model_draft.ego_grid_pf_hv_generator +SET bus = (SELECT bus_i FROM grid.otg_ehvhv_bus_data WHERE osm_name = 'Umspannwerk Biesdorf Nord' AND base_kv = 110) +WHERE bus = (SELECT bus_i FROM grid.otg_ehvhv_bus_data WHERE osm_name = 'Umspannwerk Biesdorf Nord' AND base_kv = 380); + +UPDATE model_draft.ego_grid_pf_hv_load +SET bus = (SELECT bus_i FROM grid.otg_ehvhv_bus_data WHERE osm_name = 'Umspannwerk Biesdorf Nord' AND base_kv = 110) +WHERE bus = (SELECT bus_i FROM grid.otg_ehvhv_bus_data WHERE osm_name = 'Umspannwerk Biesdorf Nord' AND base_kv = 380); + +UPDATE model_draft.ego_grid_pf_hv_storage +SET bus = (SELECT bus_i FROM grid.otg_ehvhv_bus_data WHERE osm_name = 'Umspannwerk Biesdorf Nord' AND base_kv = 110) +WHERE bus = (SELECT bus_i FROM grid.otg_ehvhv_bus_data WHERE osm_name = 'Umspannwerk Biesdorf Nord' AND base_kv = 380); + +UPDATE model_draft.ego_grid_pf_hv_load +SET bus = (SELECT bus_i FROM grid.otg_ehvhv_bus_data WHERE osm_name = 'Umspannwerk Lichtenberg' AND base_kv = 110) +WHERE bus = (SELECT bus_i FROM grid.otg_ehvhv_bus_data WHERE osm_name = 'Umspannwerk Lichtenberg' AND base_kv = 380); + +UPDATE model_draft.ego_grid_pf_hv_storage +SET bus = (SELECT bus_i FROM grid.otg_ehvhv_bus_data WHERE osm_name = 'Umspannwerk Lichtenberg' AND base_kv = 110) +WHERE bus = (SELECT bus_i FROM grid.otg_ehvhv_bus_data WHERE osm_name = 'Umspannwerk Lichtenberg' AND base_kv = 380);*/ + +DELETE FROM model_draft.ego_grid_pf_hv_bus WHERE v_nom = 380 AND bus_id IN (SELECT bus_i FROM grid.otg_ehvhv_bus_data +WHERE geom IN ('0101000020E6100000E6D4C59C60F02A40A254AE08CF424A40','0101000020E61000000F6844C4280B2B4074AC9C07C1424A40', '0101000020E61000008A5DDBDB2DE92A40372C5789C3424A40', '0101000020E6100000799F91F85E0B2B40277E8D4F25434A40', '0101000020E6100000ADA580B4FF112B40829EBC7E77434A40', '0101000020E6100000C8C54A64F5122B4012EB782DCC444A40') +AND base_kv = 380); + +DELETE FROM model_draft.ego_grid_pf_hv_line WHERE bus0 IN (SELECT bus_i FROM grid.otg_ehvhv_bus_data WHERE geom IN ('0101000020E6100000E6D4C59C60F02A40A254AE08CF424A40','0101000020E61000000F6844C4280B2B4074AC9C07C1424A40', '0101000020E61000008A5DDBDB2DE92A40372C5789C3424A40', '0101000020E6100000799F91F85E0B2B40277E8D4F25434A40', '0101000020E6100000ADA580B4FF112B40829EBC7E77434A40', '0101000020E6100000C8C54A64F5122B4012EB782DCC444A40') +AND base_kv = 380); + +DELETE FROM model_draft.ego_grid_pf_hv_transformer WHERE bus1 IN (SELECT bus_i FROM grid.otg_ehvhv_bus_data WHERE geom IN ('0101000020E6100000E6D4C59C60F02A40A254AE08CF424A40','0101000020E61000000F6844C4280B2B4074AC9C07C1424A40', '0101000020E61000008A5DDBDB2DE92A40372C5789C3424A40', '0101000020E6100000799F91F85E0B2B40277E8D4F25434A40', '0101000020E6100000ADA580B4FF112B40829EBC7E77434A40', '0101000020E6100000C8C54A64F5122B4012EB782DCC444A40') +AND base_kv = 380); + + +---- 220kV Weiher +--- missing line from Weiher to Uchtelfangen +-- add line +INSERT INTO model_draft.ego_grid_pf_hv_line (line_id, bus0, bus1, s_nom, cables, frequency, topo, geom, length, x) +SELECT nextval('model_draft.ego_grid_hv_fix_errors_line_id'), + (SELECT bus_i FROM grid.otg_ehvhv_bus_data WHERE base_kv = 220 AND osm_name = 'KW Weiher'), + (SELECT bus_i FROM grid.otg_ehvhv_bus_data WHERE base_kv = 220 AND osm_name = 'Umspannwerk Uchtelfangen'), + 1040, + 6, + 50, + '0102000020E610000002000000D6DAC30771211C402D969AACD8AA4840650A175E64FC1B4071A44A690DB04840', + '0105000020E610000001000000010200000002000000D6DAC30771211C402D969AACD8AA4840650A175E64FC1B4071A44A690DB04840', + 5.23167613642908 * 1.15, + 5.23167613642908 * 1.15 * 314.15 * 0.001/2; + +INSERT INTO model_draft.ego_grid_pf_hv_line (scn_name, line_id, bus0, bus1, s_nom, cables, frequency, topo, geom, length, x) +SELECT 'NEP 2035', line_id, bus0, bus1, s_nom, cables, frequency, topo, geom, length, x +FROM model_draft.ego_grid_pf_hv_line WHERE topo = '0102000020E610000002000000D6DAC30771211C402D969AACD8AA4840650A175E64FC1B4071A44A690DB04840' AND s_nom = 1040 AND scn_name = 'Status Quo'; + +INSERT INTO model_draft.ego_grid_pf_hv_line (scn_name, line_id, bus0, bus1, s_nom, cables, frequency, topo, geom, length, x) +SELECT 'eGo 100', line_id, bus0, bus1, s_nom, cables, frequency, topo, geom, length, x +FROM model_draft.ego_grid_pf_hv_line WHERE topo = '0102000020E610000002000000D6DAC30771211C402D969AACD8AA4840650A175E64FC1B4071A44A690DB04840' AND s_nom = 1040 AND scn_name = 'Status Quo'; + +---- 220kV Industriepark Höchst +--- wrong voltage-level +-- change v_nom from 220kV to 110kV, add/delete buses, change one-ports buses +/*UPDATE model_draft.ego_grid_pf_hv_generator +SET bus = (SELECT bus_i FROM grid.otg_ehvhv_bus_data WHERE geom = '0101000020E6100000C208F2600E1321404EED06B1FE094940' AND base_kv = 110) +WHERE bus = (SELECT bus_i FROM grid.otg_ehvhv_bus_data WHERE geom = '0101000020E6100000C208F2600E1321404EED06B1FE094940' AND base_kv = 220); + +UPDATE model_draft.ego_grid_pf_hv_generator +SET bus = (SELECT bus_i FROM grid.otg_ehvhv_bus_data WHERE geom = '0101000020E610000091281516C01521401894D558490C4940' AND base_kv = 110) +WHERE bus = (SELECT bus_i FROM grid.otg_ehvhv_bus_data WHERE geom = '0101000020E610000091281516C01521401894D558490C4940' AND base_kv = 220); + +UPDATE model_draft.ego_grid_pf_hv_load +SET bus = (SELECT bus_i FROM grid.otg_ehvhv_bus_data WHERE geom = '0101000020E6100000C208F2600E1321404EED06B1FE094940' AND base_kv = 110) +WHERE bus = (SELECT bus_i FROM grid.otg_ehvhv_bus_data WHERE geom = '0101000020E6100000C208F2600E1321404EED06B1FE094940' AND base_kv = 220); + +UPDATE model_draft.ego_grid_pf_hv_load +SET bus = (SELECT bus_i FROM grid.otg_ehvhv_bus_data WHERE geom = '0101000020E610000091281516C01521401894D558490C4940' AND base_kv = 110) +WHERE bus = (SELECT bus_i FROM grid.otg_ehvhv_bus_data WHERE geom = '0101000020E610000091281516C01521401894D558490C4940' AND base_kv = 220); + +UPDATE model_draft.ego_grid_pf_hv_storage +SET bus = (SELECT bus_i FROM grid.otg_ehvhv_bus_data WHERE geom = '0101000020E6100000C208F2600E1321404EED06B1FE094940' AND base_kv = 110) +WHERE bus = (SELECT bus_i FROM grid.otg_ehvhv_bus_data WHERE geom = '0101000020E6100000C208F2600E1321404EED06B1FE094940' AND base_kv = 220); + +UPDATE model_draft.ego_grid_pf_hv_storage +SET bus = (SELECT bus_i FROM grid.otg_ehvhv_bus_data WHERE geom = '0101000020E610000091281516C01521401894D558490C4940' AND base_kv = 110) +WHERE bus = (SELECT bus_i FROM grid.otg_ehvhv_bus_data WHERE geom = '0101000020E610000091281516C01521401894D558490C4940' AND base_kv = 220); +'*/ + +INSERT INTO model_draft.ego_grid_pf_hv_bus (bus_id, v_nom, geom) +SELECT DISTINCT ON (geom) + nextval('model_draft.ego_grid_hv_fix_errors_bus_id'), + 110, + geom +FROM grid.otg_ehvhv_bus_data WHERE geom = '0101000020E61000008FEB3AAF0C152140B97D456DD1094940'; + +INSERT INTO model_draft.ego_grid_pf_hv_bus (scn_name, bus_id, v_nom, geom) +SELECT 'NEP 2035', bus_id, v_nom, geom +FROM model_draft.ego_grid_pf_hv_bus +WHERE geom = '0101000020E61000008FEB3AAF0C152140B97D456DD1094940' AND v_nom = 110 AND scn_name = 'Status Quo'; + +INSERT INTO model_draft.ego_grid_pf_hv_bus (scn_name, bus_id, v_nom, geom) +SELECT 'eGo 100', bus_id, v_nom, geom +FROM model_draft.ego_grid_pf_hv_bus +WHERE geom = '0101000020E61000008FEB3AAF0C152140B97D456DD1094940' AND v_nom = 110 AND scn_name = 'Status Quo'; + +UPDATE model_draft.ego_grid_pf_hv_line +SET bus1 = (SELECT bus_i FROM grid.otg_ehvhv_bus_data WHERE geom = '0101000020E610000091281516C01521401894D558490C4940' AND base_kv = 110), + bus0 = (SELECT bus_id FROM model_draft.ego_grid_pf_hv_bus WHERE geom = '0101000020E61000008FEB3AAF0C152140B97D456DD1094940' AND v_nom = 110), + s_nom = 520, + cables = 6, + x = length * 314.15 * 0.0012/2 +WHERE bus1 = (SELECT bus_i FROM grid.otg_ehvhv_bus_data WHERE geom = '0101000020E610000091281516C01521401894D558490C4940' AND base_kv = 220) + AND bus0 = (SELECT bus_i FROM grid.otg_ehvhv_bus_data WHERE geom = '0101000020E61000008FEB3AAF0C152140B97D456DD1094940' AND base_kv = 220); + +UPDATE model_draft.ego_grid_pf_hv_line +SET bus0 = (SELECT bus_i FROM grid.otg_ehvhv_bus_data WHERE geom = '0101000020E6100000C208F2600E1321404EED06B1FE094940' AND base_kv = 110), + bus1 = (SELECT bus_id FROM model_draft.ego_grid_pf_hv_bus WHERE geom = '0101000020E61000008FEB3AAF0C152140B97D456DD1094940' AND v_nom = 110), + s_nom = 520, + cables = 6, + x = length * 314.15 * 0.0012/2 +WHERE bus0 = (SELECT bus_i FROM grid.otg_ehvhv_bus_data WHERE geom = '0101000020E6100000C208F2600E1321404EED06B1FE094940' AND base_kv = 220) + AND bus1 = (SELECT bus_i FROM grid.otg_ehvhv_bus_data WHERE geom = '0101000020E61000008FEB3AAF0C152140B97D456DD1094940' AND base_kv = 220); + +DELETE FROM model_draft.ego_grid_pf_hv_bus WHERE bus_id IN +(SELECT bus_i FROM grid.otg_ehvhv_bus_data WHERE geom IN ('0101000020E61000008FEB3AAF0C152140B97D456DD1094940', '0101000020E6100000C208F2600E1321404EED06B1FE094940', '0101000020E610000091281516C01521401894D558490C4940') AND base_kv = 220); + +---220kV subnetwork Heinitz/Saarstahl +--- add 220kV line from Uchtelfangen to Heinitz, in respect to osm and bing +-- this error is maybe fixed in osm +INSERT INTO model_draft.ego_grid_pf_hv_line (line_id, bus0, bus1, length, topo, geom, x, r, s_nom, cables, frequency) +SELECT nextval('model_draft.ego_grid_hv_fix_errors_line_id'), + (SELECT bus_i FROM grid.otg_ehvhv_bus_data WHERE base_kv = 220 AND osm_name = 'Umspannwerk Uchtelfangen'), + (SELECT bus_i FROM grid.otg_ehvhv_bus_data WHERE base_kv = 220 AND osm_name = 'Umspannwerk Heinitz'), + 10.6040557238013, + '0102000020E610000002000000650A175E64FC1B4071A44A690DB0484085E1E2CCE9771C40D1DD7BCF2EA94840', + '0105000020E610000001000000010200000002000000650A175E64FC1B4071A44A690DB0484085E1E2CCE9771C40D1DD7BCF2EA94840', + 10.6040557238013 * 314 * 0.001/2, + 10.6040557238013 * 0.109/2, + 1040, + 6, + 50; + +INSERT INTO model_draft.ego_grid_pf_hv_line (scn_name, line_id, bus0, bus1, length, topo, geom, x, r, s_nom, cables, frequency) +SELECT 'NEP 2035', line_id, bus0, bus1, length, topo, geom, x, r, s_nom, cables, frequency +FROM model_draft.ego_grid_pf_hv_line +WHERE scn_name = 'Status Quo' AND s_nom = 1040 AND topo = '0102000020E610000002000000650A175E64FC1B4071A44A690DB0484085E1E2CCE9771C40D1DD7BCF2EA94840'; + +INSERT INTO model_draft.ego_grid_pf_hv_line (scn_name, line_id, bus0, bus1, length, topo, geom, x, r, s_nom, cables, frequency) +SELECT 'eGo 100', line_id, bus0, bus1, length, topo, geom, x, r, s_nom, cables, frequency +FROM model_draft.ego_grid_pf_hv_line +WHERE scn_name = 'Status Quo' AND s_nom = 1040 AND topo = '0102000020E610000002000000650A175E64FC1B4071A44A690DB0484085E1E2CCE9771C40D1DD7BCF2EA94840'; + +---- Verbindung Lübeck-Siems +INSERT INTO model_draft.ego_grid_pf_hv_bus (bus_id, v_nom, geom) +SELECT DISTINCT ON (geom) + nextval('model_draft.ego_grid_hv_fix_errors_bus_id'), + 220, + geom +FROM grid.otg_ehvhv_bus_data WHERE osm_name IN ('Umspannwerk Siems'); + +INSERT INTO model_draft.ego_grid_pf_hv_bus (scn_name, bus_id, v_nom, geom) +SELECT 'NEP 2035', bus_id, v_nom, geom +FROM model_draft.ego_grid_pf_hv_bus +WHERE scn_name = 'Status Quo' AND geom = '0101000020E6100000D38040358C8525403935408972F44A40' AND v_nom = 220; + +INSERT INTO model_draft.ego_grid_pf_hv_bus (scn_name, bus_id, v_nom, geom) +SELECT 'eGo 100', bus_id, v_nom, geom +FROM model_draft.ego_grid_pf_hv_bus +WHERE scn_name = 'Status Quo' AND geom = '0101000020E6100000D38040358C8525403935408972F44A40' AND v_nom = 220; + +INSERT INTO model_draft.ego_grid_pf_hv_line (line_id, bus0, bus1, s_nom, topo, geom, length, x, cables, frequency) +SELECT nextval('model_draft.ego_grid_hv_fix_errors_line_id'), + (SELECT bus_i FROM grid.otg_ehvhv_bus_data WHERE base_kv = 220 AND osm_name = 'Lübeck'), + (SELECT DISTINCT ON (bus_id) bus_id FROM model_draft.ego_grid_pf_hv_bus WHERE v_nom = 220 AND geom = '0101000020E6100000D38040358C8525403935408972F44A40'), + 520, + '0102000020E6100000020000006380D3776E4825406764811FA7F54A40D38040358C8525403935408972F44A40', + '0105000020E6100000010000000102000000020000006380D3776E4825406764811FA7F54A40D38040358C8525403935408972F44A40', + 7.91338283450564 * 1.15, + 314.15 * 0.001 * 7.91338283450564 * 1.15, + 3, + 50; + +INSERT INTO model_draft.ego_grid_pf_hv_line (scn_name, line_id, bus0, bus1, s_nom, topo, geom, length, x, cables, frequency) +SELECT 'NEP 2035', line_id, bus0, bus1, s_nom, topo, geom, length, x, cables, frequency +FROM model_draft.ego_grid_pf_hv_line +WHERE scn_name = 'Status Quo' AND geom = '0105000020E6100000010000000102000000020000006380D3776E4825406764811FA7F54A40D38040358C8525403935408972F44A40' AND s_nom = 520; + +INSERT INTO model_draft.ego_grid_pf_hv_line (scn_name, line_id, bus0, bus1, s_nom, topo, geom, length, x, cables, frequency) +SELECT 'eGo 100', line_id, bus0, bus1, s_nom, topo, geom, length, x, cables, frequency +FROM model_draft.ego_grid_pf_hv_line +WHERE scn_name = 'Status Quo' AND geom = '0105000020E6100000010000000102000000020000006380D3776E4825406764811FA7F54A40D38040358C8525403935408972F44A40' AND s_nom = 520; + +INSERT INTO model_draft.ego_grid_pf_hv_transformer(trafo_id, bus0, bus1, s_nom, x, phase_shift, tap_ratio, topo, geom) +SELECT nextval('model_draft.ego_grid_hv_fix_errors_transformer_id'), + (SELECT DISTINCT ON (bus_id) bus_id FROM model_draft.ego_grid_pf_hv_bus WHERE v_nom = 220 AND geom = '0101000020E6100000D38040358C8525403935408972F44A40'), + (SELECT DISTINCT ON (bus_id) bus_id FROM model_draft.ego_grid_pf_hv_bus WHERE v_nom = 380 AND geom = '0101000020E6100000D38040358C8525403935408972F44A40'), + 600, + 9.68, + 0, + 1, + '0102000020E610000002000000D38040358C8525403935408972F44A40D38040358C8525403935408972F44A40', + '0105000020E610000001000000010200000002000000D38040358C8525403935408972F44A40D38040358C8525403935408972F44A40'; + +INSERT INTO model_draft.ego_grid_pf_hv_transformer(scn_name, trafo_id, bus0, bus1, s_nom, x, phase_shift, tap_ratio, topo, geom) +SELECT 'NEP 2035', trafo_id, bus0, bus1, s_nom, x, phase_shift, tap_ratio, topo, geom +FROM model_draft.ego_grid_pf_hv_transformer +WHERE scn_name = 'Status Quo' AND geom = '0105000020E610000001000000010200000002000000D38040358C8525403935408972F44A40D38040358C8525403935408972F44A40' AND s_nom = 600; + +INSERT INTO model_draft.ego_grid_pf_hv_transformer(scn_name, trafo_id, bus0, bus1, s_nom, x, phase_shift, tap_ratio, topo, geom) +SELECT 'eGo 100', trafo_id, bus0, bus1, s_nom, x, phase_shift, tap_ratio, topo, geom +FROM model_draft.ego_grid_pf_hv_transformer +WHERE scn_name = 'Status Quo' AND geom = '0105000020E610000001000000010200000002000000D38040358C8525403935408972F44A40D38040358C8525403935408972F44A40' AND s_nom = 600; + +---- 380kV Plattling +--- wrong line connection +-- delete old line and add new one +INSERT INTO model_draft.ego_grid_pf_hv_bus (bus_id, v_nom, geom) +VALUES (nextval('model_draft.ego_grid_hv_fix_errors_bus_id'), + 380, + '0101000020E6100000E1F4899702B52940FA1DD48F97614840'); + +INSERT INTO model_draft.ego_grid_pf_hv_bus (scn_name, bus_id, v_nom, geom) +SELECT 'NEP 2035', bus_id, v_nom, geom +FROM model_draft.ego_grid_pf_hv_bus +WHERE scn_name = 'Status Quo' AND geom = '0101000020E6100000E1F4899702B52940FA1DD48F97614840' AND v_nom = 380; + +INSERT INTO model_draft.ego_grid_pf_hv_bus (scn_name, bus_id, v_nom, geom) +SELECT 'eGo 100', bus_id, v_nom, geom +FROM model_draft.ego_grid_pf_hv_bus +WHERE scn_name = 'Status Quo' AND geom = '0101000020E6100000E1F4899702B52940FA1DD48F97614840' AND v_nom = 380; + +INSERT INTO model_draft.ego_grid_pf_hv_line (line_id, bus0, bus1, topo, geom,length, x, s_nom, cables, frequency) +VALUES (nextval('model_draft.ego_grid_hv_fix_errors_line_id'), + (SELECT bus_i FROM grid.otg_ehvhv_bus_data WHERE base_kv = 380 AND osm_name = 'Umspannwerk Pleinting'), + (SELECT DISTINCT ON (bus_id) bus_id FROM model_draft.ego_grid_pf_hv_bus WHERE v_nom = 380 AND geom = '0101000020E6100000E1F4899702B52940FA1DD48F97614840'), + '0102000020E61000000200000030AC43C5F4342A40D8CA9DE357554840E1F4899702B52940FA1DD48F97614840', + '0105000020E610000001000000010200000032000000E1F4899702B52940FA1DD48F976148401D2C5217DFB629402B5327FB42614840CAF6C6B546B92940DE03745FCE604840DF1C098F91BB29403F41182E6160484075EF9705C9BD2940154152FAF85F4840EA91ABFD42C02940C81FB182845F484054AE4BE889C22940171A3ED8185F4840D5592DB0C7C4294041F0F8F6AE5E4840A65B1BCF0CC729409679ABAE435E4840AD6D8AC745C9294031395A7AD95D48402CADD05158CB2940D4827236785D48403535BF5076CD29402B3BB313145D484044F174F8B5CF2940EA5A7B9FAA5C4840EB3E5B62C0D12940B0D69AF7495C4840C30A5CC3B1D329400371C394ED5B4840A16BBAF9A1D52940C65E398C935B4840178F41DDF6D729404C112A82495B4840E58E482586DA2940F855B950F95A484042823D810BDD294038FEFAD7A85A48404CA59F7076DF2940E27899BC5C5A4840650CBD0F51E22940E256E652015A4840203FC0FFFBE42940B3B112F3AC594840C5CC9948C4E72940B6CA5D9555594840896A0025F4E929406304F97E0F59484025F4E967A0EC2940D07F0F5EBB58484035046CAC69EF2940CD1DA2766458484012A5BDC117F22940E6B4029E0F5848403CF4DDAD2CF5294024AF7378AD5748400E9D43BEF0F7294044937A05585748405820D50B99FA2940FE63213A04574840996AC1E677FD294020D099B4A956484063EA533310002A40BB39A63858564840B3CF639467022A40CFC023850D5648400848EAF307052A40A297512CB7554840AB871EE7EC072A4089FF852F5D554840A3135333B50A2A40BC2CDCA8045548403EE2FCF26E0D2A40ACA0B316B0544840A5486359D50F2A40E729615C6054484003931B45D6122A40351D4B6947544840C878944A78162A40CEEE7F3628544840F11879B4CC192A402321DB430C544840416150A6D11C2A40B35F77BAF3534840C1ADBB79AA1F2A403D57A53EDA534840F9307BD976222A404969368FC3534840032BE2CF4B242A4031E076B2E553484071766B990C272A4040C1C58A1A5448404301DBC188292A4063DD2EEA49544840C19206126F2C2A40058651B58254484048B599547E2F2A40ED22F197BB5448406B6A3414D2312A40006A0F20E8544840', + 22.624793411008, + 314.15 * 0.0008 * 22.624793411008, + 1790, + 3, + 50), + + (nextval('model_draft.ego_grid_hv_fix_errors_line_id'), + (SELECT DISTINCT ON (bus_id) bus_id FROM model_draft.ego_grid_pf_hv_bus WHERE v_nom = 380 AND geom = '0101000020E6100000E1F4899702B52940FA1DD48F97614840'), + (SELECT bus_i FROM grid.otg_ehvhv_bus_data WHERE base_kv = 380 AND osm_name = 'Schwandorf'), + '0102000020E610000002000000E1F4899702B52940FA1DD48F97614840BBEF0B431D2A2840230697C412A64840', + '0105000020E610000003000000010200000006000000C0EF0B431D2A2840200697C412A64840B2C68FE7E92A2840E88E5951DEA5484060668E9BD02A2840C4149B45DEA5484026FC523F6F2A2840352CA116DEA5484071A4D8767F292840C0EAC891CEA548400A2DEBFEB1282840BCEBC781B2A548400102000000040000006B6A3414D2312A40006A0F20E85448405AFBF14D89322A40263218C8585548407AD10D034C332A40B566D0758655484044AC43C5F4342A40D9CA9DE3575548400102000000CE0000000A2DEBFEB1282840BCEBC781B2A5484067E77E98CE2828402497FF907EA54840D026874F3A292840823D810B0DA548408ED7721D99292840688297CFA8A4484084DCA051152A28403430F2B226A44840BFDD488F952A2840FDAEBE709DA348402B4F20EC142B2840CA260A3E17A34840C2590009792B2840E8065449AEA24840FC45BF6CF12B2840A19FA9D72DA24840031203136E2C28408CA03193A8A148402E07D561E02C2840A60EF27A30A14840E801E264D12E28407B88467710A1484060A7FD7B9531284063145F48E2A0484059880E81233528408CE8E802A8A048400475CAA31B392840847F113466A04840B47B4D6AC33C2840A3B1513129A04840683EE76ED73F2840F85BF1C3F79F484047489341A4412840C4E347A1D19F4840468E194DD3442840ECEA9FF18E9F4840C48FD6BDBA4728403E0F49884D9F4840D09D60FF754A2840319CC651149F4840558440D3B74D28400E2840B9129F4840D604ACB074512840F2BEE0890F9F4840BA7C355195542840CF4A5AF10D9F48406ADF3719B0572840EF5B08CD099F4840238216B7765B2840906D7429099F4840B05CCA541C5E28405E448078029F4840EFEC86C844612840F08398F0F09E4840A88A4E3BA164284039C3C36AE29E4840EDF1423A3C682840C49B9031D29E4840329FBD44066B28403CE3569CC59E484089A8D3CB396E2840C7BB2363B59E4840F10D85CFD6712840E1687D80A49E4840A125D9340075284015D4A6A0919E4840C86EB081BE76284032DD90EB4B9E484061F998B44E792840FDEC9117E39D48404F01D5E4CE792840768071BA769D484050768E5C927A28400DD30847DA9C4840E158BCFD5E7B284079D388F4369C4840F1F62004E47B284049BA66F2CD9B4840FADB5493967C284003CC7C073F9B484093F139C1487D284082F3F3F0AF9A4840AB6FAAFFBD7D28401222CFE4519A4840F17F4754A87E284001E77BFC94994840BC410F10277F284058B9612530994840291B7B9BA37F2840A4816962CB984840C5DF9B4B168028403128D36872984840F8F829334A8028406D09545ADA974840943AB7BF698028409C29BEEB7D974840667EDA4D95802840191AF44AFE964840B5F6E39B12812840AD78D965AE9648406242716CE2812840E55828E32996484035AB88E4758228400947DAD7CB95484079A235502A832840BBF1EEC858954840612129D8358428401258EF26AE9448409816F549EE842840E30D7A8038944840B00FFCB9B285284094957032BB93484062597A7E62862840748A9F104B934840EB45A3F1FA862840415365CEE99248406D4ECA49CD872840870B8A308F924840AD9E3825C588284045C9F50027924840E28A30EAFF8928400C923EADA29148406B4EB91D758B2840FD5DE9C6059148402E85515AC98C2840B741EDB7769048406166440EB68D284008AD872F13904840C5F13279B98E284004DD0319A68F48400AF31E679A902840C60B337E2B8F4840EC8E20F01B92284046990D32C98E48402AE9BC21E8932840E72620DC538E48407DEC8909C5952840FB952941DA8D4840A5468DAE7798284021E3F6706E8D4840E7954627A69A284089658E40178D4840A8A55E5C4F9D284066B8A6E5AC8C4840EE26F8A6E99F284078A27FDD448C48406C15B3147FA2284015A930B6108C4840D4884FF003A6284003A4479DCA8B4840361488E821A82840A32F73709F8B4840F743C769E3AB2840A00491A0538B4840EE00F4A045AF2840A5C5747C0F8B4840FFB7EDD68DB22840DE93E23ECD8A48407111291774B428403F092241A78A48402480F67EFEB62840A60A4625758A4840B032BF3F4AB9284052D4997B488A4840F6C2537E08BC28407EC34483148A48403636E0980ABE2840BC067DE9ED894840E785E05DD3C02840C54D57C1B9894840C5DC5ACB09C32840FEB1B5638F89484009A469F57AC42840082F0B372A894840589643E625C62840BB0D6ABFB5884840EA2DD45059C72840BC2EB2536288484005FE4BAD52C928407A05FDE0D78748404584DACAA6CB284032E5435035874840A2A476757DCD284056ECD401B5864840D51CC5DE30CE28408C0EED084C864840DA9486753ECF284099017855B18548404E97C5C4E6CF2840E7E4A0DF52854840D5BF35C181D228407978CF81E584484031653B3A09D428409A5A5B1DA584484031074147ABD6284020A8644A3584484047F9EEFBDCD92840AD0210D2AE8348409E06B1D8CBDB284012B57E445D8348406F5287CBE0DE2840848DA152DB8248405CCCCF0D4DE128407D5D86FF748248401FBDE13E72E3284051B0B5AD1C824840A96E89B729E52840EE485057D28148403242D36DE4E5284071CEE38B51814840F63988E7B6E628409B3347FBC48048404E42E90B21E72840A74709B07E80484012BC218D0AE828407BCCF6D7E17F48407480BB4791E828406056CD188B7F48407E4056A64EEA2840E94DA0E3FE7E484026DEA6E441EB2840932A9B83B17E48401C768478C9EC2840DA38622D3E7E4840116C01463CEE28406ECACB50CB7D4840175F590E99EF2840B24AE9995E7D4840DDCEBEF220F12840484A1F5FE77C48402CA0AB0892F22840F992D794757C48408C7D6E0D11F428408F78680EFF7B48408C88BDAB79F5284087DD770C8F7B484078E62F3E16F8284015B3B9C5577B48404076CD9A0EFB2840DBCD42F1197B484051BF0B5BB3FD284074DB74BAE27A48402F675B7281002940D4DC651AA87A48402DCDAD105603294069DDABFB6C7A4840C5758C2B2E06294058B329B2317A4840DDCAB7E3F2082940F25602CEF7794840FF31BE79BB0B294093A3A597BD79484073CAEDA87B0E294028B85851837948403CB02D4D5B11294083D4377A4679484065FF3C0D18142940FF44C07C0D794840BF72CE99FE1629406B28B517D17848400D0055DCB81929408934E0E297784840D96212899D1C29407E4397265B7848405B1A097E651F29403DD7F7E12078484051943AB7BF21294030C912E7F2774840C63945A22B242940794F2F42C27748406412E456F7262940E895FC998B77484063FDB0EFD4292940830BC3915177484049A2F20A9F2C2940DAF51CA21B774840F0976082642F294002767F06E57648407E384888F2312940C985144DB1764840FFBC5FBB6A342940B8509E1E80764840CC71B8A00837294003E32A604C76484085ABA8667B392940A49AA3D81B764840E443F57B073C2940ACAD3319E975484073F0F1AE1F3F29403D6D437BAB75484049A93A9AD9412940C4094CA7757548401F42A6C695442940B6D210FA3E754840F50AB034954629407728AF3A17754840737A83D49247294012BCC6D397744840F1CD80C4C0482940FB90B75CFD734840967DB2BD714929407D19D69EA37348406ADFDC5F3D4A2940E87CC2233B734840C4BC7D0C0C4B294028CB5A54D5724840E2033BFE0B4C2940337678BE557248406027501FDC4C2940DCA799A4E87148400EEDAD92D94E2940E3E13D07967148404FC9DEF714512940FA0159993A71484017B1F4465253294070445266DE704840102A2790C855294063B323D577704840C1D6B672405829404A2C84301270484061F1E54F655A29403C50A73CBA6F48400245D1A8655C2940FB0B981B676F4840ED24C742195F2940C967C3ABF66E484094BF7B478D6129407937BB5A936E4840ED35F39A0D6429407F29A84D416E4840C2F1214D61662940C3D89D49F66D4840F51E1D0D966829405389FC44AF6D4840823D810B0D6B29405270C2CE5E6D48404F53701D886D2940BDD930540F6D484070F32103D46F2940C4ACBC89C66C4840B1F4465277722940A9C0C936706C484032D6EDA29E74294085AC133C2A6C484052071E842577294044EC0214D96B4840386A85E97B79294005A96FF48C6B4840089E31827C7B2940C7CA79104C6B4840B7B82121257D2940A20337F7FC6A48403B8BDEA9807F2940A708CB338A6A4840C3E4FC039B81294029EACC3D246A48400EA320787C83294058665B17C8694840BB5A931392852940C77A0F3C636948405E6CB5E2768729409D2166400769484042621635F3872940FB35FEE9AB6848402F23AB11B0882940074E6CF420684840FABDA83869892940F9CFE4AC99674840DD32969F0A8A294011F0B5B123674840E1777874C88A29402614C7269E6648408DD5E6FF558B294007FE0120386648402FCAC749BC8B2940EC00E374ED65484076662728EA8D2940126C5CFFAE6548402CEADD697C9029406C996780666548408901B7932D932940F8CC48731A654840197DBBDBAB95294058CBF852D3644840C2572A5E1B9829408ECEF9298E6448406241ABDDC09A29406EBEB62341644840D988168F419D2940EB1791CDFA634840D8ED5811DA9F29407C5E961BB16348400BF7802F3BA22940154FE2186E634840429A0C22ADA42940EA1560692A6348408C45782057A7294030A3B327DC6248400FB16609D7A82940B18BFDC0B062484025523F1471AB2940A8DF2AF466624840B00A2F1C63AE294037177FDB136248405E471CB281B02940C72C7B12D8614840309DD66D50B3294082D94EA5B0614840E1F4899702B52940FA1DD48F97614840', + 90.5604456325126, + 314.15 * 0.0008 * 90.5604456325126, + 1790, + 3, + 50), + + (nextval('model_draft.ego_grid_hv_fix_errors_line_id'), + (SELECT DISTINCT ON (bus_id) bus_id FROM model_draft.ego_grid_pf_hv_bus WHERE v_nom = 380 AND geom = '0101000020E6100000E1F4899702B52940FA1DD48F97614840'), + (SELECT bus_i FROM grid.otg_ehvhv_bus_data WHERE base_kv = 380 AND geom = '0101000020E6100000C000DCEF17B429409E0779BEB3614840'), + '0102000020E610000002000000E1F4899702B52940FA1DD48F97614840C000DCEF17B429409E0779BEB3614840', + '0105000020E610000001000000010200000002000000E1F4899702B52940FA1DD48F97614840C000DCEF17B429409E0779BEB3614840' + 0.162698660268822, + 314.15 * 0.0008 * 0.162698660268822, + 1790, + 3, + 50); + +INSERT INTO model_draft.ego_grid_pf_hv_line (scn_name, line_id, bus0, bus1, topo, geom,length, x, s_nom, cables, frequency) +SELECT 'NEP 2035', line_id, bus0, bus1, topo, geom,length, x, s_nom, cables, frequency +FROM model_draft.ego_grid_pf_hv_line +WHERE scn_name = 'Status Quo' AND topo IN ('0102000020E61000000200000030AC43C5F4342A40D8CA9DE357554840E1F4899702B52940FA1DD48F97614840','0102000020E610000002000000E1F4899702B52940FA1DD48F97614840BBEF0B431D2A2840230697C412A64840','0102000020E610000002000000E1F4899702B52940FA1DD48F97614840C000DCEF17B429409E0779BEB3614840') AND s_nom = 1790; + +INSERT INTO model_draft.ego_grid_pf_hv_line (scn_name, line_id, bus0, bus1, topo, geom,length, x, s_nom, cables, frequency) +SELECT 'eGo 100', line_id, bus0, bus1, topo, geom,length, x, s_nom, cables, frequency +FROM model_draft.ego_grid_pf_hv_line +WHERE scn_name = 'Status Quo' AND topo IN ('0102000020E61000000200000030AC43C5F4342A40D8CA9DE357554840E1F4899702B52940FA1DD48F97614840','0102000020E610000002000000E1F4899702B52940FA1DD48F97614840BBEF0B431D2A2840230697C412A64840','0102000020E610000002000000E1F4899702B52940FA1DD48F97614840C000DCEF17B429409E0779BEB3614840') AND s_nom = 1790; + +DELETE FROM model_draft.ego_grid_pf_hv_line WHERE bus0 = (SELECT bus_i FROM grid.otg_ehvhv_bus_data WHERE base_kv = 380 AND osm_name = 'Umspannwerk Pleinting') AND bus1 = (SELECT bus_i FROM grid.otg_ehvhv_bus_data WHERE base_kv = 380 AND osm_name = 'Schwandorf'); + +DELETE FROM model_draft.ego_grid_pf_hv_transformer WHERE bus1 = (SELECT DISTINCT ON (bus_i) bus_i FROM grid.otg_ehvhv_bus_data WHERE base_kv = 380AND geom = '0101000020E61000002F70D819E6B4294094DDFA53EE614840'); + +DELETE FROM model_draft.ego_grid_pf_hv_bus WHERE geom = '0101000020E61000002F70D819E6B4294094DDFA53EE614840' AND v_nom = 380; + +---- 380kV Weisweiler +--- missing connection from powerstation to 380kV line +-- add 380kV line +INSERT INTO model_draft.ego_grid_pf_hv_line (line_id, bus0, bus1, topo, geom,length, x, s_nom, cables, frequency) +SELECT nextval('model_draft.ego_grid_hv_fix_errors_line_id'), + (SELECT bus_i FROM grid.otg_ehvhv_bus_data WHERE base_kv = 380 AND geom = '0101000020E610000050D9BE3268491940C27D4210236B4940'), + (SELECT bus_i FROM grid.otg_ehvhv_bus_data WHERE base_kv = 380 AND geom = '0101000020E6100000FE4C1828844919408E469968EB6A4940'), + '0102000020E61000000200000050D9BE3268491940C27D4210236B4940FE4C1828844919408E469968EB6A4940', + '0105000020E61000000100000001020000000200000050D9BE3268491940C27D4210236B4940FE4C1828844919408E469968EB6A4940', + 0.189094013858938 * 1.15, + 314.15 * 0.0008 /2 *0.189094013858938 * 1.15, + 3580, + 6, + 50; + +INSERT INTO model_draft.ego_grid_pf_hv_line (scn_name, line_id, bus0, bus1, topo, geom,length, x, s_nom, cables, frequency) +SELECT 'NEP 2035', line_id, bus0, bus1, topo, geom,length, x, s_nom, cables, frequency +FROM model_draft.ego_grid_pf_hv_line +WHERE scn_name = 'Status Quo' AND topo = '0102000020E61000000200000050D9BE3268491940C27D4210236B4940FE4C1828844919408E469968EB6A4940' AND s_nom = 3580; + +INSERT INTO model_draft.ego_grid_pf_hv_line (scn_name, line_id, bus0, bus1, topo, geom,length, x, s_nom, cables, frequency) +SELECT 'eGo 100', line_id, bus0, bus1, topo, geom,length, x, s_nom, cables, frequency +FROM model_draft.ego_grid_pf_hv_line +WHERE scn_name = 'Status Quo' AND topo = '0102000020E61000000200000050D9BE3268491940C27D4210236B4940FE4C1828844919408E469968EB6A4940' AND s_nom = 3580; + + + +---- Umspannwerk Marke +--- lines are not connected to the station in Marke +-- connect lines to the station + +UPDATE model_draft.ego_grid_pf_hv_line +SET bus1 = (SELECT bus_i FROM grid.otg_ehvhv_bus_data WHERE base_kv = 110 AND geom = '0101000020E6100000E68C989C3B86284098C783C0D9DE4940') +WHERE geom = '0105000020E610000002000000010200000003000000BC8CAC46C0862840B5D084DCFBDE494027214729D786284060BD40FFF3DE494069FE3D1D34882840A6CEED6F1ADF494001020000002E000000165685611B64284006E9184630E84940B225F5AFF6652840770E0AEF17E84940377F02DEB86728400CC2267C00E84940E39EF87B73692840547CD7FBE8E749406B4AB20E476B28406C9E7EABD0E74940A74AEF76186E2840490158D3ABE74940A83D80A037702840995CD60E90E74940344A97FE2571284098CC672F91E74940EED9CE520D7228406198028871E7494052031775F7722840D7DB0B7151E74940B11D8CD827742840D2F93ABA5BE74940EEA1D8655375284067AE1DD665E74940000CBA731777284096A1855F45E74940F6211400887828409A756B3E53E749404776A565A47A2840D3F0773936E74940209E25C8087C28401F5CF05822E74940BA539511727D28408EE5023C0EE74940DB1CE736E17E2840BE06335CD3E649403AAEEBBC328028407A2CC7759DE6494078C6AD388B8128402016C50666E64940D2D73DC3E5822840D73CA29D2EE649404F9FD3E24284284088026CF6F6E5494059A42EBE0D862840073AA462ADE5494096287B4B39872840C60490357EE5494013807F4A958828408A1B5CDF2CE5494015D67C4BEF8928402A6A7A9ADDE44940AFA4CB51368B2840397C77D091E44940927C2590128B2840CE5FD7E54AE44940CDC75AE8EF8A28401CC5837703E44940D83DC3E5C28A2840AE084845ADE3494053B648DA8D8A2840F6CCDC8D4FE34940824A4B9B608A2840FA0B3D62F4E24940E1DEEB5A318A28402DEBA3F89DE24940DED506825B8A28402509C21550E249406E2A9CEE868A284012DB824A01E24940615793A7AC8A28403F20D099B4E149403E5DDDB1D88A28400AE69E6461E14940642FCA22038B2840425DA45016E14940C753EAED2A8B2840F009C84DC3E04940CD5CE0F2588B2840E6E4EA6C6DE04940DE4FD724898B284031DE454E15E0494074A95B87B48B2840452E3883BFDF494031197DBBDB8B2840E86F9DDA74DF494098530262128A2840922749D74CDF4940C42F50AD19882840021B6BDA20DF4940BC8CAC46C0862840B5D084DCFBDE4940' AND s_nom = 520; + +UPDATE model_draft.ego_grid_pf_hv_line +SET bus0 = (SELECT bus_i FROM grid.otg_ehvhv_bus_data WHERE base_kv = 110 AND geom = '0101000020E6100000E68C989C3B86284098C783C0D9DE4940') +WHERE s_nom = 1040 AND geom = '0105000020E61000000100000001020000003400000069FE3D1D34882840A6CEED6F1ADF494069FE3D1D34882840A6CEED6F1ADF4940D034BCB43C8A28407668FDD247DF494054104DEA158C28409D88D92670DF4940F3C3526EEC8B28404D73E1F6BADF494081608E1EBF8B284089EFC4AC17E049404B2F206A918B2840B646A9296EE04940F1976082648B2840F522241CC4E0494058B66A323E8B2840F4401A040CE14940FC6E5FAC148B284074733B4558E14940C565CBA8E88A28407FA4880CABE14940A3E8818FC18A2840A96A82A8FBE14940C8DA3A93918A2840496F13494FE24940FFD0CC936B8A28405E3931DA99E24940FB7F304B968A28405CF80B87EFE24940AAE27CA0CB8A2840B4C3A92050E34940E540B4FBFA8A284072EA5E82AEE34940FD5877E2288B2840945742D202E4494098BFE72C588B2840B8BF69B05FE449403B6178DB3B8D2840EF3614E3A1E44940281A5A530F8F28406889DF5EE3E449407F2CE9CD4D902840FCBF8F0F1FE549404504D2B47A9128408CB5094158E549400F7D1C72D8922840C9E9EBF99AE54940097481261D9428406E293119D8E5494095DB51F75C9528403D30DBA914E64940CCCE47BEB7962840CF9662FD55E64940A5F6C7201C9828407D6C81F398E6494022B3695B839928401F66D421DCE64940F66F4D70A09A2840974DCAEE13E749409004D0DECF9B2840E6E324DE4BE7494007C36FF9FE9C2840C8478B3386E7494033A083D3279E28409C95A3B6C3E749400BDDDBE33B9F28409030B19EFFE74940BD2B71D355A02840F49A0DE83BE84940BF805EB873A12840C2E3367579E849401784F23E8EA2284033A0281AB5E849405876C1E09AA328401BAD591DEFE849401106F93482A4284066225B4C22E949406F5633219CA52840FE7F9C3061E949407F0FA848CFA628404CD18030A6E949409AEBD918E0A7284027101BD1E2E949406ECCA1FB28A92840BF8A42812DEA4940B782A62556AA284055EA48E471EA4940CA9BB28982AB284093F650ECB2EA4940F8C77BD5CAAC2840B52CA924FCEA4940C24AAA5BE2AD284095AC79443BEB49408F0BBDB497AF28403B3F202B53EB49408D92A17433B12840A14495AB69EB49403CE75DABF3B22840ED8B3A2982EB49402CC313D5B6B428404C3ED1D09AEB49402CC313D5B6B428404C3ED1D09AEB4940'; + +UPDATE model_draft.ego_grid_pf_hv_line +SET bus1 = (SELECT bus_i FROM grid.otg_ehvhv_bus_data WHERE base_kv = 110 AND geom = '0101000020E6100000E68C989C3B86284098C783C0D9DE4940') +WHERE s_nom = 520 AND geom = '0105000020E61000000100000001020000001F0000003FBF396DD7C5284066DAA3DC22DC49403FBF396DD7C5284066DAA3DC22DC494034EDAC2704C428402B5E1BE038DC494042F806150BC2284018B1F44652DC4940C2413168D7BF284082AFE8D66BDC49402E1801BAD4BD2840B68075C185DC49406AFD2D01F8BB2840510F762F9CDC494075E789E76CB9284087D2CDB4B3DC4940CBC16C020CB728407C50AB43C9DC4940CF3A3EB555B428400A6D3997E2DC4940D4B430B033B228404E94CED1F4DC49405BE55311B8AF2840EE974F560CDD4940B7627FD93DAD2840427A8A1C22DD4940EA944737C2AA284037F867AB37DD49401351A79773A82840209A79724DDD49404EA14ED42DA628404BBB873A62DD4940F22BD67091A32840CED36F157ADD494001F676F0B8A12840CDF6D7E19EDD4940026A6AD95A9F2840204F26C9CEDD4940FD07477F1E9D2840DFD9684AFCDD494025C4A6DFCF9A28405B3B9B9F2CDE49402918DF6124992840672C9ACE4EDE4940D525E318C996284042F2295B7FDE494001B562C966942840723216F2ADDE494029DD4C3BEB91284016359886E1DE49400405DEC9A78F2840B892C2610EDF49404525BF8FB48D2840FCAD9D2809DF49405D959FAFB48B28404CA544B703DF4940B87E55890D8928405566EF31FDDE494094E7B0B10187284073874D64E6DE494094E7B0B10187284073874D64E6DE4940'; + +UPDATE model_draft.ego_grid_pf_hv_line +SET bus0 = (SELECT bus_i FROM grid.otg_ehvhv_bus_data WHERE base_kv = 110 AND geom = '0101000020E6100000E68C989C3B86284098C783C0D9DE4940') +WHERE s_nom = 520 AND geom = '0105000020E61000000100000001020000002A0000003308628F3F872840068B1E53D2DE49400E901E752A872840C1971D3DD9DE494037525B8F67882840E2DC15B0D3DE4940E55E059DB5882840298705AD76DE494073CA92EF0889284060764F1E16DE49400E18247D5A89284044A9BD88B6DD49401FD55526A18928402961A6ED5FDD49405BC6979A4E882840EF05668522DD4940BFFB3E77DD8628404D0C1357DFDC4940BD7A70D28F852840E3E47E87A2DC494020B017AF1E842840E8B9CF3B5FDC4940F416B435C7822840C6D4A76620DC49407E2C335B6881284058B49487E0DB49405463F83E0B80284008DB3E9AA0DB4940E3B32BE3957E2840E97D88B25CDB4940A6619DCF257D2840BE2A61B719DB49406339F878D77B2840B3AFE18EDCDA494054D625998B7A28408BD3FF28A0DA4940A553B2F73D7928406944C42863DA4940BE384C8F01782840984B4FFD28DA4940033972EEC0762840154C46DFEED94940DA733EE19175284020717E79B7D949401AA54BFF927428407970C16389D9494013FEFB427E742840E1078C9A54D9494049275CD94F742840FE3DC27AEDD84940A79B1FDA22742840C6C551B989D849409C1DA9BEF3732840678AEF7A1FD849409B19A2AFC57328403166A60FB8D7494066EC3A0AC6732840589A4AF553D74940FA916CBFC673284006BD378600D74940B0027CB77973284023F6AEE6A5D64940789F3E5D3873284037FBA82B44D64940428EF7F422742840E94427F0F3D54940CE870C50BF742840D36C1E87C1D549405B417859B875284052C9EF236DD549401D6217A0C87628407407567A12D54940F9A067B3EA772840FEDA55A3B2D449409008D7EDFD772840A70705A568D449408E4AA07719782840019C285316D449402A9721E92E78284071276C9AD2D34940B4E6C75F5A782840D8344AF2B7D34940B4E6C75F5A782840D8344AF2B7D34940'; + +UPDATE model_draft.ego_grid_pf_hv_line +SET bus0 = (SELECT bus_i FROM grid.otg_ehvhv_bus_data WHERE base_kv = 110 AND geom = '0101000020E6100000E68C989C3B86284098C783C0D9DE4940') +WHERE s_nom = 520 AND geom = '0105000020E6100000010000000102000000410000003308628F3F872840068B1E53D2DE49403308628F3F872840068B1E53D2DE494021C610A5628828402544543C89DE4940A7875748AF882840EFF4392D2EDE494016BA5C0E05892840EC055559CADD4940BAB42B3E4F89284037A38BF271DD4940EF5FB422C5872840704EDB7525DD49402DB87AA9338628409980046AD6DC49408D16FB26A8842840C07EE3C688DC494035C69805248328408C8FAA8141DC4940D4635B069C812840E027582DFADB49401E3691990B802840F37A8BE2B0DB4940B4C46FAF717E28407975334866DB4940C4A92050477D284005CF73FA30DB49407C9C69C2F67B284007EE409DF2DA4940DD66857D967A2840A54DD53DB2DA49407561FFD027792840DF910C946FDA494080619E3AFB772840A24CFE8238DA4940F3E7DB82A5762840D41D7A41FAD949404BA82A7E9D752840F2800DE3C9D9494021DFEF6140742840C01C870B8AD94940FF4A427D2672284026E2ADF36FD9494009D51753FA6F28401649601855D949400577FB07EC6D2840653C4A253CD949402C387293076C2840003153A40CD94940645694B7C86A2840974E35C4C2D84940B4D0292389692840C3E96EE877D84940B9910DFF44682840E4665D482CD8494049EA4EC12B67284080E89326EFD749405D01E0336D66284001608610A1D749402F0906C6B0652840AC22DC6454D749408FDC3FBBE8642840E20E2FE301D74940C0C1CD98386428405AF9C0E9B8D64940D363A593B6622840833BAB60AFD649405B046B419460284054162AA4A1D649403181B630665E2840C7BA5DD493D649408514F2F7415C2840C2429C3D86D6494070F2B62D255A2840A52CE86278D649405BDF76572C58284040EE6CD96BD6494045C82F720556284083B2DFC95DD64940C88ED7CDD6532840F52801D64FD64940B4DF2417AD512840D3DF4BE141D649404692C5A28E4F2840397AA12534D64940A6E727E66A4D28403A07CF8426D649406EC72F174C4B2840A0A124C918D64940E3A8DC442D492840727CA30C0BD649400A01AF850F4728402610655EFDD549409E1BE43FEE442840F7EAE3A1EFD5494076487BCDBC42284087A8C29FE1D5494084A279008B402840D6480158D3D54940AC62E06F6A3E2840A723809BC5D549400951BEA0853C28406077BAF3C4D5494021C19EC0853A2840AE8ACB4CC4D549405B3A30CA7D382840499748B3C3D549402BC0779B3736284002EB820BC3D54940A2A41BBC0A342840BB3EBD63C2D549400735327ED03128402C28B110C2D549408BFED0CC932F2840F157B730C1D54940E8F9D346752E2840E57BEB68C1D549404F07B29E5A2D28406DDCAC0B89D54940F55CF0B3DB2C28407ADC01E841D54940BFBED6A5462C28406F974748EED44940D9182AB5CD2B2840CD13BEADAAD449406AE21DE0492B284047C2082B5FD449406AE21DE0492B284047C2082B5FD44940'; + +DELETE FROM model_draft.ego_grid_pf_hv_line WHERE s_nom = 260 AND geom = '0105000020E6100000010000000102000000040000003308628F3F872840068B1E53D2DE49400E901E752A872840C1971D3DD9DE49405E72929C02872840A308A9DBD9DE494094E7B0B10187284073874D64E6DE4940'; + +---- Umspannwerk Jessen Nord +--- missing 110kV lines +-- add lines manually, THIS MIGHT BE FIXED WHEN UPDATING OSM-DATA! + +INSERT INTO model_draft.ego_grid_pf_hv_bus (scn_name, bus_id, v_nom, geom) +VALUES ('Status Quo', nextval('model_draft.ego_grid_hv_fix_errors_bus_id'), 110, ST_SetSRID(ST_Point(13.0317764, 51.7792147), 4326)), + ('Status Quo', nextval('model_draft.ego_grid_hv_fix_errors_bus_id'), 110, ST_SetSRID(ST_Point(13.0289850, 51.7797518), 4326)); + +INSERT INTO model_draft.ego_grid_pf_hv_bus (scn_name, bus_id, v_nom, geom) +SELECT 'NEP 2035', bus_id, v_nom, geom +FROM model_draft.ego_grid_pf_hv_bus +WHERE scn_name = 'Status Quo' AND geom IN (ST_SetSRID(ST_Point(13.0317764, 51.7792147), 4326), ST_SetSRID(ST_Point(13.0289850, 51.7797518), 4326)) AND v_nom = 110; + +INSERT INTO model_draft.ego_grid_pf_hv_bus (scn_name, bus_id, v_nom, geom) +SELECT 'eGo 100', bus_id, v_nom, geom +FROM model_draft.ego_grid_pf_hv_bus +WHERE scn_name = 'Status Quo' AND geom IN (ST_SetSRID(ST_Point(13.0317764, 51.7792147), 4326), ST_SetSRID(ST_Point(13.0289850, 51.7797518), 4326)) AND v_nom = 110; + +INSERT INTO model_draft.ego_grid_pf_hv_line (scn_name,line_id, bus0, bus1, x, r, g, b, s_nom, length, cables, frequency, geom, topo ) +VALUES + ('Status Quo', + nextval('model_draft.ego_grid_hv_fix_errors_line_id'), + (SELECT bus_i FROM grid.otg_ehvhv_bus_data WHERE osm_name = 'UW Jessen Nord' AND base_kv = 110), + (SELECT DISTINCT ON (bus_id) bus_id FROM model_draft.ego_grid_pf_hv_bus WHERE geom = ST_SetSRID(ST_Point(13.0317764, 51.7792147), 4326) AND v_nom = 110), + 0.6138, + 0.17754, + 0, + 0.000019455, + 520, + 3.3, + 6, + 50, + '0105000020E610000001000000010200000002000000B9910DFF44102A40FE87AA4EBDE34940204C62AEFA1D2A402EA5F4F75DE64940', + '0102000020E610000002000000B9910DFF44102A40FE87AA4EBDE34940204C62AEFA1D2A402EA5F4F75DE64940' + ), + + ('Status Quo', + nextval('model_draft.ego_grid_hv_fix_errors_line_id'), + (SELECT bus_i FROM grid.otg_ehvhv_bus_data WHERE osm_name = 'UW Jessen Nord' AND base_kv = 110), + (SELECT DISTINCT ON (bus_id) bus_id FROM model_draft.ego_grid_pf_hv_bus WHERE geom = ST_SetSRID(ST_Point(13.0289850, 51.7797518), 4326) AND v_nom = 110), + 0.6138, + 0.17754, + 0, + 0.000019455, + 520, + 3.3, + 6, + 50, + '0105000020E6100000010000000102000000020000002D26361FD70E2A40A2FF2FE8CEE34940204C62AEFA1D2A402EA5F4F75DE64940', + '0102000020E6100000020000002D26361FD70E2A40A2FF2FE8CEE34940204C62AEFA1D2A402EA5F4F75DE64940'); + +UPDATE model_draft.ego_grid_pf_hv_line + SET + bus1 = (SELECT DISTINCT ON (bus_id) bus_id FROM model_draft.ego_grid_pf_hv_bus WHERE geom = ST_SetSRID(ST_Point(13.0317764, 51.7792147), 4326) AND v_nom = 110), + length = 15.9, + x = 6, + r = 1.735, + b = 0.0000475, + geom ='0105000020E610000001000000010200000002000000B9910DFF44102A40FE87AA4EBDE349406D49FDAB7D682A40EC2411D033DA4940', + topo = '0102000020E610000002000000B9910DFF44102A40FE87AA4EBDE349406D49FDAB7D682A40EC2411D033DA4940' + WHERE topo = '0102000020E6100000020000006D49FDAB7D682A40EC2411D033DA49406AB8C23255F22940ED1AB07B44E54940' AND s_nom = 260 +; + +INSERT INTO model_draft.ego_grid_pf_hv_line (scn_name,line_id, bus0, bus1, x, r, g, b, s_nom, length, cables, frequency, geom, topo ) +VALUES ('Status Quo', + nextval('model_draft.ego_grid_hv_fix_errors_line_id'), + (SELECT DISTINCT ON (bus_id) bus_id FROM model_draft.ego_grid_pf_hv_bus WHERE geom = ST_SetSRID(ST_Point(13.0317764, 51.7792147), 4326) AND v_nom = 110), + (SELECT DISTINCT ON (bus_id) bus_id FROM model_draft.ego_grid_pf_hv_bus WHERE geom = ST_SetSRID(ST_Point(13.0289850, 51.7797518), 4326) AND v_nom = 110), + 0.0755, 0.0218, 0, 0.000000597, 260, 0.2, 3, 50, + '0105000020E610000001000000010200000002000000B9910DFF44102A40FE87AA4EBDE349402D26361FD70E2A40A2FF2FE8CEE34940', + '0102000020E610000002000000B9910DFF44102A40FE87AA4EBDE349402D26361FD70E2A40A2FF2FE8CEE34940' + ), + + ('Status Quo', + nextval('model_draft.ego_grid_hv_fix_errors_line_id'), + (SELECT DISTINCT ON (bus_id) bus_id FROM model_draft.ego_grid_pf_hv_bus WHERE geom = ST_SetSRID(ST_Point(13.0289850, 51.7797518), 4326) AND v_nom = 110), + (SELECT bus_i FROM grid.otg_ehvhv_bus_data WHERE geom = '0101000020E61000006AB8C23255F22940ED1AB07B44E54940' AND base_kv = 110), + 1.547, 0.447, 0, 0.000012249, 260, 4.1, 3, 50, + '0105000020E6100000010000000102000000020000006AB8C23255F22940ED1AB07B44E549402D26361FD70E2A40A2FF2FE8CEE34940', + '0102000020E6100000020000006AB8C23255F22940ED1AB07B44E549402D26361FD70E2A40A2FF2FE8CEE34940'); + + +INSERT INTO model_draft.ego_grid_pf_hv_line (scn_name,line_id, bus0, bus1, x, r, g, b, s_nom, length, cables, frequency, geom, topo ) +SELECT 'NEP 2035', line_id, bus0, bus1, x, r, g, b, s_nom, length, cables, frequency, geom, topo +FROM model_draft.ego_grid_pf_hv_line WHERE scn_name = 'Status Quo' AND topo IN ('0102000020E6100000020000006AB8C23255F22940ED1AB07B44E549402D26361FD70E2A40A2FF2FE8CEE34940', '0102000020E610000002000000B9910DFF44102A40FE87AA4EBDE349402D26361FD70E2A40A2FF2FE8CEE34940', '0102000020E6100000020000002D26361FD70E2A40A2FF2FE8CEE34940204C62AEFA1D2A402EA5F4F75DE64940', '0102000020E610000002000000B9910DFF44102A40FE87AA4EBDE34940204C62AEFA1D2A402EA5F4F75DE64940'); +; + +INSERT INTO model_draft.ego_grid_pf_hv_line (scn_name,line_id, bus0, bus1, x, r, g, b, s_nom, length, cables, frequency, geom, topo ) +SELECT 'eGo 100', line_id, bus0, bus1, x, r, g, b, s_nom, length, cables, frequency, geom, topo +FROM model_draft.ego_grid_pf_hv_line WHERE scn_name = 'Status Quo' AND topo IN ('0102000020E6100000020000006AB8C23255F22940ED1AB07B44E549402D26361FD70E2A40A2FF2FE8CEE34940', '0102000020E610000002000000B9910DFF44102A40FE87AA4EBDE349402D26361FD70E2A40A2FF2FE8CEE34940', '0102000020E6100000020000002D26361FD70E2A40A2FF2FE8CEE34940204C62AEFA1D2A402EA5F4F75DE64940', '0102000020E610000002000000B9910DFF44102A40FE87AA4EBDE34940204C62AEFA1D2A402EA5F4F75DE64940'); +; + +DELETE FROM model_draft.ego_grid_pf_hv_transformer WHERE bus1 NOT IN (SELECT bus_id FROM model_draft.ego_grid_pf_hv_bus) OR bus0 NOT IN (SELECT bus_id FROM model_draft.ego_grid_pf_hv_bus); \ No newline at end of file