I need to draw polygon shape with the following coordiantes
private List geos2 = new List(); var gf = new GeometryFactory(new PrecisionModel(), 3857); cor1 = new Coordinate(16144349.4032217,-4291402.04717672); corner2 = new Coordinate(16145538.9946882,-4291401.77806892); corner3 = new Coordinate(16145967.1248121,-4292444.80890257); corner4 = new Coordinate(16145352.7123475,-4292584.54329502); corner5 = new Coordinate(1500000, 1500000);I tried with following line of code to draw
geos2.Add(gf.CreatePolygon(new Coordinate[] { cor1, corner2, corner3, corner4 }));But noting happening . but i could create Point with the following code
geos2.Add(gf.CreatePoint( corner2));Could you please tell me how to make a polygon.
أكثر...
private List geos2 = new List(); var gf = new GeometryFactory(new PrecisionModel(), 3857); cor1 = new Coordinate(16144349.4032217,-4291402.04717672); corner2 = new Coordinate(16145538.9946882,-4291401.77806892); corner3 = new Coordinate(16145967.1248121,-4292444.80890257); corner4 = new Coordinate(16145352.7123475,-4292584.54329502); corner5 = new Coordinate(1500000, 1500000);I tried with following line of code to draw
geos2.Add(gf.CreatePolygon(new Coordinate[] { cor1, corner2, corner3, corner4 }));But noting happening . but i could create Point with the following code
geos2.Add(gf.CreatePoint( corner2));Could you please tell me how to make a polygon.
أكثر...