public Polygon(LineString boundary, List <LineString> holes, ReferenceSystemEnum srs) : base(srs) { if (boundary == null) { throw new ArgumentException("The boundary should not be null."); } if (holes != null) { this.holes = new List <LineString>(holes); } else { this.holes = new List <LineString>(); } this.boundary = boundary; }
public GeoJSONParser(ReferenceSystemEnum srs, String geomClassName) { this.srs = srs; if (geomClassName != null) { try { Assembly asm = Assembly.GetExecutingAssembly(); T unchekedClazz = (T)asm.CreateInstance(geomClassName); geomClass = unchekedClazz; } catch { throw new ArgumentException($"'geomClassName' contains unknown class '{geomClassName}'."); } } else { geomClass = null; } }
public LineString(List <Point> points, ReferenceSystemEnum srs) : base(srs) { this.points = new List <Point>(points); }
public GeoJSONParser(ReferenceSystemEnum srs) : this(srs, null) { }
public Point(ReferenceSystemEnum srs) : base(srs) { }
public Polygon(List <Point> boundary, List <LineString> holes, ReferenceSystemEnum srs) : this(new LineString(boundary, srs), holes, srs) { }
public static T FromGeoJSON <T>(String geoJSON, ReferenceSystemEnum srs) where T : Geometry { return((T) new GeoJSONParser <T>(srs).Read(geoJSON)); }
public static T FromWKT <T>(String wellKnownText, ReferenceSystemEnum srs) where T : Geometry { return((T) new WKTParser(srs).Read(wellKnownText)); }
protected Geometry(ReferenceSystemEnum srs) { this.srs = srs; }
public WKTParser(ReferenceSystemEnum srs) { this.srs = srs; }