Exemplo n.º 1
0
        public void TestPoint1()
        {
            Coordinate cooordinate = new Coordinate(1.0, 2.0);
            IPoint     point       = _factory.CreatePoint(cooordinate);
            string     wkt         = _writer.WriteFormatted(point);

            Assertion.AssertEquals("point wkt1", "POINT (1 2)", wkt);
        }
Exemplo n.º 2
0
		///<summary>
		///  Returns the Well-known Text representation of this Geometry.
		///</summary>
		///<remarks>
		///	For a definition of the Well-known Text format, see the OpenGIS Simple Features Specification.
		///</remarks>
		///<returns>Returns the Well-known Text representation of this Geometry</returns>
		public virtual string ToText() 
		{
			GeometryWKTWriter writer = new GeometryWKTWriter();
			return writer.WriteFormatted(this);
		}