kuanb / peartree

peartree: A library for converting transit data into a directed graph for sketch network analysis.
MIT License
201 stars 23 forks source link

Preserve units during transform #84

Closed kuanb closed 6 years ago

kuanb commented 6 years ago

Let's be careful during transforms when using Proj. For example, in the case of: https://github.com/kuanb/peartree/blob/8ef113bdc5cfaa1fc217fe340b32d69c6ae24eae/peartree/synthetic.py#L18-L21

We should set preserve_units to be True, even if both are in meters. In the future, if we make updates where we take in sources that are not in meter projection, this will preemptively avoid making unit-related mistakes.