Beispiel #1
0
 /// <summary>
 /// Creates a new <see cref="WKTFileReader" />, given a <see cref="TextReader"/> to read with.
 /// </summary>
 /// <param name="reader">The stream reader of the file to read from</param>
 /// <param name="wktReader">The geometry reader to use</param>
 public WKTFileReader(TextReader reader, WKTReader wktReader)
     : this(wktReader)
 {
     _reader = reader;
 }
Beispiel #2
0
 /// <summary>
 /// Creates a new <see cref="WKTFileReader" />, given a <see cref="Stream"/> to read from.
 /// </summary>
 /// <param name="stream">The stream to read from</param>
 /// <param name="wktReader">The geometry reader to use</param>
 public WKTFileReader(Stream stream, WKTReader wktReader)
     : this(new StreamReader(stream), wktReader)
 {
 }
Beispiel #3
0
 /// <summary>
 /// Creates a new <see cref="WKTFileReader" /> given the <paramref name="file" /> to read from and a <see cref="WKTReader" /> to use to parse the geometries.
 /// </summary>
 /// <param name="file"> the <see cref="FileInfo" /> to read from</param>
 /// <param name="wktReader">the geometry reader to use</param>
 public WKTFileReader(FileInfo file, WKTReader wktReader)
     : this(wktReader)
 {
     _file = file;
 }
Beispiel #4
0
 /// <summary>
 /// Creates a new <see cref="WKTFileReader" />, given the name of the file to read from.
 /// </summary>
 /// <param name="filename">The name of the file to read from</param>
 /// <param name="wktReader">The geometry reader to use</param>
 public WKTFileReader(string filename, WKTReader wktReader)
     : this(new FileInfo(filename), wktReader)
 {
 }
Beispiel #5
0
 private WKTFileReader(WKTReader wktReader)
 {
     _wktReader = wktReader;
     Limit      = -1;
 }