From f028c92a012efeea43bc8790dae5ac0ee37922bd Mon Sep 17 00:00:00 2001 From: Saidy Barry Date: Mon, 31 Aug 2026 16:40:33 +0200 Subject: [PATCH] Converter for Saarland LPIS field blocks (de_sl_block), fix scientific-notation sizes --- CHANGELOG.md | 2 + fiboa_cli/datasets/de_sl.py | 4 +- fiboa_cli/datasets/de_sl_block.py | 86 ++ .../convert/de_sl_block/de_sl_block.gml | 789 ++++++++++++++++++ tests/test_convert.py | 2 + 5 files changed, 882 insertions(+), 1 deletion(-) create mode 100644 fiboa_cli/datasets/de_sl_block.py create mode 100644 tests/data-files/convert/de_sl_block/de_sl_block.gml diff --git a/CHANGELOG.md b/CHANGELOG.md index 54781a26..c0da6a3c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. - Support Esri JSON and server-side filters in EsriRESTConverterMixin (rest_format, rest_params["where"]) - Converter for Bavaria, Germany LPIS field blocks (de_by_block) - Converter for Hesse, Germany LPIS reference parcels +- Converter for Saarland, Germany LPIS field blocks (de_sl_block) +- Fix parcel sizes written in scientific notation being read 10,000x too large (de_sl parser) - Update vecorel-cli to v0.2.16: - Converter output is sorted by Hilbert distance - Commands exit with a non-zero exit code when they report a failure diff --git a/fiboa_cli/datasets/de_sl.py b/fiboa_cli/datasets/de_sl.py index 5ab3185e..0a379e7e 100644 --- a/fiboa_cli/datasets/de_sl.py +++ b/fiboa_cli/datasets/de_sl.py @@ -11,7 +11,9 @@ def parse_flik(x): def parse_size(x): - match = re.search(r"Size in ha: (\d+(\.\d+)?)+", x, re.I) + # Small parcels are written in scientific notation, e.g. "Size in ha: 1.0999999999999999E-4". + # Without the exponent the value is read as 1.1 ha instead of 1.1 m², a factor of 10,000. + match = re.search(r"Size in ha: (\d+(?:\.\d+)?(?:[eE][+-]?\d+)?)", x, re.I) return float(match.group(1)) if match else None diff --git a/fiboa_cli/datasets/de_sl_block.py b/fiboa_cli/datasets/de_sl_block.py new file mode 100644 index 00000000..ae3c186c --- /dev/null +++ b/fiboa_cli/datasets/de_sl_block.py @@ -0,0 +1,86 @@ +import re +from urllib.parse import urlencode + +import requests +from vecorel_cli.conversion.admin import AdminConverterMixin + +from ..conversion.convert_gml import gml_assure_columns +from ..conversion.fiboa_converter import FiboaBaseConverter +from .commons.de_iacs import DEIACSMixin +from .de_sl import parse_flik, parse_size + +BASE_URL = "https://geoportal.saarland.de/gdi-sl/inspirewfs_Bodenbedeckung_LPIS" +PARAMS = { + "service": "WFS", + "version": "2.0.0", + "request": "GetFeature", + "typeNames": "lcv:LandCoverUnit", +} +# The WFS accepts larger pages, but 2500 keeps each response around 7 MB. It is also the ceiling +# of the limit allowlist on the OGC API - Features endpoint for the same data. +PAGE_SIZE = 2500 + + +class DESLBlockConverter(AdminConverterMixin, DEIACSMixin, FiboaBaseConverter): + id = "de_sl_block" + admin_subdivision_code = "SL" + short_name = "Germany, Saarland (LPIS)" + title = "Field blocks for Saarland, Germany" + description = """ +The reference parcels ("Referenzschläge") of the Saarland Land Parcel Identification System (LPIS), +the reference system for area-based agricultural payments. The data is transformed into the INSPIRE +"Land Cover" data model, so each parcel carries a land cover class from the national IACS code list +alongside its FLIK. The area given is the eligible parcel size recorded in InVeKoS, not the +geometric area of the polygon. The complementary application parcels ("Antragsschläge") are +published separately. +""" + + provider = "Ministerium für Umwelt, Klima, Mobilität, Agrar und Verbraucherschutz " + attribution = "© GDI-SL 2026, CC BY 4.0" + license = "CC-BY-4.0" + + extensions = {"https://fiboa.org/flik-extension/v0.2.0/schema.yaml"} + + columns = { + "geometry": "geometry", + "flik": ("flik", "id"), # derived in migrate(); unique + "area_type": "crop:code", # added in file_migration(), trimmed in migrate() + "area": "metrics:area", # derived in migrate(); in hectares + } + + def get_urls(self): + # numberReturned is always reported as 0 by this server, so the page count has to come + # from a hits request rather than from the responses themselves. + hits = requests.get(BASE_URL, params={**PARAMS, "resultType": "hits"}) + hits.raise_for_status() + total = int(re.search(r'numberMatched="(\d+)"', hits.text).group(1)) + + query = urlencode({**PARAMS, "count": PAGE_SIZE}) + return { + f"{BASE_URL}?{query}&startIndex={start}": f"de_sl_block_{start}.gml" + for start in range(0, total, PAGE_SIZE) + } + + def file_migration(self, gdf, path, uri, layer=None): + # The land cover class is a nested xlink attribute, which the GML driver does not guess + # into its generated schema. GDAL separates the steps of an element path with "|". + return gml_assure_columns( + gdf, + path, + uri, + layer, + area_type={ + "ElementPath": "landCoverObservation|LandCoverObservation|class@href", + "Type": "String", + "Width": 255, + }, + ) + + def migrate(self, gdf): + # The FLIK and the size are both encoded in the INSPIRE description, e.g. + # "Size in ha: 0.11206, flik: DESLLI0000248744" + gdf["flik"] = gdf["description"].apply(parse_flik) + gdf["area"] = gdf["description"].apply(parse_size) + # …/codelist/de.iacs/AgriculturalAreaTypeValue/GL -> GL + gdf["area_type"] = gdf["area_type"].str.rsplit("/", n=1).str[-1] + return super().migrate(gdf) diff --git a/tests/data-files/convert/de_sl_block/de_sl_block.gml b/tests/data-files/convert/de_sl_block/de_sl_block.gml new file mode 100644 index 00000000..cbc9b175 --- /dev/null +++ b/tests/data-files/convert/de_sl_block/de_sl_block.gml @@ -0,0 +1,789 @@ + + + + + + Size in ha: 0.55894, flik: DESLLI1000062216 + https://registry.gdi-de.org/id/de.sl.inspire.lc.ivs.lpis_sl/LandCoverUnit_e50825f558643866b7cd6b80e307b9153f272ca1d0170ec5445bdc4b0d17b544_DESLLI1000062216 + + + LandCoverUnit_e50825f558643866b7cd6b80e307b9153f272ca1d0170ec5445bdc4b0d17b544_DESLLI1000062216 + https://registry.gdi-de.org/id/de.sl.inspire.lc.ivs.lpis_sl/ + + + + + + + + + 49.467722 6.509421 49.467657 6.509450 49.467657 6.509450 49.467217 6.509661 49.467210 6.509686 49.467216 6.509730 49.467211 6.509779 49.467229 6.510002 49.467345 6.511149 49.467569 6.511050 49.467635 6.511030 49.467693 6.511007 49.467709 6.510821 49.467708 6.510820 49.467710 6.510771 49.467710 6.510733 49.467711 6.510682 49.467711 6.510643 49.467712 6.510597 49.467714 6.510449 49.467714 6.510449 49.467714 6.510448 49.467715 6.510448 49.467716 6.510314 49.467715 6.510198 49.467716 6.510050 49.467719 6.509905 49.467722 6.509793 49.467735 6.509596 49.467727 6.509436 49.467722 6.509421 + + + + + + + + + + + + + + + + + Size in ha: 0.55897, flik: DESLLI0300020260 + https://registry.gdi-de.org/id/de.sl.inspire.lc.ivs.lpis_sl/LandCoverUnit_ed789e6ea9f3f96c5eab127fda1476901c19a46873be4b4622f2f7a3a565be0b_DESLLI0300020260 + + + LandCoverUnit_ed789e6ea9f3f96c5eab127fda1476901c19a46873be4b4622f2f7a3a565be0b_DESLLI0300020260 + https://registry.gdi-de.org/id/de.sl.inspire.lc.ivs.lpis_sl/ + + + + + + + + + 49.203186 7.250960 49.202982 7.250985 49.202963 7.250988 49.202830 7.251016 49.202806 7.251053 49.202321 7.251169 49.202312 7.251171 49.202305 7.251178 49.202294 7.251189 49.202294 7.251190 49.202290 7.251200 49.202281 7.251221 49.202125 7.251270 49.202115 7.251264 49.202098 7.251256 49.202090 7.251252 49.202089 7.251252 49.202083 7.251255 49.202079 7.251256 49.202054 7.251268 49.202061 7.251299 49.202117 7.251537 49.202120 7.251551 49.202129 7.251595 49.202143 7.251668 49.202147 7.251686 49.202167 7.251789 49.202188 7.251876 49.202190 7.251876 49.202187 7.251865 49.202256 7.251852 49.202253 7.251841 49.202361 7.251812 49.202417 7.251797 49.202433 7.251793 49.202439 7.251791 49.202439 7.251791 49.202524 7.251768 49.202553 7.251760 49.202598 7.251747 49.202959 7.251652 49.202970 7.251649 49.203024 7.251640 49.203065 7.251633 49.203153 7.251609 49.203179 7.251562 49.203195 7.251407 49.203190 7.251068 49.203186 7.250960 + + + + + + + + + + + + + + + + + Size in ha: 0.55904, flik: DESLLI0000024999 + https://registry.gdi-de.org/id/de.sl.inspire.lc.ivs.lpis_sl/LandCoverUnit_c889a743f468d74a4cc7c1882e255642574358d9872fcacfcc408942479a9cef_DESLLI0000024999 + + + LandCoverUnit_c889a743f468d74a4cc7c1882e255642574358d9872fcacfcc408942479a9cef_DESLLI0000024999 + https://registry.gdi-de.org/id/de.sl.inspire.lc.ivs.lpis_sl/ + + + + + + + + + 49.229407 7.181497 49.229009 7.181767 49.228175 7.182379 49.228441 7.182554 49.228455 7.182562 49.228468 7.182570 49.228482 7.182579 49.228580 7.182639 49.229659 7.181975 49.229407 7.181497 + + + + + + + + + + + + + + + + + Size in ha: 0.5995, flik: DESLLI0400006994 + https://registry.gdi-de.org/id/de.sl.inspire.lc.ivs.lpis_sl/LandCoverUnit_8b8c71cdd29bb4db87ac433bca98fc34b201a6367558883db47d5c1ae45cbc46_DESLLI0400006994 + + + LandCoverUnit_8b8c71cdd29bb4db87ac433bca98fc34b201a6367558883db47d5c1ae45cbc46_DESLLI0400006994 + https://registry.gdi-de.org/id/de.sl.inspire.lc.ivs.lpis_sl/ + + + + + + + + + 49.309813 6.706619 49.309492 6.707268 49.309002 6.708207 49.309301 6.708536 49.309976 6.707121 49.310195 6.706643 49.309813 6.706619 + + + + + + + + + + + + + + + + + Size in ha: 0.55904, flik: DESLLI0200242677 + https://registry.gdi-de.org/id/de.sl.inspire.lc.ivs.lpis_sl/LandCoverUnit_56bbaf7ed94046f09b760e8b7706e44da0d35bfd3cd45eaadb0f445a5b815c1b_DESLLI0200242677 + + + LandCoverUnit_56bbaf7ed94046f09b760e8b7706e44da0d35bfd3cd45eaadb0f445a5b815c1b_DESLLI0200242677 + https://registry.gdi-de.org/id/de.sl.inspire.lc.ivs.lpis_sl/ + + + + + + + + + 49.530341 6.388871 49.530341 6.388871 49.530015 6.388994 49.530015 6.388994 49.530005 6.389007 49.529995 6.389017 49.529895 6.389132 49.529895 6.389132 49.529895 6.389133 49.529895 6.389133 49.529895 6.389133 49.529966 6.389224 49.530008 6.389310 49.530098 6.389542 49.530098 6.389543 49.530073 6.389593 49.530073 6.389593 49.530073 6.389593 49.530032 6.389569 49.529842 6.389265 49.529842 6.389265 49.529842 6.389265 49.529842 6.389265 49.529842 6.389265 49.529810 6.389313 49.529810 6.389313 49.529810 6.389313 49.529810 6.389314 49.530023 6.390051 49.530089 6.390258 49.530114 6.390401 49.530114 6.390401 49.530114 6.390401 49.530114 6.390401 49.530138 6.390403 49.530138 6.390403 49.530322 6.390299 49.530322 6.390299 49.530322 6.390299 49.530322 6.390299 49.530322 6.390299 49.530322 6.390298 49.530322 6.390298 49.530289 6.390191 49.530243 6.389979 49.530227 6.389882 49.530227 6.389882 49.530227 6.389881 49.530252 6.389855 49.530317 6.389895 49.530317 6.389895 49.530497 6.390312 49.530497 6.390312 49.530497 6.390313 49.530615 6.390297 49.530615 6.390297 49.530615 6.390297 49.530615 6.390297 49.530622 6.389936 49.530622 6.389936 49.530445 6.389411 49.530381 6.388921 49.530381 6.388921 49.530341 6.388872 49.530341 6.388872 49.530341 6.388871 + + + + + + + + + + + + + + + + + Size in ha: 0.55905, flik: DESLLI0700134045 + https://registry.gdi-de.org/id/de.sl.inspire.lc.ivs.lpis_sl/LandCoverUnit_e60367e41a4cc2438831b82a3a53613bda28e895c5296790271cf789c94e6f8c_DESLLI0700134045 + + + LandCoverUnit_e60367e41a4cc2438831b82a3a53613bda28e895c5296790271cf789c94e6f8c_DESLLI0700134045 + https://registry.gdi-de.org/id/de.sl.inspire.lc.ivs.lpis_sl/ + + + + + + + + + 49.488779 6.508492 49.487856 6.509435 49.487753 6.509546 49.487612 6.509707 49.487533 6.509785 49.487518 6.509800 49.487533 6.509825 49.487571 6.509890 49.487588 6.509930 49.487631 6.510005 49.487640 6.509999 49.487640 6.509999 49.487663 6.509985 49.487716 6.509974 49.487754 6.509968 49.487754 6.509968 49.487877 6.509925 49.487901 6.509916 49.487924 6.509907 49.487927 6.509905 49.487929 6.509903 49.487929 6.509903 49.487968 6.509872 49.488023 6.509820 49.488216 6.509621 49.488351 6.509482 49.488528 6.509318 49.488737 6.509112 49.489018 6.508837 49.488981 6.508787 49.488884 6.508644 49.488851 6.508594 49.488783 6.508497 49.488779 6.508492 + + + + + + + + + + + + + + + + + Size in ha: 0.55906, flik: DESLLI0500000623 + https://registry.gdi-de.org/id/de.sl.inspire.lc.ivs.lpis_sl/LandCoverUnit_921631667514738f36a885e346db43bc9f7489fa9c1bd8824cfb2a4e8a9c2ea7_DESLLI0500000623 + + + LandCoverUnit_921631667514738f36a885e346db43bc9f7489fa9c1bd8824cfb2a4e8a9c2ea7_DESLLI0500000623 + https://registry.gdi-de.org/id/de.sl.inspire.lc.ivs.lpis_sl/ + + + + + + + + + 49.315895 7.169950 49.315891 7.169950 49.315840 7.169967 49.315838 7.169970 49.315828 7.169981 49.315804 7.170010 49.315796 7.170033 49.315781 7.170078 49.315752 7.170163 49.315735 7.170214 49.315703 7.170308 49.315693 7.170338 49.315686 7.170359 49.315495 7.170586 49.315548 7.170681 49.315664 7.170887 49.315826 7.171173 49.316452 7.170395 49.316607 7.170199 49.316702 7.170167 49.316610 7.170133 49.316412 7.170031 49.316222 7.170054 49.316093 7.170043 49.316006 7.170023 49.315908 7.169953 49.315895 7.169950 + + + + + + + + + + + + + + + + + Size in ha: 0.55907, flik: DESLLI0600128141 + https://registry.gdi-de.org/id/de.sl.inspire.lc.ivs.lpis_sl/LandCoverUnit_9c29733c2f0c2abfc6343df010e024e68083453e1f54e5cbbf9bc1e9c1b307c7_DESLLI0600128141 + + + LandCoverUnit_9c29733c2f0c2abfc6343df010e024e68083453e1f54e5cbbf9bc1e9c1b307c7_DESLLI0600128141 + https://registry.gdi-de.org/id/de.sl.inspire.lc.ivs.lpis_sl/ + + + + + + + + + 49.136892 7.310773 49.136832 7.310779 49.136781 7.310784 49.136781 7.310784 49.136721 7.310790 49.136687 7.310793 49.136678 7.310799 49.136610 7.310841 49.136610 7.310841 49.136418 7.311023 49.136302 7.311134 49.136302 7.311134 49.136242 7.311191 49.136219 7.311222 49.136219 7.311222 49.136241 7.311307 49.136268 7.311360 49.136359 7.311533 49.136400 7.311627 49.136449 7.311760 49.136472 7.311876 49.136490 7.312013 49.136498 7.312100 49.136505 7.312093 49.136554 7.312046 49.136554 7.312046 49.136607 7.311996 49.136966 7.311653 49.137036 7.311617 49.137082 7.311548 49.137101 7.311528 49.137014 7.311363 49.136987 7.311283 49.136958 7.311219 49.137054 7.310987 49.137096 7.310915 49.137096 7.310914 49.137063 7.310842 49.137063 7.310842 49.137006 7.310800 49.136996 7.310794 49.136988 7.310790 49.136940 7.310781 49.136892 7.310773 + + + + + + + + + + + + + + + + + Size in ha: 0.55918, flik: DESLLI0600234550 + https://registry.gdi-de.org/id/de.sl.inspire.lc.ivs.lpis_sl/LandCoverUnit_b16242a169218b660346b46c86a64b5a6064e7c4a7d1985c9c2eb40f8de4d84d_DESLLI0600234550 + + + LandCoverUnit_b16242a169218b660346b46c86a64b5a6064e7c4a7d1985c9c2eb40f8de4d84d_DESLLI0600234550 + https://registry.gdi-de.org/id/de.sl.inspire.lc.ivs.lpis_sl/ + + + + + + + + + 49.511683 7.015296 49.511712 7.015493 49.511742 7.015597 49.511806 7.015613 49.511864 7.015623 49.511927 7.015695 49.512114 7.015685 49.512388 7.015761 49.512577 7.015816 49.512934 7.015875 49.513114 7.015931 49.513340 7.015982 49.513547 7.016085 49.513638 7.016120 49.513756 7.016230 49.513839 7.016232 49.514001 7.016216 49.514011 7.016034 49.513960 7.015948 49.513848 7.015838 49.513766 7.015766 49.513595 7.015739 49.513514 7.015620 49.513434 7.015651 49.512677 7.015586 49.512428 7.015565 49.512111 7.015426 49.512104 7.015427 49.511947 7.015361 49.511683 7.015296 + + + + + + + + + + + + + + + + + Size in ha: 0.55918, flik: DESLLI0200035170 + https://registry.gdi-de.org/id/de.sl.inspire.lc.ivs.lpis_sl/LandCoverUnit_a5279d7541456c58fff4cfc4da2ae0be9313f3dfabe46f2095f80c6042313c6f_DESLLI0200035170 + + + LandCoverUnit_a5279d7541456c58fff4cfc4da2ae0be9313f3dfabe46f2095f80c6042313c6f_DESLLI0200035170 + https://registry.gdi-de.org/id/de.sl.inspire.lc.ivs.lpis_sl/ + + + + + + + + + 49.557572 7.180430 49.557564 7.180453 49.557545 7.180829 49.557545 7.180872 49.558137 7.180992 49.558318 7.181031 49.558533 7.181069 49.558704 7.181109 49.558706 7.181110 49.558707 7.181110 49.558894 7.181154 49.558893 7.181160 49.558901 7.181162 49.558909 7.181135 49.558997 7.180818 49.559064 7.180592 49.559033 7.180578 49.558871 7.180575 49.558646 7.180572 49.558386 7.180559 49.558074 7.180530 49.557885 7.180501 49.557706 7.180468 49.557572 7.180430 + + + + + + + + + + + + + + + + + Size in ha: 0.55921, flik: DESLLI0800129828 + https://registry.gdi-de.org/id/de.sl.inspire.lc.ivs.lpis_sl/LandCoverUnit_f3385bca66802720a4929f5e43b0bac61e699f7206edd6b1dc0e335abb4004ff_DESLLI0800129828 + + + LandCoverUnit_f3385bca66802720a4929f5e43b0bac61e699f7206edd6b1dc0e335abb4004ff_DESLLI0800129828 + https://registry.gdi-de.org/id/de.sl.inspire.lc.ivs.lpis_sl/ + + + + + + + + + 49.406993 7.177404 49.406950 7.177544 49.406858 7.177469 49.406759 7.177719 49.406937 7.177910 49.406948 7.177924 49.407051 7.178036 49.407389 7.178387 49.407512 7.178499 49.407521 7.178505 49.407520 7.178507 49.407520 7.178507 49.407571 7.178547 49.407640 7.178584 49.407668 7.178597 49.407665 7.178587 49.407737 7.178629 49.407868 7.178690 49.407920 7.178722 49.407967 7.178750 49.407977 7.178757 49.408004 7.178773 49.408020 7.178697 49.408033 7.178670 49.408041 7.178531 49.408080 7.178327 49.407914 7.178207 49.407611 7.177946 49.407308 7.177666 49.407237 7.177602 49.407236 7.177604 49.406993 7.177404 + + + + + + + + + + + + + + + + + Size in ha: 0.55921, flik: DESLLI5600134712 + https://registry.gdi-de.org/id/de.sl.inspire.lc.ivs.lpis_sl/LandCoverUnit_d540ac5a653166d3bbd91f29b720f8bc84f5e926b5b13679ca828f8866edf774_DESLLI5600134712 + + + LandCoverUnit_d540ac5a653166d3bbd91f29b720f8bc84f5e926b5b13679ca828f8866edf774_DESLLI5600134712 + https://registry.gdi-de.org/id/de.sl.inspire.lc.ivs.lpis_sl/ + + + + + + + + + 49.154372 7.162069 49.154438 7.162144 49.154548 7.162359 49.154663 7.162566 49.154682 7.162567 49.154760 7.162591 49.155216 7.162716 49.155199 7.162841 49.155189 7.162882 49.155341 7.162930 49.155344 7.162911 49.155522 7.162962 49.155684 7.162989 49.155705 7.162907 49.155781 7.162464 49.155806 7.162291 49.155354 7.162208 49.154935 7.162165 49.154887 7.162204 49.154882 7.162262 49.154823 7.162255 49.154818 7.162259 49.154814 7.162254 49.154769 7.162248 49.154769 7.162177 49.154747 7.162139 49.154372 7.162069 + + + + + 49.154795 7.162460 49.154817 7.162483 49.154819 7.162524 49.154799 7.162553 49.154772 7.162553 49.154755 7.162534 49.154758 7.162492 49.154771 7.162464 49.154795 7.162460 + + + + + + + + + + + + + + + + + Size in ha: 0.55925, flik: DESLLI0300130482 + https://registry.gdi-de.org/id/de.sl.inspire.lc.ivs.lpis_sl/LandCoverUnit_8c93582d0ef7ec807447bfde1ef74056ef6da3f079242b2f5567453b6873fcef_DESLLI0300130482 + + + LandCoverUnit_8c93582d0ef7ec807447bfde1ef74056ef6da3f079242b2f5567453b6873fcef_DESLLI0300130482 + https://registry.gdi-de.org/id/de.sl.inspire.lc.ivs.lpis_sl/ + + + + + + + + + 49.437179 6.950043 49.437038 6.950247 49.437415 6.951210 49.437627 6.951720 49.437567 6.951785 49.438050 6.952993 49.438053 6.952997 49.438065 6.953011 49.438079 6.953030 49.438111 6.953052 49.438150 6.953049 49.438172 6.953023 49.438178 6.953013 49.438178 6.953013 49.438179 6.953012 49.438183 6.953004 49.438193 6.952961 49.438195 6.952952 49.438197 6.952942 49.438197 6.952942 49.438205 6.952951 49.438218 6.952966 49.438272 6.952876 49.437984 6.952120 49.437853 6.951790 49.437628 6.951187 49.437416 6.950645 49.437277 6.950283 49.437187 6.950057 49.437179 6.950043 + + + + + + + + + + + + + + + + + Size in ha: 0.55926, flik: DESLLI0900041551 + https://registry.gdi-de.org/id/de.sl.inspire.lc.ivs.lpis_sl/LandCoverUnit_0b8ba4972235df00e616981336a9ce795f96d516b59f3c34ddc71f9c431795c1_DESLLI0900041551 + + + LandCoverUnit_0b8ba4972235df00e616981336a9ce795f96d516b59f3c34ddc71f9c431795c1_DESLLI0900041551 + https://registry.gdi-de.org/id/de.sl.inspire.lc.ivs.lpis_sl/ + + + + + + + + + 49.540655 7.066340 49.540655 7.066340 49.540655 7.066340 49.540641 7.066383 49.540618 7.066452 49.540577 7.066769 49.540568 7.066869 49.540556 7.066991 49.540556 7.066992 49.540556 7.066993 49.540540 7.067171 49.540540 7.067171 49.540540 7.067171 49.540582 7.067230 49.540982 7.067542 49.540990 7.067723 49.540994 7.067878 49.540994 7.067878 49.540994 7.067878 49.541001 7.067882 49.541001 7.067882 49.541060 7.067913 49.541060 7.067913 49.541060 7.067913 49.541060 7.067912 49.541093 7.067837 49.541110 7.067767 49.541134 7.067701 49.541165 7.067620 49.541171 7.067604 49.541189 7.067557 49.541219 7.067477 49.541250 7.067370 49.541265 7.067277 49.541314 7.067170 49.541323 7.067140 49.541326 7.067059 49.541359 7.066999 49.541395 7.066898 49.541395 7.066897 49.541395 7.066897 49.541395 7.066897 49.541395 7.066897 49.541384 7.066889 49.541384 7.066889 49.541384 7.066889 49.540736 7.066394 49.540682 7.066358 49.540682 7.066358 49.540682 7.066358 49.540655 7.066340 49.540655 7.066340 + + + + + + + + + + + + + + + + + Size in ha: 0.55973, flik: DESLLI2400137851 + https://registry.gdi-de.org/id/de.sl.inspire.lc.ivs.lpis_sl/LandCoverUnit_65c7ae7960638ccba930b95acd41e73d8f4dcda9fcaf74c978c4a57c3319c067_DESLLI2400137851 + + + LandCoverUnit_65c7ae7960638ccba930b95acd41e73d8f4dcda9fcaf74c978c4a57c3319c067_DESLLI2400137851 + https://registry.gdi-de.org/id/de.sl.inspire.lc.ivs.lpis_sl/ + + + + + + + + + 49.134367 7.169558 49.134289 7.169600 49.134250 7.169662 49.134227 7.169807 49.134223 7.169832 49.134236 7.169878 49.134272 7.170031 49.134273 7.170033 49.134275 7.170042 49.134279 7.170060 49.134356 7.170253 49.135273 7.170437 49.135156 7.169633 49.135110 7.169630 49.135095 7.169629 49.134989 7.169626 49.134979 7.169619 49.134603 7.169590 49.134590 7.169591 49.134543 7.169586 49.134367 7.169558 + + + + + + + + + + + + + + + + + Size in ha: 0.55927, flik: DESLLI0000007627 + https://registry.gdi-de.org/id/de.sl.inspire.lc.ivs.lpis_sl/LandCoverUnit_6a51ac31285ee2607f47da1329bece269e254797bf47a9e12304ccf46caa32d2_DESLLI0000007627 + + + LandCoverUnit_6a51ac31285ee2607f47da1329bece269e254797bf47a9e12304ccf46caa32d2_DESLLI0000007627 + https://registry.gdi-de.org/id/de.sl.inspire.lc.ivs.lpis_sl/ + + + + + + + + + 49.358660 6.600262 49.357311 6.600781 49.357301 6.600785 49.357290 6.600788 49.357285 6.600790 49.357269 6.600821 49.357264 6.600831 49.357263 6.600839 49.357262 6.600852 49.357268 6.600872 49.357268 6.600874 49.357271 6.600883 49.357272 6.600888 49.357334 6.601127 49.357334 6.601129 49.357337 6.601135 49.357374 6.601241 49.357391 6.601255 49.357395 6.601257 49.357404 6.601258 49.357437 6.601259 49.357450 6.601258 49.357468 6.601252 49.357499 6.601242 49.357618 6.601162 49.357618 6.601162 49.357652 6.601148 49.357656 6.601147 49.357682 6.601137 49.357696 6.601135 49.357703 6.601134 49.357705 6.601134 49.357705 6.601134 49.357733 6.601130 49.357776 6.601124 49.357845 6.601102 49.357851 6.601100 49.357862 6.601096 49.357889 6.601085 49.357903 6.601077 49.357911 6.601073 49.357921 6.601066 49.357933 6.601059 49.357951 6.601051 49.357963 6.601045 49.357969 6.601042 49.357996 6.601030 49.357998 6.601029 49.358072 6.600995 49.358072 6.600995 49.358072 6.600995 49.358113 6.600990 49.358118 6.600987 49.358143 6.600978 49.358157 6.600972 49.358168 6.600971 49.358178 6.600970 49.358191 6.600969 49.358214 6.600959 49.358217 6.600957 49.358219 6.600955 49.358263 6.600908 49.358272 6.600898 49.358299 6.600891 49.358333 6.600894 49.358349 6.600890 49.358382 6.600883 49.358423 6.600857 49.358424 6.600856 49.358430 6.600855 49.358458 6.600848 49.358467 6.600847 49.358492 6.600844 49.358509 6.600842 49.358572 6.600836 49.358578 6.600833 49.358596 6.600825 49.358601 6.600824 49.358605 6.600820 49.358631 6.600794 49.358634 6.600782 49.358638 6.600770 49.358644 6.600750 49.358645 6.600688 49.358646 6.600657 49.358648 6.600509 49.358661 6.600441 49.358680 6.600342 49.358680 6.600339 49.358681 6.600318 49.358682 6.600303 49.358682 6.600301 49.358682 6.600291 49.358680 6.600279 49.358679 6.600273 49.358679 6.600272 49.358677 6.600270 49.358676 6.600269 49.358664 6.600262 49.358660 6.600262 + + + + + + + + + + + + + + + + + Size in ha: 0.55927, flik: DESLLI0800013899 + https://registry.gdi-de.org/id/de.sl.inspire.lc.ivs.lpis_sl/LandCoverUnit_4d7fda584a37af935fd6dbcc83727ab5f96c2c2f2721e03f440c268f817b9d99_DESLLI0800013899 + + + LandCoverUnit_4d7fda584a37af935fd6dbcc83727ab5f96c2c2f2721e03f440c268f817b9d99_DESLLI0800013899 + https://registry.gdi-de.org/id/de.sl.inspire.lc.ivs.lpis_sl/ + + + + + + + + + 49.440083 6.942591 49.440042 6.942631 49.439619 6.943001 49.439425 6.943152 49.439370 6.943314 49.439278 6.943364 49.439285 6.943385 49.439234 6.943428 49.439221 6.943395 49.439153 6.943431 49.439150 6.943418 49.439140 6.943380 49.439032 6.943484 49.439048 6.943585 49.439048 6.943585 49.439056 6.943634 49.439144 6.943829 49.439239 6.943917 49.439560 6.943723 49.439608 6.943694 49.439957 6.943412 49.440012 6.943338 49.440069 6.943334 49.440278 6.943167 49.440083 6.942591 + + + + + 49.439969 6.942775 49.440001 6.942855 49.440027 6.942921 49.439991 6.942940 49.439948 6.942788 49.439956 6.942783 49.439969 6.942775 + + + + + + + + + + + + + + + + + Size in ha: 0.5593, flik: DESLLI0200035666 + https://registry.gdi-de.org/id/de.sl.inspire.lc.ivs.lpis_sl/LandCoverUnit_96657cae3e3457a25d95eb1705621d4db59d4815bdfb89b2e434ad86c9712ca6_DESLLI0200035666 + + + LandCoverUnit_96657cae3e3457a25d95eb1705621d4db59d4815bdfb89b2e434ad86c9712ca6_DESLLI0200035666 + https://registry.gdi-de.org/id/de.sl.inspire.lc.ivs.lpis_sl/ + + + + + + + + + 49.561997 7.123514 49.561951 7.123605 49.561889 7.123728 49.561871 7.123762 49.561855 7.123795 49.561846 7.123812 49.561842 7.123820 49.561838 7.123828 49.561836 7.123831 49.561835 7.123835 49.561830 7.123850 49.561817 7.123890 49.561830 7.123947 49.561858 7.124057 49.561920 7.124281 49.561970 7.124200 49.561987 7.124260 49.562218 7.125144 49.562276 7.125361 49.562335 7.125650 49.562354 7.125772 49.562359 7.125803 49.562392 7.126007 49.562411 7.126090 49.562411 7.126092 49.562434 7.126110 49.562435 7.126110 49.562609 7.125947 49.562653 7.125905 49.562662 7.125887 49.562666 7.125879 49.562669 7.125867 49.562671 7.125858 49.562674 7.125846 49.562675 7.125841 49.562676 7.125837 49.562671 7.125778 49.562670 7.125769 49.562667 7.125744 49.562632 7.125582 49.562551 7.125215 49.562549 7.125203 49.562528 7.125110 49.562476 7.124888 49.562405 7.124585 49.562404 7.124578 49.562403 7.124574 49.562394 7.124542 49.562349 7.124376 49.562346 7.124378 49.562241 7.124442 49.561997 7.123514 + + + + + + + + + + + + + + + + + Size in ha: 0.55935, flik: DESLLI1100037427 + https://registry.gdi-de.org/id/de.sl.inspire.lc.ivs.lpis_sl/LandCoverUnit_82f0297f8a359dbf2ed97e6171b84e36cb9bdc86719dde720b997a6ff51d63c9_DESLLI1100037427 + + + LandCoverUnit_82f0297f8a359dbf2ed97e6171b84e36cb9bdc86719dde720b997a6ff51d63c9_DESLLI1100037427 + https://registry.gdi-de.org/id/de.sl.inspire.lc.ivs.lpis_sl/ + + + + + + + + + 49.452925 7.013038 49.452763 7.013234 49.452715 7.013311 49.452663 7.013355 49.452658 7.013360 49.452562 7.013477 49.452552 7.013487 49.452554 7.013488 49.452556 7.013486 49.453521 7.014457 49.453836 7.014206 49.453734 7.014077 49.453379 7.013618 49.453285 7.013491 49.453164 7.013344 49.452925 7.013038 + + + + + + + + + + + + + + + + + Size in ha: 0.55944, flik: DESLLI1000214191 + https://registry.gdi-de.org/id/de.sl.inspire.lc.ivs.lpis_sl/LandCoverUnit_579da4cfaa71eb844e47ac5ae009347bbc62a23e4d48858498cc493517346aed_DESLLI1000214191 + + + LandCoverUnit_579da4cfaa71eb844e47ac5ae009347bbc62a23e4d48858498cc493517346aed_DESLLI1000214191 + https://registry.gdi-de.org/id/de.sl.inspire.lc.ivs.lpis_sl/ + + + + + + + + + 49.148677 7.354698 49.147742 7.355712 49.147708 7.355735 49.147680 7.355758 49.147621 7.355797 49.147622 7.355950 49.147681 7.357226 49.147696 7.357588 49.147713 7.357750 49.147989 7.357634 49.147913 7.355647 49.148168 7.355362 49.148433 7.355065 49.148585 7.354899 49.148686 7.354946 49.148693 7.354743 49.148677 7.354698 + + + + + + + + + + + + + + + + + Size in ha: 0.55947, flik: DESLLI0300213486 + https://registry.gdi-de.org/id/de.sl.inspire.lc.ivs.lpis_sl/LandCoverUnit_f00188ebabab6e034d588811149826c1b0c6886ae88c3cf5679ddcac5691f491_DESLLI0300213486 + + + LandCoverUnit_f00188ebabab6e034d588811149826c1b0c6886ae88c3cf5679ddcac5691f491_DESLLI0300213486 + https://registry.gdi-de.org/id/de.sl.inspire.lc.ivs.lpis_sl/ + + + + + + + + + 49.477101 6.394806 49.477044 6.395311 49.478458 6.396716 49.478519 6.396364 49.477101 6.394806 + + + + + + + + + + + + + + + + + Size in ha: 0.5595300000000001, flik: DESLLI0000211986 + https://registry.gdi-de.org/id/de.sl.inspire.lc.ivs.lpis_sl/LandCoverUnit_ab2ba104b826c5ff98437c03fda4a16d8a1cb5eec87060b05205bdffae52fded_DESLLI0000211986 + + + LandCoverUnit_ab2ba104b826c5ff98437c03fda4a16d8a1cb5eec87060b05205bdffae52fded_DESLLI0000211986 + https://registry.gdi-de.org/id/de.sl.inspire.lc.ivs.lpis_sl/ + + + + + + + + + 49.382252 6.666227 49.382241 6.666239 49.382227 6.666255 49.381964 6.666560 49.382873 6.668074 49.382891 6.667964 49.382891 6.667963 49.382898 6.667956 49.382943 6.667899 49.382937 6.667747 49.382936 6.667730 49.382936 6.667725 49.382935 6.667709 49.382935 6.667709 49.382935 6.667709 49.382935 6.667710 49.382935 6.667710 49.383004 6.667822 49.383009 6.667831 49.383021 6.667850 49.383046 6.667798 49.383049 6.667735 49.383049 6.667732 49.383049 6.667732 49.383049 6.667732 49.383055 6.667724 49.383078 6.667691 49.383078 6.667690 49.383105 6.667679 49.382252 6.666227 + + + + + + + + + + + + + + + + + Size in ha: 0.5596099999999999, flik: DESLLI0800034981 + https://registry.gdi-de.org/id/de.sl.inspire.lc.ivs.lpis_sl/LandCoverUnit_57078ce2171fd2fb559d0412fe5e0bb801b475214d3b025f499b44972036256d_DESLLI0800034981 + + + LandCoverUnit_57078ce2171fd2fb559d0412fe5e0bb801b475214d3b025f499b44972036256d_DESLLI0800034981 + https://registry.gdi-de.org/id/de.sl.inspire.lc.ivs.lpis_sl/ + + + + + + + + + 49.451555 7.016864 49.451546 7.016902 49.451512 7.016881 49.451490 7.016958 49.451445 7.017128 49.451402 7.017305 49.451352 7.017491 49.451336 7.017567 49.451332 7.017591 49.451297 7.017764 49.451296 7.017827 49.451296 7.017872 49.451302 7.017877 49.451300 7.017885 49.451345 7.017916 49.451554 7.018100 49.451551 7.018108 49.451558 7.018111 49.451721 7.018250 49.451767 7.018280 49.451797 7.018183 49.452021 7.017475 49.452123 7.017151 49.452059 7.017124 49.451961 7.017085 49.451894 7.017052 49.451851 7.017037 49.451852 7.017031 49.451834 7.017022 49.451729 7.016963 49.451555 7.016864 + + + + + + + + + + + + + + + + + Size in ha: 0.5596099999999999, flik: DESLLI0400006872 + https://registry.gdi-de.org/id/de.sl.inspire.lc.ivs.lpis_sl/LandCoverUnit_6de686115ec4ea31f72366613d98352baddbd33334825c9ee4bf9c268b3da552_DESLLI0400006872 + + + LandCoverUnit_6de686115ec4ea31f72366613d98352baddbd33334825c9ee4bf9c268b3da552_DESLLI0400006872 + https://registry.gdi-de.org/id/de.sl.inspire.lc.ivs.lpis_sl/ + + + + + + + + + 49.313150 6.758994 49.313079 6.759010 49.312703 6.759298 49.312211 6.759692 49.311887 6.759921 49.311887 6.759921 49.311887 6.759921 49.311887 6.759921 49.311887 6.759921 49.311924 6.760012 49.311927 6.760018 49.311929 6.760024 49.312017 6.760242 49.312049 6.760323 49.312049 6.760323 49.312049 6.760323 49.312049 6.760323 49.313468 6.759252 49.313468 6.759252 49.313468 6.759252 49.313468 6.759252 49.313468 6.759252 49.313468 6.759252 49.313397 6.759231 49.313150 6.758994 49.313150 6.758994 49.313150 6.758994 + + + + + + + + + + + + + + + + + Size in ha: 0.55969, flik: DESLLI0900138470 + https://registry.gdi-de.org/id/de.sl.inspire.lc.ivs.lpis_sl/LandCoverUnit_68cf6a5ea6b113fcdaedfb12fad5c69cc853432cd0d166df177dd43b9fcf445e_DESLLI0900138470 + + + LandCoverUnit_68cf6a5ea6b113fcdaedfb12fad5c69cc853432cd0d166df177dd43b9fcf445e_DESLLI0900138470 + https://registry.gdi-de.org/id/de.sl.inspire.lc.ivs.lpis_sl/ + + + + + + + + + 49.529493 7.266375 49.529476 7.266393 49.529463 7.266408 49.529460 7.266411 49.529459 7.266412 49.529456 7.266415 49.529382 7.266495 49.529381 7.266495 49.529375 7.266492 49.529374 7.266492 49.529374 7.266492 49.529247 7.266635 49.529238 7.266655 49.529238 7.266676 49.529238 7.266678 49.529223 7.266702 49.529220 7.266712 49.529226 7.266778 49.530004 7.268192 49.530044 7.268151 49.530184 7.268018 49.530264 7.267907 49.530250 7.267879 49.529696 7.266725 49.529694 7.266721 49.529693 7.266719 49.529692 7.266718 49.529691 7.266717 49.529508 7.266383 49.529493 7.266375 + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/tests/test_convert.py b/tests/test_convert.py index de9f2d8c..996b2e3a 100644 --- a/tests/test_convert.py +++ b/tests/test_convert.py @@ -53,6 +53,7 @@ "it_1", "lt_kzs", "de_by_block", + "de_sl_block", "de_he", ] test_path = "tests/data-files/convert" @@ -77,6 +78,7 @@ def _input_files(converter, *names): "jecam": _input_files("jecam", "BD_JECAM_CIRAD_2023_feb.shp"), "lt_kzs": _input_files("lt_kzs", "lt_kzs.json"), "de_by_block": _input_files("de_by_block", "de_by_block.gml"), + "de_sl_block": _input_files("de_sl_block", "de_sl_block.gml"), }