Skip to content

Commit d44bfc7

Browse files
committed
Remove perimeter schema from converters (is part of fiboa 0.2.0)
1 parent 62deaab commit d44bfc7

File tree

4 files changed

+9
-18
lines changed

4 files changed

+9
-18
lines changed

fiboa_cli/datasets/de_bb.py

+1-6
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
# Don't include SHAPE_AREA
2626
}
2727
MISSING_SCHEMAS = {
28-
'required': ['flik', 'perimeter'],
28+
'required': ['flik'],
2929
'properties': {
3030
'flik': {
3131
'type': 'string'
@@ -48,11 +48,6 @@
4848
},
4949
'tk10_blatt': {
5050
'type': 'string'
51-
},
52-
# todo: remove once we have spec v0.1.1
53-
'perimeter': {
54-
'type': 'float',
55-
'exclusiveMinimum': 0
5651
}
5752
}
5853
}

fiboa_cli/datasets/de_nds.py

+1-6
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
# Don't include SHAPE_Area
2222
}
2323
MISSING_SCHEMAS = {
24-
'required': ['flik', 'perimeter'],
24+
'required': ['flik'],
2525
'properties': {
2626
'flik': {
2727
'type': 'string'
@@ -34,11 +34,6 @@
3434
},
3535
'bnk_txt': {
3636
'type': 'string'
37-
},
38-
# todo: remove once we have spec v0.1.1
39-
'perimeter': {
40-
'type': 'float',
41-
'exclusiveMinimum': 0
4237
}
4338
}
4439
}

fiboa_cli/datasets/de_sh.py

+1-6
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,13 @@
1818
'SHAPE_LEN': "perimeter"
1919
}
2020
MISSING_SCHEMAS = {
21-
'required': ['flik', 'perimeter'],
21+
'required': ['flik'],
2222
'properties': {
2323
'flik': {
2424
'type': 'string'
2525
},
2626
'hbn': {
2727
'type': 'string'
28-
},
29-
# todo: remove once we have spec v0.1.1
30-
'perimeter': {
31-
'type': 'float',
32-
'exclusiveMinimum': 0
3328
}
3429
}
3530
}

fiboa_cli/datasets/template.py

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# TEMPLATE FOR A FIBOA CONVERTER
2+
#
3+
# Copy this file and rename it to something sensible.
4+
# The name of the file will be the name of the converter in the cli.
5+
# If you name it 'abc' you'll be able to run `fiboa convert abc` in the cli.
6+
17
from ..convert_utils import convert as convert_
28

39
# File to read the data from

0 commit comments

Comments
 (0)