Added private function to convert to geojson