[fdo-trac] #244: FDOGeometricType not exposed in DotNET API

FDO trac_fdo at osgeo.org
Tue Jan 29 12:21:17 EST 2008


#244: FDOGeometricType not exposed in DotNET API
---------------------------+------------------------------------------------
 Reporter:  chrisErickson  |         Owner:  gregboone
     Type:  defect         |        Status:  closed   
 Priority:  minor          |     Milestone:  3.3.0    
Component:  FDO API        |       Version:  3.2.0    
 Severity:  3              |    Resolution:  invalid  
 Keywords:                 |   External_id:           
---------------------------+------------------------------------------------
Changes (by gregboone):

  * status:  new => closed
  * resolution:  => invalid

Comment:

 The !GeometricType Enumeration is currently defined in the FDO 3.3.0
 Managed API as...

 enum OSGeo::FDO::Schema::!GeometricType

 in file...

 [trunk]\Fdo\Managed\Src\OSGeo\FDO\Schema\mgGeometricType.h

 as follows...

 {{{
 /// \ingroup (OSGeoFDOSchema)
 /// \brief
 /// The GeometricType enumeration categorizes all of the geometry types
 /// supported by FDO based on their geometric dimensionality.
 public __value enum GeometricType
 {
     /// Represents 0-dimensional geometric primitives, such as Points.
     GeometricType_Point = 0x01,

     /// Represents 1 dimensional geometric primitives, such as Curves and
 Lines.
     GeometricType_Curve = 0x02,

     /// Represents 2 dimensional geometric primitives, such as Polygons.
     GeometricType_Surface = 0x04,

     /// Represents 3 dimensional geometric primitives, such as Cubes.
     GeometricType_Solid = 0x08,

     /// All
     GeometricType_All = 0x01|0x02|0x04|0x08
 };
 }}}

 Usage:


 {{{
 GeometricPropertyDefinition pGeomProp = new
 GeometricPropertyDefinition("Geometry", "location and shape");
 pGeomProp.GeometryTypes = GeometricType.GeometricType_All;
 pGeomProp.HasMeasure = true;
 pGeomProp.ReadOnly = true;
 pGeomProp.SpatialContextAssociation = "SC_0";
 pGeomProp.Attributes.Add("Measure Units", "metres");
 pDevClass.Properties.Add(pGeomProp);
 }}}

-- 
Ticket URL: <http://trac.osgeo.org/fdo/ticket/244#comment:2>
FDO <http://fdo.osgeo.org/>
Feature Data Objects


More information about the fdo-trac mailing list