From 792e840d4a41936c2ca23fae5f6c1432d25ef480 Mon Sep 17 00:00:00 2001 From: pszufe Date: Fri, 13 Oct 2023 18:03:50 +0200 Subject: [PATCH] provide bounds for compat --- Project.toml | 10 +++++++++- README.md | 11 ++++------- docs/src/index.md | 2 +- src/OSMToolset.jl | 12 +++++++----- 4 files changed, 21 insertions(+), 14 deletions(-) diff --git a/Project.toml b/Project.toml index 748be20..cf14aeb 100644 --- a/Project.toml +++ b/Project.toml @@ -16,7 +16,15 @@ StatsBase = "2913bbd2-ae8a-5f71-8c99-4fb6c76f3a91" [compat] julia = "1.6" - +CSV = "0.10" +DataFrames = "1.1, 1.2, 1.3, 1.4, 1.5, 1.6" +EzXML = "1.0, 1.1" +NamedTupleTools="0.14" +OpenStreetMapX="0.2, 0.3" +Parameters="0.10, 0.11, 0.12" +Parsers="2" +SpatialIndexing="0.1.5" +StatsBase = "0.28, 0.29, 0.30, 0.31, 0.32, 0.33, 0.34" [extras] Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" diff --git a/README.md b/README.md index 284c95b..b8f2836 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,11 @@ -# Tools for Open Steet Map (OSM) Point-of-Interest (POI) extraction and tiling/slicing of map files. +# Tools for Open Steet Map: Point-of-Interest extraction and tiling of map data [![Dev](https://img.shields.io/badge/docs-dev-blue.svg)](https://pszufe.github.io/OSMToolset.jl/) -The goal of the package is to provide a fast and convenient interaface for extraction data from OpenStreetMap project and for construction of walkability indexes based on map data. +The maps provided by the OpenStreetMap project contain very detailed information about schools, businesses, shops, restaurants, cafes, parking spaces, hospitals etc. The goal of this tools is to provide an effient API for extraction of data on such points of interest (POIs) for further processing. This information can be further used e.g. to build walkability indexes that can be used to explain attractiveness of some parts of a city. Hence the second functionality of the package is to provide an interface (based on the `SpatialInexing.jl` package) for efficient building of attractiveness indexes of any urban area. +Since the OSM map XML files are usully very large, sometimes it is required to tile the files into smailler chunks for efficient parallel processing. Hence, the third functionality of this package is an OSM file tiler. The package offers the following functionalities: 1. Export points-of-interests (POIs) from a OSM xml map file to a `DataFrame` @@ -134,7 +135,7 @@ The OSM tiler is simultanously opening a file writer for each file. The operatin ## Aknowledgments -This research was funded in whole or in part by [National Science Centre, Poland][2021/41/B/HS4/03349]. +This research was funded by National Science Centre, Poland, grant number 2021/41/B/HS4/03349. This tool is using some code from the previous work of Marcin Żurek, under the same research grant. The initial prototype can be found at: https://github.com/mkloe/OSMgetPOI.jl @@ -142,8 +143,4 @@ https://github.com/mkloe/OSMgetPOI.jl \ No newline at end of file diff --git a/docs/src/index.md b/docs/src/index.md index a4ae5cd..535aff3 100644 --- a/docs/src/index.md +++ b/docs/src/index.md @@ -13,5 +13,5 @@ There is also a [Visualization](visualize.md) example. ## Aknowledgments -This research was funded in whole or in part by [National Science Centre, Poland][2021/41/B/HS4/03349]. +This research was funded by National Science Centre, Poland grant number 2021/41/B/HS4/03349. diff --git a/src/OSMToolset.jl b/src/OSMToolset.jl index d8a7144..c1abe96 100644 --- a/src/OSMToolset.jl +++ b/src/OSMToolset.jl @@ -1,19 +1,21 @@ module OSMToolset -using CSV, DataFrames +using CSV +using DataFrames using SpatialIndexing using StatsBase using NamedTupleTools -using Parsers, EzXML, Parameters +using Parsers +using EzXML +using Parameters import OpenStreetMapX -import OpenStreetMapX: OSMData, LLA, ENU, distance +import OpenStreetMapX: LLA, ENU, distance include("common.jl") -include("tile.jl") include("poi.jl") include("attractiveness.jl") - +include("tile.jl") export tile_osm_file export FloatLon