[fdo-users] Get Property datatype

Matteo matteo.conte1979 at libero.it
Sun Dec 20 09:43:19 EST 2009


Thanks a lot...now work fine
Regards
Matteo

Jackie Ng wrote:
> 
> PropertyType tells you what you can safely cast that PropertyDefinition
> into
> 
> PropertyType_AssociationProperty means cast it to a
> AssociationPropertyDefinition
> PropertyType_GeometricProperty means cast it to a
> GeometricPropertyDefinition
> PropertyType_ObjectProperty means cast it to a ObjectPropertyDefinition
> PropertyType_RasterProperty means cast it to a RasterPropertyDefinition
> PropertyType_DataProperty means cast it to a DataPropertyDefinition
> 
> Thus you want to check if the property is a data property, then you can
> safetly cast to a DataPropertyDefinition and interrogate its DataType
> property to determine the data type.
> 
> - Jackie
> 
> 
> Matteo wrote:
>> 
>> Hi,
>>   I have a question about the featureclass properties. How I can get the
>> datatype of a property? When I get a property of a featureclass
>> (objSchema.Item(0).Classes.Item(0).Properties.item(0)) I found only the
>> PropertyType method. This method non return the datatype but the type of
>> property (PropertyType_DataType). I need a method that return the exactly
>> data type (ex DataType_Int16)
>> Another question:
>>   how I can get type geometry type of a SHP file (Point, Line, Surface)?
>> Thanks
>> Matteo
>> 
> 
> 

-- 
View this message in context: http://n2.nabble.com/Get-Property-datatype-tp4180458p4194776.html
Sent from the FDO Users mailing list archive at Nabble.com.


More information about the fdo-users mailing list