<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" id="owaParaStyle"></style>
</head>
<body fpstyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Hi ,
<div><br>
</div>
<div>I am trying to load a S57 dataset to my map control using GDAL.</div>
<div>I have diff types of layers i.e </div>
<div>Polygon, Point, Line and multipoint</div>
<div><br>
</div>
<div>Here I want to show polygon in the base and points and lines on top of it my code is as follows</div>
<div><br>
</div>
<div>
<div> if (layerType == "POLYGON")</div>
<div>                            {</div>
<div>                                FeatureSet fs = new FeatureSet(dt, 1, true, DotSpatial.Topology.FeatureType.Polygon);</div>
<div>                                fs.DataTable = dt.Clone();</div>
<div>                                var c = new DotSpatial.Topology.Coordinate[arrCoordinatesX.Count - 1];</div>
<div>                                for (int k = 0; k < arrCoordinatesX.Count - 1; k++)</div>
<div>                                {</div>
<div>                                    c[k] = new DotSpatial.Topology.Coordinate(Convert.ToDouble(arrCoordinatesX[k]), Convert.ToDouble(arrCoordinatesY[k]));</div>
<div>                                }</div>
<div>                                DotSpatial.Topology.Polygon LS = new DotSpatial.Topology.Polygon(c);</div>
<div>                                DotSpatial.Data.IFeature currentFeature = fs.AddFeature(LS);</div>
<div>                                uxMap.Layers.Add(fs);</div>
<div>                            }</div>
<div>                           </div>
<div>                           </div>
<div>                            else if (layerType == "LINESTRING")</div>
<div>                            {</div>
<div>                                FeatureSet fs = new FeatureSet(dt, 1, true, DotSpatial.Topology.FeatureType.Line);</div>
<div>                                fs.DataTable = dt.Clone();</div>
<div>                                List<DotSpatial.Topology.Coordinate> coordinates = new List<DotSpatial.Topology.Coordinate>();</div>
<div>                                for (int k = 0; k <= arrCoordinatesX.Count - 1; k++)</div>
<div>                                {</div>
<div>                                    coordinates.Add(new DotSpatial.Topology.Coordinate(Convert.ToDouble(arrCoordinatesX[k]), Convert.ToDouble(arrCoordinatesY[k])));</div>
<div>                                }</div>
<div>                                DotSpatial.Topology.LineString LS = new DotSpatial.Topology.LineString(coordinates);</div>
<div>                                DotSpatial.Data.IFeature currentFeature = fs.AddFeature(LS);</div>
<div>                                uxMap.Layers.Add(fs);</div>
<div>                                foreach (DataRow row in dt.Rows)</div>
<div>                                {</div>
<div>                                }</div>
<div>                            }</div>
<div>                            else if (layerType == "POINT")</div>
<div>                            {</div>
<div>                                FeatureSet fs = new FeatureSet(dt, 1, true, DotSpatial.Topology.FeatureType.Point);</div>
<div>                                fs.DataTable = dt.Clone();</div>
<div>                                foreach (DataRow row in dt.Rows)</div>
<div>                                {</div>
<div>                                    for (int k = 0; k <= arrCoordinatesX.Count - 1; k++)</div>
<div>                                    {</div>
<div>                                        DotSpatial.Topology.Coordinate c = new DotSpatial.Topology.Coordinate(Convert.ToDouble(arrCoordinatesX[k]), Convert.ToDouble(arrCoordinatesY[k]));</div>
<div><br>
</div>
<div>                                        DotSpatial.Topology.Point p = new DotSpatial.Topology.Point(c);</div>
<div>                                        DotSpatial.Data.IFeature currentFeature = fs.AddFeature(p);</div>
<div>                                        //PointCheck(ds);</div>
<div>                                    }</div>
<div>                                    uxMap.Layers.Add(fs);</div>
<div>                                    //uxMap.Layers.OrderByDescending(fs, 1);</div>
<div><br>
</div>
<div>                                }</div>
<div>                            }</div>
<div><br>
</div>
<div>                          else   if (layerType == "MULTIPOINT")</div>
<div>                            {</div>
<div>                                FeatureSet fs = new FeatureSet(dt, 1, true, DotSpatial.Topology.FeatureType.Point);</div>
<div>                                fs.DataTable = dt.Clone();</div>
<div>                                foreach (DataRow row in dt.Rows)</div>
<div>                                {</div>
<div>                                    DotSpatial.Topology.Point p = new DotSpatial.Topology.Point();</div>
<div>                                    for (int k = 0; k <= arrCoordinatesX.Count - 1; k++)</div>
<div>                                    {</div>
<div>                                        DotSpatial.Topology.Coordinate c = new DotSpatial.Topology.Coordinate(Convert.ToDouble(arrCoordinatesX[k]), Convert.ToDouble(arrCoordinatesY[k]));</div>
<div>                                        p = new DotSpatial.Topology.Point(c);</div>
<div>                                        DotSpatial.Data.IFeature currentFeature = fs.AddFeature(p);</div>
<div>                                    }</div>
<div>                                    DotSpatial.Topology.MultiPoint mp = new DotSpatial.Topology.MultiPoint(p);</div>
<div>                                    uxMap.Layers.Add(fs);                                    </div>
<div>                                }</div>
<div>                            }</div>
<div>                        }</div>
<div>                        dt.Rows.Clear();</div>
<div>                    }</div>
<div>                }</div>
<div><br>
</div>
<div><br>
</div>
<div>So how to control this layer order so that i can see all the layers in a single map window</div>
<div><br>
</div>
<div><br>
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">Thanks and Regards<br>
Nikhil Sai Parupalli<br>
<br>
<br>
<br>
<span style="font-weight:bold">Note</span>: <span style="color:rgb(255,0,0)">Do not print this email until and unless it is really required. Save paper</span> ,
<span style="color:rgb(51,153,102); font-weight:bold">stay <span style="color:rgb(51,153,102)">
Gre</span>en</span><br>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>