Quantcast
Channel: DotSpatial
Viewing all articles
Browse latest Browse all 3973

New Post: Noob question: how to retrieve X Y from pointshape

$
0
0
Hello reader

sofar i have a pretty complex programm but somehow i still cant retrieve the X Y from a layer/shapefile

for now i make extra fields in the shape to add the X and Y and later i retrieve those, but stupidly i can not find a way to retrieve the X and Y from a datatable directly from the originated shape..... any idea on this?
            Dim fs As New FeatureSet
            fs.FillAttributes()
            fs = FeatureSet.Open(Form1.AdressenPADNAAMtext.Text)
            fs.Projection = Form1.myVenster.Projection
            Dim dt As DataTable = fs.DataTable
            Dim coor As Coordinate() = New Coordinate(dt.Rows.Count) {}
            For AdresRij = 0 To dt.Rows.Count - 1
                AdresX = dt.Rows(AdresRij)(Form1.ComboBoxXadres.Text)
                AdresY = dt.Rows(AdresRij)(Form1.ComboBoxYadres.Text)

and so on

Viewing all articles
Browse latest Browse all 3973

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>