Code Monkey home page Code Monkey logo

rgis's Introduction

rgis

Geospatial data viewer written in Rust. Availble on the web (rgis.app) or natively on desktop.

Screenshot 2023-01-02 at 12 32 18 PM

License

rgis is released under The Anti-Capitalist Software License (version 1.4).

Install

cargo install --git https://github.com/frewsxcv/rgis

Usage

Run rgis:

rgis

Print help information:

rgis --help

rgis's People

Contributors

dtolnay avatar frewsxcv avatar michaelkirk avatar skazemi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

rgis's Issues

Project lat/lng correctly

The current approach is incorrect and renders the geometry incorrectly.

The correct approach might look like this:

  1. Take the lat/lng (2-space), convert it ECEF (3-space)
  2. Take the ECEF coordinates and use a projection transformation into 2-space

`cargo install rgis` does not include font

thread 'IO Task Pool (0)' panicked at 'called `Result::unwrap()` on an `Err` value: PathLoaderError(NotFound("/Users/coreyf/.cargo/bin/assets/fonts/RobotoMono-VariableFont_wght.ttf"))', /Users/coreyf/.cargo/git/checkouts/bevy-f7ffde730c324c74/51650f1/crates/bevy_asset/src/asset_server.rs:294:60

generate vector tiles from layers to speed up rendering

Cannot find proj.db

Hi! I successfully built this on Ubuntu, but running crashes:

2022-01-29T15:52:56.470241Z  INFO winit::platform_impl::platform::x11::window: Guessed window scale factor: 1    
MESA-INTEL: warning: Performance support disabled, consider sysctl dev.i915.perf_stream_paranoid=0

2022-01-29T15:52:56.535337Z  INFO bevy_render::renderer: AdapterInfo { name: "Quadro T2000", vendor: 4318, device: 8120, device_type: DiscreteGpu, backend: Vulkan }
2022-01-29T15:52:56.651153Z  INFO time_logger: Opening file: "ltn_downtown_brooklyn.geojson": started
2022-01-29T15:52:56.651171Z  INFO time_logger: Opening file: "ltn_downtown_brooklyn.geojson": done (7.289µs)
2022-01-29T15:52:56.651177Z  INFO time_logger: Parsing file: "ltn_downtown_brooklyn.geojson": started
proj_create: Cannot find proj.db
proj_create: no database context specified
thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', /home/dabreegster/.cargo/git/checkouts/rgis-d37e887aa872006b/24f69cd/geo-srs/src/lib.rs:14:80
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
2022-01-29T15:52:56.683539Z  INFO time_logger: Parsing file: "ltn_downtown_brooklyn.geojson": done (32.355321ms)
2022-01-29T15:52:56.683553Z  INFO time_logger: Converting to geo-types: "ltn_downtown_brooklyn.geojson": started
2022-01-29T15:52:56.684572Z  INFO time_logger: Converting to geo-types: "ltn_downtown_brooklyn.geojson": done (1.016532ms)
2022-01-29T15:52:56.684577Z  INFO time_logger: Adding new layer: "ltn_downtown_brooklyn.geojson": started
2022-01-29T15:52:56.684688Z  INFO time_logger: Reprojecting: started
proj_create: Cannot find proj.db
proj_create: no database context specified
thread 'Compute Task Pool (6)' panicked at 'called `Option::unwrap()` on a `None` value', /home/dabreegster/.cargo/git/checkouts/rgis-d37e887aa872006b/24f69cd/geo-srs/src/lib.rs:67:80

I'm not sure where it's looking for proj.db, but I have /usr/share/proj/proj.db. I thought the Rust proj crate statically links everything. I tried running with strace to see where it's looking for this file, but I didn't see any system calls mentioning it. Let me know if I can help debug further!

unable to see provided example data in rgis

I've been so far unable to see any data in rgis.

e.g. when I run cargo run -- sample-data/us-states.json

rgis launches, but there is no visible layer - neither in the main canvas nor in the left panel behind the expanded layers disclosure.

Screen Shot 2022-02-15 at 9 45 46 AM

I'm expecting to see the us-states rendered in the canvas and listed within the "layers" section in the left panel.

Am I missing a step?


Build: 5dfab4b
OS: macos 12.1
arch: aarch64

Decide ui framework

Currently leaning towards gtk-rs. trying to figure out how to render piston-2dgraphics with it though

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.