Revision 564 org.gvsig.scripting/trunk/org.gvsig.scripting/org.gvsig.scripting.app/org.gvsig.scripting.app.mainplugin/src/main/resources-plugin/scripting/lib/geopy/format.py
format.py | ||
---|---|---|
114 | 114 |
] |
115 | 115 |
|
116 | 116 |
DIRECTIONS, DIRECTIONS_ABBR = zip(*_DIRECTIONS) |
117 |
""" |
|
118 | 117 |
ANGLE_DIRECTIONS = { |
119 |
|
|
120 | 118 |
n * 11.25: d |
121 | 119 |
for n, d |
122 | 120 |
in enumerate(DIRECTIONS) |
123 | 121 |
} |
124 | 122 |
ANGLE_DIRECTIONS_ABBR = { |
125 |
n * 11.25: d for n, d in enumerate(DIRECTIONS_ABBR) |
|
123 |
n * 11.25: d |
|
124 |
for n, d |
|
125 |
in enumerate(DIRECTIONS_ABBR) |
|
126 | 126 |
} |
127 |
""" |
|
128 |
ANGLE_DIRECTIONS = {} |
|
129 |
for n,d in enumerate(DIRECTIONS): |
|
130 |
ANGLE_DIRECTIONS[ n * 11.25] = d |
|
131 |
|
|
132 |
ANGLE_DIRECTIONS_ABBR = { } |
|
133 |
for n, d in enumerate(DIRECTIONS_ABBR): |
|
134 |
ANGLE_DIRECTIONS_ABBR[ n * 11.25] = d |
|
135 |
|
Also available in: Unified diff