Exemplo n.º 1
0
        public void TranslateLatLonToXYInMM()
        {
            var lengthPerDegree = TranslateToXYManually.GetDegreesPerAxis(testMinBounds, testMaxBounds, mmScale);

            result = MockGetPointFromLatLong(simpleAmenityNode, lengthPerDegree, testMinBounds);
            Assert.AreEqual(expectedAmenityNode[0] * mmScale, result[0], 0.01);
            Assert.AreEqual(expectedAmenityNode[1] * mmScale, result[1], 0.01);

            result = MockGetPointFromLatLong(simpleCraftNode, lengthPerDegree, testMinBounds);
            Assert.AreEqual(expectedCraftNode[0] * mmScale, result[0], 0.01);
            Assert.AreEqual(expectedCraftNode[1] * mmScale, result[1], 0.01);
        }
Exemplo n.º 2
0
 public override void MakeGeometryForComponentType()
 {
     // Translate OSM nodes to Rhino points
     this.foundNodes = TranslateToXYManually.NodePointsFromCoords(this.result);
 }
Exemplo n.º 3
0
 public override void MakeGeometryForComponentType()
 {
     // Translate OSM ways to Rhino polylines
     this.foundWays = TranslateToXYManually.WayPolylinesFromCoords(this.result);
 }
Exemplo n.º 4
0
 public override void MakeGeometryForComponentType()
 {
     // Translate OSM nodes to Rhino Surfaces
     this.foundBuildings = TranslateToXYManually.BuildingBrepsFromCoords(ref this.result, this.outputHeighed);
 }