Crates.io | vms2-tile-db-reader |
lib.rs | vms2-tile-db-reader |
version | 0.1.5 |
source | src |
created_at | 2024-10-16 19:05:10.273205 |
updated_at | 2024-10-28 20:48:02.789327 |
description | A class for reading tile data from a database. |
homepage | https://github.com/ringostarr80/rust-vms2-tile-db-reader |
repository | https://github.com/ringostarr80/rust-vms2-tile-db-reader |
max_upload_size | |
id | 1412212 |
size | 53,354 |
This is the rust version of the repository from https://github.com/locr-company/php-vms2-tile-db-reader
cd /path/to/your/rust/project
cargo add vms2-tile-db-reader
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.