public void SetGeometry(Geometry g) { try { BaseGeometry = g; Geometry = g; } catch (Exception e) { // FIXME TODO Deal with exception! } }
private void ConvertPointsToPolyline(BaseContent p, PoiGraphic g) { var pc = ConvertPointsToPointCollection(p); if (pc == null) return; var pol = new Polyline(); pol.Paths.Add(pc); g.SetGeometry(pol); }