Exemple #1
0
        public void TestVtpkJson()
        {
            var path       = @"E:\Downloads\wh_district_slqp_WebUTM.vtpk";
            var zipArchive = ZipFile.Open(path, ZipArchiveMode.Read);
            var entry      = zipArchive.GetEntry(@"p12/root.json");
            var stream     = entry.Open();
            var sr         = new StreamReader(stream);
            var ts         = ArcGISBundleFileHelper.GetTileSystemFromJson(sr.ReadToEnd());

            sr.Close();
            stream.Close();
        }
Exemple #2
0
 private byte[] GetTileFromTpk(string filePath, int zoom, int tx, int ty, int tileSize = 256)
 {
     return(ArcGISBundleFileHelper.GetTileImage_VTPK(zoom, tx, ty, filePath));
 }