[fdo-users] Get Property datatype
Gavin Cramer
gavin.cramer at autodesk.com
Thu Dec 17 09:48:51 EST 2009
Hi, Matteo.
Once you know that it property definition is of type DataProperty, you can safely downcast it to DataPropertyDefinition. This will give you a DataType method that will tell you what you want.
For geometry properties, downcast the property definition to GeometricPropertyDefinition and use either GeometryTypes or SpecificGeometryTypes method.
Gavin
-----Original Message-----
From: fdo-users-bounces at lists.osgeo.org [mailto:fdo-users-bounces at lists.osgeo.org] On Behalf Of Matteo
Sent: Thursday, December 17, 2009 5:08 AM
To: fdo-users at lists.osgeo.org
Subject: [fdo-users] Get Property datatype
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-tp4180458p4180458.html
Sent from the FDO Users mailing list archive at Nabble.com.
_______________________________________________
fdo-users mailing list
fdo-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/fdo-users
More information about the fdo-users
mailing list