Exemplo n.º 1
0
 public ISpatialReference CreateSpatialReferencePCS(string sSRString)
 {
     try
     {
         if (string.IsNullOrEmpty(sSRString))
         {
             return(null);
         }
         IESRISpatialReference reference = null;
         reference = new ProjectedCoordinateSystemClass();
         int cBytesRead = 0;
         reference.ImportFromESRISpatialReference(sSRString, out cBytesRead);
         return(reference as ISpatialReference);
     }
     catch (Exception exception)
     {
         this.mErrOpt.ErrorOperate(this.mSubSysName, "FunFactory.GeometryFun", "CreateSpatialReferencePCS", exception.GetHashCode().ToString(), exception.Source, exception.Message, "", "", "");
         return(null);
     }
 }