SampleRasterType.DiMapParser.GetNextVertex C# (CSharp) Méthode

GetNextVertex() public méthode

public GetNextVertex ( string &x, string &y, string &col, string &row ) : bool
x string
y string
col string
row string
Résultat bool
        public bool GetNextVertex(out string x, out string y, out string col, out string row)
        {
            if (footprintInfo == null)
                footprintInfo = myXmlDoc.SelectSingleNode("//Dataset_Frame").SelectNodes("Vertex");
            x = footprintInfo[vertexCount].SelectSingleNode("FRAME_LON").InnerText;
            y = footprintInfo[vertexCount].SelectSingleNode("FRAME_LAT").InnerText;
            col = footprintInfo[vertexCount].SelectSingleNode("FRAME_COL").InnerText;
            row = footprintInfo[vertexCount].SelectSingleNode("FRAME_ROW").InnerText;
            ++vertexCount;

            if (vertexCount >= footprintInfo.Count)
                return false;
            else
                return true;
        }