This project has moved. For the latest updates, please go here.

fill dataset

Topics: General Topics
Aug 8, 2006 at 7:05 AM
Hi, I need to fill dataset DSet from DataSource DSource

Dim DSource As SharpMap.Data.Providers.OleDbPoint = New SharpMap.Data.Providers.OleDbPoint(ConnectionString, "GG", "ObjectID", "X", "Y")
Dim DSet As SharpMap.Data.FeatureDataSet = New SharpMap.Data.FeatureDataSet
DSource.DefinitionQuery = ...

I use
DSource.GetFeaturesInView(DSource.GetExtents(), DSet)

if DSource.GetFeatureCount() > 1 DSet is filling but
when DSource.GetFeatureCount() = 1 is not

Is there another way to fill DSet ?
Thanx in advance...