-
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
25 changed files
with
1,779 additions
and
105 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
name: Scala CI | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up JDK 1.8 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 1.8 | ||
- name: Run tests | ||
run: sbt +test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
project.git = true | ||
maxColumn = 120 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# Spark examples | ||
|
||
``` | ||
osm4scala-spark-utilities Example of utilities processing OSM Pbf files, using Spark and osm4scala | ||
Usage: osm4scala-spark-utilities [counter|tag_keys] [options] | ||
--help prints this usage text | ||
-i, --input <file/files> | ||
Input is a required pbf2 format set of files. | ||
-o, --output <path> Output is a required path to store the result. | ||
-f, --outputFormat [csv, orc, parquet, etc.] | ||
Format that spark will used to store the result. | ||
-c, --coalesce <coalesce> | ||
Number of files that will generate. By default, is not going to join files. | ||
Command: counter [options] | ||
Primitives counter. | ||
-t, --type <type> Primitive type [Node, Way, Relation] used to filter. | ||
Command: tag_keys [options] | ||
Tags extraction. | ||
-t, --type <type> Primitive type [Node, Way, Relation] used to filter. | ||
``` | ||
|
||
## Examples: | ||
|
||
```shell script | ||
bin/spark-submit \ | ||
--packages 'com.github.scopt:scopt_2.12:3.7.1,com.acervera.osm4scala:osm4scala-spark-shaded_2.12:1.0.5' \ | ||
--class com.acervera.osm4scala.examples.spark.Driver \ | ||
"osm4scala-examples-spark-utilities_2.12-1.0.5-SNAPSHOT.jar" \ | ||
counter \ | ||
-i <pbf files path> \ | ||
-o <output> \ | ||
-c 1 \ | ||
-f csv | ||
|
||
bin/spark-submit \ | ||
--packages 'com.github.scopt:scopt_2.12:3.7.1,com.acervera.osm4scala:osm4scala-spark-shaded_2.12:1.0.5' \ | ||
--class com.acervera.osm4scala.examples.spark.Driver \ | ||
"osm4scala-examples-spark-utilities_2.12-1.0.5-SNAPSHOT.jar" \ | ||
tag_keys \ | ||
-i <pbf files path> \ | ||
-o <output> \ | ||
-c 1 \ | ||
-f csv | ||
``` |
Oops, something went wrong.