Context based simplification of polygons and polylines by A.J.R. Virginia