| Crates.io | vms2-tile-db-reader |
| lib.rs | vms2-tile-db-reader |
| version | 0.1.6 |
| created_at | 2024-10-16 19:05:10.273205+00 |
| updated_at | 2025-04-04 16:16:26.749623+00 |
| 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 | 57,068 |
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.