support for polylines and polygons