Giter Club home page Giter Club logo

rmkmapper's Introduction

rmkmapper

Rationale

The Estonian State Forest Management Centre maintains many recreational sites (or points of interest in rmkmapper's terms). There are two issues:

  • Despite much fanfare about launching an open data initiative years ago, this has fizzled in Estonia and as such, most public sector organizations including the SFMC has not provided machine-readable data of their activities
  • The official site has no overview map of all the various types of sites

rmkmapper solves these issues by:

  • providing a command-line tool to crawl SFMC's web site and compile a machine-readable (GeoJSON) dump of all the POIs
  • providing a simple web application displaying a zoomable, filterable, interactive map of all the POIs

An occasionally updated demo is available.

In addition, this project allows converting GPS tracks to GeoJSON from various formats (using GPSBabel for the heavy lifting) and provides a Perl module for conversion between the L-EST 97 and WSG84 (latitude / longitude) coordinate systems.

Command-line tool

The CLI tool requires a reasonably recent version of Perl 5, HTML::TreeBuilder, JSON::XS, LWP::Simple.

Usage:

rmkmapper.pl [-p | -t url] [-o dir] [...]

Print a JSON string representing all RMK objects.

--ofile-dir, -d   - Directory containing pre-downloaded RMK object HTML files.
                    Skip crawling for object files on the web. Note that this
                    mode is more tolerant to errors, merely warning if a file
                    cannot be parsed into an object. Use a command similar to
                    the following to generate a local cache of object files in
                    cwd:

                    wget -O - http://eid.ee/3te | 
                    wget -rLEnH -A '*.html' -l0 -Fi - -B http://loodusegakoos.ee
--pois, -p        - Generate a GeoJSON index of points of interest (default)
--tracks, -t      - Generate a GeoJSON index of tracks based on the passed GPS
                    file or URL (requires gpsbabel on $PATH). Can be passed
                    several times for a combined dump.
--tracks-type, -T - The type of the tracks file, passed to gpsbabel via -i
--max-num, -n     - Maximum number of POIs to parse, for debugging
--ugly, -u        - Print compact JSON with minimal whitespace

rmkmapper's People

Contributors

tambeta avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

rmkmapper's Issues

English version

Hi! If I understand correctly, this code relies heavily on the Estonian language version of the site, since all the parsing stuff is hardcoded in estonian. Any plans for a universal parser, with option to select english? Now it seems I have to translate a lot of the variables like laiuskraad to longitude, but there is a lot I don't understand, like Vaatamisväärsused :) I don't speak estonian.

Should I try manually, or there is an english upgrade planned?

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.