/// <summary>
        /// Constructor. Accepts the KML string.
        /// </summary>
        /// <param name="kml">KML data to be parsed</param>
        public KMLProcessor(string kml)
        {
            m_Kml = kml;

            m_Parser = new KMLParser(kml);
            m_Parser.Parse();
        }
Пример #2
0
        /// <summary>
        /// This method parses the given XML file context
        /// </summary>
        /// <param name="fileFullPathName">File full path</param>
        /// <returns>KMLParser with loaded file context</returns>
        public static KMLParser ParseFile(string fileFullPathName)
        {
            string text = System.IO.File.ReadAllText(fileFullPathName);

            KMLParser p = new KMLParser(text);

            return(p);
        }