GetTo() public method

public GetTo ( ) : Int32
return System.Int32
コード例 #1
0
        private static void WriteLine(ref XmlWriter writer, ParcelLineRow record, ref DocumentEntry documentType, Int32 to)
        {
            if (IncompleteLine(record))
            {
                return; // incomplete line
            }
            if (to == -1)
            {
                to = record.GetTo();
            }

            writer.WriteStartElement("line");

            writer.WriteElementString("fromPoint", record.GetFrom().ToString());
            writer.WriteElementString("toPoint", to.ToString());
            writer.WriteElementString("bearing", record.GetBearing(false).ToString(_doubleFormat));
            writer.WriteElementString("distance", record.GetChordDistance().ToString(_doubleFormat));
            writer.WriteElementString("category", record.Category.ToString());
            if (documentType != null)
            {
                writer.WriteElementString("type", documentType.Type.ToString());
            }

            double radius = record.GetRadius();

            if ((radius != 0.0) && (record.CenterPoint != null))
            {
                writer.WriteElementString("radius", radius.ToString(_doubleFormat));
                writer.WriteElementString("centerPoint", record.CenterPoint.ToString());
            }

            writer.WriteEndElement();
        }
コード例 #2
0
ファイル: ParcelXML.cs プロジェクト: Esri/deed-drafter
 private static bool IncompleteLine(ParcelLineRow record)
 {
     return (record.GetFrom() == 0) || (record.GetTo() == 0) || (record.GetDistance() == 0);
 }
コード例 #3
0
ファイル: ParcelXML.cs プロジェクト: Esri/deed-drafter
        private static void WriteLine(ref XmlWriter writer, ParcelLineRow record, ref DocumentEntry documentType, Int32 to)
        {
            if (IncompleteLine(record))
            return;  // incomplete line

              if (to == -1)
            to = record.GetTo();

              writer.WriteStartElement("line");

              writer.WriteElementString("fromPoint", record.GetFrom().ToString());
              writer.WriteElementString("toPoint", to.ToString());
              writer.WriteElementString("bearing", record.GetBearing(false).ToString(_doubleFormat));
              writer.WriteElementString("distance", record.GetChordDistance().ToString(_doubleFormat));
              writer.WriteElementString("category", record.Category.ToString());
              if (documentType != null)
            writer.WriteElementString("type", documentType.Type.ToString());

              double radius = record.GetRadius();

              if ((radius != 0.0) && (record.CenterPoint != null))
              {
            writer.WriteElementString("radius", radius.ToString(_doubleFormat));
            writer.WriteElementString("centerPoint", record.CenterPoint.ToString());
              }

              writer.WriteEndElement();
        }
コード例 #4
0
 private static bool IncompleteLine(ParcelLineRow record)
 {
     return((record.GetFrom() == 0) || (record.GetTo() == 0) || (record.GetDistance() == 0));
 }