-
-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Top10-extract geschikt gemaakt voor werkwijze met args-bestanden
- Loading branch information
Showing
7 changed files
with
99 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
:: ETL voor TOP10NL GML met gebruik Stetl. | ||
:: | ||
:: Dit is een front-end/wrapper batch-script om uiteindelijk Stetl met een configuratie | ||
:: (etl-top10nl-v1.2.cfg) en parameters (options\myoptions.args) aan te roepen. Dit script is | ||
:: gebaseerd op het shell-script ../../brk/etl-brk.sh. | ||
:: | ||
:: Author: Frank Steggink | ||
@echo off | ||
|
||
setlocal | ||
|
||
:: Gebruik Stetl meegeleverd met NLExtract (kan in theorie ook Stetl via pip install stetl zijn) | ||
if "%STETL_HOME%"=="" ( | ||
set STETL_HOME=../../externals/stetl | ||
) | ||
|
||
:: Nodig voor imports | ||
if "%PYTHONPATH%"=="" ( | ||
set PYTHONPATH=%STETL_HOME% | ||
) else ( | ||
set PYTHONPATH=%STETL_HOME%;%PYTHONPATH% | ||
) | ||
|
||
:: Default argumenten/opties | ||
set options_file=options\default.args | ||
|
||
:: Overrule eventueel het default optiebestand door het gebruik van een host-gebaseerd optiebestand | ||
:: options\<hostnaam>.args. | ||
if exist options\%COMPUTERNAME%.args set options_file=options\%COMPUTERNAME%.args | ||
|
||
:: Evt via commandline overrulen: etl-top10nl.cmd <mijn optiebestand> | ||
if not "%~1"=="" set options_file=%1 | ||
|
||
:: Uiteindelijke commando. Kan ook gewoon "stetl -c etl-top10nl-v1.2.cfg -a ..." worden indien Stetl installed | ||
python %STETL_HOME%\stetl\main.py -c conf\etl-top10nl-v1.2.cfg -a %options_file% | ||
|
||
endlocal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
*.sh | ||
*.sh | ||
*.args |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# Default options for the Stetl TOP10NL extract command | ||
# These values are substituted into the ETL conf in conf/etl-top10nl-v1.2.cfg, see the {arg} strings there | ||
|
||
# INPUT: gml files, point to directory or file(s) pattern | ||
input_dir=test/v1_2/nlextract | ||
|
||
# Files pattern: files filter volgens Python glob.glob patronen: https://docs.python.org/2/library/glob.html | ||
# NB moeten op dit moment .zip files zijn! | ||
zip_files_pattern=*.[zZ][iI][pP] | ||
|
||
# Match files binnen zip-archieven, default is alle .gml files | ||
# filename_match=[!bgt_plaatsbepalingspunt]* om bijv de plaatsbepalingspunten te excluden | ||
filename_match=*.gml | ||
|
||
# OPTIONS | ||
# Temp dir voor GFS | ||
temp_dir=temp | ||
|
||
# GFS template: bepaalt mapping van GML-velden naar PostGIS table kolommen | ||
gfs_template=gfs/top10-v1.2.gfs | ||
|
||
# OUTPUT: PostGIS settings | ||
host=localhost | ||
port=5432 | ||
user=postgres | ||
password=postgres | ||
database=top10nl | ||
schema=test | ||
|
||
# OPTION: attribuut waarden bijv typeWeg die meerdere keren in XML voorkomen, wat daarmee te doen | ||
# Zie ogr2ogr opties | ||
# May use: these options | ||
# multi_opts=-splitlistfields -maxsubfields 1 | ||
# multi_opts=-splitlistfields | ||
multi_opts=-fieldTypeToString StringList | ||
|
||
# Welk gebied (clip), zet leeg voor alles | ||
# spatial_extent=120000 450000 160000 500000 | ||
spatial_extent= | ||
|
||
# Maximaal aantal features | ||
max_features=20000 |
This file was deleted.
Oops, something went wrong.