Пример #1
0
        internal static SridItem FindEnsured(CoordinateReferenceSystem crs)
        {
            using (_rwl.WithReadLock())
            {
                if (_registered.TryGetValue(crs, out var item))
                {
                    return(item);
                }

                foreach (SridItem it in _registered.Values)
                {
                    if (it.CRS.IsEquivalentTo(crs))
                    {
                        return(it);
                    }
                }
            }
            return(Register(crs.Clone()));
        }