Beispiel #1
0
        public void TestQueryFeaturesWithDBF()
        {
            Shapefile shp = new Shapefile("../../shape_eg_data/mexico/states.shp");

            string f = "CODE";

            List<Feature> v = shp.GetFeatures(f);

            Assert.AreEqual("MX02", v[0].ThemeFieldValue);
        }
Beispiel #2
0
        public void LoadPointShapefile()
        {
            Shapefile shp = new Shapefile("../../shape_eg_data/mexico/cities.shp");

            Assert.AreEqual(ShapeType.Point, shp.Shapetype);
        }
Beispiel #3
0
        public void LoadPolygonShapefile()
        {
            Shapefile shp = new Shapefile("../../shape_eg_data/mexico/states.shp");

            Assert.AreEqual(ShapeType.Polygon, shp.Shapetype);
        }
Beispiel #4
0
        public void LoadLineShapefile()
        {
            Shapefile shp = new Shapefile("../../shape_eg_data/mexico/roads.shp");

            Assert.AreEqual(ShapeType.PolyLine, shp.Shapetype);
        }