void LoadMap()
 {
     GeoStar.Core.SqliteDatabaseFactory fac  = new GeoStar.Core.SqliteDatabaseFactory();
     GeoStar.Core.ConnectProperties     conn = new GeoStar.Core.ConnectProperties();
     conn.Server = @"D:\02-Work\8888-GeoStarKernel\GPS\data";
     GeoStar.Core.GeoDatabase gdb       = fac.Open(conn);
     GeoStar.Core.TileClass   tileclass = gdb.OpenTileClass("shenzhenImage")  as GeoStar.Core.TileClass;
     GeoStar.Core.Control.WPF.TileClassGraphicsLayer tilelayer =
         new GeoStar.Core.Control.WPF.TileClassGraphicsLayer(tileclass);
     m_GeoSpace.LayerBox.AddLayer(tilelayer);
 }
        void LoadTMS(string strName, string str)
        {
            GeoStar.Core.WebGeoDatabaseFactory fac = new GeoStar.Core.WebGeoDatabaseFactory();
            GeoStar.Core.GeoDatabase           gdb = fac.Open(new GeoStar.Core.ConnectProperties());
            GeoStar.Core.SpatialReference      sr  = new GeoStar.Core.SpatialReference(GeoStar.Core.WellKnownSpatialReference.eWebMercator);
            GeoStar.Core.Pyramid        pyramid    = GeoStar.Core.Pyramid.WellknownedPyramid(GeoStar.Core.WellknownPyramid.eWebMercatorPyramid);
            GeoStar.Core.TileColumnInfo col        = new GeoStar.Core.TileColumnInfo();
            col.FeatureType      = GeoStarCore.geoFEATURETYPE.GEO_FT_TILE_DYNVECTOR;
            col.ValidTopLevel    = 0;
            col.ValidBottomLevel = 20;
            col.XYDomain         = new GeoStar.Core.Box(pyramid.XMin, pyramid.YMin, pyramid.XMax, pyramid.YMax);
            GeoStar.Core.TMSTileClass tileclass = gdb.CreateTileClass(strName, sr, pyramid, col) as GeoStar.Core.TMSTileClass;
            tileclass.UrlTemplate = str;

            CacheTileClass(tileclass);

            GeoStar.Core.Control.WPF.TileClassGraphicsLayer tilelayer =
                new GeoStar.Core.Control.WPF.TileClassGraphicsLayer(tileclass);
            m_GeoSpace.LayerBox.AddLayer(tilelayer);
        }