Example #1
0
 public void Dispose(bool bool_1)
 {
     if ((!bool_1 ? false : !this.bool_0))
     {
         MiApi.mitab_c_destroy_feature(this.Handle);
         this.bool_0 = true;
     }
 }
Example #2
0
 protected internal Fields(Layer layer_0) : base(MiApi.mitab_c_get_field_count(layer_0.Handle))
 {
     this.field_0 = new Field[base.Count];
     for (int i = 0; i < base.Count; i++)
     {
         this.field_0[i] = this.CreateField(layer_0, i);
     }
 }
Example #3
0
 protected internal Feature(Layer layer_0, int int_0)
 {
     this.Id     = int_0;
     this.Layer  = layer_0;
     this.Handle = MiApi.mitab_c_read_feature(layer_0.Handle, int_0);
     this.Type   = MiApi.mitab_c_get_type(this.Handle);
     this.Parts  = this.CreateParts(this);
 }
Example #4
0
 public Layer(string string_0)
 {
     this.Handle = MiApi.mitab_c_open(string_0);
     if (this.Handle == IntPtr.Zero)
     {
         throw new FileNotFoundException(string.Concat("File ", string_0, " not found"), string_0);
     }
     this.Fields   = this.CreateFields();
     this.Features = this.CreateFeatures();
     this.FileName = string_0;
 }
Example #5
0
 public virtual Vertex this[int int_1]
 {
     get
     {
         Vertex vertex;
         if (int_1 < base.Count)
         {
             vertex =
                 this.CreateVertex(MiApi.mitab_c_get_vertex_x(this.Part.Feature.Handle, this.Part.Index, int_1),
                                   MiApi.mitab_c_get_vertex_y(this.Part.Feature.Handle, this.Part.Index, int_1));
         }
         else
         {
             vertex = null;
         }
         return(vertex);
     }
 }
Example #6
0
        public Feature GetNext()
        {
            Feature feature = new Feature(this.Layer, MiApi.mitab_c_next_feature_id(this.Layer.Handle, this.Id));

            return(feature);
        }
Example #7
0
        public Feature GetFirst()
        {
            Feature item = this[MiApi.mitab_c_next_feature_id(this.layer_0.Handle, -1)];

            return(item);
        }
Example #8
0
 public Features(Layer layer_1) : base(MiApi.mitab_c_get_feature_count(layer_1.Handle))
 {
     this.layer_0 = layer_1;
 }
Example #9
0
 public void Dispose()
 {
     MiApi.mitab_c_close(this.Handle);
 }
Example #10
0
 protected internal Vertices(Part part_0)
     : base(MiApi.mitab_c_get_vertex_count(part_0.Feature.Handle, part_0.Index))
 {
     this.Part = part_0;
 }
Example #11
0
 public static string mitab_c_get_mif_coordsys(IntPtr intptr_0)
 {
     return(Marshal.PtrToStringAnsi(MiApi.mitab_c_get_mif_coordsys_1(intptr_0)));
 }
Example #12
0
 public static string mitab_c_get_font(IntPtr intptr_0)
 {
     return(Marshal.PtrToStringAnsi(MiApi.mitab_c_get_font_1(intptr_0)));
 }
Example #13
0
 public static string mitab_c_get_field_name(IntPtr intptr_0, int int_0)
 {
     return(Marshal.PtrToStringAnsi(MiApi.mitab_c_get_field_name_1(intptr_0, int_0)));
 }
Example #14
0
 public static string mitab_c_getlasterrormsg()
 {
     return(Marshal.PtrToStringAnsi(MiApi.mitab_c_getlasterrormsg_1()));
 }
Example #15
0
 protected internal Parts(Feature feature_0) : base(MiApi.mitab_c_get_parts(feature_0.Handle))
 {
     this.Feature = feature_0;
 }