public override IDictionary <string, object> Write(ISpatial value) { GeoJsonObjectWriter writer = new GeoJsonObjectWriter(); value.SendTo(new ForwardingSegment((SpatialPipeline)writer)); return(writer.JsonObject); }
/// <summary> Creates a valid format from the spatial object.</summary> /// <param name="spatial">The object that the format is being created for.</param> /// <param name="writerStream">The stream to write the formatted object to.</param> public void Write(ISpatial spatial, TWriterStream writerStream) { var writer = this.CreateWriter(writerStream); spatial.SendTo(writer); }
public void Write(ISpatial spatial, TWriterStream writerStream) { SpatialPipeline destination = this.CreateWriter(writerStream); spatial.SendTo(destination); }