PolygonWKT Property |
Namespace: Telogis.GeoBase.Geometry
// Create a four sided polygon in San Diego, Ca. Telogis.GeoBase.Geometry.Polygon myPolygon = new Telogis.GeoBase.Geometry.Polygon( new Telogis.GeoBase.Geometry.LineString[] { new Telogis.GeoBase.Geometry.LineString( new Telogis.GeoBase.LatLon(32.722237,-117.169485), new Telogis.GeoBase.LatLon(32.722398,-117.156160), new Telogis.GeoBase.LatLon(32.712340,-117.156160), new Telogis.GeoBase.LatLon(32.712259,-117.169611), new Telogis.GeoBase.LatLon(32.722237,-117.169485)) } ); Console.WriteLine("Polygon as WKT: {0}", myPolygon.WKT); // 'Polygon as WKT: POLYGON((-117.169485 32.722237,-117.15616 32.722398,-117.15616 32.71234,-117.169611 32.712259,-117.169485 32.722237))'