コード例 #1
0
 public static GeoRssWhere ToGeoRssWhere(this MultiPolygon mpolygon)
 {
     if (mpolygon.Polygons.Count() > 1)
     {
         return(new GeoRssWhere()
         {
             Item = new MultiPolygonType[] { mpolygon.ToGmlMultiPolygon() }, Type = "multipolygon"
         });
     }
     else
     {
         return(new GeoRssWhere()
         {
             Item = new PolygonType[] { mpolygon.Polygons.First().ToGmlPolygon() }
         });
     }
 }