Restructure function CreateGeoXML