Exemple #1
0
        private PPMXLIndex(List<int[]> zoneIndex)
        {
            ZoneIndex = new List<PPMXLIndexEntry>();

            for (int i = 0; i < zoneIndex.Count; i++)
            {
                var entry = new PPMXLIndexEntry()
                                {
                                    RAIndex = zoneIndex[i],
                                    UniqueZone = i
                                };

                if (i < 360)
                {
                    entry.SubZoneId = "dcba"[i % 4];
                    entry.Hemisphere = 's';
                    entry.ZoneId = 89 - (i / 4);
                }
                else
                {
                    entry.SubZoneId = "abcd"[i % 4];
                    entry.Hemisphere = 'n';
                    entry.ZoneId = (i / 4) - 90;
                }

                ZoneIndex.Add(entry);
            }
        }
Exemple #2
0
        private PPMXLIndex(List <int[]> zoneIndex)
        {
            ZoneIndex = new List <PPMXLIndexEntry>();

            for (int i = 0; i < zoneIndex.Count; i++)
            {
                var entry = new PPMXLIndexEntry()
                {
                    RAIndex    = zoneIndex[i],
                    UniqueZone = i
                };

                if (i < 360)
                {
                    entry.SubZoneId  = "dcba"[i % 4];
                    entry.Hemisphere = 's';
                    entry.ZoneId     = 89 - (i / 4);
                }
                else
                {
                    entry.SubZoneId  = "abcd"[i % 4];
                    entry.Hemisphere = 'n';
                    entry.ZoneId     = (i / 4) - 90;
                }

                ZoneIndex.Add(entry);
            }
        }