change NearestPolygonEdgeAndMedianPointStrategy to edgeDist * mediumPointDist