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

New Post: HOW TO add or lower the Z of a polyline Z line...

$
0
0
Hi Joska,

I don't know how it works with Z values, but the following sample code seems to work...
        Dim flayer As FeatureLayer
        flayer = TryCast(Map1.Layers.SelectedLayer, FeatureLayer)

        Dim k As Integer = 0
        For i As Integer = 0 To flayer.FeatureSet.Z.Count - 1
            'For j As Integer = 0 To fef.FeatureSet.Features.Count - 1
            flayer.FeatureSet.Z(i) = ZZZZZ 'your desired Z value
            'Next
        Next
        flayer.DataSet.Save()
It seems that the Z attribute is an array of Z coordinates for all of the points in your polyline shapefile. To me it seems that if you have 2 features, the first one with 4 coordinates and the second one with 10 coordinates, the Z array will contains 14 values, the former 4 related to the first feature, the latter 10 to the second

Don't know if this answers your needs.
Ciao
Oscar

Viewing all articles
Browse latest Browse all 3973

Trending Articles



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