Avatar

Achskonvertierung: Schlüsselwort ermitteln (Geodäsie/Vermessung)

MichaeL ⌂, Bad Vilbel, Tuesday, 18.08.2009, 22:41 (vor 5363 Tagen) @ AWO

Hi,

Seh gerade die Klammersetzung stimmt nicht, aber keine zeit mehr das zu ändern^^

Die sollte sich einer von Euch beiden nehmen da ich eben nicht in der Lage bin, irgendwas zu testen. Bei den Schlüsselwörten nehme ich nachher die Methode und kopiere sie rein.

In Deiner Version (korrigiert von mir) fehlt noch CURVEIN oder gibts das doch nicht (mehr)?

  if ( currentStation.getRadius() == 0 && currentStation.getClothoidParameter() == 0) {
   return "STRAIGHT";
  }
  else if ( currentStation.getRadius() == 0 && currentStation.getClothoidParameter() != 0) {
   return "SPIRIN";
  }
  else if (( currentStation.getRadius() != 0 && currentStation.getClothoidParameter() != 0 && preStation.getRadius() == 0 && behindStation.getRadius() != 0) || ( currentStation.getRadius() != 0 && currentStation.getClothoidParameter() != 0 && preStation.getRadius() != 0 && behindStation.getRadius() == 0)) {
   return "SPIROUT";
  }
  else if ( currentStation.getRadius() != 0 && currentStation.getClothoidParameter() == 0) {
   return "CURVE";
  }
  else if ( currentStation.getRadius() != 0 && currentStation.getClothoidParameter() != 0 && preStation.getRadius() !=0 && behindStation.getRadius() !=0 && preStation.getRadius() < behindStation.getRadius() ) {
   return "CURVEOUT";
  }

Weiterhin: SPIROUT und CURVEOUT gehen nicht, wenn es das erste bzw. letzte Element der Achse ist - laut Deinem Code, da preStation und behindStation dann nicht definiert wären.

Passt das auch?

Gruß Micha

--
applied-geodesy.org - OpenSource Least-Squares Adjustment Software for Geodetic Sciences


gesamter Thread:

 RSS-Feed dieser Diskussion