Пример #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);
        }