File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,10 +19,11 @@ def validate(gpkg_path):
1919 # print()
2020
2121 # This is a workaround during devel, until I understand how to tell jsonschema about the DataFrames
22- data = {ln :{} for ln in gpkg .list ()}
23- data ['layer_styles' ]['geometry' ] = list (gpkg ['layer_styles' ]['geometry' ].values )
24- data ['layer_styles' ]['geometry' ] = []
22+ # data = {ln:{} for ln in gpkg.list()}
23+ # data['layer_styles']['geometry'] = list(gpkg['layer_styles']['geometry'].values)
24+ # data['layer_styles']['geometry'] = []
2525 # print(data)
26+ data = gpkg .to_json ()
2627
2728 import jsonschema
2829 res = jsonschema .validate (data , schema )
Original file line number Diff line number Diff line change 99 "type" : " object" ,
1010
1111 "properties" : {
12- "layer_styles" : {
13- "type" : " object" ,
14- "properties" : {
15- "geometry" : {
16- "type" : " array"
17- }
18- },
19- "required" : [
20- " geometry"
21- ],
22- "additionalProperties" : true
23- },
12+
13+ "layer_styles" : { "type" : " object" },
2414 "geologic_units" : { "type" : " object" },
2515 "linear_features" : { "type" : " object" },
2616 "surface_features" : { "type" : " object" },
You can’t perform that action at this time.
0 commit comments