Git Product home page Git Product logo

geotrellis-usbuildings's Introduction

GeoTrellis Polygonal Summary Demo

This project demonstrates generating polygonal summary for a feature data set over high resolution raster.

Inputs

Features used are building footprints from: https://github.com/Microsoft/USBuildingFootprints

This dataset contains 125,192,184 computer generated building footprints in all 50 US states.

These features are read directly from zipped GeoJSON files.

The rasters used are 1/3 arc-second NED GeoTiffs hosted at: s3://azavea-datahub/raw/ned-13arcsec-geotiff/ The files are gridded and named by their northing and easting degree (ex: imgn36w092_13.tif).

The rasters are sampled directly from that location.

Output

Output is a vector tile layer that includes the min and max elevation under each geometry.

Inventory

build.sbt: Scala Build Tool build configuration file .sbtopts: Command line options for SBT, including JVM parameters project: Additional configuration for SBT project, plugins, utility, versions src/main/scala: Application and utility code

Spark Job Commands

Local

sbt:geotrellis-usbuildings> test:runMain usbuildings.Main --buildings https://usbuildingdata.blob.core.windows.net/usbuildings-v1-1/RhodeIsland.zip --output file:/tmp/usbuildings-ri-v01

EMR

At minimum, you'll need to change the following sbt lighter configuration variables in build.sbt to resources within your AWS account before starting the EMR cluster:

  • sparkS3JarFolder: Must be an S3 path within the AWS account that the cluster can read/write to
  • sparkS3LogUri: Must be an S3 path within the AWS account that the cluster can read/write to
  • sparkJobFlowInstancesConfig: Must point to the EC2 key name you have access to

Be sure to reload in sbt after making changes to build.sbt.

When running the commands below, be sure you replace the S3 url for the --output parameter to point to a valid S3 path that the EMR cluster has permissions to write to.

sbt:geotrellis-usbuildings> sparkSubmit --all-buildings --buildings foo --output s3://bucket/path/prefix

geotrellis-usbuildings's People

Contributors

cloudniner avatar echeipesh avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

geotrellis-usbuildings's Issues

Foreground 3D extrusions missing in output tiles

Issue is the same as experienced in mapbox/mapbox-gl-js#7767:

Screen Shot 2019-04-23 at 2 00 07 PM

We aren't generating tiles with PostGIS so we're likely experiencing a similar issue somewhere in the JTS + GeoTrellis + GenerateVT. The linked issue notes that:

Uncaught Error: Vector Tile has POLYGON with first ring clockwise. It is not valid according to v2 of VT spec.

Might be a good first place to look, and ensure that our tiles are exporting geometries that are correctly wound clockwise.

We'd require further testing to determine if this issue is present in the new VectorPipe RC2+ releases.

Simplification / aggregation strategy

To complete the visualizations, we need an aggregation strategy that can handle lower zoom levels.

This demo:

https://demos.azavea.com/building-footprint-elevations/

goes to zoom level 12 I believe.

Tippecannoe may provide guidance:
https://github.com/mapbox/tippecanoe

ArcGIS does it maybe to zoom level 8...
https://www.arcgis.com/home/webmap/viewer.html?useExisting=1&layers=f40326b0dea54330ae39584012807126

But it'd be nice to go even further.

Some additional context provided in comments from: geotrellis/vectorpipe#73

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.