예제 #1
0
        public override IDictionary <string, object> Write(ISpatial value)
        {
            GeoJsonObjectWriter writer = new GeoJsonObjectWriter();

            value.SendTo(new ForwardingSegment((SpatialPipeline)writer));
            return(writer.JsonObject);
        }
예제 #2
0
        /// <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);
        }
예제 #3
0
        public void Write(ISpatial spatial, TWriterStream writerStream)
        {
            SpatialPipeline destination = this.CreateWriter(writerStream);

            spatial.SendTo(destination);
        }