public void ProjectionChange(ProjParamType type, string name, IGeoProjection proj) { if (this.ProjectionChangeEvent != null) { this.ProjectionChangeEvent(type, name, proj); } }
public bool Equals(IGeoProjection geoProj) { if (geoProj == null) { return false; } bool flag = true; if (geoProj.CurrentProjParamType != this.m_CurrentProjParamType) { flag = false; } else { switch (this.m_CurrentProjParamType) { case ProjParamType.GaussProjParam: return this.m_GaussProjParams.Equals(geoProj.GaussProjParams); case ProjParamType.DistortionProjParam: return this.m_DistortionProjParams.Equals(geoProj.DistortionProjParams); case ProjParamType.ConeProjParam: return this.m_ConeProjParams.Equals(geoProj.ConeProjParams); } flag = false; } return flag; }
public GeoUTMParamsImportProperty(ProjectFolder folder, IGeoProjection projectionReader) : base(folder, projectionReader) { this.m_LongitudeZone = 30; base.Projection.GaussProjParams.longitudeOrigin = -3.0; this.m_LongitudeZone = base.Projection.GaussProjParams.zone; }
public GeoDistortionParamsImportProperty(ProjectFolder folder, IGeoProjection projectionReader) : base(folder, projectionReader) { }
public IAGeoImportProperty(ProjectFolder folder, IGeoProjection projectionReader) { this.m_ProjectFolder = folder; this.m_IProjection = projectionReader; }
public bool SetProjectionParams(IGeoProjection geoProjection) { return this.m_CurrentProjection.SetProjectionParams(geoProjection); }
public void LoadProjection(string projectionFilePath) { if (projectionFilePath != string.Empty) { if (!File.Exists(projectionFilePath)) { projectionFilePath = Path.Combine(Directory.GetParent(projectionFilePath).FullName, "projection.txt"); if (!File.Exists(projectionFilePath)) { this.m_IsAnyFileNotExist = true; this.m_LoadingErrorStr = this.m_LoadingErrorStr + "can't find " + projectionFilePath + "\r\n"; return; } } this.m_GeoProjection = new GeoProjectionFile(projectionFilePath); } }