refactor and bugfix
refactor and add exception handle
encapsulation for gis server