[mapguide-users] Constants for "MgPropertyDefinition" . "GetPropertyType()" ?

Haris Kurtagic haris at sl-king.com
Fri Aug 13 16:31:59 EDT 2010


constants as defined in c++

class MgFeaturePropertyType
{
PUBLISHED_API:

    /////////////////////////////////////////////////
    /// \brief
    /// Type name for a data property definition. See
    /// MgDataPropertyDefinition.
    static const int DataProperty           =  100;

    ////////////////////////////////////////////////////
    /// \brief
    /// Type name for an object property definition. See
    /// MgObjectPropertyDefinition.
    static const int ObjectProperty         =  101;

    //////////////////////////////////////////////////////
    /// \brief
    /// Type name for a geometric property definition. See
    /// MgGeometricPropertyDefinition.
    static const int GeometricProperty      =  102;

    ///////////////////////////////////////////////////////////
    /// \brief
    /// Type name for an association property definition.
    ///
    /// \remarks
    /// Currently there is no class for an association property
    /// definition.
    static const int AssociationProperty    =  103;

    ///////////////////////////////////////////////////
    /// Type name for a raster property definition. See
    /// MgRasterPropertyDefinition.
    static const int RasterProperty         =  104;
};

Haris


On Fri, Aug 13, 2010 at 5:25 PM, Crispin_at_1Spatial
<crispin.hoult at 1spatial.com> wrote:
>
> Hi,
>
> Can anyone help me find the declarations for the datatypes from a
> "MgPropertyDefinition" . "GetPropertyType()" ?
>
> I have worked out 100 are data properties and 102 are data properties but
> would like some constants.
> In pure FDO they are called "Schema.PropertyType.PropertyType_DataProperty"
>
> It would make the code sample below better...
>
>  - Thanks, Crispin
>
>
>                        MgPropertyDefinitionCollection colProperty = classDef.GetProperties();
>                        foreach (MgPropertyDefinition propThis in colProperty)
>                        {
>                                // handle geometric and data properties only
>                                int typeofPropertyType = propThis.GetPropertyType();
>
>                                // where is the data type constant for this?
>                                if (102 == typeofPropertyType)
>                                {
>                                        MgGeometricPropertyDefinition geomProp =
> (MgGeometricPropertyDefinition)propThis;
>                                        ...
>                                }
>
>                                // where is the data type constant for this?
>                                if (100 == typeofPropertyType)
>                                {
>
> --
> View this message in context: http://osgeo-org.1803224.n2.nabble.com/Constants-for-MgPropertyDefinition-GetPropertyType-tp5420442p5420442.html
> Sent from the MapGuide Users mailing list archive at Nabble.com.
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>


More information about the mapguide-users mailing list