Skip to content

Commit 33e3ea8

Browse files
committed
Update examples and commands
1 parent 2770491 commit 33e3ea8

6 files changed

Lines changed: 16 additions & 29 deletions

File tree

.github/workflows/test.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,12 @@ jobs:
88
steps:
99
- uses: actions/setup-python@v5
1010
with:
11-
python-version: '>=3.9'
11+
python-version: '>=3.10'
1212
- uses: actions/checkout@v4
1313
- name: Install pipenv
1414
run: |
1515
pip install pipenv
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

CONTRIBUTING.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,5 @@ Finally, you can run the tests as follows:
1717

1818
- To check the markdown run: `pipenv run test-docs`
1919
- To check the Vecorel schema run: `pipenv run test-schema`
20-
- To check the examples run:
21-
- `pipenv run test-geojson` for GeoJSON
22-
- `pipenv run test-geoparquet` for GeoParquet
20+
- To check the examples run: `pipenv run test-examples`
2321
- To create a GeoParquet from the GeoJSON examples: `pipenv run create-geoparquet`

Pipfile

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,11 @@ verify_ssl = true
44
name = "pypi"
55

66
[packages]
7-
vecorel-cli = ">=0.3"
7+
vecorel-cli = ">=0.1"
88
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 -s https://vecorel.github.io/extension-template/v0.1.0/schema.yaml,schema/schema.yaml -n -1"
14+
create-geoparquet = "vec create-geoparquet examples/geojson -o examples/geoparquet/example.parquet -s https://vecorel.github.io/extension-template/v0.1.0/schema.yaml,schema/schema.yaml"

README.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,6 @@ This is the place to add a short introduction.
1919

2020
## Properties
2121

22-
The properties in the table below can be used in these parts of Vecorel documents:
23-
24-
- [ ] Collection
25-
- [x] Feature Properties
26-
2722
| Property Name | Type | Description |
2823
| --------------- | ------ | ----------- |
2924
| template:field1 | string | **REQUIRED**. Describe the required field... |

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/extension-template/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
}
898 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)