convert points linestrings and polygons

this is just a draft for testing.