コード例 #1
0
        public static ShapefileDataReader CreateDataReader(IStreamProviderRegistry streamProviderRegistry,
                                                           GeometryFactory geometryFactory)
        {
            if (streamProviderRegistry == null)
            {
                throw new ArgumentNullException("streamProviderRegistry");
            }
            if (geometryFactory == null)
            {
                throw new ArgumentNullException("geometryFactory");
            }
            var shpDataReader = new ShapefileDataReader(streamProviderRegistry, geometryFactory);

            return(shpDataReader);
        }
コード例 #2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="parent"></param>
 public ShapefileDataReaderEnumerator(ShapefileDataReader parent)
 {
     _parent = parent;
     _parent.Reset();
 }