public void GisVectorLayerTest_DistanceNotEqual_value() { var parkBorder = new GisVectorLayer.GisVectorLayer(ParkBorder); var agentPaths = new GisVectorLayer.GisVectorLayer(AgentPaths); Assert.NotEqual(1.0, VectorGisUtils.Distance(parkBorder.Features[0], agentPaths.Features[0])); }
public void GisVectorLayerTest_Overlaps_false() { var parkBorder = new GisVectorLayer.GisVectorLayer(ParkBorder); var agentPaths = new GisVectorLayer.GisVectorLayer(AgentPaths); Assert.False(parkBorder.Overlaps(agentPaths.Features[0])); }
public void GisVectorLayerTest_IsInside_false() { var parkBorder = new GisVectorLayer.GisVectorLayer(ParkBorder); var agentPaths = new GisVectorLayer.GisVectorLayer(AgentPaths); Assert.False(agentPaths.IsInside(parkBorder.Features[0])); }
public void GisVectorLayerTest_Intersects_true() { var parkBorder = new GisVectorLayer.GisVectorLayer(ParkBorder); var agentPaths = new GisVectorLayer.GisVectorLayer(AgentPaths); Assert.True(parkBorder.Intersects(agentPaths.Features[1])); // var attributeTable = new AttributesTable {{"id", 1}}; // _output.WriteLine("Attributes:" + agentPaths.Features[0].Attributes); // Assert.Equal(agentPaths.Features[0].Attributes, attributeTable); // _output.WriteLine("attributes: " + parkBorder.Features[0].Attributes.Count); }
public void GisVectorLayerTest_valid() { var agentPaths = new GisVectorLayer.GisVectorLayer(AgentPaths); Assert.Equal(2, agentPaths.Features.Count); }