ptrv / gpx2spatialite

GNU General Public License v3.0
23 stars 8 forks source link

Features/separateupdatelocs #17

Closed belasco closed 10 years ago

belasco commented 10 years ago

This is a proposal to create a separate script for updating locations, taking the --update-locations option out of gpx2spatialite and adding gpx2spatialite_updatelocs in the /bin folder.

The script also has an --all-locations option which resets all locations to unknown and then uses a different method to lookup and redefine all trackpoints in the database. This method is much faster than the one used for updating unknown locations only.

ptrv commented 10 years ago

Cool! I like the idea to separate the locations update into a separate script.

I will add some comments.

ptrv commented 10 years ago

The new script should also be added to setup.py to the scripts array in setup

ptrv commented 10 years ago

Since I have a bit of time to work on this, I am gonna merge the stuff and make some changes.

The old partialupdate function is not needed anymore I think. Your solution to get the locations first is better and I need only to add a parameter to the getlocations to get only the unknown locations.