// This is where real work is done. public void EndGeometry() { // if not multi line then add the current line to the collection. if (!_isMultiLine) { _lines.AddLine(_currentLine); } // if line counter is 0 then it is multiline // if 1 then it is linestring if (_lineCounter == 0 || !_isMultiLine) { // reverse the line before constructing the geometry _lines.ReversLines(); _lines.TranslateMeasure(_translateMeasure); _lines.ToSqlGeometry(ref _target); } else { _lines.AddLine(_currentLine); // reset the line counter so that the child line strings chaining is done and return to base multiline type _lineCounter--; } }
public void TranslateMeasure(double offsetMeasure) { MultiLine.TranslateMeasure(offsetMeasure); }