Giter Club home page Giter Club logo

changewithin's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

changewithin's Issues

Python style questions

I’m curious about a couple Python stylistic decisions I’ve encountered.

The sets module has been deprecated since Python 2.6 in favor of native set() support. Is sets in use here because you need to support an older version of Python?

point_in_poly appears to implement a native algorithm instead of relying GEOS, OGR, or Shapely. Are those libraries unavailable where this code is being run?

error

python changewithin.py
Traceback (most recent call last):
File "changewithin.py", line 49, in
aoi_href = config.get('area', 'geojson')
File "/usr/lib/python2.7/ConfigParser.py", line 607, in get
raise NoSectionError(section)
ConfigParser.NoSectionError: No section: 'area'

More accurate thumbnail

Thumbnails don't quite reflect the are in which there were changes.

  • At least use changeset bounding box
  • Preferably use bounding box of all contained building+address changes

screen shot 2013-08-07 at 12 41 16 pm
screen shot 2013-08-07 at 12 41 25 pm

Safety guard for very large volume of changes

We'll need to build in some safety guard for very voluminous changes. Should be incredibly cheap in the first iteration. Like just saying after X changes "There are (TOTAL - X) more changes not captured in this notification"

Add thumbnails

  1. Find 'centroid' of nodes in a way by just averaging them
  2. Generate a MapBox REST API url for a static map
  3. Embed that image in the email.

Support buildings that are not ways

Right now the approach this takes is:

  • Get all changes
  • Find all nodes within the polygon
  • Find the ways that have those nodes, filter out non-buildings

Some buildings are POIs, and we should support them too.

Skip label when no changes

Say "changed addresses: none" or betterwhen there is no result. Same for buildings.

Better: skip the label 'changed addresses:' or 'changed buildings:' if there is no changed address or building.

screen shot 2013-08-07 at 12 38 08 pm

Only report significant geometry changes

Right now changewithin flags any change to a building way. So if you add for instance a node on a straight way in a manner that does not change the actual shape of the way changewithin would still flag the change.

This leads to a lot of false positives for instance where user robgeb adds 3d details to buildings that actually don't have an impact on the building outline.

Show changeset comments

  • Show changeset comment together with building changes
  • This means we'll want to group changes by changesets (otherwise we'll wind up printing the same comment over and over again).

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.