Git Product home page Git Product logo

blaeu's Introduction

Hi there, I'm Justin! ๐Ÿ‘‹

justinsinghm justinsinghm 6891484 SFaDjgoAAAAJ

  • I'm a graduate student at Georgia Tech studying Computer Science.
  • I'm a software engineer at Lynker supporting the NOAA Office of Water Prediction.
  • My research interests vary, but currently they include: computational geometry, geographic information systems, high-performance computing
  • I'm currently working on the following projects:
    • dynio, a library supporting dynamically loaded I/O drivers.
    • sii, a modular C89-compliant interface for unified geospatial modeling and operations.
    • Focal Curve Encoding, research in encoding/compressing vector geometry using space-filling curves.

blaeu's People

Contributors

program-- avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

blaeu's Issues

Using IndexedDB to store vector tiles

IndexedDB API

Is there potential to use this? Would be much better I think that existing solutions (i.e. like Leaflet outputting GeoJSON directly to HTML).

sf data can be converted to in-memory vector tiles, saved to the IndexedDB with the key being the MaplibreGL source ID, and a custom protocol for maplibregl could be used to access the data. It looks like there's an upper limit of 2GB per domain, or 50% of the user's free disk space globally.

A Web Worker could be used to convert the sf data to Vector tiles so that it is non-blocking -- or maybe this should be done in R and passed to JS, not sure which is faster.

Vector Tile Embedding Duplicate

Currently the vector tiles embedding implementation creates a <img> element in the HTML file, but the raw GeoJSON data is stilled stored in the HTMLWidgets JSON tag.

One way to alleviate this is to encode and compress the GeoJSON before transit to JS. This would require adding some dependencies (like a msgpack encoder, or another binary encoding library, i.e. CBOR), as well as C++ requirements (to keep it fast enough for large spatial data). This would also reduce the HTML file size, since there isn't duplicate data embedded.

Another option it to forgo embedding, and only work with the GeoJSON -- however, this is not optimal ๐Ÿ˜ฌ.

The best outcome would be to remove the data from the JSON tag, but I'm not currently familiar with how this would be done...

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.