This project has moved and is read-only. For the latest updates, please go here.


Topics: Data Access
Jul 20, 2007 at 1:31 PM
I have seen previous posts that gives us what is the Shape Type if the datasource is ShapeFile. Can't we say what is Shapetype for all other datasources?

I see many classes parses the features and gives the Geometry type, but is there a property being set to know what is the Shapetype from the dll?
Aug 1, 2007 at 12:30 PM
In general, if you check the type of the Geometry object you have (e.g: myGeometry is Polygon), you'll know what is in the layer.

Some other data sources can handle more than one type, so they are differentiated only by parsing the geometry and instantiating specific subclasses of the Geometry class.

Shapefiles are specific about the kind of geometry they have, so this is encoded and decoded by the ShapeFile provider, by using ShapeType, which returns Geometry instances of the same type as is stored in the shapefile.