# Cartographic transformations and python libraries

**URL:** <https://forum.inductiveautomation.com/t/cartographic-transformations-and-python-libraries/9511>\
**Category:** Ignition\
**Created:** [January 6, 2015, 1:51pm UTC](https://forum.inductiveautomation.com/t/cartographic-transformations-and-python-libraries/9511 "2015-01-06T13:51:36Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chris\_Taylor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/chris_taylor/32/3315_2.png) [@Chris\_Taylor](https://forum.inductiveautomation.com/u/Chris_Taylor)\
**Post date:** [January 6, 2015, 1:51pm UTC](https://forum.inductiveautomation.com/t/cartographic-transformations-and-python-libraries/9511/1 "2015-01-06T13:51:36Z")

</div>

Morning all.

I’m having a play with mapping, here in the UK we have various ways of describing a location,  
Postcode, latitudes and longitudes and eastings and northings etc. I want to convert eastings and northings in to longitudes and latitudes, I was using a web API and this is OK for a few manualy but not so good when I’d like to do thousands. So I’ve found a python library that fits the bill but I can’t figure out how to install it. I know it goes in to the “user-lib/pylib” location.

It starts to run but fails when trying to import “\_proj” which I just can’t find.

any pointers could be worth a beer in September

[https://pypi.python.org/pypi/pyproj](https://pypi.python.org/pypi/pyproj) is the library

---

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [January 6, 2015, 3:15pm UTC](https://forum.inductiveautomation.com/t/cartographic-transformations-and-python-libraries/9511/2 "2015-01-06T15:15:15Z")

</div>

Hi Chris,

While I’d still like to see an answer on this one, did you happen to see this [blog entry](http://www.hannahfry.co.uk/blog/2012/02/01/converting-british-national-grid-to-latitude-and-longitude-ii)? It may be a bit easier to implement.

---

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [January 6, 2015, 3:50pm UTC](https://forum.inductiveautomation.com/t/cartographic-transformations-and-python-libraries/9511/3 "2015-01-06T15:50:48Z")

</div>

As a shared script…  
[geo\_2015-01-06\_1040.proj](https://us1.discourse-cdn.com/inductiveautomation/original/2X/6/6310d1cc1d648d50329d0f77f0cf850960a8ab14.proj) (3.28 KB)  
 ![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/7/74d971461e94de4f29e11a5f1208c52387c830b5.png)

---

<div class="post-metadata">

**Author:** ![Chris\_Taylor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/chris_taylor/32/3315_2.png) [@Chris\_Taylor](https://forum.inductiveautomation.com/u/Chris_Taylor)\
**Post date:** [January 6, 2015, 4:02pm UTC](https://forum.inductiveautomation.com/t/cartographic-transformations-and-python-libraries/9511/4 "2015-01-06T16:02:16Z")

</div>

Jorden

Beers in September…[inductiveautomation.com/for … 0&t=13400#](https://www.inductiveautomation.com/forum/posting.php?mode=reply&f=70&t=13400#)

I had been goggling for hours and I missed that blog, its perfect. 100 meters would have close enough.

I’ll give it a go.

Oh and thanks for the script, your a diamond.

---

<div class="post-metadata">

**Author:** ![Chris\_Taylor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/chris_taylor/32/3315_2.png) [@Chris\_Taylor](https://forum.inductiveautomation.com/u/Chris_Taylor)\
**Post date:** [January 6, 2015, 4:35pm UTC](https://forum.inductiveautomation.com/t/cartographic-transformations-and-python-libraries/9511/5 "2015-01-06T16:35:13Z")

</div>

Thats pretty good,

14,451 coordinates transformed in 20 seconds

I love this stuff
