Beispiel #1
0
 internal static Geometries.MultiLineString ToSharpMapMultiLineString(MultiLineString multiLineString)
 {
     Geometries.MultiLineString collection = new Geometries.MultiLineString();
     foreach (LineString lineString in multiLineString.Geometries)
     {
         collection.LineStrings.Add(ToSharpMapLineString(lineString));
     }
     return(collection);
 }
Beispiel #2
0
        internal static MultiLineString ToNTSMultiLineString(Geometries.MultiLineString multiLineString,
                                                             GeometryFactory factory)
        {
            LineString[] lstrings = new LineString[multiLineString.LineStrings.Count];
            int          index    = 0;

            foreach (Geometries.LineString lstring in multiLineString.LineStrings)
            {
                lstrings[index++] = ToNTSLineString(lstring, factory);
            }
            return(factory.CreateMultiLineString(lstrings) as MultiLineString);
        }
 internal static Geometries.MultiLineString ToSharpMapMultiLineString(MultiLineString multiLineString)
 {
     Geometries.MultiLineString collection = new Geometries.MultiLineString();
     foreach (LineString lineString in multiLineString.Geometries)
         collection.LineStrings.Add(ToSharpMapLineString(lineString));
     return collection;
 }