Mercurial > postarc > postarc
comparison Postarc/Postarc/PostArcClassDescription.cs @ 0:1aca3d413885 tip
Initial import of Postarc
author | Christian Lins <christian.lins@intevation.de> |
---|---|
date | Fri, 05 Oct 2012 23:55:06 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:1aca3d413885 |
---|---|
1 /* | |
2 * Postarc | |
3 * | |
4 * Author: | |
5 * Christian Lins <christian.lins@intevation.de> | |
6 * | |
7 * Copyright: | |
8 * Copyright (C) 2012 Intevation GmbH <http://www.intevation.de/> | |
9 * | |
10 * This program is free software: you can redistribute it and/or modify | |
11 * it under the terms of the GNU Lesser General Public License as published by | |
12 * the Free Software Foundation, either version 3 of the License, or | |
13 * (at your option) any later version. | |
14 * | |
15 * This program is distributed in the hope that it will be useful, | |
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
18 * GNU General Public License for more details. | |
19 * | |
20 * You should have received a copy of the GNU Lesser General Public License | |
21 * along with this program. If not, see <http://www.gnu.org/licenses/>. | |
22 */ | |
23 | |
24 using System; | |
25 using System.Collections.Generic; | |
26 using System.Linq; | |
27 using System.Text; | |
28 using ESRI.ArcGIS.Geodatabase; | |
29 using ESRI.ArcGIS.ADF.CATIDs; | |
30 using System.Runtime.InteropServices; | |
31 | |
32 namespace Postarc | |
33 { | |
34 /// <summary> | |
35 /// Provides configuration information for ArcCatalog when creating new object or feature classes. | |
36 /// The class description can be registered using the GeoObjectClassDescriptions static class in the ESRI.ArcGIS.ADF.CATIDs namespace. | |
37 /// </summary> | |
38 [Guid("4D5457B8-7378-4457-8FD8-7D6553A93EDD")] | |
39 public class PostarcClassDescription : IObjectClassDescription, IFeatureClassDescription | |
40 { | |
41 public string AliasName | |
42 { | |
43 get | |
44 { | |
45 return "Postarc Feature Alias Name"; | |
46 } | |
47 } | |
48 | |
49 public ESRI.ArcGIS.esriSystem.UID ClassExtensionCLSID | |
50 { | |
51 get { return null; } // No class extension | |
52 } | |
53 | |
54 public ESRI.ArcGIS.esriSystem.UID InstanceCLSID | |
55 { | |
56 get { throw new NotImplementedException(); } | |
57 } | |
58 | |
59 public string ModelName | |
60 { | |
61 get { throw new NotImplementedException(); } | |
62 } | |
63 | |
64 public bool ModelNameUnique | |
65 { | |
66 get { throw new NotImplementedException(); } | |
67 } | |
68 | |
69 public string Name | |
70 { | |
71 get | |
72 { | |
73 return "ClassDescription_CustomClass"; | |
74 } | |
75 } | |
76 | |
77 public IFields RequiredFields | |
78 { | |
79 get | |
80 { | |
81 IFieldsEdit fields = new FieldsClass(); | |
82 | |
83 IFieldEdit field = new FieldClass(); | |
84 field.Name_2 = "Shape"; | |
85 field.Type_2 = esriFieldType.esriFieldTypeGeometry; | |
86 fields.set_Field(1, field); | |
87 | |
88 return fields; | |
89 } | |
90 } | |
91 | |
92 /// <summary> | |
93 /// Simple features. | |
94 /// </summary> | |
95 public esriFeatureType FeatureType | |
96 { | |
97 get | |
98 { | |
99 return esriFeatureType.esriFTSimple; | |
100 } | |
101 } | |
102 | |
103 public string ShapeFieldName | |
104 { | |
105 get | |
106 { | |
107 return "Shape"; | |
108 } | |
109 } | |
110 } | |
111 } |