vms2-tile-db-reader

Crates.iovms2-tile-db-reader
lib.rsvms2-tile-db-reader
version0.1.5
sourcesrc
created_at2024-10-16 19:05:10.273205
updated_at2024-10-28 20:48:02.789327
descriptionA class for reading tile data from a database.
homepagehttps://github.com/ringostarr80/rust-vms2-tile-db-reader
repositoryhttps://github.com/ringostarr80/rust-vms2-tile-db-reader
max_upload_size
id1412212
size53,354
Ringo Leese (ringostarr80)

documentation

README

Vms2TileDbReader

license github_workflow_status codecov Quality Gate Status github_tag Crates.io

This is the rust version of the repository from https://github.com/locr-company/php-vms2-tile-db-reader

Installation

cd /path/to/your/rust/project
cargo add vms2-tile-db-reader

Basic Usage

use std::path::Path;

use vms2_tile_db_reader::{
    data_type::DataType,
    sources::Source,
    sources::SQLite
};

let tile_db = SQLite::new(Path::new("germany.sqlite")).unwrap();
let tile_data = tile_db.get_raw_data(
    34686,
    21566,
    16,
    String::from("building"),
    Some(String::from("*")),
    Some(DataType::Polygons)
).unwrap();

// do something with tile_data.
Commit count: 26

cargo fmt