private static void RunTestWkt(ICoordinateSystemServices <ICoordinateSystem> csp, int srid)
        {
            var wkt = csp.GetCoordinateSystemInitializationString("EPSG", srid);

            wkt = wkt.Replace(",", ", ");
            Console.WriteLine(wkt);

            var cs = csp.GetCoordinateSytem(wkt);

            Assert.IsNotNull(cs);
            Console.WriteLine(cs.WKT);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Method to set the coordinate system services class
 /// </summary>
 /// <param name="coordinateSystemServices">The coordinate system services class</param>
 /// <returns>A reference to this session</returns>
 public ISession SetCoordinateSystemServices(ICoordinateSystemServices coordinateSystemServices)
 {
     CoordinateSystemServices = coordinateSystemServices;
     return(this);
 }
        private static void RunTestWkt(ICoordinateSystemServices<ICoordinateSystem> csp, int srid)
        {
            var wkt = csp.GetCoordinateSystemInitializationString("EPSG", srid);
            wkt = wkt.Replace(",", ", ");
            Console.WriteLine(wkt);

            var cs = csp.GetCoordinateSytem(wkt);
            Assert.IsNotNull(cs);
            Console.WriteLine(cs.WKT);
        }