Skip to content

Instantly share code, notes, and snippets.

View adamkozuch's full-sized avatar

Adam adamkozuch

View GitHub Profile

##Abstract TopoJSON is an extension of GeoJSON that encodes topology. Rather than representing geometries discretely, geometries in TopoJSON files are stitched together from shared line segments called arcs. My proposal is to implement topojson standard in geotrellis which is geographic data processing engine. To do that I will provide an additional set of abstractions in order to represent topojson as a geometry. Furthermore, reading and writing topojson files is needed. Also, I will add conversions from topologies to “normal” geometries. Then add additional operations for instance call object by name. At the and I will document a project and write tests for it. ##Details

  1. First part of my project would demand to implement set of abstractions for representing topoJSON:

    • introduce new Topology object
    • provide an extension of existing types: LineString, MultiLineString, Polygon, MultiPolygon. Thease types would contain additional element called „arcs” which is fundamental part of topojson
  2. Im

@adamkozuch
adamkozuch / gist:2d5d8729fa96b56e4b3e
Last active August 11, 2016 15:01
Description of Slick for Geotrellis

With geotrellis, we can work with PostGIS, extension of a postgreSQL database. PostGIS is a spatial database. It means that we can query and store data represented as objects in geometric space.
This section describes how to create a mapping between PostGIS database and geotrellis application. For that we will use Slick functional relational data mapper for Scala language. Slick do not support PostGIS database by deaful but geotrellis we use PostGisExtensions set of extensions for geometry objects. It extends Slick to followig types Geometry, Point, Linestring, Polygon, Geometrycollection, Multipoint, Multipolygon, Multiline.

First of all, we should import database driver for Slick which in this case is :

import scala.slick.driver.PostgresDriver

That import gives us all features that we need to do the mapping. but whithout extension for PostGIS In order to have support for geometries we ass

@adamkozuch
adamkozuch / Addition of Akka backend for streaming compute.md
Last active August 29, 2015 14:15
GSOC(Addition of Akka backend for streaming compute)

Addition of Akka backend for streaming compute