Comments (3)
Curious. What projection were you trying to use? Are you certain the projection in your config file matched the projection on your PostGIS tables?
from retro-gtfs.
I was using 26759. I'm sure I used the same one in the tables and in the conf file.
from retro-gtfs.
I would expect confusion with some things because the unit for that projection appears to be feet (the configuration file talks about things being in meters and I'm not totally sure that assumption isn't hardcoded anywhere), but it still shouldn't end up with points displaced as far as I know.
The DB stores things in a local projection. When trips are pulled from the DB for (re)processing they get transformed to lon/lat (4326). Those points feed directly into OSRM which returns 4326 geometries as well. The match geometries are transformed by Python into the local projection which then gets stored in the DB alongside the original geometry.
If I understand what you're trying to do, you probably shouldn't ever actually be calling Trip.save()
though. This is only for pulling points from the Nextbus API (and eventually other APIs) into the DB. Since you already have a DB, you would need to synthesize an HTTP API to use this, but I suspect it would be a lot easier for you to just format your data into a PostGIS DB and then use process.py.
Or were you toying around with the functions manually?
from retro-gtfs.
Related Issues (20)
- lua profiles need to be updated for osrm-backend v5.15 and above HOT 1
- GPS cleaning leaves two identical points at start of trip HOT 1
- Column `fake_stop_id` of relation `stop_times` does not exist HOT 1
- Project vehicles forward/backward to termini HOT 3
- Allow farther terminal stop matching for OSRM route geometries
- Design a quality metric for trips and stop times tables HOT 2
- Default geom yeilding noisy errors if route incomplete HOT 1
- Default geometries making too many stops HOT 1
- Moved stops can cause repeated stop_id's in output HOT 2
- pull_data.sql not working past midnight HOT 1
- Handle DST and named timezones HOT 2
- Very high speeds being reported on some routes HOT 3
- Better handling needed for connection errors between script and OSRM HOT 2
- store.py takes a long time to start up again on a big database
- directions_stop_view also shows stops in the future for a trip HOT 1
- Syntax Error HOT 1
- Add service_id option to pull-data.sql HOT 1
- Division by zero error HOT 2
- Allow backtracking on default geometries?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from retro-gtfs.