refactor point and polygon

SQLSTATE[42704]: Undefined object: 7 ERROR:  type "geography" does not exist at character ...