let the caller of geometry builder specify if they want just polygons or just lines instead of only allowing them to get both and then determine what came out with string matching