started on the DotSpatial

Feb 5, 2012 at 10:32 AM

Hello,
I started on the DotSpatial with vb.net.

I got a sample code:
dim fs As New featureset ()
fs.Open ("C: \ Temp \ roads.shp")


When I place it in a vb.net project replaces fs.open by FeatureSet.open, if retains fs.open, I have an error message.


dim fs As New featureset
SSource g_sCarto = & "\ PAR_MODELE.shp"
fs.FillAttributes ()
FeatureSet.Open (sSource)

Can you help me?

Greetings Guy Muller

Developer
Feb 6, 2012 at 5:40 PM

Hi,

In this case, my guess is to try something closer to the following:

Dim sSource g_sCarto = & "\ PAR_MODELE.shp"

Dim fs As FeatureSet = FeatureSet.Open (sSource)

fs.FillAttributes ()

You should notice that the open method returns the feature set.

If this doesn't work, please post the error message. It's usually a good idea to share your error message, as the error message often explains what the problem is or what you need to do.

Feb 7, 2012 at 7:45 AM

it's ok, thank you very much.
Good day.
greetings
Muller Guy

Feb 10, 2012 at 1:48 PM

I have the similar problem, But i need C# code for this, i am doing somthing like this but it could not work.

 

string ShpFile = "C:\\Data\\Shape_Files\\Testing\\Gravarshp\\Gravar-1.shp";

 FeatureSet fs = FeatureSet .Open(ShpFile);

fs.FillAttributes();

can u provide C# sample code for this