The JSON-serializable point type.
Inheritance: JsonGeometry, IJsonGeometry
Exemplo n.º 1
0
 private static XElement ToKmlPoint(this JsonPoint shape, double z, params XElement[] extraElements)
 {
     return(new XElement(kml + "Point", extraElements,
                         new XElement(kml + "coordinates", shape.ToCoordinates(z))));
 }
Exemplo n.º 2
0
 private static IPoint ToEsriPoint(this JsonPoint shape)
 {
     return(new Point {
         X = shape.x, Y = shape.y
     });
 }
Exemplo n.º 3
0
 private static string ToCoordinates(this JsonPoint shape, double z)
 {
     return(shape.x + "," + shape.y + "," + z);
 }