Skip to content

Aggregate OSM submissions with Filter Funcationality (Partial Data Export) #9

Closed

Description

@danbjoseph

for times when data is collected over multiple days but we want to do a rolling upload to OSM. it would be nice to have a way to export (or just get easily, through filtering in JOSM somehow) a subset of the osm file export

for example data collected on Tuesday is downloaded, conflicts resolved and it’s uploaded on Wednesday, more data collection on Thursday, want to get an osm file with only the new data submissions. can use the 'purge' advanced JOSM tool to have it forget selected data but you still have to be able to know which features are new and somehow select everything else.

Activity

  1. hallahan commented on Dec 18, 2015

    @hallahan
    Contributor

    The original approach was to build out an API that queries OSM data in Spatialite in OSMSpatialite. However, we've decided to redirect our approach, and we instead are thinking about a workflow where we use osmosis and osmconvert to process the data. Right now, the thought is we want a preprocessing tool that will do some aggregating and filtering of the responses sent to OpenMapKit Server.

    Take a look at posm/posm#17

    I'm researching how we want to do this and the limitations of different approaches. I'm documenting what I'm learning in that issue.

    One thing I think we've definitely settled on is that all submissions to OpenMapKit Server will be written to the file system where this original data will remain and persist. Aggregation, filterering, rendering maps, submitting, and all of that will then be derived from these source files. This provides a more accessible approach than the usual way where one would stuff the data straight into a database.

  2. changed the title [-]partial data export[/-] [+]Aggregate OSM submissions with Filter Funcationality (Partial Data Export)[/+] on Dec 21, 2015
  3. added a commit that references this issue on Dec 21, 2015
  4. hallahan commented on Dec 21, 2015

    @hallahan
    Contributor
  5. hallahan commented on Dec 22, 2015

    @hallahan
    Contributor

    Note that one key parameter to filter by is user. Since day 1, OpenMapKit has put an OSM user in the the submission data, thinking ahead. I was actually just stubbing in my OSM user name...

    <?xml version='1.0' encoding='UTF-8' ?><osm version="0.6" generator="OpenMapKit 0.13" user="theoutpost"><node id="-2" action="modify" lat="1.0753199144383814" lon="34.16216178888775"><tag k="name" v="test" /></node></osm>

    The idea is that we will have a dialog in OpenMapKit Android ask for just the user name. The server can then filter the aggregation by server so we can do submissions for a certain user by a user.

  6. hallahan commented on Dec 23, 2015

    @hallahan
    Contributor

    Ready to shred some code for filtering OSM Elements based on certain criteria as we aggregate OSM submissions.

    This OSM aggregation and filter work is now in the /osm directory in the project. API endpoints import the aggregate module.

  7. hallahan commented on Dec 23, 2015

    @hallahan
    Contributor

    I'm thinking it would be good to implement an OSM user input view on Android so that this can be included in submissions. Also, I'd like to make sure the OSM Elements get timestamps from when they are modified on the phones to help with @danbjoseph original request to filter by the time the data is collected.

    I'm feeling good enough about the aggregation part of things to merge into master, and this functionality will be good for current field deployments right now. As it stands, you can have all of your submissions rolled up properly for a single JSOM import.

    cc/ @danbjoseph @jj0hns0n @rbanick

  8. danbjoseph commented on Dec 28, 2015

    @danbjoseph
    MemberAuthor

    Hopefully the phones have the date/time set correctly but there's no guarantee. However, my initial request has to do with the subsequent upload to OSM via JOSM so I care about the timestamp for the data reaching the server so that I can filter what I haven't gotten the rest of the way to OSM, regardless of when the data was collected on a phone.

  9. hallahan commented on Dec 28, 2015

    @hallahan
    Contributor

    OK, we should be able to filter by the timestamp of the file itself on the server as well.

  10. hallahan commented on Dec 31, 2015

    @hallahan
    Contributor

    You can now filter by user like this:

    screenshot 2015-12-30 17 42 16

    You can filter everything that starts on a day like this:

    screenshot 2015-12-30 17 46 09

    You can filter a range of dates like this:

    screenshot 2015-12-30 17 47 27

  11. hallahan commented on Dec 31, 2015

    @hallahan
    Contributor

    And, you can put the full timestamp, something like this:

    2015-12-26T21:38:50Z
    

    Now we need to merge this puppy in and make a simple dashboard. I will open another issue about that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions