Ways

class pylayers.gis.osmparser.Ways[source]

Bases: object

w : dict way : dict cpt : int

way counter

ways eval show

Attributes Summary

cpt

w

way

Methods Summary

building(ways[, height, min_heigh])

building callback function

clean()

clean ways

Ways.eval

Ways.readmap

show([typ])

show all way

showold([fig, ax])

show ways

tomaska(m[, lonlat])

convert to masked array

ways(ways)

general callback function

Attributes Documentation

cpt = 0
w = {}
way = {}

Methods Documentation

building(ways, height=8.5, min_heigh=0)[source]

building callback function

ways : Ways height : float

clean()[source]

clean ways

show(typ=2, **kwargs)[source]

show all way

fig : figure ax : axe typ : 0|1|2 (default)

0 : display only way of typ 0 (Polygon) 1 : display only way of typ 1 (Linestring) 2 : display all way (default)

showold(fig=[], ax=[])[source]

show ways

fig ax

tomaska(m, lonlat=True)[source]

convert to masked array

mBasemap object

for converting to and from map projection coordinates

lonlatboolean

returns in WGS84 format if True

ptma : masked array

ways(ways)[source]

general callback function