Exemplo n.º 1
0
 public EpsgDataResourceReaderUsage(EpsgDataResource parent, BinaryReader reader)
 {
     Contract.Requires(parent != null);
     Contract.Requires(reader != null);
     _parent     = parent;
     _reader     = reader;
     _coreStream = reader.BaseStream;
 }
Exemplo n.º 2
0
 public EpsgDataResourceReaderParameterValues(ushort operationMethodCode)
 {
     _operationMethodCode = operationMethodCode;
     _dataFile            = new EpsgDataResource("param" + _operationMethodCode.ToString(CultureInfo.InvariantCulture) + ".dat");
     _textReader          = new EpsgDataResourceReaderText("params.txt"); // TODO: reuse one instance
     _numberReader        = EpsgDataResourceReaderNumbers.Default;
     _usagesCache         = null;
 }
Exemplo n.º 3
0
 protected EpsgDataResourceReaderBasic(string dataFileName, EpsgDataResourceReaderText textReader, int recordDataSize)
 {
     DataFile        = new EpsgDataResource(dataFileName);
     FileHeaderSize  = sizeof(ushort);
     RecordKeySize   = sizeof(ushort);
     RecordDataSize  = recordDataSize;
     RecordTotalSize = RecordKeySize + RecordDataSize;
     TextReader      = textReader;
 }
Exemplo n.º 4
0
 public EpsgDataResourceReaderText(string wordPointerFile)
 {
     Contract.Requires(wordPointerFile != null);
     _wordPointerResource = new EpsgDataResource(wordPointerFile);
 }
Exemplo n.º 5
0
 public EpsgMultiCodeMappingInt32(string fileName)
     : base(fileName, null, sizeof(ushort) + sizeof(int))
 {
     _secondaryDataFile = new EpsgDataResource(DataFile.ResourceName);
 }
Exemplo n.º 6
0
 public EpsgDataResourceReaderConcatenatedCoordinateOperationInfo(EpsgDataResourceReaderText textReader)
     : base("opcat.dat", textReader, (sizeof(ushort) * 5) + (sizeof(byte) * 2))
 {
     _pathDataFile = new EpsgDataResource("oppath.dat");
 }