Polygon Constructor (String) |
Namespace: Telogis.GeoBase.Geometry
// Create a four sided polygon in San Diego, Ca. Telogis.GeoBase.Geometry.Polygon myPolygonWKT = new Telogis.GeoBase.Geometry.Polygon( "POLYGON((-117.169485 32.722237,-117.156160 32.722398,-117.156160 32.712340,-117.169611 32.712259,-117.169485 32.722237))" ); Console.WriteLine("This polygon as WKT *without* the Z level is " + myPolygonWKT.WKT); // Or with a Z level Telogis.GeoBase.Geometry.Polygon myPolygonWKT_WithZ = new Telogis.GeoBase.Geometry.Polygon( "POLYGON((-117.169485 32.722237 1,-117.156160 32.722398 2,-117.156160 32.712340 3,-117.169611 32.712259 2,-117.169485 32.722237 1))" ); Console.WriteLine("This polygon as WKT *with* the Z level is " + myPolygonWKT_WithZ.WKTWithZ);