fix postgis deprecation error