아래 링크를 토대로 첫번째 소스를 작성함

http://www.gisdeveloper.co.kr/423?category=4