Code Monkey home page Code Monkey logo

geocorrect's Introduction

GeoCorrect

Correction of maps(location data) using on VGI data

DOI

https://zenodo.org/record/3384219

Demo is live at https://geocorrect.herokuapp.com/ have a look

Instructions

  • clone this repo.
  • Install editorconfig plugin
  • Must Follow PEP-8 style guide, autopep8 can be handy
  • Commit messages should be meaningful
  • Work on feature branch, don't push on master. make a PR from feature branch to master

Components

folder structure

  • algo : folder for algorithm
  • clean: folder for our dataset(clean data + dirty data + data cleaning scripts)
  • docs : documentation
  • web: flask based web application to visualize data

Screenshots

geocorrect's People

Contributors

electron0zero avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

mkmagaya

geocorrect's Issues

Web: 500 on all the 404 Urls

Problem
So when you visit any URL like http://localhost:5000/fawfawf

The function show_map
Assumes it as venue_id and tries to fetch data but SQLite database returns nothing Hence resulting in 500 due to UnboundLocalError in get_map_obj function because fetch_data
does not have any checks(error return code) when the data is not in SQLite database

Solution
Take care of No Data condition and return error codes or trigger 404

Traceback

Traceback (most recent call last):
  File "C:\Anaconda3\lib\site-packages\flask\app.py", line 1994, in __call__
    return self.wsgi_app(environ, start_response)
  File "C:\Anaconda3\lib\site-packages\flask\app.py", line 1985, in wsgi_app
    response = self.handle_exception(e)
  File "C:\Anaconda3\lib\site-packages\flask\app.py", line 1540, in handle_exception
    reraise(exc_type, exc_value, tb)
  File "C:\Anaconda3\lib\site-packages\flask\_compat.py", line 33, in reraise
    raise value
  File "C:\Anaconda3\lib\site-packages\flask\app.py", line 1982, in wsgi_app
    response = self.full_dispatch_request()
  File "C:\Anaconda3\lib\site-packages\flask\app.py", line 1614, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "C:\Anaconda3\lib\site-packages\flask\app.py", line 1517, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "C:\Anaconda3\lib\site-packages\flask\_compat.py", line 33, in reraise
    raise value
  File "C:\Anaconda3\lib\site-packages\flask\app.py", line 1612, in full_dispatch_request
    rv = self.dispatch_request()
  File "C:\Anaconda3\lib\site-packages\flask\app.py", line 1598, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "C:\Users\Electron\Desktop\wd\RandD\GeoCorrect\web\main.py", line 62, in show_map
    map_data = get_map_obj(venue_id)
  File "C:\Users\Electron\Desktop\wd\RandD\GeoCorrect\web\main.py", line 130, in get_map_obj
    path_list.append((old_lat, old_lng))
UnboundLocalError: local variable 'old_lng' referenced before assignment

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.