-
-
Notifications
You must be signed in to change notification settings - Fork 179
Expand file tree
/
Copy pathtransverse_mercator.py
More file actions
34 lines (25 loc) · 972 Bytes
/
transverse_mercator.py
File metadata and controls
34 lines (25 loc) · 972 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# -----------------------------------------------------------------------------
# Copyright (c) 2009-2016 Nicolas P. Rougier. All rights reserved.
# Distributed under the (new) BSD License.
# -----------------------------------------------------------------------------
"""
Transverse Mercator projection
http://en.wikipedia.org/wiki/Transverse_Mercator_projection
"""
from glumpy import library
from . transform import Transform
class TransverseMercatorProjection(Transform):
""" Transverse Mercator projection """
aliases = { }
def __init__(self, *args, **kwargs):
"""
Initialize the transform.
Note that parameters must be passed by name (param=value).
Kwargs parameters
-----------------
"""
code = library.get("transforms/transverse_mercator.glsl")
Transform.__init__(self, code, *args, **kwargs)
def on_attach(self, program):
""" Initialization event """
pass