public FeatureType WrapFeatureType(PointExtractor pointExtractor, FeatureType featureType) { var newFeatureType = (FeatureType)featureType.Clone(); _xIndex = !string.IsNullOrEmpty(pointExtractor.XColumn) ? newFeatureType.AddAttributes(pointExtractor.XColumn, typeof(double)).Ordinal : -1; _yIndex = !string.IsNullOrEmpty(pointExtractor.YColumn) ? newFeatureType.AddAttributes(pointExtractor.YColumn, typeof(double)).Ordinal : -1; _zIndex = !string.IsNullOrEmpty(pointExtractor.ZColumn) ? newFeatureType.AddAttributes(pointExtractor.ZColumn, typeof(double)).Ordinal : -1; _mIndex = !string.IsNullOrEmpty(pointExtractor.MColumn) ? newFeatureType.AddAttributes(pointExtractor.MColumn, typeof(double)).Ordinal : -1; _angleIndex = !string.IsNullOrEmpty(pointExtractor.AngleColumn) ? newFeatureType.AddAttributes(pointExtractor.AngleColumn, typeof(double)).Ordinal : -1; return newFeatureType; }
private FeatureType WrapFeatureType(FeatureType featureType) { var newFeatureType = (FeatureType)featureType.Clone(); newFeatureType.AddAttributes("vertex_id", typeof(double)); newFeatureType.AddAttributes("vertex_x", typeof(double)); newFeatureType.AddAttributes("vertex_y", typeof(double)); newFeatureType.AddAttributes("vertex_z", typeof(double)); newFeatureType.AddAttributes("vertex_m", typeof(double)); //newFeatureType.GeometryType = OgcGeometryType.Point; return newFeatureType; }