added spatial polygon conversion functionality.

closes issue #15