///// <summary> ///// Geometry from IGeometry ///// </summary> ///// <param name="geom"></param> //public void addGeom(IGeometry geom) //{ // this.geom = new JSONGeometry(geom); //} /// <summary> /// Geometry from string /// </summary> /// <param name="geomString"></param> public void addGeom(string geomString) { switch (geomString.Split(null)[0]) { case "POINT": this.geom = new JSONPointGeometry(geomString); break; case "MULTIPOINT": this.geom = new JSONMultiPointGeometry(geomString); break; default: break; } }
/// <summary> /// /// </summary> public JSONFeature() { this.geom = new JSONGeometry(); propertyList = new List<JSONProperty>(); }