示例#1
0
 ///// <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;
     }
 }
示例#2
0
 /// <summary>
 /// 
 /// </summary>
 public JSONFeature()
 {
     this.geom = new JSONGeometry();
     propertyList = new List<JSONProperty>();
 }