File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change 1
1
## Usage
2
2
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
4
11
5
- ```
6
12
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"
9
15
```
You can’t perform that action at this time.
0 commit comments