Fix linestring and polygon mapping.