error codes updated to match these of GEOS in 2D