Classes | Functions | Variables
automow_planning::maptools Namespace Reference

Classes

class  RotationTransform
 Rotation Transformations #####. More...

Functions

def array2image
def image2array
 Numpy-PIL Functions #####.
def make_axis
def ndarray2polygon
 Numpy-Shapely Functions #####.
def plot_coords
def plot_line
def plot_lines
def plot_polygon
def rotate_from
def rotate_polygon_from
def rotate_polygon_to
def rotate_to
def rotation_tf_from_longest_edge
def zoom_extents
 Plotting Tools #####.

Variables

list ext = [(1, 1), (-3, 11), (4, 16), (10, 10)]
 Tests #####.
tuple polygon = Polygon(ext)
tuple polygon_points = np.array(polygon.exterior)
tuple rt = rotation_tf_from_longest_edge(polygon)
tuple tf_points = rotate_to(polygon_points, rt)
tuple tf_polygon = ndarray2polygon(tf_points)

Function Documentation

Definition at line 25 of file maptools.py.

Numpy-PIL Functions #####.

Definition at line 15 of file maptools.py.

Definition at line 134 of file maptools.py.

Numpy-Shapely Functions #####.

Definition at line 36 of file maptools.py.

def automow_planning.maptools.plot_coords (   coords,
  ax = None,
  color = '#999999',
  alpha = 1.0 
)

Definition at line 171 of file maptools.py.

def automow_planning.maptools.plot_line (   line,
  ax = None,
  color = '#6699cc',
  alpha = 1.0 
)

Definition at line 153 of file maptools.py.

def automow_planning.maptools.plot_lines (   lines,
  ax = None,
  color = '#6699cc',
  alpha = 1.0 
)

Definition at line 138 of file maptools.py.

def automow_planning.maptools.plot_polygon (   polygon,
  ax = None,
  color = '#999999',
  alpha = 1.0 
)

Definition at line 180 of file maptools.py.

def automow_planning.maptools.rotate_from (   points,
  rotation_transform 
)
Rotate an ndarray of given points(x,y) from a given rotation

Definition at line 100 of file maptools.py.

def automow_planning.maptools.rotate_polygon_from (   polygon,
  rotation_transform 
)
Takes a polygon and a rotation, returns an inverse rotated polygon

Definition at line 83 of file maptools.py.

def automow_planning.maptools.rotate_polygon_to (   polygon,
  rotation_transform 
)
Takes a polygon and a rotation, returns a rotated polygon

Definition at line 77 of file maptools.py.

def automow_planning.maptools.rotate_to (   points,
  rotation_transform 
)
Rotates an ndarray of given points(x,y) to a given rotation

Definition at line 89 of file maptools.py.

Returns a rotation tf for the longest edge of the given polygon

Definition at line 56 of file maptools.py.

def automow_planning.maptools.zoom_extents (   ax,
  polygons,
  buff = 1.0 
)

Plotting Tools #####.

Sets the axis to view all polygons given

Definition at line 114 of file maptools.py.


Variable Documentation

list automow_planning::maptools::ext = [(1, 1), (-3, 11), (4, 16), (10, 10)]

Tests #####.

Definition at line 195 of file maptools.py.

Definition at line 196 of file maptools.py.

tuple automow_planning::maptools::polygon_points = np.array(polygon.exterior)

Definition at line 197 of file maptools.py.

Definition at line 199 of file maptools.py.

Definition at line 203 of file maptools.py.

Definition at line 204 of file maptools.py.



heatmap
Author(s): Adrian Bauer
autogenerated on Thu Feb 11 2016 23:05:26