internal SpatialContextInfo(ISpatialContextReader reader) { this.CoordinateSystem = reader.GetCoordinateSystem(); this.CoordinateSystemWkt = reader.GetCoordinateSystemWkt(); this.Description = reader.GetDescription(); this.ExtentType = reader.GetExtentType(); this.Name = reader.GetName(); this.XYTolerance = reader.GetXYTolerance(); this.ZTolerance = reader.GetZTolerance(); this.IsActive = reader.IsActive(); try { byte[] bGeom = reader.GetExtent(); if (bGeom != null) { using (FgfGeometryFactory factory = new FgfGeometryFactory()) using (IGeometry geom = factory.CreateGeometryFromFgf(bGeom)) { this.ExtentGeometryText = geom.Text; } } } catch { this.ExtentGeometryText = null; } }