getosm

pylayers.gis.osmparser.getosm(**kwargs)[source]

get osm region from osmapi

address : string latlon : tuple or 0 dist_m : float bcart : boolean level_height : float

typical level height for deriving building height from # levels

typical_heightfloat

typical height for building when no information

coords nodes ways dpoly m latlon : tuple or 0

There are 3 ways to read an Open Street Map structure

1 - From an osm file ex : filename = ‘B11.osm’ 2 - From an osm (lat,lon) string or tuple of float 3 - From an osm address string

if latlon tuple is precised, it has priority over the address string