Validate the geometry constraints under postgis