Coder Social home page Coder Social logo

PROJECT_EPSG about retro-gtfs HOT 3 OPEN

minhhpham avatar minhhpham commented on September 27, 2024
PROJECT_EPSG

from retro-gtfs.

Comments (3)

Nate-Wessel avatar Nate-Wessel commented on September 27, 2024

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.

minhhpham avatar minhhpham commented on September 27, 2024

I was using 26759. I'm sure I used the same one in the tables and in the conf file.

from retro-gtfs.

Nate-Wessel avatar Nate-Wessel commented on September 27, 2024

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)

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.