Closed belasco closed 10 years ago
Cool! I like the idea to separate the locations update into a separate script.
I will add some comments.
The new script should also be added to setup.py
to the scripts
array in setup
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.
This is a proposal to create a separate script for updating locations, taking the
--update-locations
option out of gpx2spatialite and addinggpx2spatialite_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.