public void testComputeZNaN(){
  Geometry linearGeom=read("LINESTRING (0 0, 10 10 10)");
  LengthIndexedLine indexedLine=new LengthIndexedLine(linearGeom);
  double projIndex=indexedLine.project(new Coordinate(5,5));
  Coordinate projPt=indexedLine.extractPoint(projIndex);
  assertTrue(Double.isNaN(projPt.z));
}

public void testComputeZNaN ( ) { Geometry linearGeom = read ( "LINESTRING (0 0, 10 10 10)" ) ; LengthIndexedLine indexedLine = new LengthIndexedLine ( linearGeom ) ; double projIndex = indexedLine . project ( new Coordinate ( 5 , 5 ) ) ; Coordinate projPt = indexedLine . extractPoint ( projIndex ) ; assertTrue ( Double . isNaN ( projPt . z ) ) ; }
tests that if the input does not have z ordinates , neither does the output .
