private static JObject GetGeoJSONGeometryCollectionFromDbGeography(DbGeography geography)
        {
            JArray geometries = new JArray();
            for (int i = 1; i <= geography.ElementCount; i++)
            {
                var geometry = geography.ElementAt(i);
                geometries.Add(geography.ToGeoJSON());
            }

            JObject result = new JObject();
            result.Add("type", geography.SpatialTypeName);
            result.Add("geometries", geometries);
            return result;
        }