| 1 |
# EXAMPLE ETL CONFIGURATION (generate GML file extracts from a deegree blobstore) |
| 2 |
|
| 3 |
# DEFINE THE ETL AS A ONE OR MORE CHAINS (PIPELINE) OF COMPONENTS |
| 4 |
[etl] |
| 5 |
chains = input_deegree_blobstore|output_file |
| 6 |
|
| 7 |
# Get DOM document from GML blobs in deegree blobstore tables |
| 8 |
[input_deegree_blobstore] |
| 9 |
class = stetl.inputs.deegreeinput.DeegreeBlobstoreInput |
| 10 |
database = pdok |
| 11 |
schema = inspire_ad |
| 12 |
host = localhost |
| 13 |
user = pdok_owner |
| 14 |
password = pdok_owner |
| 15 |
max_features_per_doc = 10000 |
| 16 |
sql = SELECT binary_object from gml_objects where ft_type = 12 limit 5; |
| 17 |
port = 5432 |
| 18 |
start_container = <?xml version="1.0" encoding="UTF-8"?> |
| 19 |
<base:SpatialDataSet |
| 20 |
xmlns:base="urn:x-inspire:specification:gmlas:BaseTypes:3.2" |
| 21 |
xmlns:AD="urn:x-inspire:specification:gmlas:Addresses:3.0" |
| 22 |
xmlns:GN="urn:x-inspire:specification:gmlas:GeographicalNames:3.0" |
| 23 |
xmlns:xlink="http://www.w3.org/1999/xlink" |
| 24 |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 25 |
xmlns:gml="http://www.opengis.net/gml/3.2" |
| 26 |
xsi:schemaLocation="urn:x-inspire:specification:gmlas:BaseTypes:3.2 http://inspire.ec.europa.eu/schemas/base/3.2/BaseTypes.xsd |
| 27 |
urn:x-inspire:specification:gmlas:Addresses:3.0 http://inspire.ec.europa.eu/schemas/ad/3.0/Addresses.xsd |
| 28 |
urn:x-inspire:specification:gmlas:GeographicalNames:3.0 http://inspire.ec.europa.eu/schemas/gn/3.0/GeographicalNames.xsd" |
| 29 |
gml:id="NL.KAD.BAG.AD"> |
| 30 |
<base:identifier> |
| 31 |
<base:Identifier> |
| 32 |
<base:localId>0</base:localId> |
| 33 |
<base:namespace>NL.KAD.BAG.AD</base:namespace> |
| 34 |
</base:Identifier> |
| 35 |
</base:identifier> |
| 36 |
<base:metadata xsi:nil="true"/> |
| 37 |
end_container = </base:SpatialDataSet> |
| 38 |
start_feature_tag = <base:member> |
| 39 |
end_feature_tag = </base:member> |
| 40 |
|
| 41 |
# Output: print DOM document to stdout |
| 42 |
[output_std] |
| 43 |
class = stetl.output.Output |
| 44 |
|
| 45 |
# Output: print DOM document to file |
| 46 |
[output_file] |
| 47 |
class = stetl.outputs.fileoutput.FileOutput |
| 48 |
file_path = inspire-ad-spatialds.gml |
| 49 |
|
| 50 |
|
| 51 |
|