Exemple #1
0
        public void NotSameTwice()
        {
            CoordinateReferenceSystem crs = SridRegister.GetById(Epsg.Netherlands);

            SridRegister.Ensure((Epsg)(-1), () => crs, -1);
        }
Exemple #2
0
 public void Init()
 {
     SridRegister.Ensure(Epsg.Netherlands, () => CoordinateReferenceSystem.Create("EPSG:28992"), (int)Epsg.Netherlands);
     SridRegister.Ensure(Epsg.BelgiumLambert, () => CoordinateReferenceSystem.Create("EPSG:3812"), (int)Epsg.BelgiumLambert);
     SridRegister.Ensure(Epsg.AnotherNL, () => CoordinateReferenceSystem.Create("EPSG:28992"), (int)Epsg.AnotherNL); // Different EPSG, same definition. Ok. But can't use same CRS instance
 }