Skip to content

Commit e9aaa67

Browse files
committed
Update examples and commands
1 parent 2770491 commit e9aaa67

4 files changed

Lines changed: 13 additions & 19 deletions

File tree

.github/workflows/test.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,4 @@ jobs:
1616
pipenv install
1717
- run: pipenv run test-docs
1818
- run: pipenv run test-schema
19-
- run: pipenv run test-geojson
20-
- run: pipenv run test-geoparquet
19+
- run: pipenv run test-examples

Pipfile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ pymarkdownlnt = ">=0.9"
99

1010
[scripts]
1111
test-docs = "pymarkdown -d md024,md013 scan ."
12-
test-schema = "vecorel validate-schema schema/schema.yaml"
13-
test-geojson = "vecorel validate examples/geojson -e https://vecorel.github.io/extension-template/v0.1.0/schema.yaml,schema/schema.yaml --data"
14-
test-geoparquet = "vecorel validate examples/geoparquet -e https://vecorel.github.io/extension-template/v0.1.0/schema.yaml,schema/schema.yaml --data"
15-
create-geoparquet = "vecorel create-geoparquet examples/geojson -o examples/geoparquet/example.parquet -c examples/geojson/collection.json -e https://vecorel.github.io/extension-template/v0.1.0/schema.yaml,schema/schema.yaml"
12+
test-schema = "vec validate-schema schema/schema.yaml"
13+
test-examples = "vec validate examples/geojson examples/geoparquet -e https://vecorel.github.io/extension-template/v0.1.0/schema.yaml,schema/schema.yaml --data"
14+
create-geoparquet = "vec create-geoparquet examples/geojson -o examples/geoparquet/example.parquet -e https://vecorel.github.io/extension-template/v0.1.0/schema.yaml,schema/schema.yaml"

examples/geojson/example.json

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
{
2-
"schemas": [
3-
"https://vecorel.github.io/specification/v0.1.0/schema.yaml",
4-
"https://vecorel.github.io/template-extension/v0.1.0/schema.yaml"
5-
],
2+
"schemas": {
3+
"example": [
4+
"https://vecorel.github.io/specification/v0.1.0/schema.yaml",
5+
"https://vecorel.github.io/template-extension/v0.1.0/schema.yaml"
6+
]
7+
},
68
"type": "Feature",
7-
"id": "example",
9+
"id": "example123",
810
"bbox": [
911
172.91173669923782,
1012
1.3438851951615003,
@@ -39,14 +41,8 @@
3941
]
4042
},
4143
"properties": {
44+
"collection": "example",
4245
"template:field1": 1,
4346
"template:field2": "abc"
44-
},
45-
"links": [
46-
{
47-
"rel": "collection",
48-
"href": "collection.json",
49-
"type": "application/json"
50-
}
51-
]
47+
}
5248
}
1.85 KB
Binary file not shown.

0 commit comments

Comments
 (0)