public bool Init()
        {
            if (!System.IO.File.Exists(PolylineFile))
            {
                return(false);
            }
            _polylineFeatureClass = PolylineFile.GetShpFeatureClass();
            if (_polylineFeatureClass == null)
            {
                return(false);
            }
            ISpatialReference spatialReference = SpatialReferenceManager.GetSpatialReference(_polylineFeatureClass);

            _polygonFeatureClass = FeatureClassManager.CreateFeatrueClass(PolygonFile, spatialReference, esriGeometryType.esriGeometryPolygon);
            if (_polygonFeatureClass == null)
            {
                return(false);
            }
            _index = _polygonFeatureClass.Fields.FindField("TCMC");
            if (_index > -1)
            {
                return(true);
            }
            return(false);
        }
        public bool Init()
        {
            if (!System.IO.File.Exists(PolylineFile))
            {
                _error += string.Format("文件:{0} 不存在", PolylineFile);
                return(false);
            }
            _polylineFeatureClass = PolylineFile.GetShpFeatureClass();
            if (_polylineFeatureClass == null)
            {
                _error += string.Format("无法读取文件:{0}", PolylineFile);
                return(false);
            }
            ISpatialReference spatialReference = SpatialReferenceManager.GetSpatialReference(_polylineFeatureClass);

            if (System.IO.File.Exists(PolygonFile))
            {
                System.IO.File.Delete(PolygonFile);
            }
            _polygonFeatureClass = FeatureClassManager.CreateFeatrueClass(PolygonFile, spatialReference, esriGeometryType.esriGeometryPolygon);
            if (_polygonFeatureClass == null)
            {
                _error += string.Format("创建文件:{0}  失败", PolygonFile);
                return(false);
            }
            return(true);
        }