Skip to content

Commit 18dec31

Browse files
committed
update readme
1 parent 64ca26c commit 18dec31

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

pipeline/README.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11
## Usage
22

3-
Generate the past 10 minutes of OSM data starting at a sequence number (5652386 in this example)
3+
Generate an hour of OSM data starting at 2024-05-18 02:00 UTC:
4+
5+
Note:
6+
- The date and hour is UTC
7+
- The hour needs to be in the format `HH` (e.g. `02` for 2am)
8+
- The output will be in the `data` directory in the current working directory under a subdirectory named after the date and hour
9+
10+
```sh
411

5-
```
612
docker build -t osm-gradient .
7-
docker run -t osm-gradient 5652386 10
8-
docker run -it -v ./data:/tmp ghcr.io/osgeo/gdal:alpine-small-latest sh ogr2ogr -f "FlatGeobuf" /tmp/test.fgb /tmp/2023-09-01T01_00.geojsonld -skipfailures
13+
docker run -it -v ./data:/tmp osm-gradient sh -c "./cli.js process-hour 2024-05-18 02"
14+
docker run -it -v ./data:/tmp osm-gradient sh -c "ogr2ogr -f FlatGeobuf /tmp/2024-05-18T02/2024-05-18T02:00.fgb /tmp/2024-05-18T02/2024-05-18T02:00.geojson -skipfailures"
915
```

0 commit comments

Comments
 (0)