ReadOSMXml() public method

public ReadOSMXml ( string filePath ) : List
filePath string
return List
Ejemplo n.º 1
0
        public void NodesToRestaurantsOsmTest_ShouldConvertAllNodesToRestaurantsOsmList()
        {
            string path = @"E:\Work\osmosis-latest\bin\israel_all_foods.osm";
            OpenStreetMapServices osm = new OpenStreetMapServices();
            var nodeList = osm.ReadOSMXml(path);
            //act
            List<RestaurantOsm> restList = osm.NodesToRestaurantsOsm(nodeList);

            //assert
            Assert.IsNotNull(restList);
        }
Ejemplo n.º 2
0
        public void ReadOSMXmlTest_ShouldReturnNotNullListOfOsmNodeElements()
        {
            string path = @"E:\Work\osmosis-latest\bin\israel_all_foods.osm";
            OpenStreetMapServices osm = new OpenStreetMapServices();
            var nodeList = osm.ReadOSMXml(path);

            Assert.IsNotNull(nodeList);
            Assert.IsTrue(nodeList.Count > 0);
        }
Ejemplo n.º 3
0
        public void ReadOSMXmlTest_ShouldReturnNotNullListOfOsmNodeElements()
        {
            //string path = @"C:\osmosis-latest\bin\finland_places.osm";
            OpenStreetMapServices osm = new OpenStreetMapServices();
            var nodeList = osm.ReadOSMXml(path);

            Assert.IsNotNull(nodeList);
            Assert.IsTrue(nodeList.Count > 0);
        }