I use PROJ.4 cs2cs to convert data from a Lambert Conformal Conic to a geodetic coordinate (NAD83) or vice versa. In my application, sometimes I need to convert a lot of data. Because I call cs2cs with subprocess.Popen() and parse result in python, input/output overhead becomes too big for a large data set.

Is there an faster alternative to cs2cs or a way to make calling cs2cs in python faster?


The answer is Pyproj. Transforms lists of coordinates in a single call, and since it's a C extension module that uses PROJ.4, the same results as cs2cs but at C speed.

  • 1
    Using pyproj increased the speed by 11,000 times faster. Thanks!
    – user28857
    Feb 12 '15 at 17:45
  • Great! Mark the question answered :)
    – sgillies
    Feb 13 '15 at 16:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.