Exemple #1
0
 public void polylineTo(tsPolyline c)
 {
     foreach (var p in c.internalPoints)
     point(p.lat, p.lon);
 }
Exemple #2
0
 public jsonPolyline(jsonListener Aparent,
                     tsContentTo doc) : base(Aparent) 
 {
     c = new tsPolyline(doc);
 }
Exemple #3
0
        public void polylineTo(tsPolyline c)
        {
            if (fStage == 1)
            if (fEnabled && c.Enabled())
            {
                obj.Reset();
                xmap.IPoly mf = obj.mf;

                List<Point2D> pp = c.internalPoints;

                if (pp != null)
                if (pp.Count > 0) {
                    foreach (var p in pp)
                    mf.AddPoint(p.lat * DegToRad, p.lon * DegToRad);
                    mf.endContour(1);
                }

                int id;
                obj.New_edge(c.Key, c.startPoint, c.endPoint, out id);
            }
        }
Exemple #4
0
        public void polylineTo(tsPolyline c)
        {
            beginObject(c,null);

            if (c.startPoint != null) writeKey("startPoint",c.startPoint);
            if (c.endPoint != null) writeKey("endPoint", c.endPoint);

            List<Point2D> pp = c.internalPoints;

            if (pp != null)
            if (pp.Count > 0)
            {
                writeKeyi("internalPoints", pp.Count);
                foreach (var p in pp)
                file.WriteLine(PosStr(p.lat,p.lon));
            }

            endObject();
        }