add spatial conversion functionality