Пример #1
0
        /// <summary>
        /// Creates a new polygon filter.
        /// </summary>
        public OsmStreamFilterPoly(OsmSharp.Geo.Geometries.LineairRing poly)
            : base()
        {
            if (poly == null) { throw new ArgumentNullException("poly"); }

            _poly = poly;
            _box = new GeoCoordinateBox(poly.Coordinates);

            this.Meta.Add("poly", OsmSharp.Geo.Streams.GeoJson.GeoJsonConverter.ToGeoJson(_poly));
        }
Пример #2
0
        /// <summary>
        /// Creates a new polygon filter.
        /// </summary>
        public OsmStreamFilterPoly(OsmSharp.Geo.Geometries.LineairRing poly)
            : base()
        {
            if (poly == null)
            {
                throw new ArgumentNullException("poly");
            }

            _poly = poly;
            _box  = new GeoCoordinateBox(poly.Coordinates);

            this.Meta.Add("poly", OsmSharp.Geo.Streams.GeoJson.GeoJsonConverter.ToGeoJson(_poly));
        }
 /// <summary>
 /// Creates a new polygon filter.
 /// </summary>
 public OsmStreamFilterPoly(OsmSharp.Geo.Geometries.LineairRing poly)
     : base()
 {
     _poly = poly;
     _box = new GeoCoordinateBox(poly.Coordinates);
 }
Пример #4
0
 /// <summary>
 /// Creates a new polygon filter.
 /// </summary>
 public OsmStreamFilterPoly(OsmSharp.Geo.Geometries.LineairRing poly)
     : base()
 {
     _poly = poly;
     _box  = new GeoCoordinateBox(poly.Coordinates);
 }