Ejemplo n.º 1
0
        private string MultiPointToWkt()
        {
            if (!(Points?.Length > 0))
            {
                return("MULTIPOINT EMPTY");
            }

            return(FormattableString.Invariant($"MULTIPOINT{EsriJsonHelper.PointArrayToString(Points)}"));
        }
Ejemplo n.º 2
0
 private string PolygonToWkt()
 {
     if (!(Rings?.Length > 0))
     {
         return("POLYGON EMPTY");
     }
     else if (Rings.Length == 1)
     {
         return(FormattableString.Invariant($"POLYGON({EsriJsonHelper.PointArrayToString(Rings[0])})"));
     }
     else
     {
         return(FormattableString.Invariant($"MULTIPOLYGON({string.Join(", ", Rings.Select(i => $"({EsriJsonHelper.PointArrayToString(i)})"))})"));
     }
 }
Ejemplo n.º 3
0
 private string PolylineToWkt()
 {
     if (!(Paths?.Length > 0))
     {
         return("LINESTRING EMPTY");
     }
     else if (Paths.Length == 1)
     {
         return(FormattableString.Invariant($"LINESTRING{EsriJsonHelper.PointArrayToString(Paths[0])}"));
     }
     else
     {
         return(FormattableString.Invariant($"MULTILINESTRING({string.Join(", ", Paths.Select(i => EsriJsonHelper.PointArrayToString(i)))})"));
     }
 }