All Projects β†’ bluenoah1991 β†’ Vector-Tile-Spark-Process

bluenoah1991 / Vector-Tile-Spark-Process

Licence: MIT license
🌏 Clip geographic data into MVT files based on Apache Spark

Programming Languages

scala
5932 projects
shell
77523 projects

Projects that are alternatives of or similar to Vector-Tile-Spark-Process

earthwyrm
Vector tile map server for openstreetmap data
Stars: ✭ 16 (+0%)
Mutual labels:  osm, mvt
gpxstudio.github.io
The online GPX file editor
Stars: ✭ 233 (+1356.25%)
Mutual labels:  osm, mapbox
Delphi OSMMap
Visual control for Delphi and Lazarus to display OSM map
Stars: ✭ 27 (+68.75%)
Mutual labels:  osm, mapbox
Leaflet Geoman
πŸ‚πŸ—ΊοΈ The most powerful leaflet plugin for drawing and editing geometry layers
Stars: ✭ 1,088 (+6700%)
Mutual labels:  osm, mapbox
fishfrymap
Fish Fry Map project repository
Stars: ✭ 14 (-12.5%)
Mutual labels:  osm, mapbox
Osmbuildings
3d building geometry viewer based on OpenStreetMap data
Stars: ✭ 652 (+3975%)
Mutual labels:  geometry, osm
Tilemill
TileMill is a modern map design studio
Stars: ✭ 2,952 (+18350%)
Mutual labels:  osm, mapbox
ciclomapa
Beautiful, interactive & open bike maps of Brazilian cities. Powered by OpenStreetMap.
Stars: ✭ 56 (+250%)
Mutual labels:  osm, mapbox
lascallesdelasmujeres
Proyecto colaborativo para fomentar la generaciΓ³n de contenidos en OSM y Wikipedia, sobre mujeres.
Stars: ✭ 45 (+181.25%)
Mutual labels:  osm, mapbox
citylines
Citylines.co is a collaborative platform for mapping the transit systems of the world!
Stars: ✭ 53 (+231.25%)
Mutual labels:  mapbox
three-strip
Generate strip geometry for three.js. Supports taper, twist, dasharray and uvgen.
Stars: ✭ 15 (-6.25%)
Mutual labels:  geometry
school-finder
πŸ‘€ Find schools by location
Stars: ✭ 16 (+0%)
Mutual labels:  mapbox
Grass.DirectX
Realistic Grass Rendering using DirectX 11 and a geometry-shader based approach.
Stars: ✭ 56 (+250%)
Mutual labels:  geometry
pcc geo cnn
Learning Convolutional Transforms for Point Cloud Geometry Compression
Stars: ✭ 44 (+175%)
Mutual labels:  geometry
Microsoft.SqlServer.Types
a .NET Standard implementation of the spatial types in `Microsoft.SqlServer.Types`
Stars: ✭ 64 (+300%)
Mutual labels:  geometry
scikit-robot
A Flexible Framework for Robot Control in Python
Stars: ✭ 70 (+337.5%)
Mutual labels:  geometry
covid-19-sg
Visualising COVID-19/Coronavirus cases and cluster zones in Singapore
Stars: ✭ 15 (-6.25%)
Mutual labels:  mapbox
leaflet-kmz
A KMZ file loader for Leaflet Maps
Stars: ✭ 33 (+106.25%)
Mutual labels:  mapbox
react-mapboxgl
Declarative React components for mapbox-gl-js.
Stars: ✭ 15 (-6.25%)
Mutual labels:  mapbox
NotesReview
πŸ“ Interface for searching and resolving OpenStreetMap notes
Stars: ✭ 34 (+112.5%)
Mutual labels:  osm

Vector Tile Spark Process

The Vector Tile Spark Process allows developers and data scientists clip geographic data into Hadoop SequeueFiles on Spark platform.

The effect comes from Preview Example.
Preview

Features

Dependencies

  • GeoTools - an open source Java library that provides tools for geospatial data
  • mapbox-vector-tile-java - Java Mapbox Vector Tile Library for Encoding/Decoding

Requirements

  • Hadoop 2.7 and later
  • Spark 2.1.1 and above
  • Protocol Buffers 3.0.0-beta-2

Getting Started

Build

$ mvn clean && mvn package

Run

$SPARK_HOME/bin/spark-submit --class org.ieee.codemeow.geometric.spark.VectorTileTask --master yarn --deploy-mode cluster --jars /path/to/postgresql-42.0.0.jar --driver-class-path /path/to/postgresql-42.0.0.jar /path/to/vectortile-spark-process-1.0-SNAPSHOT.jar hdfs:///path/to/vectortile-spark-process.yml

Configuration File

---
# vectortile-spark-process.yml

appName: "Vector Tile Process"
sequenceFileDir: "hdfs:///path/to"
layers:
  - layerName: "layerName"
    minZoom: "0"
    maxZoom: "22"
    dataProvider: "org.ieee.codemeow.geometric.spark.data.SQLDataProvider"
    kwargs:
      url: "jdbc:postgresql://hostname/dbname"
      dbtables:
        planet_osm_line: "public.planet_osm_line"
        planet_osm_point: "public.planet_osm_point"
        planet_osm_polygon: "public.planet_osm_polygon"
        planet_osm_roads: "public.planet_osm_roads"
      user: "postgres"
      password: "postgres"
      zooms:
        0: "SELECT osm_id AS __id__, ST_GeomFromWKB(way) AS __geometry__ FROM ..."
        1: "SELECT osm_id AS __id__, ST_GeomFromWKB(way) AS __geometry__ FROM ..."
		...
        22: "SELECT osm_id AS __id__, ST_GeomFromWKB(way) AS __geometry__ FROM ..."

Resources

Issues

Find a bug or want to request a new feature? Please let us know by submitting an issue.

Tips

  1. Upgrade protobuf package version on your Spark cluster

    cp protobuf-java-3.0.0-beta-2.jar $SPARK_HOME/jars

  2. Use SparkSQL in the zooms section of the configuration file

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].