public ShapefileFeature(ShapeReader shapeReader, DbaseReader dbfReader, ShapeLocationInFileInfo shapeLocation, IGeometryFactory geoFactory)            
		{
			m_ShapeReader = shapeReader;
			m_GeoFactory = geoFactory;
			m_ShapeLocationInfo = shapeLocation;
			m_LazyGeometry = new Lazy<IGeometry>(() => m_ShapeReader.ReadShapeAtOffset(m_ShapeLocationInfo.OffsetFromStartOfFile, m_GeoFactory), LazyThreadSafetyMode.ExecutionAndPublication);

			m_DbaseReader = dbfReader;
			m_LazyAttributeTable = new Lazy<IAttributesTable>(() => m_DbaseReader.ReadEntry(m_ShapeLocationInfo.ShapeIndex), LazyThreadSafetyMode.ExecutionAndPublication);
		}
Esempio n. 2
0
 public MBRInfo(Envelope shapeMBR, long offsetFromStartOfFile, int shapeIndex)
 {
     ShapeFileDetails = new ShapeLocationInFileInfo(offsetFromStartOfFile, shapeIndex);
     ShapeMBR         = shapeMBR;
 }
		private IShapefileFeature ReadFeature(ShapeLocationInFileInfo shapeLocationInfo)
		{
			return new ShapefileFeature(m_ShapeReader, m_DbfReader, shapeLocationInfo, m_GeoFactory);
		}
Esempio n. 4
0
		public MBRInfo(Envelope shapeMBR, long offsetFromStartOfFile, int shapeIndex)
		{
			ShapeFileDetails = new ShapeLocationInFileInfo(offsetFromStartOfFile, shapeIndex);
			ShapeMBR = shapeMBR;
		}